import-model

Warn

Audited by Socket on Aug 28, 2026

1 alert found:

Anomaly
AnomalyLOW
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
Analyzed At
Aug 28, 2026, 07:06 PM
Package URL
pkg:socket/skills-sh/modular%2Fskills%2Fimport-model%2F@113bb1fb830080294dd711e9361193e49fd4f0730d6be7711828f797673b169f
Security Audit — socket — import-model