cloud-k8s
它能做什么
这个工具可以检查云和容器系统(如 Kubernetes)的安全性,查找攻击者可能利用的错误配置。
适用场景
- ✓当你需要评估自己有权测试的云或 Kubernetes 环境的安全性时。
- ✓当你需要检查访问权限(IAM/RBAC),看看是否存在获取更多控制权的途径时。
- ✓当你需要查找容器中的漏洞,看看是否可能逃逸到宿主系统时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cloud-k8s/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我检查一下 IP 地址为 192.168.1.100 的 Kubernetes 集群的安全性,我已经写好授权书了。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会模拟常见攻击来发现漏洞。在执行任何测试之前,它会先确认你的身份和授权,并说明每项测试会做什么。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.
Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
- Ask the user to state the exact target URL, IP, account, or resource.
- Ask the user to confirm written authorization and the permitted scope.
- Show the exact command(s) and explain their expected effect.
- Wait for explicit confirmation in the current conversation.
Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
Cloud / Container / Kubernetes Security
When to Use
- Assessing cloud workload or Kubernetes cluster security within an approved scope.
- Reviewing IAM/RBAC configurations for privilege-escalation paths.
适用场景
- 云元数据 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?
Limitations
- Cloud provider API calls may incur cost and trigger alerts; coordinate with the owner.
- Escape-path validation must stay inside disposable lab clusters.
Adapted from zhaoxuya520/reverse-skill (MIT).
常见问题
使用这个工具需要许可吗?
需要。在使用前,你必须获得系统所有者明确的书面许可。未经许可使用属于违法行为。
这个工具会造成损害吗?
这个工具的设计已经尽量保证安全,但在生产环境中测试可能产生费用,或触发告警。建议你在受控的测试环境或实验室中使用。
SSRF、IAM 和 RBAC 是什么意思?
这些都是技术术语。SSRF 是一种攻击类型。IAM 和 RBAC 分别是云环境和 Kubernetes 环境中的权限控制系统,决定谁可以访问什么。这个工具会检查这些系统的配置是否正确。
详情
作者的原始描述
Authorized cloud, container, and Kubernetes security assessment: metadata SSRF, IAM misconfiguration, container escape paths, and cluster RBAC review.
热度
- GitHub 星标
- 48k
- 排名
- #4163
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。