Title: feat(forge-security): Python unsafe pattern rules, framework detectors & fixtures/fastapi-app · Issue #152 · elcode-id/elcode-forge · GitHub
Open Graph Title: feat(forge-security): Python unsafe pattern rules, framework detectors & fixtures/fastapi-app · Issue #152 · elcode-id/elcode-forge
X Title: feat(forge-security): Python unsafe pattern rules, framework detectors & fixtures/fastapi-app · Issue #152 · elcode-id/elcode-forge
Description: Description Implement Python-specific security scanners, framework detectors (FastAPI, Flask, Django), and create a curated fixture fixtures/fastapi-app/ for golden tests. Detailed Requirements Framework & Ecosystem Detectors: Detect Fas...
Open Graph Description: Description Implement Python-specific security scanners, framework detectors (FastAPI, Flask, Django), and create a curated fixture fixtures/fastapi-app/ for golden tests. Detailed Requirements Fra...
X Description: Description Implement Python-specific security scanners, framework detectors (FastAPI, Flask, Django), and create a curated fixture fixtures/fastapi-app/ for golden tests. Detailed Requirements Fra...
Opengraph URL: https://github.com/elcode-id/elcode-forge/issues/152
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(forge-security): Python unsafe pattern rules, framework detectors & fixtures/fastapi-app","articleBody":"## Description\nImplement Python-specific security scanners, framework detectors (FastAPI, Flask, Django), and create a curated fixture `fixtures/fastapi-app/` for golden tests.\n\n## Detailed Requirements\n1. **Framework & Ecosystem Detectors:**\n - Detect `FastAPI` (presence of `fastapi` in requirements/pyproject or `from fastapi import ...`).\n - Detect `Flask` and `Django`.\n - Detect `pytest` test runner.\n2. **Python Security Rules in `crates/forge-security`:**\n - `security/python-unsafe-eval`: detects `eval(...)` and `exec(...)` execution.\n - `security/python-insecure-subprocess`: detects `shell=True` in `subprocess.run`, `subprocess.Popen`, `os.system(...)`, and `os.popen(...)`.\n - `security/python-pickle-deserialization`: detects untrusted `pickle.loads(...)` and `_pickle.loads(...)`.\n3. **Curated Fixture `fixtures/fastapi-app/`:**\n - Multi-tier FastAPI application: `app/routers/`, `app/services/`, `app/models/`, `app/core/`.\n - Includes standard `pyproject.toml` and `poetry.lock`.\n - Contains intentional signals: 1 circular import between modules, 1 unpinned dependency, and 1 security violation (`pickle.loads`), with test coverage.\n4. **Integration Verification:**\n - Golden test verifying that `eforge doctor` and `eforge scan` against `fixtures/fastapi-app` identify all signals deterministically.\n\n## Verification\n- Run `cargo test -p forge-security` and `cargo test -p forge-analyzer`.\n- Run `cargo run --bin eforge -- doctor --path fixtures/fastapi-app`.\n- Selective CI: Tier 1 & Tier 2.\n\nPart of #149\n","author":{"url":"https://github.com/luksluki","@type":"Person","name":"luksluki"},"datePublished":"2026-10-21T05:57:38Z","url":"https://github.com/elcode-id/elcode-forge/issues/152"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ea910c0d-a1e7-3775-0ac1-cce9367bc2f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B998:1248F8:154796:1CEB7C:6B059795 |
| html-safe-nonce | 49f8cf6bf199f843b773260a8cb8c3fff31c56985e526951f720cb288864c265 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTk4OjEyNDhGODoxNTQ3OTY6MUNFQjdDOjZCMDU5Nzk1IiwidmlzaXRvcl9pZCI6IjYxOTY3MjYyMjAyOTQ4MjE3ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 54d3927dc42530d37313cd5e580477a424adec7c7987b9bece63e44c00397d30 |
| hovercard-subject-tag | issue:5955198510 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/elcode-id/elcode-forge/152/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1c1d4e2803744ffb04180b0015770c4102367571f61ddb69ae9b5f1cd86f9d2/elcode-id/elcode-forge/issues/152 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1c1d4e2803744ffb04180b0015770c4102367571f61ddb69ae9b5f1cd86f9d2/elcode-id/elcode-forge/issues/152 |
| og:image:alt | Description Implement Python-specific security scanners, framework detectors (FastAPI, Flask, Django), and create a curated fixture fixtures/fastapi-app/ for golden tests. Detailed Requirements Fra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | luksluki |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f |
| turbo-cache-control | no-preview |
| go-import | github.com/elcode-id/elcode-forge git https://github.com/elcode-id/elcode-forge.git |
| octolytics-dimension-user_id | 337957755 |
| octolytics-dimension-user_login | elcode-id |
| octolytics-dimension-repository_id | 1423983661 |
| octolytics-dimension-repository_nwo | elcode-id/elcode-forge |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1423983661 |
| octolytics-dimension-repository_network_root_nwo | elcode-id/elcode-forge |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 58e2bd32336f3dcee343ec627a4d09c7c444e214 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width