k8s-debug
Pass
Audited by Gen Agent Trust Hub on Mar 28, 2026
Risk Level: SAFE
Full Analysis
- [DATA_EXPOSURE]: The script
scripts/network_debug.shaccesses the Kubernetes service account token located at/var/run/secrets/kubernetes.io/serviceaccount/tokenfrom within a target pod. This is used exclusively for an internal API connectivity probe to verify if the pod's service account can successfully reach the Kubernetes API server. The token is handled locally and is not transmitted outside the cluster environment. - [INDIRECT_PROMPT_INJECTION]: The skill processes potentially untrusted data by reading container logs and cluster event messages, which could contain instructions intended to influence the agent's behavior.
- Ingestion points: Container logs (stdout/stderr) and event messages are retrieved via
scripts/pod_diagnostics.pyandscripts/cluster_health.shusingkubectl logsandkubectl get events. - Boundary markers: Diagnostic output from logs is presented to the agent without specific delimiters or defensive instructions to ignore embedded commands.
- Capability inventory: The skill has the capability to execute shell commands and modify cluster state through the
kubectlCLI. - Sanitization: No filtering or sanitization is applied to the retrieved log content or event descriptions before they are processed by the agent.
- [COMMAND_EXECUTION]: The skill executes a wide range of
kubectlcommands, including potentially disruptive operations such asdelete pod,drain node, androllout restart. These are legitimate administrative actions required for Kubernetes troubleshooting. The skill documentation includes explicit safety rules requiring human confirmation and state snapshots before executing disruptive commands. - [DYNAMIC_EXECUTION]: Shell scripts within the skill utilize
bash -cto execute piped command strings for filtering and processing diagnostic data (e.g., sorting events or tailing logs). These execution patterns are limited to local data processing using predefined templates and do not involve the execution of remote or untrusted code.
Audit Metadata