literature
Warn
Audited by Socket on Aug 5, 2026
1 alert found:
AnomalyAnomalyscripts/literature_cli.py
LOWAnomalyLOW
scripts/literature_cli.py
No direct malicious payload is visible in this snippet (no subprocesses, eval/exec, destructive operations, or explicit exfiltration). However, the fragment introduces a significant supply-chain/import-hijacking risk: it conditionally locates `ane_package` in environment-controlled and broad local filesystem locations, prepends the chosen directory to `sys.path`, and then imports it—meaning that if an attacker can place/modify an `ane_package` directory in any candidate location, arbitrary code execution during import becomes possible. The security risk is therefore primarily about integrity of local dependency sources rather than overt malware behavior in this file.
Confidence: 70%Severity: 65%
Audit Metadata