[Golang] Additional Taint Step hidden in PathGraph Visualisation #20596
-
Hello, Here is a simplified code snippet for my query, which works like a charm:
The problem is, when I click through the steps in the
I need to explicitly reflect in the query results that my taint step contributed to the flow, for my internal SAST metrics/statistics. Thanks for taking time with this! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You could try in your data-flow configuration specifying The names printed in the path explanation refer to nodes, not edges, but you could try something like |
Beta Was this translation helpful? Give feedback.
-
We already make sure that we never skip over steps coming from function models for any configuration. We could do additional taint steps too. There are edge labels for some edges, e.g. those coming from function models or from additional flow steps specified in the flow configuration. For steps coming from Would either of these be helpful, @KseniiaSmirn0va ? Or has @smowton's suggestions already solved your problem? |
Beta Was this translation helpful? Give feedback.
You could try in your data-flow configuration specifying
predicate neverSkip(Node node)
-- by default, the edges relation that populates the user-facing graph will skip nodes unless they are join points (have multiple predecessors) or are interprocedural edges.The names printed in the path explanation refer to nodes, not edges, but you could try something like
class CustomNamedNode extends DataFlow::Node { ... CustomNamedNode() { ... characterise your node ... } ... override string toString() { ... stringify your node ... }
, and ensure your custom node definition is in scope in the context of whatever query produces your path explanation.