Implementation:ARCANGEL0 EVA vulnerability queries
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Vulnerability_Research, Search |
| Last Updated | 2026-10-29 14:00 GMT |
Overview
Concrete tool for generating sanitized vulnerability search queries from session Intel and operator criteria, provided by the Mitsu search module.
Description
The vulnerability_queries function generates up to 4 search query strings from:
- Operator criteria: If provided, the criteria string is sanitized and used as the first query.
- Asset attributes: Extracts product, vendor, version, technology, and CPE from asset records that have product information. For each product query, also generates "{product} CVE vulnerability" and "{product} RCE exploit" variants.
- Finding/exploit titles: Extracts titles from findings, exploits, and observations sections.
Query sanitization rules:
- Max 220 characters.
- Must match allowed character set (`[A-Za-z0-9 ._:/+#-]`).
- Rejects valid IP addresses (to prevent searching for IPs).
- Rejects CLI-option-like strings (starting with `-`).
- Deduplicates case-insensitively.
Usage
- Vulnerability search: Called by `search_vulnerabilities` to generate queries before fanning out to search sources.
Code Reference
Source Location
- Repository: Mitsu
- File: search/vulnerabilities.py
Signature
def vulnerability_queries(
criteria: str, intel: dict[str, Any], limit: int = 4
) -> list[str]:
Import
from mitsu.search.vulnerabilities import vulnerability_queries
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| criteria | str | Yes | Operator-supplied search terms (may be empty) |
| intel | dict[str, Any] | Yes | Session Intel with assets, findings, exploits, observations |
| limit | int | No | Max queries (1-4, default: 4) |
Outputs
| Name | Type | Description |
|---|---|---|
| returns | list[str] | Up to `limit` sanitized query strings |
Usage Examples
Generate Queries from Intel
from mitsu.search.vulnerabilities import vulnerability_queries
intel = {
"assets": [
{
"type": "technology",
"value": "nginx",
"attributes": {
"product": "nginx",
"vendor": "nginx",
"version": "1.18.0",
},
}
],
"findings": [{"title": "Outdated nginx with known CVEs"}],
"exploits": [],
"observations": [],
}
queries = vulnerability_queries("nginx 1.18", intel)
print(queries)
# ['nginx 1.18', 'nginx 1.18.0 CVE vulnerability', 'nginx 1.18.0 RCE exploit', ...]
Related Pages
Implements Principle
Requires Environment
Uses Heuristic
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment