secops-mcp
- Type
- MCP server
- Scanned
- Nov 17, 2026
- Version
- 6e09eb7d1b3b
- Files read
- 21
This MCP server wraps fifteen security scanning and reconnaissance command-line tools—including Nmap, Nuclei, FFUF, SQLMap, and Hashcat—so an AI agent can run web and network scans. The biggest risk is that several wrappers pass unvalidated file paths, targets, and template sources directly to these scanners, allowing a prompt-injected agent to send sensitive local files to an external server, inject scanner flags that overwrite or leak local files, or execute remote scan templates.
What it can reach
- Network
- Sends active port scans, vulnerability scans, directory and parameter fuzzing requests, SQL injection and XSS probes, web crawls, and DNS, TLS, and ipinfo.io lookups to any target host or URL.
- Files
- Reads any local file path supplied as a wordlist, hash file, or Nuclei template, and writes scan artifacts such as SQLMap output under /tmp/sqlmap.
- System
- Runs installed security binaries and scripts (nmap, nuclei, ffuf, wfuzz, sqlmap, hashcat, httpx, subfinder, tlsx, amass, dirsearch, gospider, arjun, and XSStrike) as child processes.
Findings
-
HighArbitrary local file exfiltration through unrestricted wordlist paths
The ffuf_wrapper tool (along with wfuzz_wrapper in tools/wfuzz.py and arjun_scan in tools/arjun.py) accepts any filesystem path on the machine as its wordlist without restricting it to a wordlists folder, and sends every line of that file inside HTTP requests to the caller-supplied URL. If untrusted content tricks the AI agent via prompt injection, an attacker can have the tool read sensitive local files such as SSH keys, cloud credentials, or .env files and transmit their contents directly to an external server.
Fix: Restrict wordlists to a dedicated read-only directory by resolving real paths and rejecting paths outside that folder, or accept only predefined wordlist identifiers instead of raw file paths.
-
HighCommand-line option injection via unvalidated positional scanner arguments
The run_nmap wrapper places the target parameter directly into the nmap command without a -- end-of-options marker and without rejecting values that begin with a dash (a pattern that also appears with hash_file and wordlist in tools/hashcat.py and url in tools/wfuzz.py). If prompt injection tricks the AI agent into supplying a scanner flag as the target, the underlying binary interprets it as an option rather than a host or URL, which can overwrite writable local files via report-output options or leak lines from local files through input-list and stdout options.
Fix: Validate that targets and URLs match expected hostname, IP, or http(s) URL formats, reject inputs starting with '-', and insert '--' before positional arguments in subprocess command lists across tools/nmap.py, tools/hashcat.py, and tools/wfuzz.py.
-
HighUnrestricted remote URLs and local paths in Nuclei templates and target
Although nuclei_scan_wrapper describes templates as a list of template names, it passes the values straight to nuclei -t without validation, while passing target straight to -u. Nuclei accepts remote HTTP(S) URLs and arbitrary local paths in -t, and Nuclei v2.9.10 (installed by the Dockerfile) can run file-protocol templates against local paths passed to -u and return matched file contents in its JSON output, letting a prompt-injected agent run attacker-hosted templates or extract local file data.
Fix: Validate that target is a network host or http(s) URL rather than a local path, and restrict templates to verified relative paths within the local nuclei-templates directory while rejecting URLs and '..' segments.
-
LowUnpinned Git clones, unverified binary downloads, and root user in Docker build
The recommended Docker build clones XSStrike and dirsearch from GitHub without pinning a commit hash (and immediately installs their Python requirements), downloads seven precompiled tool archives without checking SHA-256 hashes, and leaves the container running as root. If an upstream repository or download server were compromised, malicious code would run during the image build and execute with root privileges inside the container.
Fix: Pin git clone steps to specific audited commit hashes, verify SHA-256 checksums for all downloaded archives before unpacking them, and switch to a non-root USER before CMD.
