Interface ITaintPropagationRule
- All Known Implementing Classes:
AbstractTaintPropagationRule,ArrayPropagationRule,ArrayWithIndexPropagationRule,BackwardsArrayPropagationRule,BackwardsClinitRule,BackwardsExceptionPropagationRule,BackwardsImplicitFlowRule,BackwardsSinkPropagationRule,BackwardsSourcePropagationRule,BackwardsStrongUpdatePropagationRule,BackwardsWrapperRule,CollectionWrapperPropagationRule,ExceptionPropagationRule,ImplicitPropagtionRule,SinkPropagationRule,SkipSystemClassRule,SourcePropagationRule,StaticPropagationRule,StopAfterFirstKFlowsPropagationRule,StrongUpdatePropagationRule,TypingPropagationRule,WrapperPropagationRule
public interface ITaintPropagationRule
Common interface for taint propagation rules
- Author:
- Steven Arzt
-
Method Summary
Modifier and TypeMethodDescriptionpropagateCallFlow(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.SootMethod dest, ByReferenceBoolean killAll) Propagates a flow across a call sitepropagateCallToReturnFlow(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, ByReferenceBoolean killSource, ByReferenceBoolean killAll) Propagates a flow along a the call-to-return edge at a call sitepropagateNormalFlow(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt destStmt, ByReferenceBoolean killSource, ByReferenceBoolean killAll) Propagates a flow along a normal statement this is not a call or return sitepropagateReturnFlow(Collection<Abstraction> callerD1s, Abstraction calleeD1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt retSite, soot.jimple.Stmt callSite, ByReferenceBoolean killAll) Propagates a flow along a the return edge
-
Method Details
-
propagateNormalFlow
Collection<Abstraction> propagateNormalFlow(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt destStmt, ByReferenceBoolean killSource, ByReferenceBoolean killAll) Propagates a flow along a normal statement this is not a call or return site- Parameters:
d1- The context abstractionsource- The abstraction to propagate over the statementstmt- The statement at which to propagate the abstractiondestStmt- The next statement to which control flow will continue after processing stmtkillSource- Outgoing value for the rule to specify whether the incoming taint shall be killedkillAll- Outgoing value that receives whether all taints shall be killed and nothing shall be propagated onwards- Returns:
- The new abstractions to be propagated to the next statement
-
propagateCallFlow
Collection<Abstraction> propagateCallFlow(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.SootMethod dest, ByReferenceBoolean killAll) Propagates a flow across a call site- Parameters:
d1- The context abstractionsource- The abstraction to propagate over the statementstmt- The statement at which to propagate the abstractiondest- The destination method into which to propagate the abstractionkillAll- 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
-
propagateCallToReturnFlow
Collection<Abstraction> propagateCallToReturnFlow(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, ByReferenceBoolean killSource, ByReferenceBoolean killAll) Propagates a flow along a the call-to-return edge at a call site- Parameters:
d1- The context abstractionsource- The abstraction to propagate over the statementstmt- The statement at which to propagate the abstractionkillSource- Outgoing value for the rule to specify whether the incoming taint shall be killedkillAll- 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
-
propagateReturnFlow
Collection<Abstraction> propagateReturnFlow(Collection<Abstraction> callerD1s, Abstraction calleeD1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt retSite, soot.jimple.Stmt callSite, ByReferenceBoolean killAll) Propagates a flow along a the return edge- Parameters:
callerD1s- The context abstraction at the caller sidecalleeD1- The context abstraction at the callee sidesource- The abstraction to propagate over the statementstmt- The statement at which to propagate the abstractionretSite- The return site to which the execution returns after leaving the current methodcallSite- The call site of the call from which we returnkillAll- 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
-