import-model
Warn
Audited by Socket on Aug 28, 2026
1 alert found:
AnomalyAnomalyscripts/compare_layers.py
LOWAnomalyLOW
scripts/compare_layers.py
No direct malware/persistence/exfiltration behavior is evident in this module. The primary security risk is supply-chain code execution: it loads HF tokenizer/model with trust_remote_code=True using a user-provided hf_id, which can execute arbitrary repository-provided code at load time. Additionally, it queries a local server on a user-specified port, so interaction integrity depends on the local environment configuration. If hf_id is fully trusted and the local endpoint is controlled, the remaining logic is consistent with a model-vs-local-endpoint divergence testing tool.
Confidence: 70%Severity: 58%
Audit Metadata