tao-finetune-huggingface-model
Warn
Audited by Socket on Sep 22, 2026
1 alert found:
AnomalyAnomalyexamples/detr-resnet50-cppe5/prepare_data.py
LOWAnomalyLOW
examples/detr-resnet50-cppe5/prepare_data.py
This snippet itself contains no obvious classic malware behavior (no subprocesses, no eval/exec, no direct exfiltration). However, it has a significant supply-chain security weakness: trust_remote_code=True in load_dataset allows execution of code supplied by the referenced remote dataset repository. Because dataset_id is taken directly from the YAML config without whitelisting, an attacker who can influence the config can steer the loader to an arbitrary (possibly malicious/compromised) remote dataset source. The remaining operations (shuffle/split/save) are straightforward and mostly non-suspicious.
Confidence: 72%Severity: 62%
Audit Metadata