← Legacy view v2 (rp.*)

pytorch/torchtitan

https://github.com/pytorch/torchtitan · lang: python · LOC: · source: corpus_mined

Quality
79.1
Grade B+
Security
92.7
Findings
6
0 critical · 0 high
Status
completed
May 15, 2026 18:26
medium: 4 info: 2
Top rules by occurrence
RuleSeverityCount
SEC005 Command Injection Risk high 2
SEC007 Unsafe Deserialization medium 2
SEC011 Unsafe PyTorch Model Loading medium 1
SEC020 Secret Printed to Logs high 1
First 6 findings (severity-sorted)
medium SEC005 Command Injection Risk
scripts/loss_compare.py:124 · conf 0.50
[SEC005] Command Injection Risk: Unsafe shell execution or eval of user input.
medium SEC005 Command Injection Risk
torchtitan/components/validate.py:289 · conf 0.50
[SEC005] Command Injection Risk: Unsafe shell execution or eval of user input.
medium SEC007 Unsafe Deserialization
torchtitan/components/dataloader.py:167 · conf 1.00
[SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code.
medium SEC007 Unsafe Deserialization
torchtitan/experiments/graph_trainer/precompile.py:269 · conf 1.00
[SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code.
info SEC011 Unsafe PyTorch Model Loading
torchtitan/components/checkpoint.py:228 · conf 0.10
[SEC011] Unsafe PyTorch Model Loading: torch.load() uses pickle internally and can execute arbitrary code from untrusted model files.
info SEC020 Secret Printed to Logs
torchtitan/components/tokenizer.py:191 · conf 0.15
[SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-bearing value. This is a frequent AI-assisted coding failure: the helper exposes the exact value needed for tro…

Reading from rp.scan + rp.finding + rp.rule (unified schema, R78 series). Legacy data path unchanged. Compare with /scan/9eb441b0-4d1c-45b8-9825-0c639f48bd8b/.