public abstract class AbstractTaintWrapper extends Object implements ITaintPropagationWrapper
| Modifier and Type | Field and Description |
|---|---|
protected InfoflowManager |
manager
Data flow manager that gives access to internal solver objects
|
| Constructor and Description |
|---|
AbstractTaintWrapper() |
| Modifier and Type | Method and Description |
|---|---|
Set<Abstraction> |
getTaintsForMethod(soot.jimple.Stmt stmt,
Abstraction d1,
Abstraction taintedPath)
Checks an invocation statement for black-box taint propagation.
|
abstract Set<AccessPath> |
getTaintsForMethodInternal(soot.jimple.Stmt stmt,
AccessPath taintedPath)
Checks an invocation statement for black-box taint propagation.
|
int |
getWrapperHits()
Gets the number of times in which the taint wrapper was able to
exclusively model a method call.
|
int |
getWrapperMisses()
Gets the number of times in which the taint wrapper was NOT able to
exclusively model a method call.
|
void |
initialize(InfoflowManager manager)
This method is called before the taint propagation is started to give the taint wrapper
the chance to initialize required components once Soot is running, but before it is
queried for the first time.
|
boolean |
isExclusive(soot.jimple.Stmt stmt,
Abstraction taintedPath)
Gets whether the taints produced by this taint wrapper are exclusive, i.e.
|
protected abstract boolean |
isExclusiveInternal(soot.jimple.Stmt stmt,
AccessPath taintedPath)
Gets whether the taints produced by this taint wrapper are exclusive, i.e.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAliasesForMethod, supportsCallee, supportsCalleeprotected InfoflowManager manager
public void initialize(InfoflowManager manager)
ITaintPropagationWrapperinitialize in interface ITaintPropagationWrappermanager - The manager object providing access to the data flow solver processing
the IFDS edges and the interprocedural control flow graphprotected abstract boolean isExclusiveInternal(soot.jimple.Stmt stmt,
AccessPath taintedPath)
stmt - The call statement to checktaintedPath - The tainted field or value to propagatepublic abstract Set<AccessPath> getTaintsForMethodInternal(soot.jimple.Stmt stmt, AccessPath taintedPath)
stmt - The invocation statement which to check for black-box taint propagationtaintedPath - The tainted field or value to propagateStmt
has been executedpublic boolean isExclusive(soot.jimple.Stmt stmt,
Abstraction taintedPath)
ITaintPropagationWrapperisExclusive in interface ITaintPropagationWrapperstmt - The call statement to checktaintedPath - The tainted field or value to propagatepublic Set<Abstraction> getTaintsForMethod(soot.jimple.Stmt stmt, Abstraction d1, Abstraction taintedPath)
ITaintPropagationWrappergetTaintsForMethod in interface ITaintPropagationWrapperstmt - The invocation statement which to check for black-box taint propagationd1 - The abstraction at the beginning of the method that calls the
wrapped methodtaintedPath - The tainted field or value to propagateStmt
has been executedpublic int getWrapperHits()
ITaintPropagationWrappergetWrapperHits in interface ITaintPropagationWrapperpublic int getWrapperMisses()
ITaintPropagationWrappergetWrapperMisses in interface ITaintPropagationWrapperCopyright © 2021 Fraunhofer SIT. All rights reserved.