Interface IInfoflowCFG

All Superinterfaces:
soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<soot.Unit,soot.SootMethod>, heros.InterproceduralCFG<soot.Unit,soot.SootMethod>
All Known Implementing Classes:
BackwardsInfoflowCFG, InfoflowCFG

public interface IInfoflowCFG extends soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<soot.Unit,soot.SootMethod>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Abstraction of a postdominator.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<soot.Unit>
    getAllDominators(soot.Unit u)
    Get all dominators of the given unit.
    List<soot.Unit>
    Reconstructs the conditionals a taint could possibly reach.
    List<soot.Unit>
    Reconstructs if the unit is inside a conditional.
    getDominatorOf(soot.Unit u)
    Gets the dominator of the given unit.
    Collection<soot.SootMethod>
    Gets all ordinary callees of the call at call site u, i.e., those that are not \<clinit\> or a fake edge.
    getPostdominatorOf(soot.Unit u)
    Gets the postdominator of the given unit.
    boolean
    hasSideEffects(soot.SootMethod method)
    Checks whether the given method or any of its transitive callees has side effects
    boolean
    isExceptionalEdgeBetween(soot.Unit u1, soot.Unit u2)
    Gets whether the two given units are connected by an exceptional control flow edge
    boolean
    isExecutorExecute(soot.jimple.InvokeExpr ie, soot.SootMethod dest)
    Checks whether the given call is a call to Executor.execute() or AccessController.doPrivileged() and whether the callee matches the expected method signature
    boolean
    isReflectiveCallSite(soot.jimple.InvokeExpr iexpr)
    Checks whether the given call site is a reflective method call
    boolean
    isReflectiveCallSite(soot.Unit u)
    Checks whether the given call site is a reflective method call
    boolean
    isStaticFieldRead(soot.SootMethod method, soot.SootField variable)
    Checks whether the given static field is read inside the given method or one of its transitive callees.
    boolean
    isStaticFieldUsed(soot.SootMethod method, soot.SootField variable)
    Checks whether the given static field is used (read or written) inside the given method or one of its transitive callees.
    boolean
    methodReadsValue(soot.SootMethod m, soot.Value v)
    Checks whether the given method reads the given value
    boolean
    methodWritesValue(soot.SootMethod m, soot.Value v)
    Checks whether the given method writes the given value
    void
    notifyMethodChanged(soot.SootMethod m)
    Re-initializes the mapping between statements and owning methods after a method has changed.
    void
    notifyNewBody(soot.Body b)
    Initializes the mapping between statements and owning body.
    void
    Clears all caches and temporary data from memory.

    Methods inherited from interface soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG

    allNonCallEndNodes, getEndPointsOf, getOrCreateUnitGraph, getParameterRefs, getPredsOf, getPredsOfCallAt, isReachable, isReturnSite

    Methods inherited from interface heros.InterproceduralCFG

    allNonCallStartNodes, getCalleesOfCallAt, getCallersOf, getCallsFromWithin, getMethodOf, getReturnSitesOfCallAt, getStartPointsOf, getSuccsOf, isBranchTarget, isCallStmt, isExitStmt, isFallThroughSuccessor, isStartPoint
  • Method Details

    • getPostdominatorOf

      IInfoflowCFG.UnitContainer getPostdominatorOf(soot.Unit u)
      Gets the postdominator of the given unit. If this unit is a conditional, the postdominator is the join point behind both branches of the conditional.
      Parameters:
      u - The unit for which to get the postdominator.
      Returns:
      The postdominator of the given unit
    • getDominatorOf

      IInfoflowCFG.UnitContainer getDominatorOf(soot.Unit u)
      Gets the dominator of the given unit. If this unit is a conditional, the dominator is the join point above both branches of the conditional.
      Parameters:
      u - The unit for which to get the postdominator.
      Returns:
      The postdominator of the given unit
    • getAllDominators

      List<soot.Unit> getAllDominators(soot.Unit u)
      Get all dominators of the given unit.
      Parameters:
      u - The unit for which tot get the dominators
      Returns:
      The dominators of the given unit
    • getConditionalBranchIntraprocedural

      List<soot.Unit> getConditionalBranchIntraprocedural(soot.Unit callSite)
      Reconstructs if the unit is inside a conditional. Needed for implicit backwards on an unbalanced return into a method.
      Parameters:
      callSite - The unit to start the search at
      Returns:
      The same-level conditional
    • getConditionalBranchesInterprocedural

      List<soot.Unit> getConditionalBranchesInterprocedural(soot.Unit unit)
      Reconstructs the conditionals a taint could possibly reach. Needed for implicit backward flows to model sink calls inside a callee
      Parameters:
      unit - start unit, possibly a sink
      Returns:
      List of units with the context appended
    • isStaticFieldRead

      boolean isStaticFieldRead(soot.SootMethod method, soot.SootField variable)
      Checks whether the given static field is read inside the given method or one of its transitive callees.
      Parameters:
      method - The method to check
      variable - The static field to check
      Returns:
      True if the given static field is read inside the given method, otherwise false
    • isStaticFieldUsed

      boolean isStaticFieldUsed(soot.SootMethod method, soot.SootField variable)
      Checks whether the given static field is used (read or written) inside the given method or one of its transitive callees.
      Parameters:
      method - The method to check
      variable - The static field to check
      Returns:
      True if the given static field is used inside the given method, otherwise false
    • hasSideEffects

      boolean hasSideEffects(soot.SootMethod method)
      Checks whether the given method or any of its transitive callees has side effects
      Parameters:
      method - The method to check
      Returns:
      True if the given method or one of its transitive callees has side effects, otherwise false
    • notifyMethodChanged

      void notifyMethodChanged(soot.SootMethod m)
      Re-initializes the mapping between statements and owning methods after a method has changed.
      Parameters:
      m - The method for which to re-initialize the mapping
    • notifyNewBody

      void notifyNewBody(soot.Body b)
      Initializes the mapping between statements and owning body.
      Parameters:
      b - The body for which to initialize the mapping
    • methodReadsValue

      boolean methodReadsValue(soot.SootMethod m, soot.Value v)
      Checks whether the given method reads the given value
      Parameters:
      m - The method to check
      v - The value to check
      Returns:
      True if the given method reads the given value, otherwise false
    • methodWritesValue

      boolean methodWritesValue(soot.SootMethod m, soot.Value v)
      Checks whether the given method writes the given value
      Parameters:
      m - The method to check
      v - The value to check
      Returns:
      True if the given method writes the given value, otherwise false
    • isExceptionalEdgeBetween

      boolean isExceptionalEdgeBetween(soot.Unit u1, soot.Unit u2)
      Gets whether the two given units are connected by an exceptional control flow edge
      Parameters:
      u1 - The first unit
      u2 - The second unit
      Returns:
      True if the two given units are directly connected by an exceptional control flow edge, otherwise false
    • getOrdinaryCalleesOfCallAt

      Collection<soot.SootMethod> getOrdinaryCalleesOfCallAt(soot.Unit u)
      Gets all ordinary callees of the call at call site u, i.e., those that are not \<clinit\> or a fake edge.
      Parameters:
      u - The call site
      Returns:
      The set of ordinary callees of the given call site
    • isExecutorExecute

      boolean isExecutorExecute(soot.jimple.InvokeExpr ie, soot.SootMethod dest)
      Checks whether the given call is a call to Executor.execute() or AccessController.doPrivileged() and whether the callee matches the expected method signature
      Parameters:
      ie - The invocation expression to check
      dest - The callee of the given invocation expression
      Returns:
      True if the given invocation expression and callee are a valid call to Executor.execute() or AccessController.doPrivileged()
    • isReflectiveCallSite

      boolean isReflectiveCallSite(soot.Unit u)
      Checks whether the given call site is a reflective method call
      Parameters:
      u - The call site to check
      Returns:
      True if the given call site contains a reflective method call, otherwise false
    • isReflectiveCallSite

      boolean isReflectiveCallSite(soot.jimple.InvokeExpr iexpr)
      Checks whether the given call site is a reflective method call
      Parameters:
      iexpr - The call site to check
      Returns:
      True if the given call site contains a reflective method call, otherwise false
    • purge

      void purge()
      Clears all caches and temporary data from memory. This method has no effect on the functional behavior of the class.