Aalexbit-codemod

python-blocker-security-bundle

Read-only workflow bundle that runs all 31 Python blocker security mining codemods in one pass. Findings are recorded via JSSG metrics in the Codemod CLI run report.

miningmetricspythonsecuritybundleblocker
PublicBundle
2 executions

Run locally

npx codemod python-blocker-security-bundle

Python blocker security bundle

Read-only workflow bundle that runs all 31 Python blocker security mining codemods in one pass. Findings are recorded via JSSG useMetricAtom as python_security_finding metrics in the Codemod CLI run report — no files are written to the target repo.

Metric

All bundled miners share the python_security_finding metric:

FieldDescription
rule_idRule identifier (e.g. pythonsecurity:S2076)
titleRule title
severityAlways blocking
remediationSuggested fix
file_pathRelative path to the Python file
line1-based line number
snippetShort matched source excerpt
patternDetector-specific pattern id (when applicable)

Bundled miners

#CodemodRule ID
1python-s2115-secure-db-password-miningpython:S2115
2pythonsecurity-s8701-agentic-cmd-injection-miningpythonsecurity:S8701
3python-s6333-aws-api-gateway-auth-miningpython:S6333
4python-s6270-aws-public-resource-policy-miningpython:S6270
5python-s6437-hardcoded-credentials-miningpython:S6437
6pythonsecurity-s3649-sql-injection-miningpythonsecurity:S3649
7pythonsecurity-s5135-deser-injection-miningpythonsecurity:S5135
8pythonsecurity-s5334-dynamic-code-injection-miningpythonsecurity:S5334
9pythonsecurity-s5131-reflected-xss-miningpythonsecurity:S5131
10pythonsecurity-s6096-zip-slip-miningpythonsecurity:S6096
11python-s8389-fastapi-file-upload-form-miningpython:S8389
12python-s8375-flask-preprocess-request-miningpython:S8375
13python-s8374-flask-cbv-decorators-miningpython:S8374
14python-s6779-flask-secret-key-miningpython:S6779
15python-s5439-html-autoescape-disabled-miningpython:S5439
16pythonsecurity-s5146-open-redirect-miningpythonsecurity:S5146
17pythonsecurity-s6839-response-splitting-miningpythonsecurity:S6839
18pythonsecurity-s2083-path-injection-miningpythonsecurity:S2083
19python-s6781-jwt-secret-disclosed-miningpython:S6781
20pythonsecurity-s2078-ldap-injection-miningpythonsecurity:S2078
21python-s7625-aws-long-term-keys-miningpython:S7625
22pythonsecurity-s5147-nosql-injection-miningpythonsecurity:S5147
23pythonsecurity-s2076-command-injection-miningpythonsecurity:S2076
24python-s6302-policy-all-privileges-miningpython:S6302
25python-s6265-s3-public-access-miningpython:S6265
26python-s6418-hardcoded-secrets-miningpython:S6418
27pythonenterprise-s8435-sensitive-url-query-miningpythonenterprise:S8435
28pythonsecurity-s5496-ssti-miningpythonsecurity:S5496
29python-s8392-bind-all-interfaces-miningpython:S8392
30python-s2755-xxe-miningpython:S2755
31pythonsecurity-s2091-xpath-injection-miningpythonsecurity:S2091

Usage

Published bundle (after miners are on the registry):

bash

Local monorepo development:

bash

Development

bash

Ready to contribute?

Build your own codemod and share it with the community.