Views
No views yet
scan_python_code — AST walk for eval/exec/credentials/packagesscan_javascript_code — Babel parser with regex fallbackauto_strip_credential — Detect hardcoded secretsquarantine_eval — Block eval() / exec()block_unverified_package — Reject non-allowlist importsBLOCKED — credential_detected line 4, eval_usage quarantined line 8
Reward: +200 | 1.5× multiplier ACTIVE | Pipeline Integrity: 1.0| Event | Reward |
|---|---|
| Catch at Gate 1 | +100 |
| Credential detected | +50 |
| Eval quarantined | +50 |
| 1.5× multiplier active | +150 |
| False positive block | −30 |
| Missed + caught later | +20 |
1from AST_Interceptor import Gate1Interceptor
2interceptor = Gate1Interceptor()
3result = interceptor.scan(code, language="python")AST_Interceptor.py — Core scanner module (500+ lines)AST_Interceptor_test.py — Test suite (10/10 tests)gate1_ast_interceptor.py — Alternate name (identical)test_gate1.py — Alternate name (identical)