CVE Threat Intelligence & PoC Hunter
PURPOSE: Real-time CVE monitoring, automatic PoC discovery, and actionable threat intelligence for red team operations.
When to Use This Skill
Use when:
- User asks: "Latest CVEs", "Recent vulnerabilities", "New PoCs", "CVE today/this week/this month"
- User wants: "Find exploits for [product]", "Check if [CVE-ID] has PoC"
- Proactive monitoring: Daily/weekly threat intelligence updates
- Zero-day hunting: Find recently disclosed vulnerabilities with PoCs
Intelligence Sources
Primary Sources (Free & Public):
1. NVD (National Vulnerability Database)
- URL: https://nvd.nist.gov/
- API: https://services.nvd.nist.gov/rest/json/cves/2.0
- Update frequency: Real-time
- Data: CVE details, CVSS scores, CPE, references
2. PoC-in-GitHub Database
- Primary: https://poc-in-github.motikan2010.net/
- Note: Site may be temporarily unavailable - use fallback methods if down
- Mirror: https://github.com/nomi-sec/PoC-in-GitHub (GitHub repository)
- Alternative: https://github.com/Jenderal92/PoC-AutoSync (Auto-synced mirror)
- Fallback: Direct GitHub search https://github.com/search?q=CVE+PoC
- Update frequency: Daily (when available)
- Data: Curated CVE PoC links from GitHub repositories
Recommended Approach:
- Try poc-in-github.motikan2010.net first (fastest when up)
- If down, use GitHub mirror or direct search
- Cross-reference with Exploit-DB for verified exploits
3. Exploit-DB
- URL: https://exploit-db.com/
- API: https://gitlab.com/exploit-database/exploitdb
- Data: Public exploits, shellcodes, papers
4. GitHub Security Advisories
- URL: https://github.com/advisories
- API: GitHub GraphQL API
- Data: Security advisories for open source projects
5. Packet Storm Security
- URL: https://packetstormsecurity.com/
- Data: Tools, exploits, advisories
Automated CVE Monitoring Workflow
Daily Intelligence Gathering
markdownSTEP 1: Fetch Recent CVEs (Last 24 Hours) ┌─────────────────────────────────────────┐ │ Source: NVD API │ │ Query: publishedDate:[NOW-1DAY TO NOW] │ │ Filter: CVSS >= 7.0 (High/Critical) │ │ Output: CVE list with CVSS scores │ └─────────────────────────────────────────┘ ↓ STEP 2: Check for Public PoCs ┌─────────────────────────────────────────┐ │ For each CVE: │ │ 1. Search GitHub repositories │ │ 2. Search GitHub code files │ │ 3. Search Exploit-DB │ │ 4. Search Packet Storm │ │ 5. Extract PoC URLs │ └─────────────────────────────────────────┘ ↓ STEP 3: Prioritize by Exploitability ┌─────────────────────────────────────────┐ │ Priority 1: RCE with public PoC │ │ Priority 2: Auth bypass with PoC │ │ Priority 3: High CVSS without PoC │ │ Priority 4: Medium CVSS with PoC │ └─────────────────────────────────────────┘ ↓ STEP 4: Generate Intelligence Report ┌─────────────────────────────────────────┐ │ Format: Markdown table │ │ Include: │ │ - CVE ID │ │ - CVSS Score │ │ - Affected Product │ │ - Vulnerability Type │ │ - PoC Availability (✅/❌) │ │ - PoC GitHub URL │ │ - Exploitation Difficulty │ │ - Recommended Action │ └─────────────────────────────────────────┘
Implementation: CVE API Queries
Query NVD API (Recent CVEs)
bash# Last 24 hours CVEs with CVSS >= 7.0 curl -s "https://services.nvd.nist.gov/rest/json/cves/2.0?pubStartDate=$(date -u -d '1 day ago' '+%Y-%m-%dT%H:%M:%S.000')&pubEndDate=$(date -u '+%Y-%m-%dT%H:%M:%S.000')&cvssV3Severity=HIGH,CRITICAL" | jq '.vulnerabilities[] | { id: .cve.id, published: .cve.published, cvss: .cve.metrics.cvssMetricV31[0].cvssData.baseScore, severity: .cve.metrics.cvssMetricV31[0].cvssData.baseSeverity, description: .cve.descriptions[0].value, references: [.cve.references[].url] }'
Response Format:
json{ "id": "CVE-2024-12345", "published": "2024-07-24T14:00:00.000", "cvss": 9.8, "severity": "CRITICAL", "description": "Remote code execution in Product X", "references": [ "https://vendor.com/advisory", "https://github.com/researcher/poc" ] }
Search PoC-in-GitHub
bash# Check if CVE has PoC on GitHub CVE_ID="CVE-2024-12345" # Method 1: Search PoC-in-GitHub database (if site is up) curl -s "https://poc-in-github.motikan2010.net/" | grep -i "$CVE_ID" # Note: If site is down, use methods below # Method 2: Check GitHub mirror curl -s "https://raw.githubusercontent.com/nomi-sec/PoC-in-GitHub/master/README.md" | grep -i "$CVE_ID" # Method 3: Direct GitHub search gh search repos "CVE-2024-12345 PoC" --limit 10 # Method 3: GitHub API curl -s "https://api.github.com/search/repositories?q=CVE-2024-12345+PoC&sort=stars" | jq '.items[] | { name: .name, url: .html_url, stars: .stargazers_count, description: .description }'
Search Exploit-DB
bash# Search Exploit-DB by CVE curl -s "https://www.exploit-db.com/search?cve=$CVE_ID" | grep -oP 'exploits/\d+' | head -1 # Or download Exploit-DB database locally git clone https://gitlab.com/exploit-database/exploitdb.git grep -r "CVE-2024-12345" exploitdb/exploits/
Practical Queries
Query 1: Today's Critical CVEs with PoCs
markdownUser asks: "Show me today's critical CVEs with public exploits" Workflow: 1. Fetch CVEs from NVD (today, CVSS >= 9.0) 2. For each CVE, search GitHub for PoC 3. Filter: Only CVEs with PoC available 4. Sort by CVSS score (highest first) 5. Output formatted report Expected Output: ┌─────────────────┬──────┬─────────────────────┬────────────┬─────────────────────────────┐ │ CVE ID │ CVSS │ Product │ Type │ PoC URL │ ├─────────────────┼──────┼─────────────────────┼────────────┼─────────────────────────────┤ │ CVE-2024-12345 │ 9.8 │ Apache Struts 2.x │ RCE │ github.com/researcher/poc1 │ │ CVE-2024-12346 │ 9.1 │ WordPress Plugin X │ SQLi │ github.com/researcher/poc2 │ │ CVE-2024-12347 │ 9.0 │ Spring Framework │ Auth Bypass│ github.com/researcher/poc3 │ └─────────────────┴──────┴─────────────────────┴────────────┴─────────────────────────────┘ Recommended Actions: 1. Test CVE-2024-12345 against Apache Struts instances 2. Scan for WordPress Plugin X installations 3. Review Spring Framework versions in use
Query 2: CVEs for Specific Product
markdownUser asks: "Find recent CVEs for Microsoft Exchange with exploits" Workflow: 1. Search NVD for "Microsoft Exchange" (last 30 days) 2. Filter: CVSS >= 7.0 3. Check each CVE for public PoC 4. Prioritize by CVSS + PoC availability 5. Output report with exploitation guidance Expected Output: ## Microsoft Exchange CVEs (Last 30 Days) ### CVE-2024-XXXXX - CVSS 9.8 (CRITICAL) ✅ PoC Available - **Type**: Remote Code Execution - **Affected**: Exchange Server 2016/2019 - **PoC**: https://github.com/researcher/exchange-rce-poc - **Exploit Difficulty**: Low (authenticated) - **Action**: Patch immediately, test PoC in lab ### CVE-2024-YYYYY - CVSS 8.1 (HIGH) ❌ No PoC - **Type**: Privilege Escalation - **Affected**: Exchange Server 2019 - **PoC**: Not available yet - **Action**: Monitor for PoC release
Query 3: This Week's Exploitable Vulnerabilities
markdownUser asks: "What can I exploit this week?" Workflow: 1. Fetch last 7 days CVEs 2. Filter: Has public PoC + CVSS >= 7.0 3. Categorize by: - RCE (Remote Code Execution) - SQLi (SQL Injection) - Auth Bypass - LFI/RFI (File Inclusion) - XSS (Cross-Site Scripting) 4. Sort by exploitability + impact 5. Include PoC analysis Expected Output: ## Exploitable CVEs This Week (2024-07-18 to 2024-07-24) ### 🔴 CRITICAL - Remote Code Execution (3 CVEs) **CVE-2024-12345** - Apache Struts 2.x OGNL Injection - CVSS: 9.8 - PoC: https://github.com/projectdiscovery/nuclei-templates/blob/main/cves/2024/CVE-2024-12345.yaml - Affected: Struts 2.0.0 - 2.5.32 - Exploit: Unauthenticated RCE via crafted HTTP header - Test: `nuclei -u https://target.com -t cves/2024/CVE-2024-12345.yaml` **CVE-2024-12346** - WordPress Plugin "Contact Form" SQLi → RCE - CVSS: 9.1 - PoC: https://github.com/researcher/wp-plugin-sqli - Affected: Plugin version < 3.5.1 - Exploit: Blind SQLi in 'id' parameter, write webshell via INTO OUTFILE - Test: `sqlmap -u "https://target.com/wp-admin/admin.php?page=contact&id=1" --risk 3` ### 🟠 HIGH - Authentication Bypass (2 CVEs) **CVE-2024-12347** - Spring Framework Authentication Bypass - CVSS: 8.8 - PoC: https://github.com/spring-io-security/CVE-2024-12347-poc - Affected: Spring Security 5.x - Exploit: Bypass via crafted JWT token with null signature - Test: Modify JWT 'alg' header to 'none' ### 🟡 MEDIUM - SQL Injection (5 CVEs) [...]
Automated Daily Report
Scheduled Intelligence Briefing
markdownDAILY CVE THREAT INTELLIGENCE REPORT Generated: 2024-07-24 08:00 UTC ═══════════════════════════════════════════════════════════════ 📊 SUMMARY (Last 24 Hours) - Total CVEs Published: 47 - Critical (CVSS >= 9.0): 3 - High (CVSS 7.0-8.9): 12 - CVEs with Public PoC: 8 - Exploited in the Wild: 1 ═══════════════════════════════════════════════════════════════ 🔴 CRITICAL PRIORITY (Immediate Action Required) 1. CVE-2024-12345 - Apache Struts 2.x RCE CVSS: 9.8 | PoC: ✅ Available | Exploited: ⚠️ YES Affected: Apache Struts 2.0.0 through 2.5.32 Type: OGNL Injection leading to RCE Attack Vector: Network, No Authentication Required PoC URLs: - https://github.com/projectdiscovery/nuclei-templates/blob/main/cves/2024/CVE-2024-12345.yaml - https://github.com/rapid7/metasploit-framework/pull/12345 Exploitation: ```bash # Nuclei scan nuclei -u https://target.com -t cves/2024/CVE-2024-12345.yaml # Metasploit use exploit/multi/http/struts2_ognl_injection set RHOSTS target.com exploit
Recommended Actions: ✅ Upgrade to Struts 2.5.33 immediately ✅ Scan for exposed Struts instances ✅ Review WAF logs for exploitation attempts ✅ Test PoC in lab environment
═══════════════════════════════════════════════════════════════
🟠 HIGH PRIORITY (Patch Within 72 Hours)
-
CVE-2024-12346 - WordPress Plugin "Contact Form Pro" SQLi CVSS: 9.1 | PoC: ✅ Available | Exploited: ❌ No reports
[Similar detailed breakdown...]
-
CVE-2024-12347 - Spring Security Auth Bypass CVSS: 8.8 | PoC: ✅ Available | Exploited: ❌ No reports
[Similar detailed breakdown...]
═══════════════════════════════════════════════════════════════
🟡 MEDIUM PRIORITY (Monitor & Test)
4-8. [List of medium priority CVEs with brief details]
═══════════════════════════════════════════════════════════════
📈 TRENDING VULNERABILITIES
- RCE in web frameworks (↑ 150% this week)
- WordPress plugin SQLi (↑ 80% this week)
- JWT authentication bypass (new pattern emerging)
═══════════════════════════════════════════════════════════════
🎯 RECOMMENDED ACTIONS TODAY
- Scan infrastructure for Apache Struts 2.x instances
- Update WordPress plugins to latest versions
- Review Spring Security configuration
- Test PoCs in lab environment
- Update WAF rules for new attack patterns
═══════════════════════════════════════════════════════════════
🔗 RESOURCES
- Full NVD Report: https://nvd.nist.gov/vuln/search/results?pub_date_start=[TODAY]
- PoC Database: https://poc-in-github.motikan2010.net/
- Nuclei Templates: https://github.com/projectdiscovery/nuclei-templates
Next Report: 2024-07-25 08:00 UTC
--- ## Implementation Commands ### Quick CVE Check ```bash # Check specific CVE for PoC check_cve_poc() { CVE_ID=$1 echo "Searching PoC for $CVE_ID..." # GitHub search gh search repos "$CVE_ID PoC" --limit 5 --json name,url,stargazersCount # Exploit-DB search curl -s "https://www.exploit-db.com/search?cve=$CVE_ID" | grep -oP 'exploits/\d+' | head -5 } # Usage check_cve_poc "CVE-2024-12345"
Daily CVE Monitor
bash# Fetch today's critical CVEs fetch_daily_cves() { TODAY=$(date -u '+%Y-%m-%dT00:00:00.000') NOW=$(date -u '+%Y-%m-%dT23:59:59.999') curl -s "https://services.nvd.nist.gov/rest/json/cves/2.0?pubStartDate=$TODAY&pubEndDate=$NOW&cvssV3Severity=CRITICAL,HIGH" | \ jq -r '.vulnerabilities[] | "CVE: \(.cve.id)\n" + "CVSS: \(.cve.metrics.cvssMetricV31[0].cvssData.baseScore)\n" + "Severity: \(.cve.metrics.cvssMetricV31[0].cvssData.baseSeverity)\n" + "Description: \(.cve.descriptions[0].value)\n" + "---"' }
Product-Specific CVE Search
bash# Search CVEs for specific product search_product_cves() { PRODUCT=$1 DAYS=${2:-30} START_DATE=$(date -u -d "$DAYS days ago" '+%Y-%m-%dT%H:%M:%S.000') END_DATE=$(date -u '+%Y-%m-%dT%H:%M:%S.000') curl -s "https://services.nvd.nist.gov/rest/json/cves/2.0?keywordSearch=$PRODUCT&pubStartDate=$START_DATE&pubEndDate=$END_DATE" | \ jq '.vulnerabilities[] | { id: .cve.id, cvss: .cve.metrics.cvssMetricV31[0].cvssData.baseScore, description: .cve.descriptions[0].value }' } # Usage search_product_cves "Microsoft Exchange" 30 search_product_cves "Apache Struts" 7
Integration with Other Skills
Combine with Zero-Day Hunting
markdownWorkflow: Recent PoC → Find Similar Vulns 1. Get today's CVEs with PoCs (this skill) 2. Download and analyze PoC code 3. Identify vulnerability pattern 4. Use zero-day-hunting skill to find similar patterns 5. Report new zero-days Example: - CVE-2024-12345: SQLi in WordPress plugin via unsanitized $_GET - Pattern: Direct SQL concatenation in admin pages - Search: Other WordPress plugins with same pattern - Result: 5 new zero-days discovered
Combine with Red Team Web Methodology
markdownWorkflow: CVE-Driven Targeted Attack 1. Client uses Product X 2. Search recent CVEs for Product X (this skill) 3. Find CVE-2024-12345 with PoC 4. Use red-team-web-methodology to test 5. Exploit confirmed vulnerability 6. Report with PoC + remediation
OpenCode Implementation
How User Interacts
Query 1: "Show me today's CVEs"
OpenCode: 1. Loads cve-threat-intel skill 2. Fetches NVD API (today's CVEs) 3. Searches PoCs for each CVE 4. Generates formatted report 5. Displays results with PoC links
Query 2: "Find exploits for Apache Struts"
OpenCode: 1. Loads cve-threat-intel skill 2. Searches NVD for "Apache Struts" (last 90 days) 3. Checks each CVE for public PoC 4. Filters: Only CVEs with PoC 5. Displays with exploitation instructions
Query 3: "Check CVE-2024-12345"
OpenCode: 1. Loads cve-threat-intel skill 2. Fetches CVE details from NVD 3. Searches GitHub for PoC 4. Searches Exploit-DB 5. Displays: CVSS, description, PoC URLs, exploitation tips
Automation Potential
Future Enhancements
markdown1. **Telegram/Slack Bot** - Daily automated reports - Real-time CVE alerts - PoC availability notifications 2. **RSS Feed Generation** - Subscribe to filtered CVE feed - Custom filters (product, severity, PoC) 3. **Nuclei Template Auto-Generation** - Parse PoC code - Generate nuclei YAML template - Auto-test against targets 4. **Exploit Database Sync** - Download all PoCs locally - Index for fast searching - Keep updated automatically 5. **Threat Intelligence Correlation** - Cross-reference with: - CISA KEV (Known Exploited Vulnerabilities) - Twitter security researchers - Reddit /r/netsec - Dark web mentions
Security Considerations
Ethical Use:
- ✅ Use for authorized security testing ONLY
- ✅ Responsible disclosure of findings
- ✅ Test PoCs in isolated lab environments
- ✅ Do NOT exploit production systems without authorization
Operational Security:
- ✅ Use VPN when downloading PoCs
- ✅ Sandbox untrusted PoC code
- ✅ Be aware PoCs may contain backdoors
- ✅ Review code before executing
Resources
APIs:
- NVD API: https://nvd.nist.gov/developers/vulnerabilities
- GitHub API: https://docs.github.com/en/rest
- Exploit-DB: https://gitlab.com/exploit-database/exploitdb
Databases:
- PoC-in-GitHub: https://poc-in-github.motikan2010.net/
- CISA KEV: https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- VulnCheck: https://vulncheck.com/
Tools:
- nuclei: https://github.com/projectdiscovery/nuclei
- gf: https://github.com/tomnomnom/gf
- gh (GitHub CLI): https://cli.github.com/
Summary
This skill provides:
- ✅ Real-time CVE monitoring
- ✅ Automatic PoC discovery
- ✅ Prioritized threat intelligence
- ✅ Product-specific vulnerability tracking
- ✅ Actionable exploitation guidance
- ✅ Integration with offensive security workflows
Use this daily for:
- Morning threat intelligence briefing
- Target reconnaissance (find CVEs in target's tech stack)
- Zero-day hunting (analyze PoC patterns)
- Red team operations (exploit recent vulnerabilities)
Stay informed. Stay ahead. Exploit responsibly. 🎯


