Class RecordingTaintWrapper
java.lang.Object
soot.jimple.infoflow.taintWrappers.AbstractTaintWrapper
soot.jimple.infoflow.taintWrappers.RecordingTaintWrapper
- All Implemented Interfaces:
ITaintPropagationWrapper
Taint wrapper that does not actually provide a library model, but that counts
various statistics and evaluation data. It is not exclusive for any method
and never returns any taints.
- Author:
- Steven Arzt
-
Field Summary
Fields inherited from class soot.jimple.infoflow.taintWrappers.AbstractTaintWrapper
manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAliasesForMethod(soot.jimple.Stmt stmt, Abstraction d1, Abstraction taintedPath) Gets the aliases that a summarized method generates for the given abstraction.Set<soot.SootMethod>Gets the set with all methods for which this taint wrapper was queriedgetTaintsForMethodInternal(soot.jimple.Stmt stmt, AccessPath taintedPath) Checks an invocation statement for black-box taint propagation.protected booleanisExclusiveInternal(soot.jimple.Stmt stmt, AccessPath taintedPath) Gets whether the taints produced by this taint wrapper are exclusive, i.e.booleansupportsCallee(soot.jimple.Stmt callSite) Checks whether this taint wrapper can in general produce artificial taints for the given call site.booleansupportsCallee(soot.SootMethod method) Checks whether this taint wrapper can in general produce artificial taints for the given callee.Methods inherited from class soot.jimple.infoflow.taintWrappers.AbstractTaintWrapper
getPreAnalysisHandlers, getTaintsForMethod, getWrapperHits, getWrapperMisses, initialize, isExclusive
-
Constructor Details
-
RecordingTaintWrapper
public RecordingTaintWrapper()
-
-
Method Details
-
getAliasesForMethod
public Set<Abstraction> getAliasesForMethod(soot.jimple.Stmt stmt, Abstraction d1, Abstraction taintedPath) Description copied from interface:ITaintPropagationWrapperGets the aliases that a summarized method generates for the given abstraction. Note that this is a may-alias problem.- Parameters:
stmt- The statement that calls the summarized methodd1- The abstraction at the entry point of the method that calls the wrapped methodtaintedPath- The abstraction for which the aliases shall be computed- Returns:
- The set of aliases for the given abstraction or null if no such aliases exist
-
supportsCallee
public boolean supportsCallee(soot.SootMethod method) Description copied from interface:ITaintPropagationWrapperChecks whether this taint wrapper can in general produce artificial taints for the given callee. If an implementation returns "false" for a callee, all call sites for this callee might be removed if not needed elsewhere.- Parameters:
method- The method to check- Returns:
- True if this taint wrapper can in general produce taints for the given method.
-
supportsCallee
public boolean supportsCallee(soot.jimple.Stmt callSite) Description copied from interface:ITaintPropagationWrapperChecks whether this taint wrapper can in general produce artificial taints for the given call site. If an implementation returns "false" for a call site, this call sites might be removed if not needed elsewhere.- Parameters:
callSite- The call site to check- Returns:
- True if this taint wrapper can in general produce taints for the given call site.
-
isExclusiveInternal
Description copied from class:AbstractTaintWrapperGets whether the taints produced by this taint wrapper are exclusive, i.e. there are no other taints than those produced by the wrapper. In effect, this tells the analysis not to propagate inside the callee.- Specified by:
isExclusiveInternalin classAbstractTaintWrapper- Parameters:
stmt- The call statement to checktaintedPath- The tainted field or value to propagate- Returns:
- True if this taint wrapper is exclusive, otherwise false.
-
getTaintsForMethodInternal
Description copied from class:AbstractTaintWrapperChecks 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.- Specified by:
getTaintsForMethodInternalin classAbstractTaintWrapper- Parameters:
stmt- The invocation statement which to check for black-box taint propagationtaintedPath- The tainted field or value to propagate- Returns:
- The list of tainted values after the invocation statement referenced
in
Stmthas been executed
-
getCallees
Gets the set with all methods for which this taint wrapper was queried- Returns:
- A set containing all methods for which this taint wrapper was queried
-