Skip to content

Add Semgrep rule for CWE-89 SQL injection - #23

Open
kamran-nizamani wants to merge 1 commit into
amarjaleelbanbhan:mainfrom
kamran-nizamani:add-cwe-semgrep-rule
Open

Add Semgrep rule for CWE-89 SQL injection#23
kamran-nizamani wants to merge 1 commit into
amarjaleelbanbhan:mainfrom
kamran-nizamani:add-cwe-semgrep-rule

Conversation

@kamran-nizamani

@kamran-nizamani kamran-nizamani commented Jul 24, 2026

Copy link
Copy Markdown

Summary

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Tests / CI
  • Research

Checklist

  • The local quality gate passes: ruff check, ruff format --check, mypy, pytest.
  • New/changed behavior is covered by tests.
  • Documentation and CHANGELOG.md updated where relevant.
  • The domain core (cortexward.domain) remains pure (no I/O / adapter imports).

Security checklist

  • No secrets, credentials, or tokens are committed.
  • Analyzed/untrusted input is not treated as instructions and cannot bypass verification.
  • Any new external/dangerous operation is isolated (sandbox, egress control) as appropriate.

Notes for reviewers

amarjaleel1

This comment was marked as duplicate.

@amarjaleelbanbhan amarjaleelbanbhan left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Semgrep rule for CWE-89 SQL injection detection

Detects SQL injection via f-string and string concatenation patterns in
Python database queries. Recommends parameterized queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants