Package soot.jimple.infoflow
Class Infoflow
java.lang.Object
soot.jimple.infoflow.AbstractInfoflow
soot.jimple.infoflow.Infoflow
- All Implemented Interfaces:
IInfoflow,ITaintWrapperDataFlowAnalysis
main infoflow class which triggers the analysis and offers method to
customize it.
-
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
ConstructorsConstructorDescriptionInfoflow()Creates a new instance of the InfoFlow class for analyzing plain Java code without any references to APKs or the Android SDK.Creates a new instance of the Infoflow class for analyzing Android APK files.Infoflow(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 InfoflowProblemcreateInfoflowProblem(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 InfoflowManagerinitializeReverseInfoflowManager(IInfoflowCFG iCfg, GlobalTaintManager globalTaintManager) protected BackwardNoSinkRuleManagerFactoryInitializes an appropriate instance of the rule manager factoryprotected IPropagationRuleManagerFactoryInitializes an appropriate instance of the rule manager factoryprotected 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, initializeSoot, initializeSoot, isResultAvailable, isUserCodeClass, isValidSeedMethod, onBeforeTaintPropagation, onTaintPropagationCompleted, patchDynamicInvokeInstructions, pathConfigToShorteningMode, performCodeInstrumentationAfterDCE, performCodeInstrumentationBeforeDCE, releaseCallgraph, removeResultsAvailableHandler, runAnalysis, runAnalysis, setAliasPropagationHandler, setConfig, setExecutorFactory, setGeomPtaSpecificOptions, setIPCManager, setMemoryManagerFactory, setNativeCallHandler, setPathBuilderFactory, setPropagationRuleManagerFactory, setSootConfig, setSourcePrec, setTaintPropagationHandler, setTaintWrapper, setThrowExceptions, setUsageContextProvider
-
Constructor Details
-
Infoflow
public Infoflow()Creates a new instance of the InfoFlow class for analyzing plain Java code without any references to APKs or the Android SDK. -
Infoflow
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
-
Infoflow
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
-
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
-
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
-
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
-
initializeReverseRuleManagerFactory
Description copied from class:AbstractInfoflowInitializes an appropriate instance of the rule manager factory- Overrides:
initializeReverseRuleManagerFactoryin classAbstractInfoflow- Returns:
- The rule manager factory
-
initializeReverseInfoflowManager
protected InfoflowManager initializeReverseInfoflowManager(IInfoflowCFG iCfg, GlobalTaintManager globalTaintManager) - Overrides:
initializeReverseInfoflowManagerin classAbstractInfoflow
-