Context-Inappropriate Capability
High
- Confidence
- 99% confidence
- Finding
- Enabling trust_remote_code allows model and tokenizer repositories to supply and execute arbitrary Python code during from_pretrained() calls. In a training tool that accepts configurable model names and may pull assets from remote hubs, this creates a direct code-execution path that can compromise the host, steal credentials or data, or tamper with training outputs.
