Interface IReversibleTaintWrapper

All Superinterfaces:
ITaintPropagationWrapper
All Known Implementing Classes:
EasyTaintWrapper, TaintWrapperSet

public interface IReversibleTaintWrapper extends ITaintPropagationWrapper
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 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 of getTaintsForMethod. 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 propagation
      d1 - The abstraction at the beginning of the method that calls the wrapped method
      taintedPath - 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 Stmt has been executed