openrlhf-training
Fail
Audited by Gen Agent Trust Hub on Apr 7, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
SKILL.mdfile provides a command to run a Docker container with the--cap-add=SYS_ADMINflag. This grants the container extensive privileges over the host system, which is a major security risk as it facilitates container escape and host compromise. - [COMMAND_EXECUTION]: The skill's installation instructions include the use of
sudo pip uninstall. Usingsudofor package management can potentially lead to privilege escalation or system instability if the environment is not properly isolated. - [REMOTE_CODE_EXECUTION]: The OpenRLHF framework, as documented in this skill, enables the execution of arbitrary Python scripts via the
--remote_rm_urland--agent_func_pathcommand-line arguments. This creates a surface for executing code from the local filesystem. - [REMOTE_CODE_EXECUTION]: The
references/custom-rewards.mdfile contains a 'Code Generation Rewards' example that demonstrates usingsubprocess.runto execute code produced by the AI model. This is an dangerous practice as it allows the model's output to execute arbitrary commands on the system. - [PROMPT_INJECTION]: The skill demonstrates a vulnerability to Indirect Prompt Injection in the reward function template.
- Ingestion points: The
reward_funcinreferences/custom-rewards.mdacceptsqueriescontaining model-generated text. - Boundary markers: The script lacks robust boundary markers to separate trusted instructions from untrusted model output before execution.
- Capability inventory: The example script has the capability to write to temporary files and execute them using the system's Python interpreter via
subprocess.run. - Sanitization: There is no sanitization or execution of the code within a secure sandbox, meaning any malicious code generated by the model in response to an attacker's prompt will be executed with the privileges of the training process.
Recommendations
- AI detected serious security threats
Audit Metadata