How seqra/opentaint works
OpenTaint is a taint-analysis engine exposed through a CLI: a user scans a project, rules describe sources and sinks, and findings can be emitted as SARIF. The documented engine tracks taint inter-procedurally; the tree also shows JVM rule matching, Semgrep-style pattern parsing, IR/storage interfaces, and analysis internals. Edges are limited to relationships explicit in the README or visible in indexed source references; many runtime connections cannot be verified from the partial excerpts.
Main entry points: AnalysisRunner.kt Dataflow engine · MethodSummariesUnitStorage.kt Method summaries · SerializedCondition.kt Rule configuration · main.go OpenTaint CLI
Components 21
CLI workflow
- OpenTaint CLI
cli/main.go - Scan command
cli/cmd/scan.go
Rules and languages
- Rule configuration
core/opentaint-configuration-rules/configuration-rules-jvm/src/main/kotlin/org/opentaint/dataflow/configuration/jvm/serialized/SerializedCondition.kt - Java pattern parser
core/opentaint-java-querylang/src/main/kotlin/org/opentaint/semgrep/pattern/SemgrepJavaPatternParser.kt - JVM rule matching
core/opentaint-jvm-sast-dataflow/src/main/kotlin/org/opentaint/jvm/sast/dataflow/rules/MethodClassTaintRulesStorage.kt
Taint analysis
- Dataflow engine
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/AnalysisRunner.kt - Taint edges
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/Edge.kt - Language manager
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/LanguageManager.kt - Fact exclusions
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/ExclusionSet.kt - Access-path manager
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/access/ApManager.kt - Access graphs
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/access/automata/AccessGraph.kt - Cactus access paths
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/access/cactus/AccessCactus.kt - Tree access paths
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/access/tree/AccessTree.kt - Method summaries
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/MethodSummariesUnitStorage.kt
IR and storage
- Common instructions
core/opentaint-ir/opentaint-ir-api-common/src/main/kotlin/org/opentaint/ir/api/common/cfg/CommonInst.kt - Entity relationship storage
core/opentaint-ir/opentaint-ir-api-storage/src/main/kotlin/org/opentaint/ir/api/storage/ers/EntityRelationshipStorage.kt - Key-value storage
core/opentaint-ir/opentaint-ir-api-storage/src/main/kotlin/org/opentaint/ir/api/storage/kv/PluggableKeyValueStorage.kt - Storage context
core/opentaint-ir/opentaint-ir-api-storage/src/main/kotlin/org/opentaint/ir/api/storage/StorageContext.kt
Findings and integrations
- SARIF output
cli/internal/sarif/sarif.go - CI integrations
Other components
- Engineer
Connections 15
- Engineer → OpenTaint CLI: runs scan
README.md - OpenTaint CLI → Scan command: dispatches
- Scan command → SARIF output: writes findings
- Engineer → Rule configuration: defines rules
README.md - Rule configuration → Java pattern parser: supports Semgrep patterns
- JVM rule matching → Rule configuration: matches serialized rules
core/opentaint-jvm-sast-dataflow/src/main/kotlin/org/opentaint/jvm/sast/dataflow/rules/MethodClassTaintRulesStorage.kt - Dataflow engine → Method summaries: stores summaries
- Method summaries → Taint edges: stores edges
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/MethodSummariesUnitStorage.kt - Method summaries → Access-path manager: uses access manager
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/MethodSummariesUnitStorage.kt - Access-path manager → Access graphs: manages access paths
- Access graphs → Fact exclusions: filters facts
core/opentaint-dataflow-core/opentaint-dataflow/src/main/kotlin/org/opentaint/dataflow/ap/ifds/access/automata/SideEffectRequirementAutomataApStorage.kt - Dataflow engine → Language manager: uses language manager
- Dataflow engine → Common instructions: analyzes instructions
- Storage context → Entity relationship storage: carries transaction context
core/opentaint-ir/opentaint-ir-api-storage/src/main/kotlin/org/opentaint/ir/api/storage/StorageContext.kt - Engineer → CI integrations: integrates scans
README.md