Security Research - Team Mode Vulnerability Audit
Use this skill to run a parallel security audit that separates real exploitability from generic concern. The team has 3 vulnerability hunters and 2 PoC engineers.
Hard Preconditions
Before starting, verify:
team_* tools are available. If not, stop and tell the user:
security-research requires team-mode. Set team_mode.enabled: true in your oh-my-openagent config, restart opencode, then retry.
- You are in the main session, not a background subagent.
- You have a concrete target: repository, diff range, PR, release candidate, path list, or threat surface.
If the user provided no target, audit the current repository and current branch diff against its upstream or merge base. If there is no diff, audit the security-sensitive surfaces in the working tree.
Severity Standard
Use these references as the scoring frame:
Rules:
- No severity without an attack path.
- No critical or high finding without concrete exploit preconditions and impact.
- Keep CWE category separate from severity.
- Prefer a small, reproducible PoC over theoretical language.
- Never run destructive exploits against real services or third-party systems.
- Use local fixtures, toy payloads, dry runs, or static proof when real execution would be unsafe.
Team Roster
Create one Team Mode run with these 5 members:
| Member |
Kind |
Category |
Role |
surface-hunter |
category |
deep |
Map entry points, trust boundaries, and reachable attack surfaces. |
auth-data-hunter |
category |
ultrabrain |
Hunt auth, authorization, data isolation, injection, and secret handling flaws. |
runtime-supply-hunter |
category |
unspecified-high |
Hunt filesystem, subprocess, archive, dependency, hook, MCP, and config risks. |
poc-engineer-a |
category |
unspecified-high |
Build minimal PoCs for the strongest candidate findings. |
poc-engineer-b |
category |
deep |
Independently reproduce, falsify, or downgrade candidate findings. |
Call team_create with an inline spec:
team_create({
inline_spec: {
name: "security-research",
description: "Parallel exploitability-driven security research team.",
members: [
{
name: "surface-hunter",
kind: "category",
category: "deep",
prompt: "You map attack surface. Enumerate entry points, trust boundaries, attacker-controlled inputs, data sinks, privilege transitions, and sensitive assets. Return evidence with file paths and exact functions. Do not assign severity unless you can name an attack path."
},
{
name: "auth-data-hunter",
kind: "category",
category: "ultrabrain",
prompt: "You hunt auth, authorization, tenant/data isolation, injection, SSRF, credential exposure, and confused-deputy flaws. Reason from attacker capability to impact. Return only findings with concrete exploit preconditions, CWE candidates, and verification steps."
},
{
name: "runtime-supply-hunter",
kind: "category",
category: "unspecified-high",
prompt: "You hunt filesystem, subprocess, archive extraction, dependency, hook execution, MCP, config, and environment-variable risks. Check path traversal, command injection, unsafe downloads, permission boundaries, and supply-chain assumptions. Cite file paths and commands used."
},
{
name: "poc-engineer-a",
kind: "category",
category: "unspecified-high",
prompt: "You build minimal safe PoCs for candidate findings. Use toy inputs and local-only execution. Your job is to prove or disprove exploitability, not to broaden scope. Report exact reproduction steps and expected output."
},
{
name: "poc-engineer-b",
kind: "category",
category: "deep",
prompt: "You independently reproduce candidate findings and try to falsify them. Downgrade anything without a working path. If a PoC is unsafe to run, design a safe static or dry-run proof and explain the limit."
}
]
}
})
If a category is unavailable, retry once by replacing only that category with unspecified-high. Do not reduce the team below 5 members.
Workflow
Phase 0: Scope and Baseline
Collect:
- Target scope and reason for audit.
- Branch, base ref, diff, and changed files if this is a change review.
- Security-sensitive directories and files if this is a full-repo audit.
- Existing tests and commands that exercise relevant surfaces.
- Any user-stated constraints, such as no network calls or no destructive tests.
Use rg, git diff, git log, LSP, and existing tests before assigning work.
Phase 1: Independent Hunter Pass
Send one prompt to the 3 hunters:
Audit target:
{target summary}
Context:
{diff, file list, security-sensitive paths, known constraints}
Task:
Find candidate vulnerabilities in your assigned role. For each candidate include:
- title
- affected file/function
- attacker capability
- attack path
- impact
- CWE candidate
- exact evidence
- safe verification idea
Reject generic hardening advice. Return only candidates with a plausible path.
Wait for all hunters.
Phase 2: PoC Pass
Deduplicate hunter candidates. Send the strongest candidates to both PoC engineers.
Each PoC engineer must return:
- Reproduced, falsified, or unsafe-to-run.
- Exact commands, fixtures, or static proof.
- Observed output or reason it fails.
- Severity recommendation using exploitability and impact.
- Downgrade rationale for anything not reproduced.
Phase 3: Cross-Check
Send the PoC results back to all 5 members.
Ask every member:
- Which findings survive?
- Which findings should be downgraded or removed?
- What remediation is smallest and specific?
- What regression test would prevent recurrence?
Phase 4: Final Report
Produce this report:
## Security Research Result
### Verdict
PASS | PASS WITH FINDINGS | BLOCK
### Scope
- Target:
- Base/diff:
- Commands run:
### Findings
| Severity | Title | CWE | Exploitability | Impact | PoC | Fix |
|----------|-------|-----|----------------|--------|-----|-----|
### Finding Details
For each finding:
- Evidence:
- Attack path:
- PoC:
- Severity rationale:
- Minimal fix:
- Regression check:
### Downgraded or Rejected Candidates
| Candidate | Reason |
|-----------|--------|
### Residual Risk
- What was not tested and why.
Output Rules
- Lead with the verdict.
- Do not bury blocking issues.
- Do not report speculative findings as vulnerabilities.
- Do not claim CVSS precision unless you actually scored the metrics.
- Include exact file paths and commands for every surviving finding.
- If no findings survive PoC, say that plainly and list residual risk.
1---2name: security-research3description: Team Mode security research skill. Orchestrates 3 vulnerability hunters and 2 PoC engineers to audit a codebase in parallel, prove exploitability, classify root causes, and calibrate severity by actual exploitability. Use for security review, vulnerability research, exploitability audit, pre-release security check, threat model validation, and `/security-research`. Triggers: 'security-research', 'security research', 'security review', 'vulnerability audit', 'exploitability audit', '보안 리뷰', '취약점 감사'.4---5
6# Security Research - Team Mode Vulnerability Audit
7
8Use this skill to run a parallel security audit that separates real exploitability from generic concern. The team has 3 vulnerability hunters and 2 PoC engineers.
9
10## Hard Preconditions
11
12Before starting, verify:
13
141. `team_*` tools are available. If not, stop and tell the user:
15 `security-research requires team-mode. Set team_mode.enabled: true in your oh-my-openagent config, restart opencode, then retry.`
162. You are in the main session, not a background subagent.
173. You have a concrete target: repository, diff range, PR, release candidate, path list, or threat surface.
18
19If the user provided no target, audit the current repository and current branch diff against its upstream or merge base. If there is no diff, audit the security-sensitive surfaces in the working tree.
20
21## Severity Standard
22
23Use these references as the scoring frame:
24
25- CWE for root-cause weakness classification: https://cwe.mitre.org/
26- OWASP WSTG for test methodology: https://devguide.owasp.org/en/06-verification/01-guides/01-wstg/
27- OWASP ASVS for control verification: https://owasp.org/www-project-application-security-verification-standard/
28- CVSS v4.0 for exploitability and impact scoring: https://www.first.org/cvss/v4.0/specification-document
29
30Rules:
31
32- No severity without an attack path.
33- No critical or high finding without concrete exploit preconditions and impact.
34- Keep CWE category separate from severity.
35- Prefer a small, reproducible PoC over theoretical language.
36- Never run destructive exploits against real services or third-party systems.
37- Use local fixtures, toy payloads, dry runs, or static proof when real execution would be unsafe.
38
39## Team Roster
40
41Create one Team Mode run with these 5 members:
42
43| Member | Kind | Category | Role |
44|--------|------|----------|------|
45| `surface-hunter` | category | `deep` | Map entry points, trust boundaries, and reachable attack surfaces. |
46| `auth-data-hunter` | category | `ultrabrain` | Hunt auth, authorization, data isolation, injection, and secret handling flaws. |
47| `runtime-supply-hunter` | category | `unspecified-high` | Hunt filesystem, subprocess, archive, dependency, hook, MCP, and config risks. |
48| `poc-engineer-a` | category | `unspecified-high` | Build minimal PoCs for the strongest candidate findings. |
49| `poc-engineer-b` | category | `deep` | Independently reproduce, falsify, or downgrade candidate findings. |
50
51Call `team_create` with an inline spec:
52
53```typescript
54team_create({
55 inline_spec: {
56 name: "security-research",
57 description: "Parallel exploitability-driven security research team.",
58 members: [
59 {
60 name: "surface-hunter",
61 kind: "category",
62 category: "deep",
63 prompt: "You map attack surface. Enumerate entry points, trust boundaries, attacker-controlled inputs, data sinks, privilege transitions, and sensitive assets. Return evidence with file paths and exact functions. Do not assign severity unless you can name an attack path."
64 },
65 {
66 name: "auth-data-hunter",
67 kind: "category",
68 category: "ultrabrain",
69 prompt: "You hunt auth, authorization, tenant/data isolation, injection, SSRF, credential exposure, and confused-deputy flaws. Reason from attacker capability to impact. Return only findings with concrete exploit preconditions, CWE candidates, and verification steps."
70 },
71 {
72 name: "runtime-supply-hunter",
73 kind: "category",
74 category: "unspecified-high",
75 prompt: "You hunt filesystem, subprocess, archive extraction, dependency, hook execution, MCP, config, and environment-variable risks. Check path traversal, command injection, unsafe downloads, permission boundaries, and supply-chain assumptions. Cite file paths and commands used."
76 },
77 {
78 name: "poc-engineer-a",
79 kind: "category",
80 category: "unspecified-high",
81 prompt: "You build minimal safe PoCs for candidate findings. Use toy inputs and local-only execution. Your job is to prove or disprove exploitability, not to broaden scope. Report exact reproduction steps and expected output."
82 },
83 {
84 name: "poc-engineer-b",
85 kind: "category",
86 category: "deep",
87 prompt: "You independently reproduce candidate findings and try to falsify them. Downgrade anything without a working path. If a PoC is unsafe to run, design a safe static or dry-run proof and explain the limit."
88 }
89 ]
90 }
91})
92```
93
94If a category is unavailable, retry once by replacing only that category with `unspecified-high`. Do not reduce the team below 5 members.
95
96## Workflow
97
98### Phase 0: Scope and Baseline
99
100Collect:
101
102- Target scope and reason for audit.
103- Branch, base ref, diff, and changed files if this is a change review.
104- Security-sensitive directories and files if this is a full-repo audit.
105- Existing tests and commands that exercise relevant surfaces.
106- Any user-stated constraints, such as no network calls or no destructive tests.
107
108Use `rg`, `git diff`, `git log`, LSP, and existing tests before assigning work.
109
110### Phase 1: Independent Hunter Pass
111
112Send one prompt to the 3 hunters:
113
114```text
115Audit target:
116{target summary}
117
118Context:
119{diff, file list, security-sensitive paths, known constraints}
120
121Task:
122Find candidate vulnerabilities in your assigned role. For each candidate include:
123- title
124- affected file/function
125- attacker capability
126- attack path
127- impact
128- CWE candidate
129- exact evidence
130- safe verification idea
131
132Reject generic hardening advice. Return only candidates with a plausible path.
133```
134
135Wait for all hunters.
136
137### Phase 2: PoC Pass
138
139Deduplicate hunter candidates. Send the strongest candidates to both PoC engineers.
140
141Each PoC engineer must return:
142
143- Reproduced, falsified, or unsafe-to-run.
144- Exact commands, fixtures, or static proof.
145- Observed output or reason it fails.
146- Severity recommendation using exploitability and impact.
147- Downgrade rationale for anything not reproduced.
148
149### Phase 3: Cross-Check
150
151Send the PoC results back to all 5 members.
152
153Ask every member:
154
155- Which findings survive?
156- Which findings should be downgraded or removed?
157- What remediation is smallest and specific?
158- What regression test would prevent recurrence?
159
160### Phase 4: Final Report
161
162Produce this report:
163
164```markdown
165## Security Research Result
166
167### Verdict
168PASS | PASS WITH FINDINGS | BLOCK
169
170### Scope
171- Target:
172- Base/diff:
173- Commands run:
174
175### Findings
176| Severity | Title | CWE | Exploitability | Impact | PoC | Fix |
177|----------|-------|-----|----------------|--------|-----|-----|
178
179### Finding Details
180For each finding:
181- Evidence:
182- Attack path:
183- PoC:
184- Severity rationale:
185- Minimal fix:
186- Regression check:
187
188### Downgraded or Rejected Candidates
189| Candidate | Reason |
190|-----------|--------|
191
192### Residual Risk
193- What was not tested and why.
194```
195
196## Output Rules
197
198- Lead with the verdict.
199- Do not bury blocking issues.
200- Do not report speculative findings as vulnerabilities.
201- Do not claim CVSS precision unless you actually scored the metrics.
202- Include exact file paths and commands for every surviving finding.
203- If no findings survive PoC, say that plainly and list residual risk.