Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:ARCANGEL0 EVA Multi Source Vulnerability Search

From Leeroopedia
Knowledge Sources
Domains Vulnerability_Research, Security_Automation, Search
Last Updated 2026-10-29 14:00 GMT

Overview

Search strategy that generates sanitized queries from session intelligence and fans them out in parallel across web search engines, local Exploit-DB, and Vulnx vulnerability databases, deduplicating references into a single report.

Description

Vulnerability research requires querying multiple sources to get comprehensive coverage. A multi-source search strategy:

  1. Generates queries from session Intel: extracts product/vendor/version/CPE attributes from assets, CVE patterns from findings, and version-clue patterns to produce up to 4 sanitized search strings (≤220 chars, no IPs, no CLI-option-like strings).
  2. Fans out in parallel: Web searches run via `ThreadPoolExecutor` across all configured engines; local Exploit-DB (`searchsploit`) and Vulnx queries run per-query.
  3. Deduplicates references: A `seen_refs` set prevents the same exploit or CVE from appearing twice.
  4. Assembles a report: Merges results into WEB REFERENCES, LOCAL EXPLOIT-DB SNAPSHOT, and VULNX REFERENCES sections, capped at 18KB.

This principle addresses the problem that no single source has complete vulnerability coverage — web engines find recent disclosures, Exploit-DB has proven exploits, and Vulnx has structured CVE data with CVSS scores.

Usage

Use this principle when:

  • Researching vulnerabilities for products/versions discovered during an engagement.
  • Needing to correlate web references with local exploit databases.
  • Generating structured vulnerability reports from session intelligence.

Theoretical Basis

The query generation uses attribute extraction and sanitization:

# Abstract algorithm (NOT real implementation)
def generate_queries(criteria, intel, limit=4):
    queries = []
    if criteria:
        queries.append(sanitize(criteria))
    for asset in intel["assets"]:
        if has_product_info(asset):
            query = f"{asset.product} {asset.vendor} {asset.version}"
            queries.append(sanitize(query))
            queries.append(sanitize(f"{query} CVE vulnerability"))
            queries.append(sanitize(f"{query} RCE exploit"))
    return queries[:limit]

Sanization rejects:

  • Strings longer than 220 characters
  • Strings that are valid IP addresses
  • Strings starting with `-` (CLI option injection)
  • Strings not matching the allowed character set

Parallel fan-out uses `ThreadPoolExecutor` with workers capped at `min(4, len(queries))`.

Practical Guide

  • Sanitize queries aggressively — reject IPs, option-like strings, and over-long inputs.
  • Cap query count (4) and results per engine (3) to keep the report bounded.
  • Run web searches in parallel but local/vulnx searches sequentially (they're subprocess-bound).
  • Mark all results as unverified references — they are leads, not confirmed vulnerabilities.
  • Truncate the final report to prevent context overflow (18KB).

Related Pages

Implemented By

Uses Heuristic

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment