Class PropagationRuleManager

java.lang.Object
soot.jimple.infoflow.problems.rules.PropagationRuleManager
Direct Known Subclasses:
IdentityPropagationRuleManager

public class PropagationRuleManager extends Object
Manager class for all propagation rules
Author:
Steven Arzt
  • Field Details

  • Constructor Details

  • Method Details

    • applyNormalFlowFunction

      public Set<Abstraction> applyNormalFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt destStmt)
      Applies all rules to the normal flow function
      Parameters:
      d1 - The context abstraction
      source - The incoming taint to propagate over the given statement
      stmt - The statement to which to apply the rules
      destStmt - The next statement to which control flow will continue after processing stmt
      Returns:
      The collection of outgoing taints
    • applyNormalFlowFunction

      public Set<Abstraction> applyNormalFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt destStmt, ByReferenceBoolean killSource, ByReferenceBoolean killAll)
      Applies all rules to the normal flow function
      Parameters:
      d1 - The context abstraction
      source - The incoming taint to propagate over the given statement
      stmt - The statement to which to apply the rules
      destStmt - The next statement to which control flow will continue after processing stmt
      killSource - Outgoing value for the rule to indicate whether the incoming taint abstraction shall be killed
      killAll - Outgoing value that receives whether all taints shall be killed and nothing shall be propagated onwards
      Returns:
      The collection of outgoing taints
    • applyCallFlowFunction

      public Set<Abstraction> applyCallFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.SootMethod dest, ByReferenceBoolean killAll)
      Propagates a flow across a call site
      Parameters:
      d1 - The context abstraction
      source - The abstraction to propagate over the statement
      stmt - The statement at which to propagate the abstraction
      dest - The destination method into which to propagate the abstraction
      killAll - Outgoing value for the rule to specify whether all taints shall be killed, i.e., nothing shall be propagated
      Returns:
      The new abstractions to be propagated to the next statement
    • applyCallToReturnFlowFunction

      public Set<Abstraction> applyCallToReturnFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt)
      Applies all rules to the call-to-return flow function
      Parameters:
      d1 - The context abstraction
      source - The incoming taint to propagate over the given statement
      stmt - The statement to which to apply the rules
      Returns:
      The collection of outgoing taints
    • applyCallToReturnFlowFunction

      public Set<Abstraction> applyCallToReturnFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, ByReferenceBoolean killSource, ByReferenceBoolean killAll, boolean noAddSource)
      Applies all rules to the call-to-return flow function
      Parameters:
      d1 - The context abstraction
      source - The incoming taint to propagate over the given statement
      stmt - The statement to which to apply the rules
      killSource - Outgoing value for the rule to indicate whether the incoming taint abstraction shall be killed
      Returns:
      The collection of outgoing taints
    • applyReturnFlowFunction

      public Set<Abstraction> applyReturnFlowFunction(Collection<Abstraction> callerD1s, Abstraction calleeD1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt retSite, soot.jimple.Stmt callSite, ByReferenceBoolean killAll)
      Applies all rules to the return flow function
      Parameters:
      callerD1s - The context abstraction at the caller side
      calleeD1 -
      source - The incoming taint to propagate over the given statement
      stmt - The statement to which to apply the rules
      retSite - The return site to which the execution returns after leaving the current method
      callSite - The call site of the call from which we return
      killAll - Outgoing value for the rule to specify whether all taints shall be killed, i.e., nothing shall be propagated
      Returns:
      The collection of outgoing taints
    • getRules

      public ITaintPropagationRule[] getRules()
      Gets the array of rules registered in this manager object
      Returns:
      The array of rules registered in this manager object
    • getArrayContextProvider

      public IArrayContextProvider getArrayContextProvider()