svg-portrait-mode
Warn
Audited by Socket on Jul 30, 2026
1 alert found:
AnomalyAnomalyportrait_mode.py
LOWAnomalyLOW
portrait_mode.py
No clear evidence of intentional malware (e.g., exfiltration, command execution, backdoors) exists in this code fragment itself. However, it has meaningful supply-chain and execution-risk patterns: it downloads and uses ML model artifacts at runtime without integrity verification, and it modifies sys.path with a hardcoded absolute directory that can enable local module import hijacking if that directory is not strictly trusted. These risks warrant hardening (pin model hashes/signatures; remove/lock down sys.path manipulation; ensure imports are from trusted, packaged modules).
Confidence: 61%Severity: 56%
Audit Metadata