Back to skill

Security audit

Docker Sandbox

Security checks for vulnerabilities and agentic risk

Overview

This skill is mostly a Docker sandbox usage guide, but it overstates safety for untrusted code while documenting high-impact sandbox capabilities without enough warning.

Review this skill before installing if you plan to use it for hostile or truly untrusted code. Confirm whether /run/docker.sock is isolated inside the sandbox VM or connected to the host Docker daemon, assume mounted workspaces can be modified by code in the sandbox, use deny-by-default network rules, and avoid docker sandbox reset unless you are prepared to lose sandbox state.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (4)

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill repeatedly markets the environment as safe for running untrusted code, but the same document later states the sandbox exposes the host Docker socket. Access to the host Docker daemon is effectively equivalent to privileged control over the host/container environment, so the isolation claim is materially misleading and can lead users to run hostile code under a false sense of safety.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

Providing /run/docker.sock inside a sandbox for 'untrusted code' allows code in the sandbox to control the host Docker daemon, start privileged containers, mount host filesystems, or escape intended restrictions. In this skill's context, that directly undermines the core security boundary the sandbox is supposed to provide.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 234)May include surrounding context.

"fetch failed" inside sandbox

Node.js fetch doesn't use the proxy. Use the proxy-fix.js require hook above, or use curl instead:

bash
docker sandbox exec my-sandbox curl -sL https://api.example.com/data

Path conversion on Windows (Git Bash / MSYS2)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The documented docker sandbox reset command is destructive and the note only says it 'clears all sandbox state' without a strong warning before use. Users following troubleshooting steps may unintentionally destroy environments or data they expected to preserve.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.