Skip to content
Back to skills

Cloud K8s

ASecurity

Use for authorized cloud, container, and Kubernetes security assessment including metadata SSRF, IAM misconfig, container escape paths, and cluster RBAC review.

  • 15 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
securitybashnodedockerkubernetesawsgcpazuretestingsecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add youlianvr/oper-share --skill cloud-k8s --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloud K8s?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cloud K8s
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/youlianvr-cloud-k8s/badge)](https://www.skillsdirectory.com/skills/youlianvr-cloud-k8s)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cloud-k8s
description: Use for authorized cloud, container, and Kubernetes security assessment including metadata SSRF, IAM misconfig, container escape paths, and cluster RBAC review.
---

# Cloud / Container / Kubernetes Security

## Authorization preamble

1. Cloud and K8s testing requires **written authorization** — confirm it before anything else.
2. Confirm the task is in scope: account boundaries defined, destructive operations prohibited.
3. Confirm the target is actually cloud metadata / containers / K8s / IAM, not a plain web app (plain web → `pentest-tools/`).
4. Tools: kubectl / aws / gcloud are usually installed manually — verify before use.
5. Start from "identity and exposure"; **no default full-network scanning**.

## Scope

- Cloud metadata SSRF (169.254.169.254 / IMDS)
- Over-privileged IAM, public storage buckets, wrong security groups
- Docker/containerd escape path assessment
- Kubernetes RBAC, Secrets, Admission, image supply chain
- Container image vulnerabilities (pairs with `supply-chain-security/`)

## Workflow

### Phase 1 — Identity and boundaries

```text
□ Current identity: cloud AK/SK, K8s SA, node SSH?
□ Scope: single account / single cluster / single namespace
□ Network profile: authorized_target_only
```

### Phase 2 — Cloud control plane

```bash
# Examples (per provider; MUST stay inside authorized accounts)
aws sts get-caller-identity
aws s3 ls
# Azure / GCP have equivalent identity commands
```

```text
□ Public buckets / wrong ACLs
□ Metadata: IMDSv1 vs v2; SSRF chains
□ Role assumption (PassRole) and lateral movement
```

### Phase 3 — Containers

```text
□ privileged / hostPath / hostNetwork?
□ capabilities (SYS_ADMIN etc.)
□ writable host paths → escape candidates
□ image history and known CVEs → Trivy
```

### Phase 4 — Kubernetes

```bash
kubectl auth can-i --list
kubectl get pods,secrets,svc -A
kubectl get clusterrolebindings
```

```text
□ SA token mounts and permissions
□ Missing dangerous admission webhooks
□ etcd / dashboard exposure
□ Do network policies default to allow?
```

## Toolchain

| Tool | Purpose | Bootstrap |
|------|---------|-----------|
| kubectl | cluster interaction | manual |
| trivy | images / IaC | bootstrap `trivy` if available |
| kube-bench / kubeaudit | CIS / config | manual |
| pacu / scoutsuite | cloud audit (authorized) | manual |
| nuclei | known cloud vuln templates | bootstrap nmap/nuclei ecosystem |

## References

- `references/k8s-cloud-checklist.md`
- CTF crosswalk: `../../CTF-Sandbox-Orchestrator/competition-agent-cloud/`
- `security/parts/supply-chain-security/` `security/parts/pentest-tools/`

## MUST NOT

- Scan other tenants of a public cloud without authorization.

## Completion self-check

- [ ] Did I stay within the authorized account/cluster?
- [ ] Do findings include reproduction and impact?
- [ ] Did I avoid destructive operations?
- [ ] Report / journal written?

Files in this skill

  • SKILL.md2.9 KB
  • references/k8s-cloud-checklist.md401 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.