Command catalog
The tools Reconmap can run, and the ways it can run them, are defined in a command catalog of YAML files, not in code. Each file describes one tool and holds a list of usage examples, one per scenario (for example Nmap: scan all TCP ports, Nuclei: check for subdomain takeovers, Semgrep: OWASP Top 10 rules).
When you start a scan, Reconmap hands the examples that fit the target and objective to the AI, which picks the relevant ones and may adapt their arguments to the target (see AI-adapted arguments). Without an AI provider, the examples marked as defaults are run unchanged.
The catalog ships with the API in src/server/Api/commands/ (/app/commands in the API image). It is loaded when the API starts, and an invalid file stops the API with a message that names the file and the problem.
Tools in the catalog
| Tool | Executable | Target types | Examples | Output parser |
|---|---|---|---|---|
| OWASP Amass | amass |
domain | 2 (1 intrusive) | genericLlm |
| Arjun | arjun |
url | 1 | genericLlm |
| assetfinder | assetfinder |
domain | 1 | genericLlm |
| Bandit | bandit |
code_repo | 2 | sarif |
| Brakeman | brakeman |
code_repo | 1 | sarif |
| cdxgen | cdxgen |
code_repo | 1 | cyclonedx |
| Checkov | checkov |
code_repo | 3 | sarif |
| curl | curl |
url, domain, hostname | 6 | genericLlm |
| Dalfox | dalfox |
url | 1 (1 intrusive) | genericLlm |
| OWASP Dependency-Check | dependency-check |
code_repo | 1 | sarif |
| detect-secrets | detect-secrets |
code_repo | 1 | genericLlm |
| dig | dig |
domain, hostname | 3 | genericLlm |
| DNSRecon | dnsrecon |
domain | 3 | genericLlm |
| dnsx | dnsx |
domain | 1 | genericLlm |
| enum4linux-ng | enum4linux-ng |
hostname, ip | 1 | genericLlm |
| feroxbuster | feroxbuster |
url, domain, hostname | 1 | genericLlm |
| ffuf | ffuf |
url, domain, hostname | 5 | genericLlm |
| Flawfinder | flawfinder |
code_repo | 1 | sarif |
| gau (GetAllUrls) | gau |
url, domain, hostname | 1 | genericLlm |
| Gitleaks | gitleaks |
code_repo | 2 | sarif |
| Gobuster | gobuster |
url, domain, hostname | 3 | genericLlm |
| Grype | grype |
code_repo | 2 | sarif |
| Hadolint | hadolint |
code_repo | 1 | sarif |
| httpx | httpx |
url, domain, hostname, ip | 4 | genericLlm |
| Katana | katana |
url, domain, hostname | 2 | genericLlm |
| KICS | kics |
code_repo | 1 | sarif |
| Masscan | masscan |
ip | 1 (1 intrusive) | genericLlm |
| Naabu | naabu |
url, domain, hostname, ip | 2 | genericLlm |
| Nikto | nikto |
url, domain, hostname, ip | 2 | genericLlm |
| Nmap | nmap |
url, domain, hostname, ip | 13 (1 intrusive) | nmap |
| npm audit | npm |
code_repo | 2 | genericLlm |
| Nuclei | nuclei |
url, domain, hostname, ip | 12 (2 intrusive) | sarif |
| pip-audit | pip-audit |
code_repo | 1 | cyclonedx |
| Gosec | gosec |
code_repo | 2 | sarif |
| Semgrep | semgrep |
code_repo | 15 | sarif |
| Shcheck | shcheck.py |
url, domain, hostname | 3 | shcheck |
| SMBMap | smbmap |
hostname, ip | 1 | genericLlm |
| snmp-check | snmp-check |
hostname, ip | 1 | genericLlm |
| Snyk | snyk |
code_repo | 4 | sarif |
| sqlmap | sqlmap |
url | 2 (2 intrusive) | genericLlm |
| sslscan | sslscan |
url, domain, hostname, ip | 1 | genericLlm |
| SSLyze | sslyze |
url, domain, hostname, ip | 2 | genericLlm |
| Subfinder | subfinder |
domain | 3 | subfinder |
| Syft | syft |
code_repo | 1 | cyclonedx |
| Testssl | testssl |
url, domain, hostname, ip | 7 | testssl |
| tfsec | tfsec |
code_repo | 1 | sarif |
| Trivy | trivy |
code_repo | 6 | cyclonedx, sarif |
| WAFW00F | wafw00f |
url, domain, hostname | 1 | genericLlm |
| waybackurls | waybackurls |
url, domain, hostname | 1 | genericLlm |
| WhatWeb | whatweb |
url, domain, hostname, ip | 2 | genericLlm |
| whois | whois |
domain | 1 | genericLlm |
The Generic LLM Parser (generic-llm) entry is also in the catalog. It has no target types, so scans never use it.
Reconmap only asks the runner to execute these tools. They must be installed and on the PATH of the runner host, and the wordlists the examples use must be present too (/usr/share/seclists, from the Kali seclists package). The runner image only ships git and the SSH client. A missing tool fails its task with the error, and the rest of the scan continues.
File format
id: nmap # unique; scheduled commands and scan tasks reference it
name: Nmap
description: Network exploration tool and security / port scanner.
moreInfoUrl: https://nmap.org/
tags: [scanner, ports, network]
executable: nmap # what the runner executes; the AI can never change it
dockerImage: instrumentisto/nmap # informational only
targetTypes: [url, domain, hostname, ip] # also: code_repo
deniedArgs: ["-iL", "-iR", "--datadir"] # never allowed in AI-adapted arguments
usages:
- id: nmap-tcp-syn # unique across the whole catalog
description: Scan the 1000 most common TCP ports.
objectives: [Network scan, Web scan]
phase: discovery # recon | discovery | enumeration | vulnerability | analysis
default: true # run by the rule-based plan (no AI)
intrusive: false # true: never scheduled by scans
arguments: "-oX - {{{Host}}}"
requiredArgs: ["-oX", "-"] # adapted arguments must keep these tokens
output: { capture: stdout, parser: nmap } # capture: none | stdout | file (then add file: name)
| Field | Meaning |
|---|---|
targetTypes |
Target types the tool can be pointed at: url, domain, hostname, ip, code_repo. Code repository tools run inside a fresh clone of the repository. |
objectives |
Scan objectives the example serves: Web scan, Network scan, DNS enumeration, SSL/TLS check, Code audit, Secrets scan, Dependency audit, IaC audit. Full reconnaissance uses every example that has at least one objective. An example with no objectives is never used by scans. |
phase |
Orders the tasks of a scan: recon (passive), discovery, enumeration, vulnerability, analysis (code). |
default |
The examples the rule-based plan runs when no AI provider is configured, or when the AI returns nothing usable. Keep it to one baseline example per tool. |
intrusive |
Brute force, exploitation or other active attacks (for example sqlmap, Dalfox, Nmap vuln scripts, Masscan). Intrusive examples are listed by the API but never scheduled by scans. |
arguments |
Arguments, without the executable. Placeholders are written {{{Name}}} or {{{Name\|\|\|default}}}: URL (the URL, or https:// + host), Host, Domain and IP (the host of a URL target, or the target itself), and Target / Path (the target as entered). Target placeholders never fall back to their default. Other names take their default. |
requiredArgs |
Tokens adapted arguments must keep, usually the output format and file flags the parser depends on, and flags such as --exit-zero or --soft-fail that stop the tool from exiting with an error when it finds issues. The runner treats a non-zero exit code as a failed task and uploads nothing. |
output |
How the runner captures the result (stdout or a file in the working directory) and which parser turns it into assets and findings: nmap, sarif, cyclonedx, subfinder, testssl, shcheck or genericLlm (AI parsing of any text output, see command result processing). |
The API checks every file at startup: ids must be unique, target types, phases and capture modes must be known, the parser must exist, file capture must name a file, every requiredArgs token must be in arguments, and arguments must not contain a denied argument.
AI-adapted arguments
The AI receives the applicable examples, with their arguments and required tokens. For each example it picks, it may return adapted arguments, for example to narrow the ports, pick other templates or lower a rate limit. Reconmap accepts them only if all of these hold:
- the placeholders resolve, and the command line fits in 1000 characters;
- there are no control characters and no shell syntax (
;,|,&,$, backticks,<,>), except inside the target itself. Commands run without a shell, so this is defence in depth; - the executable is not repeated (the AI never chooses the executable);
- every
requiredArgstoken, and the output file name when the example names one, is still there; - no
deniedArgsentry is used, either alone or as--flag=value; - for network targets, the target host is still in the arguments;
- for code repositories, no argument points outside the clone (absolute paths,
~,..).
When a check fails, the example's own arguments are used instead and the reason is logged. Accepted changes are marked Adapted by AI next to the command on the scan page. At most 12 tasks are scheduled per scan.
Adding tools and examples
- To the shipped catalog: add or edit a file in
src/server/Api/commands/. The tests inApi.Testscheck that every example resolves for each of its tool's target types and passes the same checks as AI-adapted arguments. - On an installation, without rebuilding: mount a directory of YAML files into the API container and list it in the
Commands:ExtraCatalogPathssetting, for example with the environment variableCommands__ExtraCatalogPaths__0=/etc/reconmap/commands. Its files are loaded after the shipped ones, and their ids must not clash with them.
Do not change the id of an existing command or usage: scheduled commands and scan tasks refer to them.