CLI reference
Find endpoints that will break, or are already exposed, as the Web PKI (and SSH) move to post-quantum cryptography.
Usage:
Options:
--version: Show the version and exit.--help: Show this message and exit.
Commands:
explain: Explain what a check looks for, or how to…serve-mcp: Run an MCP server on stdio so AI agents…scan: Scan hosts, files, cloud inventories, or…deadlines: List and inspect the dated, sourced…
shorsighted explain
Explain what a check looks for, or how to fix one rule's findings.
Usage:
Arguments:
check_id <str>: Check id (SSD-KEX) or rule id (kex.classical-only).
Options:
--rules: List every rule id with its kind and fix title.--remediations <path>: Remediation override YAML: per-rule fix text, runbook links, steps (merged with bundled).--help: Show this message and exit.
shorsighted serve-mcp
Run an MCP server on stdio so AI agents can call ShorSighted.
Tools: scan_endpoints, explain_check, list_deadlines, audit_mcp_configs. Cloud scans are not exposed. Example Cursor config (~/.cursor/mcp.json): {"mcpServers": {"shorsighted": {"command": "shorsighted", "args": ["serve-mcp", "–allow", "*.example.com"]}}}
Usage:
Options:
--allow <list[str]>: Host glob (*.example.com) or CIDR agents may scan (repeatable). Default: any public host.--allow-private: Permit hosts that resolve to private/loopback/link-local addresses.--max-targets <int range>: Targets allowed per tool call. [default: 10; 1<=x<=500]--allow-port <list[int]>: Port to allow besides the TLS, SSH and STARTTLS defaults (repeatable). [1<=x<=65535]--timeout <float>: Per-connection timeout in seconds (default 5).--trust-store <str>: bundled (certifi) | system.--deadlines <path>: Deadline override YAML (merged with bundled).--help: Show this message and exit.
shorsighted scan
Scan hosts, files, cloud inventories, or everything in –config.
Usage:
Options:
-c, --config <path>: shorsighted.yaml with defaults, groups and sources.-f, --format <str>: table|json|jsonl|sarif|csv|markdown|html (default: from –output extension, else table)-o, --output <path>: Write the report to a file.--sarif-output <path>: Also write SARIF here (same scan, no second probe).--fail-on <str>: Exit 1 on findings at/above: critical|high|medium|low|info|none.--include-unverified: Let unverified deadlines count for –fail-on.--no-color: Disable color (also honours NO_COLOR).-q, --quiet: No progress bar or warnings on stderr.--help: Show this message and exit.
Commands:
url: Scan hosts given on the command line.mail: Discover and scan a domain's mail servers.file: Scan targets from a file, or from stdin…aws: Inventory AWS read-only, then probe what…azure: Inventory Azure read-only, then probe what…gcp: Inventory GCP read-only, then probe what…mcp: Find the remote MCP servers your AI…
shorsighted scan url
Scan hosts given on the command line.
Usage:
Arguments:
targets... <list[str]>: Hosts, host:port, URLs, :port, ssh://host, or STARTTLS services (smtp:// imap:// pop3:// ftp:// ldap:// postgres:// xmpp://, or a well-known port such as host:587). mail://domain discovers MX/SRV hosts.
Options:
--domains <list[str]>: Comma-separated hosts.--ports <str>: Comma-separated ports, default 443.-f, --format <str>: table|json|jsonl|sarif|csv|markdown|html (default: from –output extension, else table)-o, --output <path>: Write the report to a file.--sarif-output <path>: Also write SARIF here (same scan, no second probe).--fail-on <str>: Exit 1 on findings at/above: critical|high|medium|low|info|none.--include-unverified: Let unverified deadlines count for –fail-on.--concurrency <int>: Global concurrent targets (default 20).--per-host <int>: Max concurrent probes per host and per IP (default 2).--rate <str>: Global start rate cap, e.g. 10/s.--timeout <float>: Per-connection timeout in seconds (default 5).--sni <str>: Override SNI for every TLS target.--ipv4-only: Only probe A records.--ipv6-only: Only probe AAAA records.--trust-store <str>: bundled (certifi) | system.--ca-bundle <path>: Custom PEM bundle of trusted roots.--resolver <str>: DNS resolver IP (default: system resolver config).--deadlines <path>: Deadline override YAML (merged with bundled).--replace-deadlines: Use –deadlines instead of the bundled file.--remediations <path>: Remediation override YAML: per-rule fix text, runbook links, steps (merged with bundled).--expiry-days <int>: Warn when a cert expires within N days (30).--strict: Invalid input lines fail the run (exit 2).--max-targets <int>: Refuse to run above N targets.-y, --yes: Allow more than 50,000 targets.--resume <path>: State file; skip targets completed in a previous run.--skip-legacy-tls: Don't probe TLS 1.0/1.1/1.2 support.--show-passed: Include passing checks in table/csv/markdown.--no-color: Disable color (also honours NO_COLOR).-q, --quiet: No progress bar or warnings on stderr.--help: Show this message and exit.
shorsighted scan mail
Discover and scan a domain's mail servers.
MX hosts are probed with SMTP STARTTLS on port 25. Unless –mx-only is given, RFC 6186 SRV records add submission (587/465), IMAP (143/993) and POP3 (110/995). Null MX and "service not provided" SRV records are honoured. Outbound port 25 is blocked on most home and cloud networks.
Usage:
Arguments:
DOMAINS... <list[str]>: Mail domains, e.g. gmail.com. [required]
Options:
--mx-only: Only MX hosts (SMTP/25); skip RFC 6186 SRV discovery.-f, --format <str>: table|json|jsonl|sarif|csv|markdown|html (default: from –output extension, else table)-o, --output <path>: Write the report to a file.--sarif-output <path>: Also write SARIF here (same scan, no second probe).--fail-on <str>: Exit 1 on findings at/above: critical|high|medium|low|info|none.--include-unverified: Let unverified deadlines count for –fail-on.--concurrency <int>: Global concurrent targets (default 20).--per-host <int>: Max concurrent probes per host and per IP (default 2).--rate <str>: Global start rate cap, e.g. 10/s.--timeout <float>: Per-connection timeout in seconds (default 5).--ipv4-only: Only probe A records.--ipv6-only: Only probe AAAA records.--trust-store <str>: bundled (certifi) | system.--ca-bundle <path>: Custom PEM bundle of trusted roots.--resolver <str>: DNS resolver IP (default: system resolver config).--deadlines <path>: Deadline override YAML (merged with bundled).--replace-deadlines: Use –deadlines instead of the bundled file.--remediations <path>: Remediation override YAML: per-rule fix text, runbook links, steps (merged with bundled).--expiry-days <int>: Warn when a cert expires within N days (30).--max-targets <int>: Refuse to run above N targets.--resume <path>: State file; skip targets completed in a previous run.--skip-legacy-tls: Don't probe TLS 1.0/1.1/1.2 support.--show-passed: Include passing checks in table/csv/markdown.--no-color: Disable color (also honours NO_COLOR).-q, --quiet: No progress bar or warnings on stderr.--help: Show this message and exit.
shorsighted scan file
Scan targets from a file, or from stdin with '-'.
Usage:
Arguments:
path <str>: Targets file (.txt .csv .yaml .json), or - for stdin. [required]
Options:
--input-format <str>: txt|csv|yaml|json (default: by extension).--ports <str>: Comma-separated ports, default 443.-f, --format <str>: table|json|jsonl|sarif|csv|markdown|html (default: from –output extension, else table)-o, --output <path>: Write the report to a file.--sarif-output <path>: Also write SARIF here (same scan, no second probe).--fail-on <str>: Exit 1 on findings at/above: critical|high|medium|low|info|none.--include-unverified: Let unverified deadlines count for –fail-on.--concurrency <int>: Global concurrent targets (default 20).--per-host <int>: Max concurrent probes per host and per IP (default 2).--rate <str>: Global start rate cap, e.g. 10/s.--timeout <float>: Per-connection timeout in seconds (default 5).--sni <str>: Override SNI for every TLS target.--ipv4-only: Only probe A records.--ipv6-only: Only probe AAAA records.--trust-store <str>: bundled (certifi) | system.--ca-bundle <path>: Custom PEM bundle of trusted roots.--resolver <str>: DNS resolver IP (default: system resolver config).--deadlines <path>: Deadline override YAML (merged with bundled).--replace-deadlines: Use –deadlines instead of the bundled file.--remediations <path>: Remediation override YAML: per-rule fix text, runbook links, steps (merged with bundled).--expiry-days <int>: Warn when a cert expires within N days (30).--strict: Invalid input lines fail the run (exit 2).--max-targets <int>: Refuse to run above N targets.-y, --yes: Allow more than 50,000 targets.--resume <path>: State file; skip targets completed in a previous run.--skip-legacy-tls: Don't probe TLS 1.0/1.1/1.2 support.--show-passed: Include passing checks in table/csv/markdown.--no-color: Disable color (also honours NO_COLOR).-q, --quiet: No progress bar or warnings on stderr.--help: Show this message and exit.
shorsighted scan aws
Inventory AWS read-only, then probe what it finds.
Uses only Describe, List and Get calls.
Usage:
Options:
--profile <list[str]>: AWS profile (repeatable).--regions <str>: Comma-separated regions, or 'all'. Default: every region enabled for the account.--route53: Route53 public zones.--elb: ALB/NLB and Classic ELB.--cloudfront: CloudFront.--apigw: API Gateway custom domains.--acm: ACM certificates (config only).--ec2: EC2 instances with SSH (22) open to the internet.--all: All services (the default when none is given).--assume-role <str>: Role ARN to assume (read-only).--accounts-file <path>: YAML list of accounts/roles.--include-private: Report private zones/internal LBs (config only).--no-probe: Config only: don't connect to anything.--ports <str>: Comma-separated ports, default 443.-f, --format <str>: table|json|jsonl|sarif|csv|markdown|html (default: from –output extension, else table)-o, --output <path>: Write the report to a file.--sarif-output <path>: Also write SARIF here (same scan, no second probe).--fail-on <str>: Exit 1 on findings at/above: critical|high|medium|low|info|none.--include-unverified: Let unverified deadlines count for –fail-on.--concurrency <int>: Global concurrent targets (default 20).--per-host <int>: Max concurrent probes per host and per IP (default 2).--rate <str>: Global start rate cap, e.g. 10/s.--timeout <float>: Per-connection timeout in seconds (default 5).--ipv4-only: Only probe A records.--ipv6-only: Only probe AAAA records.--trust-store <str>: bundled (certifi) | system.--ca-bundle <path>: Custom PEM bundle of trusted roots.--resolver <str>: DNS resolver IP (default: system resolver config).--deadlines <path>: Deadline override YAML (merged with bundled).--replace-deadlines: Use –deadlines instead of the bundled file.--remediations <path>: Remediation override YAML: per-rule fix text, runbook links, steps (merged with bundled).--expiry-days <int>: Warn when a cert expires within N days (30).--max-targets <int>: Refuse to run above N targets.-y, --yes: Allow more than 50,000 targets.--resume <path>: State file; skip targets completed in a previous run.--skip-legacy-tls: Don't probe TLS 1.0/1.1/1.2 support.--show-passed: Include passing checks in table/csv/markdown.--no-color: Disable color (also honours NO_COLOR).-q, --quiet: No progress bar or warnings on stderr.--help: Show this message and exit.
shorsighted scan azure
Inventory Azure read-only, then probe what it finds.
Uses only HTTPS GET and needs the Reader role. Credentials:
AZURE_TENANT_ID/AZURE_CLIENT_ID/AZURE_CLIENT_SECRET, az login,
managed identity, or AZURE_ACCESS_TOKEN.
Usage:
Options:
--subscriptions <str>: Comma-separated subscription IDs. Default: every subscription the credential can read.--services <str>: Comma-separated: dns,frontdoor,appgw,appservice,nsg (default: all).--include-private: Report private DNS zones (config only).--no-probe: Config only: don't connect to anything.--ports <str>: Comma-separated ports, default 443.-f, --format <str>: table|json|jsonl|sarif|csv|markdown|html (default: from –output extension, else table)-o, --output <path>: Write the report to a file.--sarif-output <path>: Also write SARIF here (same scan, no second probe).--fail-on <str>: Exit 1 on findings at/above: critical|high|medium|low|info|none.--include-unverified: Let unverified deadlines count for –fail-on.--concurrency <int>: Global concurrent targets (default 20).--per-host <int>: Max concurrent probes per host and per IP (default 2).--rate <str>: Global start rate cap, e.g. 10/s.--timeout <float>: Per-connection timeout in seconds (default 5).--ipv4-only: Only probe A records.--ipv6-only: Only probe AAAA records.--trust-store <str>: bundled (certifi) | system.--ca-bundle <path>: Custom PEM bundle of trusted roots.--resolver <str>: DNS resolver IP (default: system resolver config).--deadlines <path>: Deadline override YAML (merged with bundled).--replace-deadlines: Use –deadlines instead of the bundled file.--remediations <path>: Remediation override YAML: per-rule fix text, runbook links, steps (merged with bundled).--expiry-days <int>: Warn when a cert expires within N days (30).--max-targets <int>: Refuse to run above N targets.-y, --yes: Allow more than 50,000 targets.--resume <path>: State file; skip targets completed in a previous run.--skip-legacy-tls: Don't probe TLS 1.0/1.1/1.2 support.--show-passed: Include passing checks in table/csv/markdown.--no-color: Disable color (also honours NO_COLOR).-q, --quiet: No progress bar or warnings on stderr.--help: Show this message and exit.
shorsighted scan gcp
Inventory GCP read-only, then probe what it finds.
Uses only HTTPS GET with the cloud-platform.read-only scope. Credentials:
GOOGLE_APPLICATION_CREDENTIALS, gcloud auth application-default login,
gcloud auth login, or GOOGLE_OAUTH_ACCESS_TOKEN.
Usage:
Options:
--projects <str>: Comma-separated project IDs. Default: every active project the credential can read.--services <str>: Comma-separated: dns,lb,certs,firewall (default: all).--include-private: Report private DNS zones (config only).--no-probe: Config only: don't connect to anything.--ports <str>: Comma-separated ports, default 443.-f, --format <str>: table|json|jsonl|sarif|csv|markdown|html (default: from –output extension, else table)-o, --output <path>: Write the report to a file.--sarif-output <path>: Also write SARIF here (same scan, no second probe).--fail-on <str>: Exit 1 on findings at/above: critical|high|medium|low|info|none.--include-unverified: Let unverified deadlines count for –fail-on.--concurrency <int>: Global concurrent targets (default 20).--per-host <int>: Max concurrent probes per host and per IP (default 2).--rate <str>: Global start rate cap, e.g. 10/s.--timeout <float>: Per-connection timeout in seconds (default 5).--ipv4-only: Only probe A records.--ipv6-only: Only probe AAAA records.--trust-store <str>: bundled (certifi) | system.--ca-bundle <path>: Custom PEM bundle of trusted roots.--resolver <str>: DNS resolver IP (default: system resolver config).--deadlines <path>: Deadline override YAML (merged with bundled).--replace-deadlines: Use –deadlines instead of the bundled file.--remediations <path>: Remediation override YAML: per-rule fix text, runbook links, steps (merged with bundled).--expiry-days <int>: Warn when a cert expires within N days (30).--max-targets <int>: Refuse to run above N targets.-y, --yes: Allow more than 50,000 targets.--resume <path>: State file; skip targets completed in a previous run.--skip-legacy-tls: Don't probe TLS 1.0/1.1/1.2 support.--show-passed: Include passing checks in table/csv/markdown.--no-color: Disable color (also honours NO_COLOR).-q, --quiet: No progress bar or warnings on stderr.--help: Show this message and exit.
shorsighted scan mcp
Find the remote MCP servers your AI clients use, then probe them.
Reads Cursor, Claude Desktop, Claude Code, VS Code, Windsurf and Gemini CLI configs, and also probes the OAuth authorization servers they advertise. Only scheme, host and port are taken from the config files. URL paths, query strings, env and headers (where API keys live) are never read or reported.
Usage:
Options:
--config-file <list[Path]>: MCP client config to read (repeatable; any client's format).--project <path>: Also read project-level configs (.cursor/mcp.json, .mcp.json, .vscode/mcp.json).--no-defaults: Only read –config-file / –project, not the user-level configs.--no-oauth: Don't fetch /.well-known/oauth-protected-resource to find auth servers.--no-probe: Config only: don't connect to anything.--ports <str>: Comma-separated ports, default 443.-f, --format <str>: table|json|jsonl|sarif|csv|markdown|html (default: from –output extension, else table)-o, --output <path>: Write the report to a file.--sarif-output <path>: Also write SARIF here (same scan, no second probe).--fail-on <str>: Exit 1 on findings at/above: critical|high|medium|low|info|none.--include-unverified: Let unverified deadlines count for –fail-on.--concurrency <int>: Global concurrent targets (default 20).--per-host <int>: Max concurrent probes per host and per IP (default 2).--rate <str>: Global start rate cap, e.g. 10/s.--timeout <float>: Per-connection timeout in seconds (default 5).--ipv4-only: Only probe A records.--ipv6-only: Only probe AAAA records.--trust-store <str>: bundled (certifi) | system.--ca-bundle <path>: Custom PEM bundle of trusted roots.--resolver <str>: DNS resolver IP (default: system resolver config).--deadlines <path>: Deadline override YAML (merged with bundled).--replace-deadlines: Use –deadlines instead of the bundled file.--remediations <path>: Remediation override YAML: per-rule fix text, runbook links, steps (merged with bundled).--expiry-days <int>: Warn when a cert expires within N days (30).--max-targets <int>: Refuse to run above N targets.-y, --yes: Allow more than 50,000 targets.--resume <path>: State file; skip targets completed in a previous run.--skip-legacy-tls: Don't probe TLS 1.0/1.1/1.2 support.--show-passed: Include passing checks in table/csv/markdown.--no-color: Disable color (also honours NO_COLOR).-q, --quiet: No progress bar or warnings on stderr.--help: Show this message and exit.
shorsighted deadlines
List and inspect the dated, sourced deadlines.
Usage:
Options:
--help: Show this message and exit.
Commands:
list: List every deadline with its date, days…show: Show one deadline, including computed…
shorsighted deadlines list
List every deadline with its date, days remaining and source.
Usage:
Options:
--deadlines <path>: Deadline override YAML (merged with bundled).--replace-deadlines: Use –deadlines instead of the bundled file.-f, --format <str>: table|json--no-color: Disable color (also honours NO_COLOR).--announcements / --no-announcements: Include announcements. [default: announcements]--help: Show this message and exit.
shorsighted deadlines show
Show one deadline, including computed issuance cutoffs.
Usage:
Arguments:
deadline_id <str>: Deadline id, e.g. chrome-p256-ca-distrust. [required]
Options:
--deadlines <path>: Deadline override YAML (merged with bundled).--replace-deadlines: Use –deadlines instead of the bundled file.--help: Show this message and exit.