grpo-rl-training
Warn
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The function
run_test_casesinexamples/reward_functions_library.pyuses theexec()function to execute model-generated code blocks during the reward calculation phase. While intended for evaluating code generation tasks, the use ofexec()on untrusted model outputs without isolation (such as containers or sandboxes) poses a risk of arbitrary code execution on the training host. The skill includes a documentation warning suggesting the use of sandboxing for production environments.- [INDIRECT_PROMPT_INJECTION]: The skill provides a surface for indirect prompt injection by ingesting external datasets and model completions. - Ingestion points: Data is ingested from external sources via
load_datasetintemplates/basic_grpo_training.pyand from model-generated completions inexamples/reward_functions_library.py. - Boundary markers: The implementation lacks explicit boundary markers or instructions to the model to ignore potential injections within the training data or generated responses.
- Capability inventory: The training environment includes capabilities to execute code (
exec()inexamples/reward_functions_library.py) and write to the local file system (trainer.save_modelintemplates/basic_grpo_training.py). - Sanitization: No input validation, sanitization, or sandboxing is implemented in the provided reward function examples to protect against malicious payloads in completions or datasets.- [EXTERNAL_DOWNLOADS]: The skill references and downloads resources from well-known services and organizations, including Hugging Face for model weights (
transformers) and datasets (datasets), and Weights & Biases (wandb) for experiment tracking. These operations are standard for the described machine learning workflow.
Audit Metadata