Interface IReversibleTaintWrapper
- All Superinterfaces:
ITaintPropagationWrapper
- All Known Implementing Classes:
EasyTaintWrapper,TaintWrapperSet
While a normal
ITaintPropagationWrapper answers the question which
taints are valid after a given statement has been called with a given
incoming taint abstraction, a IReversibleTaintWrapper can also
identify those taint that were possibly tainted before a given statement if
the result of that statement is a given taint.
Note that reversing a taint wrapper will very likely be less precise than
computing it forward, because many methods combine taint from multiple
sources. When reversing, we have to assume that all those previous taints are
possible.- Author:
- Steven Arzt
-
Method Summary
Modifier and TypeMethodDescriptiongetInverseTaintsForMethod(soot.jimple.Stmt stmt, Abstraction d1, Abstraction taintedPath) Checks an invocation statement for black-box taint propagation.Methods inherited from interface soot.jimple.infoflow.taintWrappers.ITaintPropagationWrapper
getAliasesForMethod, getPreAnalysisHandlers, getTaintsForMethod, getWrapperHits, getWrapperMisses, initialize, isExclusive, supportsCallee, supportsCallee
-
Method Details
-
getInverseTaintsForMethod
Set<Abstraction> getInverseTaintsForMethod(soot.jimple.Stmt stmt, Abstraction d1, Abstraction taintedPath) Checks an invocation statement for black-box taint propagation. This allows the wrapper to artificially propagate taints over method invocations without requiring the analysis to look inside the method. Note that this method is the inverse ofgetTaintsForMethod. It obtains the taints that could have been tainted before a certain statement was executed given a taint that was active after the call.- Parameters:
stmt- The invocation statement which to check for black-box taint propagationd1- The abstraction at the beginning of the method that calls the wrapped methodtaintedPath- The tainted field or value to propagate. Note that this taint must be valid after the execution of the black-box method.- Returns:
- The list of possibly tainted values before the invocation statement
referenced in
Stmthas been executed
-