openrlhf-training
Fail
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: HIGHDYNAMIC_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill provides example implementations for custom reward functions that directly execute output generated by the model. Specifically, the code generation reward example extracts generated code from queries and executes it using
subprocess.run. This pattern enables a model-to-code execution path where malicious model outputs can lead to arbitrary code execution. - Evidence:
references/custom-rewards.mdincludes logic to writegenerated_codeto a temporary file and runsubprocess.run(["python", "-m", "pytest", temp_file], ...). - [PRIVILEGE_ESCALATION]: The skill's setup and multi-node training guides recommend running Docker containers with the
SYS_ADMINcapability and usingsudofor package management. TheSYS_ADMINcapability is highly privileged and significantly expands the attack surface for container escape. - Evidence: Found in
SKILL.mdandreferences/multi-node-training.mdasdocker run --runtime=nvidia -it --rm --shm-size="10g" --cap-add=SYS_ADMIN .... - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted model-generated content within training and feedback loops that have access to command execution capabilities. This surface allows for indirect prompt injection where adversarial data in the training set could influence the model to generate outputs that trigger unintended logic in the reward or agent functions.
- Ingestion points: The
reward_funcinreferences/custom-rewards.mdingestsqueries,prompts, andlabels; theAgentInstanceclass ingestsaction_textandobservation_text. - Boundary markers: None; untrusted text is processed directly as strings.
- Capability inventory: The skill uses
subprocess.runand file writes within these processing paths. - Sanitization: No sanitization is performed on model outputs before they are processed or executed.
- [COMMAND_EXECUTION]: The skill relies on shell commands for environment setup and runtime evaluation, including uninstallation of packages via
sudoand executing model outputs throughsubprocess. The interpolation of potentially untrusted inputs into these commands increases the risk of command injection. - Evidence: Examples include
sudo pip uninstall ...inSKILL.mdandsubprocess.runcalls inreferences/custom-rewards.md.
Recommendations
- AI detected serious security threats
Audit Metadata