ajtazer/heckit / skills/cve-hunting/advisory-mining
advisory-mining
VerifiedMine GitHub Security Advisories and CVE databases for incomplete fixes, finding variant vulnerabilities in patched code or similar patterns in related packages.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.3 KB |
| references/diff-analysis.md | markdown | 1.8 KB |
| references/ghsa-api.md | markdown | 2.0 KB |
references/diff-analysis.md
View on GitHub# Diff Analysis -- Reading Security Patches
## How to Read a Security Fix Diff
### Step 1: Identify What Changed
```bash
git show <fix_commit> --stat # Files changed
git show <fix_commit> # Full diff
```
### Step 2: Categorize the Fix
| Fix Type | What to Look For |
|----------|-----------------|
| Input validation added | New regex, allowlist, or blocklist |
| Sanitization added | New escape/encode function call |
| Configuration changed | Default changed to safe value |
| Code path removed | Dangerous function removed entirely |
| Dependency updated | Library version bumped |
### Step 3: Check Completeness
For EACH fix type, ask:
**Validation added?**
- Does it cover ALL input paths? (check other functions calling the same code)
- Is it a blocklist? (blocklists are almost always bypassable)
- Does it handle encoding? (URL encoding, double encoding, Unicode)
- Does it handle case sensitivity?
**Sanitization added?**
- Is it applied BEFORE the dangerous operation? (not after)
- Is it the RIGHT escaping for the context? (SQL vs HTML vs shell)
- Is it applied to ALL dangerous parameters?
**Configuration changed?**
- Is the old default still accessible via config?
- Can the user override the safe default?
### Step 4: Look for Similar Code
```bash
# Find similar patterns in the same codebase
grep -rn "SIMILAR_PATTERN" .
# If the fix was in function A, check functions B, C, D
```
### Example: Incomplete Path Traversal Fix
A popular archive library fixed forward slash `../` in ZIP entry names but missed backslash `..\`:
The diff showed:
```diff
+ if (name.indexOf('../') >= 0) throw new Error('invalid');
```
But did NOT add:
```
+ if (name.indexOf('..\\') >= 0) throw new Error('invalid');
```
This is a classic blocklist bypass — the fix only covered one representation of the same attack.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |