vulnerability-validation
This skill validates security vulnerabilities from the commit-security-scan by analyzing reachability, data flow, and control flow to confirm exploitability…
Identity proven by GitHub's verified organisation badge (Factory-AI)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode
- License
- MIT (permissive)
- Pin
- 21a74depinned Oct 9, 2026
- Context cost
- about 2,600 tokenswhen the skill loads
- GitHub stars
- 8on factory-ai/skills
- Scripts
- None found
What it does
“Validate security findings from commit-security-scan by assessing exploitability, filtering false positives, and generating proof-of-concept exploits. Use after running commit-security-scan to confirm vulnerabilities.”
Generated summary from the skill's own text
This skill validates security vulnerabilities from the commit-security-scan by analyzing reachability, data flow, and control flow to confirm exploitability and filter false positives. It generates proof-of-concept exploits and CVSS scores for confirmed vulnerabilities, outputting a detailed validation report with findings classified as confirmed, likely, false positives, or requiring manual review.
When to use it
- After running commit-security-scan to validate findings before action
- For HIGH and CRITICAL severity findings needing exploitability confirmation
- Before investing engineering effort in patching reported vulnerabilities
- During security reviews requiring deep analysis of specific findings
When not to
- When threat-model.md or security-findings.json files do not exist
- For vulnerabilities in dependencies without source code access
- As a replacement for professional security audits or penetration testing
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add factory-ai/skills --skill vulnerability-validationInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install factory-ai/skills vulnerability-validation@21a74dec467a1424e3e067712d004cd987d6a0ceInstalls the commit we checked (21a74de).
Copy by hand
Download the folder at 21a74de and put it in .claude/skills/vulnerability-validation for Claude Code and in .agents/skills/vulnerability-validation for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "vulnerability-validation" by Factory. Source, pinned to commit 21a74dec467a1424e3e067712d004cd987d6a0ce: https://github.com/factory-ai/skills/tree/21a74dec467a1424e3e067712d004cd987d6a0ce/skills/vulnerability-validation 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/vulnerability-validation/ for Claude Code and .agents/skills/vulnerability-validation/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/factory/vulnerability-validation
SKILL.md at the pin
---
name: vulnerability-validation
description: Validate security findings from commit-security-scan by assessing exploitability, filtering false positives, and generating proof-of-concept exploits. Use after running commit-security-scan to confirm vulnerabilities.
version: 1.0.0
tags: [security, validation, exploitability]
---
# Vulnerability Validation
Validate security findings by assessing whether they are actually exploitable in the context of this codebase. This skill filters false positives, confirms real vulnerabilities, and generates proof-of-concept exploits.
## When to Use This Skill
- **After commit-security-scan** - Validate findings before creating issues or blocking PRs
- **HIGH/CRITICAL findings** - Prioritize validation of severe findings
- **Before patching** - Confirm vulnerability is real before investing in fixes
- **Security review** - Deep-dive validation of specific findings
## Prerequisites
- `.factory/threat-model.md` must exist (from `threat-model-generation` skill)
- `security-findings.json` must exist (from `commit-security-scan` skill)
## Inputs
| Input | Description | Required | Default |
| --------------- | ------------------------------------------------ | -------- | -------------------------- |
| Findings file | Path to `security-findings.json` | Yes | `security-findings.json` |
| Threat model | Path to threat model | No | `.factory/threat-model.md` |
| Finding IDs | Specific findings to validate (comma-separated) | No | All findings |
| Severity filter | Only validate findings at or above this severity | No | All severities |
## Instructions
Follow these steps for each finding to validate:
### Step 1: Load Context
1. Read `security-findings.json` from `commit-security-scan`
2. Read `.factory/threat-model.md` for system context
3. Identify which findings to validate based on inputs
### Step 2: Reachability Analysis
For each finding, determine if the vulnerable code is reachable:
1. **Trace entry points**
- Can external users reach this code path?
- What HTTP endpoints, CLI commands, or event handlers lead here?
- Is authentication required to reach this code?
2. **Map the call chain**
- Starting from the entry point, trace the path to the vulnerable code
- Document each function call in the chain
- Note any branching conditions that must be satisfied
3. **Classify reachability**
- `EXTERNAL` - Reachable from unauthenticated external input
- `AUTHENTICATED` - Requires valid user session
- `INTERNAL` - Only reachable from internal services
- `UNREACHABLE` - Dead code or blocked by conditions
### Step 3: Control Flow Analysis
Determine if an attacker can control the vulnerable input:
1. **Identify the source**
- Where does the tainted data originate?
- HTTP parameter, file upload, database query, environment variable?
2. **Trace data flow**
- Follow the data from source to sink (vulnerable function)
- Document each transformation or validation step
- Note any sanitization, encoding, or type conversion
3. **Assess attacker control**
- Can the attacker fully control the input?
- Are there length limits, character restrictions, or format validation?
- Does the data pass through any sanitization?
### Step 4: Mitigation Assessment
Check if existing security controls prevent exploitation:
1. **Input validation**
- Is the input validated before reaching the vulnerable code?
- What validation rules are applied?
2. **Framework protections**
- Does the framework provide automatic protection? (e.g., ORM parameterization, React XSS escaping)
- Is the protection enabled and properly configured?
3. **Security middleware**
- Are there WAF rules, rate limiting, or other controls?
- Do CSP headers or other browser protections apply?
4. **Reference threat model**
- Check the "Existing Mitigations" section for this threat type
- Verify mitigations are actually in place
### Step 5: Exploitability Assessment
Determine how difficult it is to exploit:
| Rating | Criteria |
| ----------------- | ------------------------------------------------------------------- |
| `EASY` | No special conditions, standard tools, publicly known technique |
| `MEDIUM` | Requires specific conditions, timing, or chained vulnerabilities |
| `HARD` | Requires insider knowledge, rare conditions, or advanced techniques |
| `NOT_EXPLOITABLE` | Theoretical vulnerability but not practically exploitable |
Consider:
- Attack complexity
- Required privileges
- User interaction needed
- Scope of impact
### Step 6: Generate Proof-of-Concept
For confirmed vulnerabilities, create a proof-of-concept:
1. **Craft exploit payload**
- Create a minimal payload that demonstrates the vulnerability
- Use benign payloads (no actual damage)
2. **Document the request**
- HTTP method, URL, headers, body
- Or CLI command, file input, etc.
3. **Describe expected vs actual behavior**
- What should happen (secure behavior)
- What actually happens (vulnerable behavior)
Example PoC structure:
```json
{
"payload": "' OR '1'='1",
"request": "GET /api/users?search=' OR '1'='1",
"expected_behavior": "Returns users matching search term",
"actual_behavior": "Returns all users due to SQL injection"
}
```
### Step 7: Calculate CVSS Score
Assign a CVSS 3.1 score based on:
| Metric | Options |
| ------------------------ | -------------------------------------------------- |
| Attack Vector (AV) | Network (N), Adjacent (A), Local (L), Physical (P) |
| Attack Complexity (AC) | Low (L), High (H) |
| Privileges Required (PR) | None (N), Low (L), High (H) |
| User Interaction (UI) | None (N), Required (R) |
| Scope (S) | Unchanged (U), Changed (C) |
| Confidentiality (C) | None (N), Low (L), High (H) |
| Integrity (I) | None (N), Low (L), High (H) |
| Availability (A) | None (N), Low (L), High (H) |
Example: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N` = 9.1 (Critical)
### Step 8: Classify Finding
Based on analysis, classify each finding:
| Status | Meaning |
| --------------------- | ---------------------------------------------- |
| `CONFIRMED` | Vulnerability is real and exploitable |
| `LIKELY` | Probably exploitable but couldn't fully verify |
| `FALSE_POSITIVE` | Not actually a vulnerability (document why) |
| `NEEDS_MANUAL_REVIEW` | Requires human security expert review |
### Step 9: Generate Output
Create `validated-findings.json`:
```json
{
"validation_id": "val-<timestamp>",
"validation_date": "<ISO timestamp>",
"scan_id": "<from security-findings.json>",
"threat_model_version": "<from threat-model.md>",
"validated_findings": [
{
"id": "VULN-001",
"status": "CONFIRMED",
"original_severity": "HIGH",
"validated_severity": "HIGH",
"exploitability": "EASY",
"reachability": "EXTERNAL",
"existing_mitigations": [],
"exploitation_path": [
"User submits search query via GET /api/users?search=<payload>",
"Express router passes query to searchUsers() handler",
"Handler passes unsanitized input to SQL template literal",
"PostgreSQL executes malicious SQL"
],
"proof_of_concept": {
"payload": "' OR '1'='1",
"request": "GET /api/users?search=' OR '1'='1",
"expected_behavior": "Returns users matching search term",
"actual_behavior": "Returns all users due to SQL injection"
},
"cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
"cvss_score": 9.1,
"validation_notes": "Confirmed via code tracing. No input validation or parameterization."
}
],
"false_positives": [
{
"id": "VULN-003",
"original_severity": "MEDIUM",
"reason": "Input is validated by Joi schema in middleware before reaching this code. Schema enforces UUID format which prevents injection.",
"evidence": "See src/middleware/validation.js:45 - Joi.string().uuid()"
}
],
"needs_manual_review": [
{
"id": "VULN-005",
"original_severity": "HIGH",
"reason": "Complex data flow through message queue. Unable to fully trace if sanitization occurs in consumer service."
}
],
"summary": {
"total_analyzed": 10,
"confirmed": 5,
"likely": 2,
"false_positives": 2,
"needs_manual_review": 1,
"by_severity": {
"CRITICAL": 1,
"HIGH": 3,
"MEDIUM": 1,
"LOW": 0
}
}
}
```
## Success Criteria
The skill is complete when:
- [ ] All specified findings have been analyzed
- [ ] Each finding has a status (CONFIRMED, LIKELY, FALSE_POSITIVE, NEEDS_MANUAL_REVIEW)
- [ ] Confirmed findings have exploitation paths documented
- [ ] Confirmed findings have proof-of-concept exploits
- [ ] False positives have clear reasoning
- [ ] `validated-findings.json` is valid JSON
- [ ] CVSS scores are calculated for confirmed findings
## Verification
Run these checks before completing:
```bash
# Verify output exists and is valid JSON
cat validated-findings.json | jq . > /dev/null && echo "✓ Valid JSON"
# Check all findings have status
jq '.validated_findings | all(.status)' validated-findings.json
# Check confirmed findings have PoC
jq '.validated_findings | map(select(.status == "CONFIRMED")) | all(.proof_of_concept)' validated-findings.json
# Check false positives have reasoning
jq '.false_positives | all(.reason)' validated-findings.json
```
## Example Invocations
**Validate all findings:**
```
Validate the security findings from the last scan.
```
**Validate specific findings:**
```
Validate findings VULN-001 and VULN-002 from security-findings.json.
```
**Validate only HIGH/CRITICAL:**
```
Validate all HIGH and CRITICAL severity findings from the security scan.
```
**Validate with specific files:**
```
Validate findings in security-findings.json using threat model at .factory/threat-model.md.
```
## References
- CVSS 3.1 Calculator: https://www.first.org/cvss/calculator/3.1
- OWASP Testing Guide: https://owasp.org/www-project-web-security-testing-guide/
- Examples: `validation-examples.md` (in this skill directory)
- Upstream: `commit-security-scan` skill
- Downstream: `security-patch-generation` skill
From factory-ai/skills at 21a74de, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at 21a74deFiles
- SKILL.md11 KB · 5d26d59e1909
- validation-examples.md14 KB · 86f6f384f0a6
2 files, 25 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 21a74deMore from Factory
autoresearch
This skill runs an autonomous optimization loop to improve a measurable metric through systematic experimentation.
Contains scripts
Claude Code, Codex, Cursor +3 · about 4K tokens · pinned 6 days ago
ban-type-assertions
This skill enables the TypeScript ESLint rule that bans `as` type assertions in a package, replacing them with compiler-verified alternatives like Zod…
Claude Code, Codex, Cursor +4 · about 1.6K tokens · pinned 6 days ago
browser-navigation
This skill enables agents to automate browser interactions including navigation, form filling, element clicking, screenshots, and data extraction from web…
Claude Code, Codex, Cursor +3 · about 2.5K tokens · pinned 6 days ago
create-pr
Creates a pull request with Conventional Commits formatting, templated body, and optional ticket linking.
Claude Code, Codex, Cursor +4 · about 2.2K tokens · pinned 6 days ago
droid-control
Automate terminals, browsers, and desktop applications by routing to specialized drivers for recording, testing, and generating visual demonstrations.
Claude Code · about 3.5K tokens · pinned 6 days ago
fix-knip-unused-exports
Fixes knip unused export violations by identifying their type (test-only, dead barrel re-export, or internally-only-used) and applying the appropriate fix…
Claude Code, Codex, Cursor +4 · about 2.4K tokens · pinned 6 days ago
Related in Security
claude-security
Scans your repository for security issues using Claude, examines code changes or commits for vulnerabilities, and generates patch files to fix findings.
by AnthropicOfficial publisher
Claude Code · about 1K tokens · pinned 6 days ago
sensitive-logging-audit
The skill helps audit and fix sensitive data leaks in Python SDK logging, exceptions, and telemetry by collecting candidate sinks, manually tracing values…
by OpenAIOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 970 tokens · pinned 6 days ago
security-audit
This skill guides security audits of codebases, APIs, and services by finding vulnerabilities that cross real trust boundaries.
by CloudflareOfficial publisher
Contains scripts
Claude Code · about 5.4K tokens · pinned 6 days ago
assess-patch-risk
This skill analyzes patch artifacts to assess their program impact, regression risk, and suitability for automated merging.
by OpenAIOfficial publisher
Codex · about 2.3K tokens · pinned 6 days ago
attack-path-analysis
This skill analyzes security findings to build explicit attack paths from source to sink, calibrates severity, and decides whether each finding is reportable.
by OpenAIOfficial publisher
Codex · about 2.1K tokens · pinned 6 days ago
deep-security-scan
Performs exhaustive, multi-pass security analysis across a repository or scoped directory by running repeated independent security scans and aggregating…
by OpenAIOfficial publisher
Codex · about 3.4K tokens · pinned 6 days ago
Open roles at Factory
5 of 7 open roles on the jobs board
- Solutions Engineer, Enterprise, West
San Francisco, CA, USA (On-site)
- Member of Deployed Staff
San Francisco, CA, United States (On-site)
- Software Engineer, Platform
San Francisco, CA, USA (On-site)
- Research Engineer
San Francisco, CA, USA (On-site)
- Software Engineer, Deployed
San Francisco, CA, USA (On-site)