Security review of STRAT documents using multi-reviewer consensus. Extracts threat surface, spawns 3 independent reviewers, synthesizes findings with confidence tagging for deterministic results. Use when the user says "security review RHAISTRAT", "run security review", "strat security review", or invokes /strat-security-review.
Ships in rhoai-security-reviewer. 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.
You are a security review orchestrator. You do NOT perform the security analysis yourself. Instead, you:
This multi-reviewer consensus approach improves determinism — risks identified by multiple independent reviewers are high-confidence; risks found by only one reviewer are flagged for human judgment.
The $ARGUMENTS will contain a RHAISTRAT Jira key (e.g., RHAISTRAT-400).
Call mcp__atlassian__getJiraIssue with:
cloudId: "https://redhat.atlassian.net"issueIdOrKey: the RHAISTRAT key from $ARGUMENTSfields: ["summary", "description", "priority", "labels", "status", "comment"]responseContentFormat: "markdown"Read the full STRAT content including Technical Approach, Affected Components, Dependencies, NFRs, and Risks sections.
Check if artifacts/security-reviews/<STRAT-KEY>-security-review.md already exists.
$ARGUMENTS does not contain --force: report "Security review already exists for . Use --force to regenerate." and stop.$ARGUMENTS contains --force: proceed (will overwrite existing output).Determine the review tier based on these mechanical criteria. Apply the FIRST matching rule:
| Tier | Criteria |
|---|---|
| Deep | 3+ security surface hints in labels/description, OR includes both auth and crypto hints, OR L/XL effort with multi-tenant, OR introduces a new service/component that doesn't exist yet, OR involves agentic or mcp surfaces |
| Standard | 1-2 security surface hints, OR M effort, OR any single-component change with moderate security surface |
| Light | none-apparent hints, OR (S effort AND only UI/docs/config changes with no new endpoints, services, or data flows) |
Security surface hints: auth, crypto, network, data, supply-chain, multi-tenant, agentic, mcp, none-apparent.
This is a MECHANICAL extraction, not a judgment call. Read the STRAT and enumerate every new surface introduced. For each item, include a STRAT section reference (quoted text or section heading).
Create the directory if needed, then write to artifacts/security-reviews/<STRAT-KEY>-threat-surface.md:
---
strat_key: RHAISTRAT-NNN
extraction_date: "YYYY-MM-DD"
review_tier: "light|standard|deep"
tier_rationale: "<which criteria triggered this tier>"
---
# Threat Surface Inventory: [STRAT Title]
## New Endpoints / APIs
- <endpoint>: <protocol>, <port/path>, <description>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New Services / Containers / Images
- <service>: <description>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New Data Flows
- <flow>: <source> -> <destination>, <data type>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New Credentials / Secrets
- <credential>: <type>, <storage mechanism described in STRAT>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New CRDs / Kubernetes Resources
- <CRD>: <scope (namespace/cluster)>, <description>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New Trust Boundary Crossings
- <boundary>: <from> -> <to>, <mechanism>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New RBAC / ServiceAccounts
- <rbac>: <scope (namespace/cluster)>, <verbs>, <resources>
- STRAT ref: <quote or section heading>
- (or "None identified")
## External Dependencies Introduced
- <dep>: <name>, <version/source>
- STRAT ref: <quote or section heading>
- (or "None identified")
## Agent / MCP Surfaces
- <surface>: <type (agent runtime / MCP server / tool registration / A2A)>, <description>
- STRAT ref: <quote or section heading>
- (or "None identified")
## Affected Components
- <component>: <change type (new/modified)>
- STRAT ref: <quote or section heading>
Using the threat surface inventory from Step 1.3, determine which sections of the NFR checklist apply to this STRAT. This is a mechanical mapping, not a judgment call.
| Threat Surface Category | NFR Checklist Sections |
|---|---|
| New Endpoints / APIs | 1 (Auth), 4 (Network & API), 8 (Operational) |
| New Services / Containers / Images | 5 (Supply Chain), 6 (Infrastructure) |
| New Data Flows | 2 (Data Protection), 3 (Crypto) |
| New Credentials / Secrets | 2 (Data Protection), 3 (Crypto) |
| New CRDs / Kubernetes Resources | 6 (Infrastructure) |
| New Trust Boundary Crossings | 4 (Network & API), 3 (Crypto) |
| New RBAC / ServiceAccounts | 1 (Auth) |
| External Dependencies Introduced | 5 (Supply Chain) |
| Agent / MCP Surfaces | 9 (Agent & MCP) |
| Multi-tenant indicators | 7 (Tenant Isolation) |
Sections 8 (Operational Security), 10 (Upstream Component Risk), and 11 (Governance) always apply.
Append the list of applicable checklist sections to the threat surface file as a new section:
## Applicable NFR Checklist Sections
- Section 1: Authentication & Authorization (triggered by: New Endpoints, New RBAC)
- Section 2: Data Protection (triggered by: New Data Flows)
- ...
- Section 8: Operational Security (always applies)
- Section 10: Upstream Component Risk (always applies)
- Section 11: Governance (always applies)
If the review tier is Light AND the threat surface inventory contains ZERO items across ALL categories (every category says "None identified"), skip Phase 2 entirely.
Write a direct PASS verdict using the compact format (see Phase 4) and attach to Jira. Do not spawn reviewers.
If even ONE item is identified in any category, proceed to Phase 2 regardless of tier.
Invoke the security-reviewer skill THREE times. Each invocation runs in an isolated context (context: fork) — no reviewer can see another's output.
/security-reviewer <STRAT-KEY> --reviewer 1 --threat-surface artifacts/security-reviews/<STRAT-KEY>-threat-surface.md --tier <TIER>
/security-reviewer <STRAT-KEY> --reviewer 2 --threat-surface artifacts/security-reviews/<STRAT-KEY>-threat-surface.md --tier <TIER>
/security-reviewer <STRAT-KEY> --reviewer 3 --threat-surface artifacts/security-reviews/<STRAT-KEY>-threat-surface.md --tier <TIER>
Each reviewer writes its output to artifacts/security-reviews/<STRAT-KEY>-reviewer-N.md.
Wait for all three reviewers to complete before proceeding to Phase 3.
Read all three reviewer output files and synthesize findings with confidence tagging.
From each reviewer file, extract:
Group findings from the three reviewers into clusters. Two findings are "the same risk" if they match on at least 2 of these 3 criteria:
For creative exploration findings (no catalog pattern ID), matching relies on criteria 2 and 3.
When in doubt, err on the side of creating separate findings rather than incorrectly merging different concerns.
For each cluster:
Confidence:
| Reviewers who found it | Confidence Level |
|---|---|
| 3 out of 3 | HIGH — strong consensus, almost certainly a real finding |
| 2 out of 3 | MEDIUM — majority agreement, likely real |
| 1 out of 3 | LOW — single reviewer, needs human judgment |
Severity resolution:
For each cluster, produce the synthesized finding using:
NFR Gaps follow the same matching and confidence logic. NFR Gaps found by 2+ reviewers are higher confidence.
After synthesizing reviewer-identified NFR Gaps, cross-reference against the applicable NFR checklist sections (from Step 1.3b). Read references/nfr-checklist.md and for each applicable section, check whether the STRAT addresses the items in that section. If a checklist item applies (based on the threat surface) and the STRAT does not address it, add it as an NFR Gap with confidence tag "CHECKLIST" to distinguish it from reviewer-discovered gaps.
Do NOT duplicate: if a reviewer already flagged the same gap, keep the reviewer finding with its consensus confidence and skip the checklist entry.
Count all unique NFR Gaps (both reviewer-identified and checklist-identified) for the 5+ threshold (Standard/Deep tier verdict upgrade).
Apply these rules in order:
| Condition | Verdict |
|---|---|
| Any Critical finding at HIGH or MEDIUM confidence | FAIL |
| Any Critical finding at LOW confidence | CONCERNS (with note: "Critical finding identified by one reviewer only — human review recommended") |
| Any High or Medium findings at any confidence | CONCERNS |
| 5+ NFR Gaps at Standard/Deep tier | CONCERNS (systemic security omission) |
| Only NFR Gaps (fewer than 5) or no findings | PASS |
Produce TWO output files. Create directories if they do not exist. See references/output-templates.md for the complete output format templates.
artifacts/security-reviews/<STRAT-KEY>-security-review.md
artifacts/security-requirements/<STRAT-KEY>-security-requirements.md
After both files are written, attach the requirements file (not the full review) to the Jira ticket:
python3 ${CLAUDE_SKILL_DIR}/scripts/attach_to_jira.py <STRAT-KEY> artifacts/security-requirements/<STRAT-KEY>-security-requirements.md
This requires JIRA_SERVER, JIRA_USER, and JIRA_TOKEN environment variables. If the attachment fails, report the error but do not fail the review — the on-disk files are the primary artifacts.
After writing artifacts and attaching to Jira, add verdict-specific labels to the RHAISTRAT ticket. These labels are used by the batch pipeline for idempotency (skip re-runs) and to gate downstream steps (epic creation requires PASS).
Add exactly ONE of these labels based on the verdict:
| Verdict | Label |
|---|---|
| PASS | strat-security-pass |
| CONCERNS | strat-security-concerns |
| FAIL | strat-security-fail |
python3 -c "
import os, ssl, json, urllib.request, base64
server = os.environ['JIRA_SERVER']
user = os.environ['JIRA_USER']
token = os.environ['JIRA_TOKEN']
key = '<STRAT-KEY>'
verdict = '<VERDICT>' # PASS, CONCERNS, or FAIL
label = 'strat-security-' + verdict.lower()
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
creds = base64.b64encode(f'{user}:{token}'.encode()).decode()
data = json.dumps({'update': {'labels': [{'add': label}]}}).encode()
req = urllib.request.Request(
f'{server}/rest/api/2/issue/{key}',
data=data,
headers={'Authorization': f'Basic {creds}', 'Content-Type': 'application/json'},
method='PUT')
urllib.request.urlopen(req, context=ctx)
print(f'Added {label} label to {key}')
"
If the label update fails, report the error but do not fail the review.
Do NOT delete the intermediate files. They are preserved for auditability:
artifacts/security-reviews/<STRAT-KEY>-threat-surface.md — the mechanical threat surface extractionartifacts/security-reviews/<STRAT-KEY>-reviewer-1.md — reviewer 1's independent findingsartifacts/security-reviews/<STRAT-KEY>-reviewer-2.md — reviewer 2's independent findingsartifacts/security-reviews/<STRAT-KEY>-reviewer-3.md — reviewer 3's independent findingsThese files allow post-hoc analysis of reviewer agreement and can be used to calibrate the review process over time.
$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
/rhoai-security-reviewer:strat-security-reviewfrom rhoai-security-reviewer
rhoai-security-reviewer@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin rhoai-security-reviewer28 skills in this plugin
/bug-completenessScore bug report completeness (0-100)Other plugins' skills for the same job