performance-optimization
Warn
Audited by Socket on Aug 3, 2026
1 alert found:
AnomalyAnomalyscripts/profiler.py
LOWAnomalyLOW
scripts/profiler.py
This looks like a performance profiling utility, not a typical malware package. However, it contains high-risk functionality: profile_code_block() performs exec() on a caller-supplied code string without sandboxing, and profile_function() executes arbitrary passed callables/args. If any attacker can influence those inputs, this becomes an avenue for arbitrary code execution. Aside from exec/callable execution, there are no signs of network exfiltration, file/system damage, or obfuscated malicious payloads in the shown code.
Confidence: 74%Severity: 55%
Audit Metadata