managing-network-policies
Warn
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
scripts/generate_network_policy.pyscript contains agenerate_scriptmethod that accepts arbitrary strings through thecontentargument and writes them directly into a shell script template. This allows the agent to generate executable bash files from untrusted or unverified text at runtime. - [PRIVILEGE_ESCALATION]: In
scripts/generate_network_policy.py, thegenerate_scriptfunction callsfile_path.chmod(0o755)on newly created files. Setting executable bits on dynamically generated content from user input is a security risk that facilitates the execution of potentially malicious code. - [INDIRECT_PROMPT_INJECTION]: The skill processes user-defined networking requirements to generate manifests and scripts, creating a surface for injection attacks.
- Ingestion points: User-provided descriptions and configurations passed to the generation script via
SKILL.mdtriggers. - Boundary markers: Absent. There are no delimiters or instructions for the agent to ignore embedded shell commands within the networking descriptions.
- Capability inventory: The skill has the ability to write files (
Writetool), modify permissions (chmodin Python), and execute commands (Bashtool). - Sanitization: The
generate_scriptfunction lacks any validation, escaping, or sanitization of thetemplatecontent before writing it to a file.
Audit Metadata