Security
What pqcmap sends to a target
scan
pqcmap scan connects only to the host and port you name.
- TLS targets: per target, one baseline handshake, eight handshakes that each offer a single key exchange group, and one handshake capped at TLS 1.2: ten connections. pqcmap sends no application data and no ALPN. It records the certificate without trusting it for the connection, and checks it against the system roots afterwards.
- SSH targets: one connection per target. pqcmap sends its own identification string and reads the
server's banner and
SSH_MSG_KEXINIT. It sends its ownSSH_MSG_KEXINITonly when the server stays silent until the read timeout without sending any packet bytes, which some servers do while they wait for the client. It performs no key exchange and no authentication. - SMTP and IMAP targets: ten sessions per target. Each reads the greeting, sends
EHLO(SMTP) orCAPABILITY(IMAP), and, whenSTARTTLSis offered, sendsSTARTTLSand hands the connection to the TLS probe. A session that does not upgrade ends withQUITorLOGOUT. pqcmap never authenticates and never sends a message. Lines are capped at 1024 bytes and replies at 64 lines. - Pacing: at least 250 ms between connections to one host by default (
--min-interval), a per-handshake timeout (--timeout, 10 s by default) and a cap on targets per run (--max-targets, 256 by default).
discover and check
These commands contact listening TCP sockets found on the host they run on. They use at most two identification
connections per listener, then the same probe connections as scan for what they identify.
- Only addresses that are the any-address, loopback, or assigned to one of the host's own interfaces are contacted. A socket bound to any other address is reported and never dialled, and so is a link-local address.
- Listeners in other network namespaces, for example unpublished container ports, are inventoried and never contacted from the host namespace.
- Ports 5432, 3306, 6379, 11211, 27017, 9090, 9100, 3100 and 12345 are inventoried without a connection unless you pass
--sniff-allor name a port with--skip-port. - With
check --from-nmap -, pqcmap contacts the open TCP ports listed in the nmap XML you supply, and nothing else. Connections to each host are at least 1 s apart. pqcmap reads that file with a strict parser and never starts a port scan.
These commands, and the SMTP and IMAP probes, are in the current source and first released in 0.2.0.
What pqcmap never sends
- No HTTP requests of any kind.
- No SSH authentication attempts: no password, key, or user name is ever offered, and no key exchange is performed.
- No mail-server authentication and no messages sent over SMTP or IMAP.
- No port scans. pqcmap never scans ports itself, in any command. Port 2019 (Caddy admin API) is never contacted, even when named or found.
- No telemetry. pqcmap does not contact any service of its own; this site loads no scripts, fonts or trackers either.
Only scan systems you own or are authorised to test.
Read-only behaviour on the host
pqcmap does not change configuration, restart services or write into system directories. The only file it
writes is the report you ask for with --out.
discover and check read /proc, configuration files under approved system directories and
package databases. The result depends on who runs them. As an ordinary user they read what the kernel allows, and every
path they were not permitted to read is listed as unchecked with the reason root_required and a hint to rerun
with sudo. As root they also read root-only sources and map sockets to processes. Sources that were not
attempted in a run are recorded in the coverage manifest under sourcesSkipped, separately from the known
unchecked items. A directory that cannot be listed is not enumerated, so unprivileged coverage is partial by design.
The local configuration audits are planned for 0.2.0.
Handle reports with care
A report describes the cryptographic weaknesses of the systems it covers: which classical algorithms a server still accepts, which versions it runs, what it has not checked. That is useful to an attacker as well as to an administrator. Store reports like any other security finding, share them only with people who need them, and do not paste them into public issue trackers.
Reporting a vulnerability
If you find a security problem in pqcmap itself, please report it privately rather than in a public issue, and do not include credentials, private keys or production scan output in the report.
Send reports by email to security@webdeploy.it.
GitHub private vulnerability reporting is planned for 0.2.0, once the public repository exists.
