agent-readable-code
Warn
Audited by Socket on Sep 16, 2026
2 alerts found:
Securityx2Securityscripts/fixtures/bad_py/utils.py
MEDIUMSecurityMEDIUM
scripts/fixtures/bad_py/utils.py
The fragment is not evidently malware, but it contains two significant unsafe dynamic mechanisms: unrestricted eval() and unrestricted dynamic module import. These should not receive untrusted input; use a constrained parser or explicit allowlist instead. The overall risk is driven by potential code execution and unintended imports, not by observed malicious behavior.
Confidence: 98%Severity: 78%
Securityscripts/fixtures/good_py/suppressed.py
MEDIUMSecurityMEDIUM
scripts/fixtures/good_py/suppressed.py
The fragment is not demonstrably malicious by itself, but use_eval contains a high-risk arbitrary code execution vulnerability because untrusted input is passed directly to eval. Replace eval with safe parsing or an allowlisted operation-specific implementation.
Confidence: 99%Severity: 88%
Audit Metadata