Back to skill

Security audit

Dockerfile Hardening Audit

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Dockerfile auditing helper that reads matching Dockerfiles and reports hardening issues without hidden network, write, or persistence behavior.

Installers should understand that the skill may read all files matching its Dockerfile glob in the current workspace; use DOCKERFILE_GLOB, FILE_MATCH, or FILE_EXCLUDE to narrow large or sensitive repositories. The lack of a stricter manifest tool scope is worth improving but does not change the benign verdict for this artifact.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (1)

Lp3

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding
The skill explicitly requires shell and file-read capabilities via its metadata and usage examples, but it does not declare a restrictive tool scope such as permissions or allowed-tools. That creates unnecessary ambient authority: if the execution environment grants broader defaults, the skill could access more files or invoke more tooling than needed, increasing the blast radius of misuse or compromise.

Static analysis

No suspicious patterns detected.