python-weapon
Warn
Audited by Socket on Jul 25, 2026
1 alert found:
AnomalyAnomalyguides/21-data-and-ml-wrappers.md
LOWAnomalyLOW
guides/21-data-and-ml-wrappers.md
No clear evidence of intentional malware or backdoor behavior is present in the provided code fragment. The primary security risk is the deserialization step using torch.load('model.pt'), which can be dangerous if the model artifact’s integrity/provenance is not strictly controlled. Secondary risks include environment-configurable outbound LLM gateway destination (possible misrouting/SSRF if misconfigured) and data exposure risks through CSV exports (including potential spreadsheet/CSV formula injection depending on downstream usage).
Confidence: 62%Severity: 52%
Audit Metadata