본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)48k · #4163

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에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cloud-k8s/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Kubernetes 클러스터(IP 주소 192.168.1.100)의 보안을 점검해 주세요. 서면 허가를 받았습니다.”

매주 새 스킬 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:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. 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.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4163
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬