ワンクリックで
redteam
Active exploit verification — writes and runs throwaway exploit tests to confirm or disprove security findings
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Active exploit verification — writes and runs throwaway exploit tests to confirm or disprove security findings
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Process autonomous task queue from do-work/ folder
Enter plan mode for complex tasks (pour energy into the plan for 1-shot implementation)
Initiate autonomous PR review process with Codex agent
Run comprehensive repo assessment with Codex (every 3 PRs)
Comprehensive security audit covering 10 threat categories
Install all automation for a new repo (git hooks + GitHub Actions)
| name | redteam |
| description | Active exploit verification — writes and runs throwaway exploit tests to confirm or disprove security findings |
Created: 2026-02-25-00-00 Last Updated: 2026-02-25-00-00
Active exploit verification for security findings. Instead of pattern-matching (like /security-review), this skill writes and executes throwaway exploit tests to confirm or disprove vulnerabilities.
Use after /security-review to verify Critical/High findings, or standalone for targeted exploit testing.
/redteam # Full verification (all 8 categories)
/redteam --quick # Categories 1-2 only (injection + auth bypass). ~5 min.
/redteam --focus injection # Single category deep-dive
Technique: Import target module, pass SQL/command/path traversal payloads, check if processed unsafely.
Exploits:
' OR 1=1--, '; DROP TABLE users--, 1 UNION SELECT * FROM credentials to database-facing functions; cat /etc/passwd, $(whoami), `id` to functions that build shell commands../../../etc/passwd, ....//....//etc/passwd, %2e%2e%2f to file-serving functions{{7*7}}, ${7*7}, <%= 7*7 %> to template-rendering functions\r\nX-Injected: true to functions that set HTTP headersVerification: If the payload is processed without sanitization (query executes, file is read, command runs), the finding is CONFIRMED.
Technique: Call authenticated handlers without auth, with expired auth, or with another user's credentials.
Exploits:
exp in the past, verify it's still acceptedviewer role token on an admin endpointVerification: If the handler returns success (200/201) or modifies data without valid auth, the finding is CONFIRMED.
Technique: Verify that detected secret patterns are real credentials, not test fixtures or examples.
Checks:
sk-test-12345 are low entropy.ghp_ + 36 alphanumeric chars)sk-test-, pk-test-, fake-, example- prefixes indicate test valuesVerification: If the secret matches provider format, has high entropy, and is not in a test context, it is CONFIRMED as a real credential.
Technique: Pass internal URLs and metadata endpoints to fetch/request functions.
Exploits:
http://127.0.0.1, http://localhost, http://[::1] to URL-accepting functionshttp://169.254.169.254/latest/meta-data/ (AWS), http://metadata.google.internal/ (GCP)http://10.0.0.1, http://192.168.1.1 to verify internal network access127.0.0.1file:///etc/passwd, gopher://, dict:// to URL handlersVerification: If the function makes the request without URL validation/allowlisting, the finding is CONFIRMED.
Technique: Pass crafted payloads to deserialization functions.
Exploits:
pickle.loads() a crafted payload that would execute os.system() (verify the function accepts arbitrary bytes, don't actually execute)!!python/object/apply:os.system ['echo pwned'] to yaml.load() (without SafeLoader){"__proto__": {"isAdmin": true}} to JSON merge/assign functions<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]> to XML parsersObjectInputStream.readObject()Verification: If the deserializer processes the payload without safe loading/validation, the finding is CONFIRMED.
Technique: Verify weak algorithm constants, key lengths, and IV reuse.
Checks:
Math.random()/random.random(): Verify used for security-sensitive values (tokens, session IDs)Verification: Write a test that instantiates the crypto function and asserts the weak parameter. If the assertion passes, the finding is CONFIRMED.
Technique: Fire N parallel calls and check for data corruption or double-processing.
Exploits:
Verification: Use Promise.all (JS), asyncio.gather (Python), or sync.WaitGroup (Go) to fire concurrent calls. If the result is inconsistent across runs, the finding is CONFIRMED.
Technique: Check for debug endpoints, admin panels, and verbose errors accessible without auth.
Checks:
/debug, /_debug, /debug/pprof are accessible/admin, /dashboard, /internal respond without auth/swagger, /docs, /graphql (with introspection) are accessible/health, /status, /info expose environment variables or versionsVerification: If the endpoint returns sensitive information without authentication, the finding is CONFIRMED.
/security-review findings OR do quick standalone scan__redteam_exploit_<N>.test.{ts,py,go}
b. Run with project's test runner
c. Record: CONFIRMED / DISPROVED / INCONCLUSIVE__redteam_exploit_* filesgit status to confirm no artifacts remain--quick: Categories 1-2 only (injection + auth bypass). ~5 min.--focus <cat>: Single category. Options: injection, auth, secrets, ssrf, deserialization, crypto, race, config.__redteam_* artifacts on completion. Verify with git status.## Red Team Report - [date]
**Scope:** Full / Quick / Focus: [category]
**Input:** /security-review findings / standalone scan
**Findings tested:** N Critical/High
### Summary
| # | Finding | Category | Original Severity | Result | New Severity |
|---|---------|----------|------------------|--------|-------------|
| 1 | SQL injection in user query | Injection | High | CONFIRMED | Critical |
| 2 | Missing auth on /admin | Auth | High | DISPROVED | Low |
### Confirmed Vulnerabilities
**[CRITICAL] SQL injection in user query**
- File: `src/db/users.ts:42`
- Exploit: Passed `' OR 1=1--` to `findUser()`, query returned all users
- Impact: Full database read access via user input
- Fix: Use parameterized queries
### Disproved Findings
**[DOWNGRADED: High -> Low] Missing auth on /admin**
- Original finding: `/admin` endpoint has no auth middleware
- Test result: Endpoint returns 404 in production config (only registered in dev)
- New assessment: Low risk (dev-only route)
### Inconclusive
- [Findings that couldn't be verified with available context]
### Cleanup Verification
- `__redteam_exploit_*` files: 0 remaining
- `git status`: clean (no untracked exploit artifacts)
/security-review -- Pattern-matching security audit (run first, then /redteam to verify)/bug-review --reproduce -- Bug reproduction (similar approach for correctness bugs)/fuzz -- Property-based testing (complements red teaming with random inputs)