grpo-finetune
Audited by Socket on Sep 4, 2026
3 alerts found:
Anomalyx2SecurityThis module is a fine-tuning/evaluation orchestration script with no clear intrinsic malware indicators (no obvious obfuscation, no explicit exec/eval of dynamic strings, no direct exfiltration code beyond standard API usage). However, it materially increases supply-chain risk by loading and executing a user-specified reward module (args.reward) in the current process, manipulating sys.path to import local training code, and running a local demo script via subprocess. If an attacker can tamper with reward.py or the local repository paths, they could execute arbitrary code during training/evaluation.
This file is a validator/test harness, not malware by itself. However, it is a high-impact arbitrary-code-execution mechanism: it dynamically imports and executes Python from a runtime-supplied filesystem path (exec_module) and then repeatedly calls functions from that untrusted module. If an attacker can influence the provided PATH/module contents, this enables supply-chain-style code execution. Numeric output constraints do not mitigate side effects.
SUSPICIOUS: the skill is mostly aligned with ML fine-tuning, but it loads multiple credentials from .env and routes sensitive data through unshown local pipeline code. The main concern is disproportionate/opaque credential use—especially OPENROUTER_API_KEY for a Fireworks-focused training skill—rather than overt malware or a hostile installer.