-
Notifications
You must be signed in to change notification settings - Fork 10
feat(go): Add DSL rule loader and OWASP Top 10 examples #360
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
This was referenced Nov 9, 2025
Owner
Author
This was referenced Nov 9, 2025
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #360 +/- ##
==========================================
+ Coverage 80.11% 80.35% +0.24%
==========================================
Files 63 64 +1
Lines 6453 6537 +84
==========================================
+ Hits 5170 5253 +83
+ Misses 1068 1061 -7
- Partials 215 223 +8 ☔ 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 |
Owner
Author
Merge activity
|
Implements the integration layer between Python DSL and Go executor with comprehensive OWASP security rule examples demonstrating the end-to-end detection pipeline. **Go Integration Layer:** - dsl/loader.go: RuleLoader with context.WithTimeout (30s) for Python rule execution, ExecuteRule dispatcher routing to call_matcher/variable_matcher/dataflow/logic executors - dsl/loader_test.go: 11 comprehensive tests covering valid rules, invalid syntax, invalid JSON, non-existent files, all matcher types, and error handling **OWASP Examples:** - python-dsl/examples/owasp_top10.py: 6 production-ready security rules (SQL injection CWE-89, command injection CWE-78, code injection CWE-94, SSRF CWE-918, path traversal CWE-22, insecure deserialization CWE-502) using flows() with PropagationPresets.standard() **Testing:** - All 167 Python tests pass (99% coverage) - All Go tests pass (dsl package: 0.455s) - All linters pass (golangci-lint, ruff, black, mypy) - OWASP examples produce valid JSON IR 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
5d24e54 to
fc1b33d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.

Description:
Explain the purpose of the PR.
Checklist:
gradle testGo)?golangci-lint runthis requires golangci-lint)?