-
Notifications
You must be signed in to change notification settings - Fork 10
feat(python): Add dataflow analysis with Phase 1 propagation #354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
Owner
Author
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #354 +/- ##
=======================================
Coverage 80.75% 80.75%
=======================================
Files 59 59
Lines 6237 6237
=======================================
Hits 5037 5037
Misses 992 992
Partials 208 208 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
SafeDep Report SummaryNo dependency changes detected. Nothing to scan. This report is generated by SafeDep Github App |
This was referenced Nov 9, 2025
This was referenced Nov 9, 2025
Owner
Author
Merge activity
|
## Summary - Renamed package from `pathfinder` to `codepathfinder` - Implemented `flows()` function for taint analysis (OWASP Top 10) - Added Phase 1 propagation primitives (assignment, function_args, function_returns) - Updated README with dataflow examples ## New Components **codepathfinder/propagation.py:** - PropagationType enum (Phase 1-6 types defined) - PropagationPrimitive base class - propagates namespace with 3 Phase 1 methods - create_propagation_list() helper **codepathfinder/dataflow.py:** - DataflowMatcher class for taint analysis - flows() public API function - Supports sources, sinks, sanitizers, propagation, scope **codepathfinder/ir.py:** - Added DATAFLOW enum type - Added dataflow IR validation ## Testing ✅ 99 tests pass (63 new tests for propagation/dataflow) ✅ 99% coverage (exceeds 95% requirement) ✅ Black, ruff, mypy: all clean ## Package Rename - pathfinder/ → codepathfinder/ - Updated all imports across codebase - Updated pyproject.toml, setup.py, build.gradle - Updated README examples 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
2cb3dbf to
6e21f96
Compare
shivasurya
added a commit
that referenced
this pull request
Nov 10, 2025
## Summary Adds Phase 2 propagation primitives (string operations) and preset bundles for common use cases. ## Changes - Implemented string_concat and string_format propagation - Added PropagationPresets (minimal, standard, comprehensive, exhaustive) - Added global configuration for default propagation/scope ## Testing - 137 tests, 99% coverage - All linters pass ## Stacked On PR #354
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
Adds dataflow analysis capabilities to Python DSL with Phase 1 propagation primitives.
Changes
flows()matcher for taint analysiscodepathfinderTesting
Stacked On
PR #353