ch015-redteam

A read-only security review for infrastructure files such as Docker settings, CI/CD pipelines, Terraform, Kubernetes manifests, and secret-management configuration. It examines them from an attacker’s perspective and maps possible attack paths to MITRE ATT&CK, a framework for describing attacker techniques.

In plain words
What is it for?
Use it to review infrastructure-as-code, container settings, deployment pipelines, Kubernetes or Helm files, and secret-management designs. It produces an attack-surface map, attack paths, impact analysis, and remediation guidance.
Why use it?
It helps reveal risky configuration and possible routes into your systems without connecting to or scanning live infrastructure.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ch015/code-pentester/redteam
Any agent
npx skills add ch015/code-pentester --skill redteam
Clone the repo
git clone --depth 1 https://github.com/ch015/code-pentester

Made for: Claude Code, Codex.

Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,936 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00041 $0.08936
Opus 5 $0.00020 $0.04468
Sonnet 5 $0.00008 $0.01787
Haiku 4.5 $0.00004 $0.00894

Measured yesterday against content hash 8b90d5dfb133, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

ch015-redteam scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- "hostPath / 마운트 + 비root 컨테이너 → 여전히 /etc/shadow 읽기 가능"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

gap: "WAF에서 169.254.169.254 블록은 하되 DNS rebinding은 미탐"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/ch015/offsec/redteam/SKILL.md · 754 lines

How it starts

The opening of the file, as written. The whole thing — 754 lines — stays where its author put it; the contents beside it link to each section on GitHub.

인프라 설정 보안 리뷰 (Red Team Operations) Skill

인프라/네트워크/배포 레벨의 설정 파일과 IaC를 공격자 관점에서 분석하여 MITRE ATT&CK 프레임워크에 매핑된 공격 경로를 식별합니다.


서비스 개요

항목 내용
서비스명 인프라 설정 보안 리뷰 (Red Team)
방법론 MITRE ATT&CK 매핑 + Kill Chain 관점 설정 분석
출력물 인프라 공격 표면 맵 + Kill Chain + 6-step 영향도 분석 + 수정 가이드
코드 수정 ❌ 없음 (읽기 전용)
외부 스캔 ❌ 없음 (소스코드/설정 분석 기반)
실제 인프라 접근 ❌ 없음 (레포 내 파일만 분석)

역할 범위와 한계

Role_Scope:
  정의: |
    이 스킬은 "인프라 설정 보안 리뷰(Infrastructure Configuration Security Review)"이다.
    실제 인프라에 접근하거나 네트워크 트래픽을 생성하지 않으며,
    레포 내 설정 파일/IaC/CI/CD 파이프라인을 공격자 관점(Kill Chain)으로 분석한다.

  수행_범위:
    - "Dockerfile, docker-compose 등 컨테이너 설정 보안 분석"
    - "GitHub Actions, GitLab CI 등 CI/CD 파이프라인 보안 분석"
    - "Terraform, CloudFormation 등 IaC 보안 분석"
    - "Kubernetes manifest, Helm chart 보안 분석"
    - "시크릿 관리 아키텍처 분석 (Vault, SSM, SA binding 등)"
    - "코드 내 인프라 클라이언트 호출에서 아키텍처 추론"
    - "MITRE ATT&CK Kill Chain 관점 공격 경로 도출"

  수행_불가:
    - "실제 인프라(클라우드, 서버, 네트워크)에 접근 또는 스캔"
    - "실행 중인 서비스에 HTTP 요청 또는 네트워크 패킷 전송"
    - "운영 환경의 실시간 설정 값 확인"
    - "실제 시크릿 유출 테스트 또는 크레덴셜 검증"

  Pentest_차이:
    설명: |
      - Pentest: 실제 HTTP 요청으로 취약점을 라이브 검증 → FP 직접 제거
      - Red Team: 설정 파일을 분석하여 인프라 수준 보상 제어를 확인 → FP 간접 제거
    사용_시점: |
      VA에서 Unverifiable_Infra로 분류된 보상 제어를 설정 파일에서 검증할 때.
      Pentest로 검증할 수 없는 인프라 수준 설정(컨테이너 격리, CI/CD 시크릿 보호 등)이 대상.

  FP_감소_기여:
    직접: "설정에서 확인 가능한 보상 제어 검증 → Effective/Ineffective 판정"
    간접: "Kill Chain 분석으로 복합 공격 경로 식별 → 숨겨진 True Positive 발견"
    한계: "레포에 없는 설정(운영 환경 전용)은 검증 불가 → INCONCLUSIVE"

설계 원칙: 방법론 기반 + 공격 경로 중심

분석 원칙: 방법론, 패턴이 아님

Principles:
  No_Pattern_Lists: |
    "특정 클라우드 서비스 문법, 설정 키, Dockerfile 명령어 목록에 의존하지 않는다.
     이런 목록은 닫힌 집합이며, 목록에 없는 위험을 구조적으로 놓친다."

  Use_Methodology: |
    "행위(무엇이 일어나는가)를 질문하고, AI가 감지된 인프라 스택에 맞는
     구체적 설정 패턴을 자율적으로 판단하여 탐색한다."

  Kill_Chain_Thinking: |
    "개별 설정 결함이 아닌 공격 경로(Kill Chain) 관점으로 분석.
     '이 설정이 안전한가'가 아니라 '이 설정을 활용해 어디까지 도달할 수 있는가'를 질문."

  Representative_Examples: |
    "안티패턴/올바른 패턴은 '대표적 예시'로만 제시.
     분석은 이 예시에 한정되지 않으며 — 동일한 구조적 이슈를 가진
     모든 변형이 탐지되어야 한다."

Read the full file on GitHub · 754 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 754 lines · 41 tokens per session scan C 8b90d5dfb133

Subscribe to this mod's changes

ch015-redteam is a skill published in the GitHub repository ch015/code-pentester (4 stars, last pushed 13d ago), licensed MIT. It adds 41 tokens to every session and 8,936 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 2 findings (reaches for credential files, cloud metadata endpoint). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

codebeacon

Scan a codebase → AST extraction → knowledge graph → wiki + CLAUDE.md context map. Supports 27 frameworks (Spring Boot, NestJS, Django, FastAPI, Flask, Rails, Express, Fastify, Koa, React, Next.js, Vue, Nuxt, Angular, SvelteKit, Gin, Echo, Fiber, Laravel, Actix-Web, Axum, Tauri, Rocket, Warp, ASP.NET Core, Vapor…

Wandererer/codebeacon · 99 tokens

test-harness

Test codeweave-mcp tools against any project using TestHarness. Use this whenever verifying tool behavior, testing a code change, or running custom assertions — e.g. "test the harness", "run tests against X project", "does semanticsearch work correctly".

semihkayan/codeweave-mcp · 57 tokens

nexus-mapper

Generate a persistent .nexus-map/ knowledge base that lets any AI session instantly understand a codebase's architecture, systems, dependencies, and change hotspots. Use when starting work on an unfamiliar repository, onboarding with AI-assisted context, preparing for a major refactoring initiative, or enabling…

Haaaiawd/Nexus-skills · 118 tokens

nexus-query

Precise, instant code structure queries for active development — answer 'who depends on this interface before I refactor it', 'how many modules break if I change this', 'what is the real impact radius of this feature change', 'which module is the true high-coupling hotspot in this legacy codebase'. Essential before…

Haaaiawd/Nexus-skills · 119 tokens

repomix

Pack and analyze codebases into AI-friendly single files using Repomix. Use when the user wants to explore repositories, analyze code structure, find patterns, check token counts, or prepare codebase context for AI analysis. Supports both local directories and remote GitHub repositories.

yamadashy/repomix · 58 tokens

knowledge-base

Create and maintain a Markdown knowledge base that any AI agent can read, search, and update. Use when the user wants to start a knowledge base, add or update notes, organize docs/notes for an agent or LLM to consume, build an index of notes, or run a cleanup/maintenance pass on an existing MD knowledge base. Triggers…

wonderwhy-er/DesktopCommanderMCP · 112 tokens