/sitf:red-team-flow <engagement-name> [--file path | --url url | paste report text]from SITF - SDLC Infrastructure Threat Framework
Maps red team, pentest, or purple team engagement findings against SDLC infrastructure (CI/CD, GitHub Actions, GitLab, VCS, registries, build systems) to SITF techniques and generates an attack flow JSON with defensive recommendations. Accepts report files, URLs, or pasted text.
Ships in SITF - SDLC Infrastructure Threat Framework. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate SITF-compliant attack flow JSON files from red team or penetration testing reports.
/red-team-flow <engagement-name> [source]
engagement-name: Identifier for the engagement (e.g., "acme-2026q1", "client-sdlc-audit")source: One of:
--file <path>: Path to report file (markdown, txt, json, pdf)--url <url>: URL to report or findings pageArguments: $ARGUMENTS
This skill runs either inside the SITF repository or, when installed as the sitf Claude Code plugin, inside any other project. Resolve the SITF root once before starting:
techniques.json and build-techniques.py, you are in the SITF repository: the SITF root is the project root.${CLAUDE_PLUGIN_ROOT}. (If that placeholder appears literally, unresolved, the plugin is not installed; fetch the library from https://wiz-sec-public.github.io/SITF/techniques.json instead and read example flows from https://github.com/wiz-sec-public/SITF/tree/main/flows.)Every reference below to techniques.json, flows/..., or app/... means that path under the SITF root. Never write into the plugin directory.
The skill accepts red team and pentest reports in various formats:
The skill looks for these common report patterns:
When this skill is invoked:
If --file specified:
If --url specified:
If no source specified:
Normalize the input:
Read techniques.json to get the full SITF technique library.
For each finding/attack step, find the best matching technique:
If no matching SITF technique exists:
"type": "technique-gap"customLabel and connect the entry point directly to the first in-scope techniqueFor pentest reports with isolated findings (not chained):
Contributing conditions (a misconfiguration that enabled a step but wasn't an action the team took, e.g. tokens written to logs): show as a technique node only if it carries useful controls. Prefix its customLabel with "Contributing:" and connect it with a dashed edge (see /attack-flow Phase 4)
Apply these layout rules (consistent with /attack-flow):
top target handle and a bottom source handle (app/visualizer.html). Entry points expose right/bottom sources, exit points left/top targetssourceHandle: "bottom", targetHandle: "top" within a component. For cross-component edges, right/left is the convention, but on technique nodes it falls back to bottom/top. Don't design layouts that rely on side connections"type": "smoothstep" for all edges/attack-flow Phase 4"label": "")customLabel / evidence, never on edges"labelStyle": { "fill": "#DC2626", "fontWeight": 600, "fontSize": 10 } and a transparent "labelBgStyle": { "fill": "#FFFFFF", "fillOpacity": 0 }Generate attack flow JSON with this structure (identical to /attack-flow output):
{
"metadata": {
"name": "Engagement Name",
"title": "Canvas Display Title",
"created": "ISO-8601 timestamp",
"version": "1.0",
"framework": "SITF",
"source": "red-team-report",
"description": "Brief engagement description"
},
"nodes": [],
"edges": []
}
Metadata field guidelines:
name: Short identifier (e.g., "acme-2026q1", "client-sdlc-audit")title: Concise canvas title, max 5-7 words (e.g., "ACME CI/CD Pipeline Assessment", "Client SDLC Red Team Q1")description: One sentence summary, max 150 charactersNode types (same as /attack-flow):
entryPoint: How the engagement started (Assumed Breach, External Attacker, Insider, etc.)component: SITF component container (endpoint, vcs, cicd, registry, production)technique: Attack technique from techniques.jsontechnique-gap: Placeholder for missing SITF techniqueexitPoint: Engagement outcome (Data Exfiltration, Persistence, Supply Chain Compromise, etc.)Special metadata for red team flows:
"source": "red-team-report" to metadata"engagement" field if client/engagement name is known"scope" array listing in-scope components{
"id": "technique-c003-1",
"type": "technique",
"position": { "x": 95, "y": 160 },
"data": {
"id": "T-C003",
"name": "PWN Request / Poisoned Pipeline Execution",
"component": "cicd",
"stage": "Initial Access",
"description": "Full description from techniques.json",
"risks": ["risk1", "risk2"],
"controls": { "protective": [], "detective": [] },
"customLabel": "Exploited workflow in repo X",
"evidence": "PR #142 triggered workflow with write permissions",
"severity": "Critical"
},
"zIndex": 10,
"width": 160,
"height": 96
}
After generating the flow, analyze defensive gaps:
For each technique used in the attack:
Generate a Controls Gap Summary:
| Technique | Missing Control | OWASP SPVS |
|-----------|-----------------|------------|
| T-C003 | Minimal workflow permissions | V3.1 |
| T-C005 | Log sanitization | V2.5 |
Prioritize recommendations by:
Run this checklist before outputting:
[ ] Valid JSON structure (parse test passes)
[ ] Required fields: metadata.{name,title,created,version,framework,source}, nodes[], edges[]
[ ] All node IDs are unique
[ ] All edge source/target reference valid node IDs
[ ] Technique nodes use data.id and data.name (NOT techniqueId/label)
[ ] Technique nodes include full risks[] and controls from techniques.json
[ ] All techniques centered within components (x = component.x + 45)
[ ] Component heights adequate for technique count
[ ] Out-of-scope findings noted but not forced into SITF
[ ] Evidence preserved in customLabel or evidence fields
[ ] Exit points connected to terminal techniques
[ ] No orphaned nodes: every non-entry node has an incoming edge, EXCEPT roots marked "Contributing:"
[ ] Edge labels: at most 3-5 non-empty, each 1-2 words, transparent background
[ ] No client-identifying details unless the user confirmed the flow stays private
flows/red-team/<engagement-name>.json when running in the SITF repository. In any other project, write it to sitf-flows/<engagement-name>.json under the current project root and tell the user to open it with Import in the SITF flow builder (https://wiz-sec-public.github.io/SITF/visualizer.html)python3 -c "import json; json.load(open('file'))"## Red Team Flow: <engagement-name>
### Attack Chain
1. Initial Access via [entry point]
2. [Technique] → [Technique] → ...
3. Impact: [exit point]
### Techniques Used
| ID | Name | Component | Evidence |
|----|------|-----------|----------|
| T-C003 | PWN Request | CI/CD | PR #142 |
| ... | ... | ... | ... |
### Control Gaps Identified
| Missing Control | Would Prevent | Priority |
|-----------------|---------------|----------|
| Minimal workflow permissions | T-C003, T-C005 | High |
| ... | ... | ... |
### Out-of-Scope Findings
- [Finding X]: Generic cloud attack, see MITRE ATT&CK T1078
### Technique Gaps
- [Finding Y]: No matching SITF technique, run `/technique-proposal`
/technique-proposal for eachRed team reports are usually confidential, and flows may end up in a public repo or PR. Unless the user says otherwise, use a neutral engagement name, and leave client names, internal hostnames, account names and real secrets out of labels, evidence and metadata.
Users often adjust the layout in the visualizer and save over the file, then ask for more changes.
metadata.name to "Attack Flow" and drops title/description (check source, engagement and scope too). Check the metadata after every user save and restore it/red-team-flow acme-2026q1 --file ./reports/acme-final-report.md
/red-team-flow client-audit --url https://internal.wiki/engagements/client-findings
/red-team-flow demo-engagement
We started with access to a developer laptop (assumed breach). Found GitHub
PAT in ~/.config/gh/hosts.yml. Used the token to access private repos and
discovered hardcoded AWS credentials in a workflow file. The AWS creds had
admin access to production S3 buckets. We exfiltrated customer data as POC.
Red Team Reports (attack chains):
Pentest Reports (isolated findings):
The skill auto-detects based on report structure:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/attack-flowMap a software supply chain, CI/CD, or SDLC security incident to SITF (SDLC Infrastructure Threat Framework) techniques and generate an attack flow JSON for the SITF flow builder, with the risks and controls that would have stopped it. Use when analyzing or reconstructing an attack on developer endpoints or IDEs, GitHub/GitLab repositories, GitHub Actions or other CI/CD pipelines, package or container registries (npm, PyPI, Docker), or build and release infrastructure, such as compromised packages, poisoned pipelines, or stolen CI secrets./technique-proposalPropose a new SITF (SDLC Infrastructure Threat Framework) technique, with enabling risks, protective and detective controls, and OWASP SPVS and MITRE ATT&CK mappings, as a PR-ready techniques.json entry. Use when an attack step against CI/CD, VCS, registry, developer endpoint, or production cloud infrastructure does not map to an existing SITF technique, typically after /attack-flow or /red-team-flow reports technique gaps.npx claudepluginhub wiz-sec-public/sitf --plugin sitfOther plugins' skills for the same job