managing-network-policies
Warn
Audited by Gen Agent Trust Hub on Jul 21, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/generate_network_policy.pyimplements dynamic code generation and modifies file permissions. - The
generate_scriptmethod accepts content from the--contentcommand-line argument and writes it directly into a bash script file. - After creation, the script uses
file_path.chmod(0o755)to make the file executable, which allows for the immediate execution of arbitrary commands if the input content is malicious. - [PROMPT_INJECTION]: The skill presents a surface for indirect prompt injection because it processes external data while possessing high-privilege tool access.
- Ingestion points: Data is ingested via the
--configfile path and the--contentstring within thescripts/generate_network_policy.pyscript. - Boundary markers: The skill does not utilize delimiters or specific instructions to prevent the agent from obeying commands embedded within the input data.
- Capability inventory: The skill has authorized access to
kubectland the ability to write and execute scripts on the local system. - Sanitization: No validation or escaping is performed on the user-provided content before it is interpolated into shell scripts or JSON/Markdown outputs.
Audit Metadata