Skip to content

Query for all JavaScript security related sources and sinks #18400

Answered by smowton
yonajix asked this question in Q&A
Discussion options

You must be logged in to vote

Specifically for sources, you'll find most standard queries use RemoteFlowSource, a common dataflow node classification representing data expected to have come from a remote / outside / untrusted user. There's also ThreatModelSource which is a little broader and includes other possible sources including environment variables that most queries don't consider a threat. Finally as you've noted it's possible to import configurations from different queries and query their source nodes; this will pick up those few queries with extra query-specific sources. If importing multiple of these causes a name clash anywhere you might use import ... as NamespaceName syntax and reference NamespaceName::Co…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yonajix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants