Repository navigation
feat: interprocedural taint through function summaries - #29
Merged
Merged
Conversation
This was referenced Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Second Phase 6 item of
docs/architecture.md: the global taint engine consumes function summaries (§17, §19). Nothing is inlined.test: define interprocedural taint behavior), implementation follows.TaintAnalysisnow requiresCallGraphAnalysisandSummaryAnalysis. At a call to a known function it maps the callee's parameter dependencies onto the actual arguments and keywords: a tainted argument whose parameter reaches a sink in the callee, directly or through further known calls, becomes aTaintFlowat the call site, recorded with the function it went through (through) and the sink's own location (sink_location). The result of a known call carries the taint of the arguments its return value depends on, plus the taint of any source the callee returns.return_externals, the external symbols whose results the return value depends on, still without any security knowledge; the taint engine decides which of them are sources.through <function>to the message and recordthroughandsink_linein the finding metadata.Example:
execute(read())wherereadreturnsinput()andexecutecallsos.systemis now a command injection at theexecute(...)line, reported throughexecute.Not in this PR: cross-file analysis (
ModuleGraph), method and attribute targets, heap and aliasing.Part of #27. Completes the "CallGraph and FunctionSummaryAnalysis are added in Phase 6" note of #19.