Implementation:ARCANGEL0 EVA search vulnerabilities
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Vulnerability_Research, Search, Security_Automation |
| Last Updated | 2026-10-29 14:00 GMT |
Overview
Concrete tool for orchestrating multi-source vulnerability search across web engines, Exploit-DB, and Vulnx with parallel execution, deduplication, and report assembly, provided by the Mitsu search module.
Description
The search_vulnerabilities function is the top-level vulnerability search orchestrator:
- Generates queries via `vulnerability_queries`.
- Validates criteria — rejects unsanitized operator input.
- Fans out web searches in parallel using `ThreadPoolExecutor` (max 4 workers) across all configured search engines.
- Searches local Exploit-DB via `search_exploitdb` (subprocess) for each query.
- Searches Vulnx via `search_vulnx` (subprocess) for the first 2 queries.
- Deduplicates references using a `seen_refs` set to prevent duplicate exploits/CVEs.
- Assembles a report with sections: WEB REFERENCES, LOCAL EXPLOIT-DB SNAPSHOT, VULNX REFERENCES.
- Marks all results as unverified references — they are leads, not confirmed vulnerabilities.
- Truncates to 18KB to prevent context overflow.
Supports injectable search backends (`web_searcher`, `local_searcher`, `vulnx_searcher`) for testing, and sink callbacks for streaming results to the TUI.
Usage
- Agent tool: Called from the agent tool host when the agent invokes the vulnerability search tool.
- Slash command: Called from the session screen when the operator uses `/vulnsearch`.
Code Reference
Source Location
- Repository: Mitsu
- File: search/vulnerabilities.py
Signature
def search_vulnerabilities(
criteria: str,
intel: dict[str, Any],
configured: dict[str, dict[str, Any]],
*,
web_searcher: Callable[...] | None = None,
local_searcher: Callable[...] | None = None,
vulnx_searcher: Callable[...] | None = None,
vulnx_result_sink: Callable[...] | None = None,
vulnx_status_sink: Callable[...] | None = None,
web_result_sink: Callable[...] | None = None,
local_result_sink: Callable[...] | None = None,
local_status: str = "",
vulnx_status: str = "",
) -> str:
Import
from mitsu.search.vulnerabilities import search_vulnerabilities
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| criteria | str | Yes | Operator search terms (may be empty) |
| intel | dict[str, Any] | Yes | Session Intel for query generation |
| configured | dict[str, dict] | Yes | Configured search engine settings |
| web_searcher | Callable | No | Injectable web search backend |
| local_searcher | Callable | No | Injectable Exploit-DB search backend |
| vulnx_searcher | Callable | No | Injectable Vulnx search backend |
| *_sink | Callable | No | Streaming result callbacks for TUI |
Outputs
| Name | Type | Description |
|---|---|---|
| returns | str | Formatted report (≤18KB) with WEB REFERENCES, LOCAL EXPLOIT-DB SNAPSHOT, VULNX REFERENCES sections |
Usage Examples
Basic Vulnerability Search
from mitsu.search.vulnerabilities import search_vulnerabilities
report = search_vulnerabilities(
criteria="nginx 1.18",
intel=session_intel,
configured=search_engine_settings,
)
print(report)
# VULNSEARCH · leads from session Intel
# Queries: nginx 1.18.0 · nginx 1.18.0 CVE vulnerability ...
#
# WEB REFERENCES
# [nginx 1.18.0]
# 1. CVE-2023-44487 - HTTP/2 Rapid Reset
# ...
With Streaming Sinks
def web_sink(query, records, errors):
print(f"Web results for '{query}': {len(records)} results")
report = search_vulnerabilities(
criteria="OpenSSH 8.9",
intel=session_intel,
configured=settings,
web_result_sink=web_sink,
)
Related Pages
Implements Principle
Requires Environment
- Environment:ARCANGEL0_EVA_Python_3_10_Environment
- Environment:ARCANGEL0_EVA_searchsploit_Installed
- Environment:ARCANGEL0_EVA_vulnx_Installed
Uses Heuristic
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment