Package soot.jimple.infoflow
Class BackwardsInfoflow
java.lang.Object
soot.jimple.infoflow.AbstractInfoflow
soot.jimple.infoflow.BackwardsInfoflow
- All Implemented Interfaces:
IInfoflow,ITaintWrapperDataFlowAnalysis
-
Nested Class Summary
Nested classes/interfaces inherited from class soot.jimple.infoflow.AbstractInfoflow
AbstractInfoflow.SourceOrSink, AbstractInfoflow.SourceSinkState -
Field Summary
Fields inherited from class soot.jimple.infoflow.AbstractInfoflow
additionalEntryPointMethods, aliasPropagationHandler, androidPath, collectedSinks, collectedSources, config, dummyMainMethod, executorFactory, forceAndroidJar, hierarchy, icfgFactory, ipcManager, logger, manager, memoryManagerFactory, memoryWatcher, nativeCallHandler, onResultsAvailable, pathBuilderFactory, postProcessors, preProcessors, results, reverseAliasPropagationHandler, reverseRuleManagerFactory, reverseTaintPropagationHandler, ruleManagerFactory, solverPeerGroup, sootConfig, taintPropagationHandler, taintWrapper, throwExceptions, usageContextProvider -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of the InfoFlow class for analyzing plain Java code without any references to APKs or the Android SDK.BackwardsInfoflow(File androidPath, boolean forceAndroidJar) Creates a new instance of the Infoflow class for analyzing Android APK files.BackwardsInfoflow(File androidPath, boolean forceAndroidJar, BiDirICFGFactory icfgFactory) Creates a new instance of the Infoflow class for analyzing Android APK files. -
Method Summary
Modifier and TypeMethodDescriptionprotected IAliasingStrategycreateAliasAnalysis(ISourceSinkManager sourcesSinks, IInfoflowCFG iCfg, InterruptableExecutor executor, IMemoryManager<Abstraction, soot.Unit> memoryManager) Initializes the alias analysisprotected BackwardsInfoflowProblemcreateInfoflowProblem(Abstraction zeroValue) Creates the problem for the IFDS taint propagation problemprotected InfoflowResultsCreates a new instance of the result class appropriate for the current data flow analysisprotected InfoflowManagerinitializeInfoflowManager(ISourceSinkManager sourcesSinks, IInfoflowCFG iCfg, GlobalTaintManager globalTaintManager) Initializes the data flow manager with which propagation rules can interact with the data flow engineprotected BackwardPropagationRuleManagerFactoryInitializes an appropriate instance of the rule manager factoryprotected voidperformCodeInstrumentationAfterDCE(InfoflowManager dceManager, Set<soot.SootMethod> excludedMethods) Allows subclasses to perform additional code instrumentation tasksprotected AbstractInfoflow.SourceOrSinkscanStmtForSourcesSinks(ISourceSinkManager sourcesSinks, soot.jimple.Stmt s) Checks whether the given statement is a source or a sinkMethods inherited from class soot.jimple.infoflow.AbstractInfoflow
abortAnalysis, addPostProcessor, addPreprocessor, addResultsAvailableHandler, computeInfoflow, computeInfoflow, computeInfoflow, computeInfoflow, computeInfoflow, constructCallgraph, createAliasController, createBackwardAliasAnalysis, createDataFlowSolver, createDataFlowSolver, createMemoryManager, createNewThread, createPathBuilder, createPerformanceDataClass, createReverseInfoflowProblem, eliminateDeadCode, getCollectedSinks, getCollectedSources, getConfig, getLibraryClassPatcher, getMethodsForSeeds, getResults, getTaintWrapper, initializeReverseInfoflowManager, initializeReverseRuleManagerFactory, initializeSoot, initializeSoot, isResultAvailable, isUserCodeClass, isValidSeedMethod, onBeforeTaintPropagation, onTaintPropagationCompleted, patchDynamicInvokeInstructions, pathConfigToShorteningMode, performCodeInstrumentationBeforeDCE, releaseCallgraph, removeResultsAvailableHandler, runAnalysis, runAnalysis, setAliasPropagationHandler, setConfig, setExecutorFactory, setGeomPtaSpecificOptions, setIPCManager, setMemoryManagerFactory, setNativeCallHandler, setPathBuilderFactory, setPropagationRuleManagerFactory, setSootConfig, setSourcePrec, setTaintPropagationHandler, setTaintWrapper, setThrowExceptions, setUsageContextProvider
-
Constructor Details
-
BackwardsInfoflow
public BackwardsInfoflow()Creates a new instance of the InfoFlow class for analyzing plain Java code without any references to APKs or the Android SDK. -
BackwardsInfoflow
Creates a new instance of the Infoflow class for analyzing Android APK files.- Parameters:
androidPath- If forceAndroidJar is false, this is the base directory of the platform files in the Android SDK. If forceAndroidJar is true, this is the full path of a single android.jar file.forceAndroidJar- True if a single platform JAR file shall be forced, false if Soot shall pick the appropriate platform version
-
BackwardsInfoflow
Creates a new instance of the Infoflow class for analyzing Android APK files.- Parameters:
androidPath- If forceAndroidJar is false, this is the base directory of the platform files in the Android SDK. If forceAndroidJar is true, this is the full path of a single android.jar file.forceAndroidJar- True if a single platform JAR file shall be forced, false if Soot shall pick the appropriate platform versionicfgFactory- The interprocedural CFG to be used by the InfoFlowProblem
-
-
Method Details
-
createAliasAnalysis
protected IAliasingStrategy createAliasAnalysis(ISourceSinkManager sourcesSinks, IInfoflowCFG iCfg, InterruptableExecutor executor, IMemoryManager<Abstraction, soot.Unit> memoryManager) Description copied from class:AbstractInfoflowInitializes the alias analysis- Specified by:
createAliasAnalysisin classAbstractInfoflow- Parameters:
sourcesSinks- The set of sources and sinksiCfg- The interprocedural control flow graphexecutor- The executor in which to run concurrent tasksmemoryManager- The memory manager for rducing the memory load during IFDS propagation- Returns:
- The alias analysis implementation to use for the data flow analysis
-
initializeInfoflowManager
protected InfoflowManager initializeInfoflowManager(ISourceSinkManager sourcesSinks, IInfoflowCFG iCfg, GlobalTaintManager globalTaintManager) Description copied from class:AbstractInfoflowInitializes the data flow manager with which propagation rules can interact with the data flow engine- Specified by:
initializeInfoflowManagerin classAbstractInfoflow- Parameters:
sourcesSinks- The source/sink definitionsiCfg- The interprocedural control flow graphglobalTaintManager- The manager object for storing and processing global taints- Returns:
- The data flow manager
-
createInfoflowProblem
Description copied from class:AbstractInfoflowCreates the problem for the IFDS taint propagation problem- Specified by:
createInfoflowProblemin classAbstractInfoflow- Parameters:
zeroValue- The taint abstraction for the tautology- Returns:
- The IDFS problem
-
scanStmtForSourcesSinks
protected AbstractInfoflow.SourceOrSink scanStmtForSourcesSinks(ISourceSinkManager sourcesSinks, soot.jimple.Stmt s) Description copied from class:AbstractInfoflowChecks whether the given statement is a source or a sink- Specified by:
scanStmtForSourcesSinksin classAbstractInfoflow- Parameters:
sourcesSinks- The source/sink managers- The statement to check- Returns:
- An enumeration value that defines whether the given statement is a source, a sink, or neither
-
createResultsObject
Description copied from class:AbstractInfoflowCreates a new instance of the result class appropriate for the current data flow analysis- Specified by:
createResultsObjectin classAbstractInfoflow- Returns:
- The new result object
-
initializeRuleManagerFactory
Description copied from class:AbstractInfoflowInitializes an appropriate instance of the rule manager factory- Specified by:
initializeRuleManagerFactoryin classAbstractInfoflow- Returns:
- The rule manager factory
-
performCodeInstrumentationAfterDCE
protected void performCodeInstrumentationAfterDCE(InfoflowManager dceManager, Set<soot.SootMethod> excludedMethods) Description copied from class:AbstractInfoflowAllows subclasses to perform additional code instrumentation tasks- Overrides:
performCodeInstrumentationAfterDCEin classAbstractInfoflow- Parameters:
dceManager- The manager class for dead code elimination and instrumentationexcludedMethods- The methods that shall not be modified
-