Skip to content
Skillpedia
Security42k · #4755

cloud-k8s

Allows the agent to assess cloud, container, and Kubernetes security. It checks IAM configurations and escape paths.

What it does

This tool helps check the security of cloud, container, and Kubernetes environments. It looks for misconfigurations that attackers could exploit.

When to use it

  • ✓When testing the security of a cloud account.
  • ✓When assessing the security of containerized applications.
  • ✓When reviewing permissions and configurations in Kubernetes clusters.

Example of what to ask your AI

“Check the security of my AWS account and Docker containers.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/zhaoxuya520/reverse-skill/blob/main/skills/cloud-k8s/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/zhaoxuya520/reverse-skill/blob/main/skills/cloud-k8s/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool analyzes security settings, access permissions, and potential vulnerabilities in cloud services and container orchestrators like Kubernetes.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add zhaoxuya520/reverse-skill --skill cloud-k8s

Or download just the file:

curl -L https://raw.githubusercontent.com/zhaoxuya520/reverse-skill/main/skills/cloud-k8s/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Cloud / Container / Kubernetes Security

ACTION REQUIRED(读完后立刻执行)

  1. NOW: 读取 ../field-journal/precedent-pentest.md — 云/K8s 测试必须书面授权
  2. NOW: case-init + scope;明确账号边界、禁止破坏性操作
  3. NOW: 确认是云元数据/容器/K8s/IAM,而非普通 Web 扫(后者 pentest-tools/)
  4. NEXT: tool-index;kubectl/aws/gcloud 等多为手动安装
  5. ACT: 从「身份与暴露面」开始,禁止默认全网扫描

适用场景

  • 云元数据 SSRF(169.254.169.254 / IMDS)
  • IAM 过度权限、公开存储桶、错误安全组
  • Docker/containerd 逃逸路径评估
  • Kubernetes RBAC、Secrets、Admission、供应链镜像
  • 容器镜像漏洞(可联动 supply-chain-security/)

工作流

Phase 1 — 身份与边界

□ 当前身份:云 AK/SK、K8s SA、节点 SSH?
□ 范围:单账号 / 单 cluster / 单 namespace
□ 网络档:authorized_target_only

Phase 2 — 云控制面

# 示例(按厂商替换;MUST 在授权账号内)
aws sts get-caller-identity
aws s3 ls
# Azure / GCP 对应 identity 命令
□ 公开桶 / 错误 ACL
□ 元数据:IMDSv1 vs v2;SSRF 链
□ 角色可扮演(PassRole)与横向

Phase 3 — 容器

□ 是否 privileged / hostPath / hostNetwork
□ capabilities(SYS_ADMIN 等)
□ 可写宿主机路径 → 逃逸候选
□ 镜像历史与已知 CVE → Trivy

Phase 4 — Kubernetes

kubectl auth can-i --list
kubectl get pods,secrets,svc -A
kubectl get clusterrolebindings
□ SA token 挂载与权限
□ 危险 admission webhook 缺失
□ etcd / dashboard 暴露
□ 网络策略是否默认放行

工具链

工具 用途 自举
kubectl 集群交互 手动
trivy 镜像/IaC bootstrap trivy 若可用
kube-bench / kubeaudit CIS/配置 手动
pacu / scoutsuite 云审计(授权) 手动
nuclei 已知云漏洞模板 bootstrap nmap/nuclei 生态

参考

  • references/k8s-cloud-checklist.md
  • CTF 对照:../../CTF-Sandbox-Orchestrator/competition-agent-cloud/
  • ../supply-chain-security/ ../pentest-tools/

路由上下文

上游: MASTER R23
下游: 拿到节点 shell → attack-chain / windows-ad;镜像漏洞 → supply-chain
MUST NOT: 未授权扫公有云其他租户

任务完成自检

  • 是否限定在授权账号/cluster?
  • 发现是否含复现与影响?
  • 是否避免破坏性操作?
  • 报告 / journal?
FAQ

Do I need permission to use this tool?

Yes, it is essential to have written authorization before performing any security testing on cloud or Kubernetes environments.

Can this tool cause damage?

No, the tool is designed for analysis and should not perform destructive operations. It's important to clearly define the scope and avoid aggressive scans.

What is SSRF?

SSRF (Server-Side Request Forgery) is a vulnerability that allows an attacker to trick the server into making HTTP requests to a domain of the attacker's choosing.

Details

Original description by the author

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

repo: zhaoxuya520/reverse-skill

Popularity

GitHub stars
42k
Ranking position
#4755
License
MIT
Updated
9/22/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills