fractal
Audited by Socket on Jul 31, 2026
2 alerts found:
Anomalyx2No explicit malicious behavior is implemented in this file (no eval/exec, subprocesses, or direct network/exfiltration code). The main security concern is supply-chain/import hijacking: the script resolves a repo root using environment variables and prepends it to sys.path before importing codex_guard and engine_legs, enabling arbitrary code execution if those variables or filesystem contents are attacker-controlled. A secondary risk is the persistence of untrusted LLM outputs to user-specified locations (--node-dir/--out), which can be hazardous depending on how the generated artifacts are later consumed/rendered.
No clear in-module malicious payload is visible (no eval/exec, no suspicious persistence, no network calls directly). The primary risk is operational/supply-chain: the code executes external binaries/scripts (paths partly controlled by environment variables) and passes secrets read from ~/.config/secrets.env into those processes, meaning a compromised binary/wrapper/module/codex_guard could exfiltrate data or run arbitrary code. This should be reviewed as a high-trust boundary, especially for environment control and dependency integrity.