Class AccessPathBasedSourceSinkManager
java.lang.Object
soot.jimple.infoflow.sourcesSinks.manager.BaseSourceSinkManager
soot.jimple.infoflow.android.source.AndroidSourceSinkManager
soot.jimple.infoflow.android.source.AccessPathBasedSourceSinkManager
- All Implemented Interfaces:
IConditionalFlowManager,IOneSourceAtATimeManager,IReversibleSourceSinkManager,ISourceSinkManager
SourceSinkManager for Android applications. This class uses precise access
path-based source and sink definitions.
- Author:
- Steven Arzt
-
Nested Class Summary
Nested classes/interfaces inherited from class soot.jimple.infoflow.sourcesSinks.manager.BaseSourceSinkManager
BaseSourceSinkManager.SourceType -
Field Summary
Fields inherited from class soot.jimple.infoflow.android.source.AndroidSourceSinkManager
Activity_FindViewById, analyzedLayoutMethods, appPackageName, entryPointUtils, iccBaseClasses, layoutControls, resourcePackages, smActivityFindViewById, smViewFindViewById, View_FindViewByIdFields inherited from class soot.jimple.infoflow.sourcesSinks.manager.BaseSourceSinkManager
callbackMethods, conditionalSinks, conditionalSinkToExcludedClasses, currentSource, excludedMethods, oneSourceAtATime, osaatIterator, osaatType, parentClassesAndInterfaces, secondarySinkClasses, secondarySinkMethods, sinkDefs, sinkFields, sinkMethods, sinkReturnMethods, sinkStatements, sourceCallbackMethods, sourceDefs, sourceFields, sourceMethods, sourceSinkConfig, sourceStatements, valueProvider -
Constructor Summary
ConstructorsConstructorDescriptionAccessPathBasedSourceSinkManager(Collection<? extends ISourceSinkDefinition> sources, Collection<? extends ISourceSinkDefinition> sinks, Set<AndroidCallbackDefinition> callbackMethods, InfoflowAndroidConfiguration config, Map<Integer, AndroidLayoutControl> layoutControls) Creates a new instance of theAndroidSourceSinkManagerclass with strong matching, i.e. the methods in the code must exactly match those in the list.AccessPathBasedSourceSinkManager(Collection<? extends ISourceSinkDefinition> sources, Collection<? extends ISourceSinkDefinition> sinks, InfoflowAndroidConfiguration config) Creates a new instance of theAndroidSourceSinkManagerclass with either strong or weak matching. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<heros.solver.Pair<AccessPath,ISourceSinkDefinition>> createSourceInfoPairs(soot.jimple.Stmt sCallSite, InfoflowManager manager, Collection<ISourceSinkDefinition> defs) getInverseSinkInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager) getInverseSourceInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager, AccessPath sourceAccessPath) getSinkInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager, AccessPath sourceAccessPath) Methods inherited from class soot.jimple.infoflow.android.source.AndroidSourceSinkManager
getCallbackDefinition, getInverseSinkDefinition, getLayoutControl, getSinkDefinitions, getUISourceDefinition, initialize, isEntryPointMethod, setAppPackageName, setResourcePackagesMethods inherited from class soot.jimple.infoflow.sourcesSinks.manager.BaseSourceSinkManager
checkCallbackParamSource, createInverseSinkInfoPairs, excludeMethod, getInverseSourceDefinition, getInverseSourceMethod, getSource, getSourceDefinition, getSourceInfo, getSourceMethod, hasNextSource, isConditionalSink, isOneSourceAtATimeEnabled, isSecondarySink, nextSource, registerSecondarySink, registerSecondarySink, resetCurrentSource, setOneSourceAtATimeEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface soot.jimple.infoflow.sourcesSinks.manager.IOneSourceAtATimeManager
hasNextSource, isOneSourceAtATimeEnabled, nextSource, resetCurrentSource, setOneSourceAtATimeEnabledMethods inherited from interface soot.jimple.infoflow.sourcesSinks.manager.ISourceSinkManager
getSourceInfo
-
Constructor Details
-
AccessPathBasedSourceSinkManager
public AccessPathBasedSourceSinkManager(Collection<? extends ISourceSinkDefinition> sources, Collection<? extends ISourceSinkDefinition> sinks, InfoflowAndroidConfiguration config) Creates a new instance of theAndroidSourceSinkManagerclass with either strong or weak matching.- Parameters:
sources- The list of source methodssinks- The list of sink methodsconfig- The configuration of the data flow analyzer
-
AccessPathBasedSourceSinkManager
public AccessPathBasedSourceSinkManager(Collection<? extends ISourceSinkDefinition> sources, Collection<? extends ISourceSinkDefinition> sinks, Set<AndroidCallbackDefinition> callbackMethods, InfoflowAndroidConfiguration config, Map<Integer, AndroidLayoutControl> layoutControls) Creates a new instance of theAndroidSourceSinkManagerclass with strong matching, i.e. the methods in the code must exactly match those in the list.- Parameters:
sources- The list of source methodssinks- The list of sink methodscallbackMethods- The list of callback methods whose parameters are sources through which the application receives data from the operating systemconfig- The configuration of the data flow analyzerlayoutControls- A map from reference identifiers to the respective Android layout controls
-
-
Method Details
-
createSourceInfoPairs
protected Collection<heros.solver.Pair<AccessPath,ISourceSinkDefinition>> createSourceInfoPairs(soot.jimple.Stmt sCallSite, InfoflowManager manager, Collection<ISourceSinkDefinition> defs) - Overrides:
createSourceInfoPairsin classBaseSourceSinkManager
-
getSinkInfo
public SinkInfo getSinkInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager, AccessPath sourceAccessPath) - Specified by:
getSinkInfoin interfaceISourceSinkManager- Overrides:
getSinkInfoin classBaseSourceSinkManager
-
getInverseSinkInfo
- Specified by:
getInverseSinkInfoin interfaceIReversibleSourceSinkManager- Overrides:
getInverseSinkInfoin classBaseSourceSinkManager
-
getInverseSourceInfo
public SinkInfo getInverseSourceInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager, AccessPath sourceAccessPath) - Specified by:
getInverseSourceInfoin interfaceIReversibleSourceSinkManager- Overrides:
getInverseSourceInfoin classBaseSourceSinkManager
-