Replies: 1 comment
-
|
👋 @elManto Could you elaborate on what you want to do with that information? My main point here is whether you intend that for human consumption or to do some further QL or script processing down the line. If it's just for human consumption when analysing the SARIF result, you could try running your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I've written a path-problem query for python to track certain data flows I'm interested at that have the input parameters (sys.argv, argparse, etc.) as sources and certain APIs as sinks. Without getting into the details of what's the source and what's the sink (I can share, but probably not needed), the body of the query looks like:
For each node in the PathGraph I would like to obtain the parent expression, if any. For instance, let's consider the following example:
If I look into the Sarif generated with the query above I'll get the line of each node and the
startColumn,endColumnof the variable involved in the Path that is reached by the taint, e.g.,x(line 1),x(line 3),y(line 4). I would like to obtain the parent expression for each node, e.g.,x = sys.argv[1],y=x + "A"andprint(y). Is there a way to do so ? Thank youBeta Was this translation helpful? Give feedback.
All reactions