docker-privesc

Escalate Docker container privileges to host root access.

1.1k|191|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/uphiago/recon-skills --skill docker-privesc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-privesc
Source: https://github.com/uphiago/recon-skills/tree/main/infra/docker-privesc
Command: npx skills add https://github.com/uphiago/recon-skills --skill docker-privesc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the critical problem of escalating privileges from a compromised Docker container to full root access on the underlying host system, a common requirement in authorized penetration testing and red team engagements where containerized workloads serve as the initial access vector.

Core Features & Use Cases

  • 5 Distinct Escape Techniques: Covers docker group volume mounting, docker socket abuse, privileged container exploitation, cgroup release_agent attacks, and prior privilege escalation forensics.
  • Real-World Validation: Tested against production targets including fitness-chain and gov-finance-portal, with documented results and mitigation guidance.
  • Use Cases: Post-RCE escalation after compromising a container via web exploits or API attacks, red team operations targeting containerized cloud and on-premises infrastructure, and security assessments of Docker deployment configurations.

Quick Start

Use the docker-privesc skill to assess your current Docker container's escape surface and execute the appropriate technique to gain root access to the underlying host system.

Frequently Asked Questions about docker-privesc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I escalate privileges and escape a Docker container to get host root access?

Docker container escape techniques include exploiting misconfigured docker group permissions, abusing mounted docker sockets, leveraging privileged container deployments, and executing cgroup release_agent attacks to gain host root access.

What are the most common Docker misconfigurations that allow container escape?

Common Docker misconfigurations that allow container escape include improper docker group permissions, mounted docker sockets, and privileged container deployments, all of which expose the underlying host system to root access.

How does abusing a mounted docker socket lead to privilege escalation?

Abusing a mounted docker socket allows a compromised container to interact with the host Docker daemon, enabling attackers to create new privileged containers that mount the host filesystem and escalate to root access.

Can I check a compromised Docker container for prior privilege escalation indicators?

Yes, post-exploitation forensics can be performed on a compromised Docker container to identify prior privilege escalation indicators, assess configuration checks, and validate previous exploitation attempts on the host system.

Does this Docker container escape validation apply to red team operations?

Yes, Docker container escape validation specifically applies to authorized red team operations and penetration testing scenarios where initial access is gained through containerized workloads in cloud or on-premises infrastructure.

What is a cgroup release_agent attack for privileged container exploitation?

A cgroup release_agent attack exploits privileged containers by writing a payload to the host cgroup release_agent file, executing arbitrary commands as root on the underlying host system when a cgroup process terminates.