authorization-security
Warn
Audited by Gen Agent Trust Hub on Aug 25, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The shell script
scripts/generate-rbac.shuses a heredoc to execute Python code. It interpolates the shell variables$ORG_CHART_FILEand$OUTPUT_FILEdirectly into Python string literals. A maliciously crafted filename containing single quotes and Python commands (e.g.,'); import os; os.system('...) could lead to arbitrary code execution when the script is run. - [REMOTE_CODE_EXECUTION]: The
scripts/generate-rbac.shscript relies on thePyYAMLlibrary without ensuring it is installed, creating a dependency on the host environment's configuration. - [PROMPT_INJECTION]: The skill includes an ingestion surface for untrusted data in
scripts/generate-rbac.sh, which reads and processes an organizational chart (org-chart.yaml). - Ingestion points: The
scripts/generate-rbac.shscript reads an external YAML file defined by the user. - Boundary markers: The script uses
yaml.safe_load()to parse the input file. - Capability inventory: The script generates policy files that define the authorization rules for users and roles within the application.
- Sanitization: Employs
yaml.safe_load()to mitigate risks associated with unsafe YAML deserialization.
Audit Metadata