senior-computer-vision
Warn
Audited by Socket on Nov 6, 2026
1 alert found:
AnomalyAnomalyscripts/inference_optimizer.py
LOWAnomalyLOW
scripts/inference_optimizer.py
This utility analyzes and benchmarks user-supplied model files and has no evident network exfiltration, persistence, or command-execution behavior. The main security risk is that torch.load() may execute code embedded in an untrusted PyTorch checkpoint; only load trusted checkpoints or use a safe, weights-only loading mode where supported. Writing to the caller-selected output path is expected behavior. Severity is moderate and conditional on loading an untrusted checkpoint.
Confidence: 98%Severity: 57%
Audit Metadata