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.md file provides a command to run a Docker container with the --cap-add=SYS_ADMIN flag. 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. Using sudo for 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_url and --agent_func_path command-line arguments. This creates a surface for executing code from the local filesystem.
  • [REMOTE_CODE_EXECUTION]: The references/custom-rewards.md file contains a 'Code Generation Rewards' example that demonstrates using subprocess.run to 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_func in references/custom-rewards.md accepts queries containing 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
Risk Level
HIGH
Analyzed
Apr 7, 2026, 11:12 AM