Python: Example use of provenance for additional taint steps

This commit is contained in:
Rasmus Lerchedahl Petersen
2024-05-16 14:04:35 +02:00
parent 20ea9255a1
commit 4378924785
2 changed files with 6 additions and 5 deletions

View File

@@ -200,10 +200,11 @@ module Decoding {
}
private class DecodingAdditionalTaintStep extends TaintTracking::AdditionalTaintStep {
override predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
override predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo, string model) {
exists(Decoding decoding |
nodeFrom = decoding.getAnInput() and
nodeTo = decoding.getOutput()
nodeTo = decoding.getOutput() and
model = "Decoding-" + decoding.getFormat()
)
}
}