awesome-novel
Warn
Audited by Socket on Sep 14, 2026
1 alert found:
AnomalyAnomalytools/test_util.py
LOWAnomalyLOW
tools/test_util.py
No explicit malicious payload (e.g., network calls, credential theft, or obfuscated logic) is shown in this fragment. However, it contains a high-impact dynamic module loading primitive (`spec.loader.exec_module`) that will execute Python code from a caller-controlled filesystem path, and it also injects modules into `sys.modules` under a caller-controlled name. If `path`/`name` are not tightly controlled by the surrounding application, this can enable arbitrary code execution and import/module manipulation. The snippet also appears truncated (`return mo`), reducing confidence in the exact intended behavior.
Confidence: 62%Severity: 66%
Audit Metadata