Interface TaintPropagationHandler

All Known Implementing Classes:
DebugFlowFunctionTaintPropagationHandler, SecondaryFlowGenerator, SecondaryFlowListener, SequentialTaintPropagationHandler, WideningTaintPropagationHandler

public interface TaintPropagationHandler
Handler interface for callbacks during taint propagation
Author:
Steven Arzt, Malte Viering
  • Method Details

    • notifyFlowIn

      void notifyFlowIn(soot.Unit stmt, Abstraction taint, InfoflowManager manager, TaintPropagationHandler.FlowFunctionType type)
      Handler function that is invoked when a taint is proagated in the data flow engine
      Parameters:
      stmt - The statement over which the taint is propagated
      taint - The taint being propagated
      manager - The manager object that gives access to the data flow engine
      type - The type of data flow edge being processed
    • notifyFlowOut

      Set<Abstraction> notifyFlowOut(soot.Unit stmt, Abstraction d1, Abstraction incoming, Set<Abstraction> outgoing, InfoflowManager manager, TaintPropagationHandler.FlowFunctionType type)
      Handler function that is invoked when a new taint is generated in the data flow engine
      Parameters:
      stmt - The statement over which the taint is propagated
      d1 - The abstraction at the beginning of the current method
      incoming - The original abstraction from which the outgoing ones were computed
      outgoing - The set of taints being propagated
      manager - The manager object that gives access to the data flow engine
      type - The type of data flow edge being processed
      Returns:
      The new abstractions to be propagated on. If you do not want to change the normal propagation behavior, just return the value of the "taints" parameter as-is.