Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

testssl.sh

$ testssl.sh Community Med Risk
Dirk Wetter · Browser & Web · GPL-2.0 · macos / linux

testssl.sh inspects remote TLS/SSL endpoints for supported protocols, weak ciphers, certificate chains, and known vulnerabilities like Heartbleed or ROBOT. Passing --quiet --color 0 --jsonfile yields clean, ANSI-free JSON findings for automated security checks.

FCRS-1.0 Score
81 /100
Good
Medium Confidence
Zero-Friction Install
brew install testssl
CLI vs MCP Decision CLI Only

Executes raw OpenSSL and custom socket probes from your host network; no MCP wrapper matches its cipher-level fidelity.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Supports --jsonfile, --quiet, and --color 0 for clean automation, though JSON writes to files (--json auto-names files) rather than clean stdout.

  • Flags --jsonfile, --jsonfile-pretty, --quiet, and --color 0
Trust & Safety 20 / 25

Purely passive/handshake-level TLS inspection without modifying remote state, though full scans generate many connections to target hosts.

  • Read-only TLS probing; supports scoped checks like -p and -S
Setup & Portability 12 / 15

Easy Homebrew and package-manager install on macOS and Linux, but Bash/Unix-oriented (Windows requires WSL or Git Bash).

  • Available via brew install testssl and Linux distros
Utility & Efficiency 14 / 15

Exhaustive TLS cipher, chain, SNI, STARTTLS, and CVE coverage in one self-contained tool.

  • Tests protocols, ciphers, HSTS, OCSP, and major TLS vulnerabilities
Maintenance & Lineage 8 / 10

Long-running community security standard maintained in testssl/testssl.sh under GPL-2.0.

  • Established security project with regular cipher/CVE updates
Docs & Verifiability 8 / 10

Detailed man page and testssl.sh --help documenting output formats and exit codes.

  • Published documentation at https://testssl.sh/doc/

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Requires no credentials or API keys; performs direct TLS handshakes against target hosts.

Side Effects
Read-Only Local Write
Cost & Quotas

Free, GPL-2.0 open-source Bash script with bundled OpenSSL binaries.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# testssl.sh Agent Rules
- Always pass `--quiet --color 0` so output stays free of banners and ANSI escape codes.
- Use `--jsonfile <file>` or `--jsonfile-pretty <file>` for machine parsing.
- Only scan domains or staging endpoints you are authorized to probe.

Agent-Ready Command Recipes

Safe Read-Only Queries

Scan TLS server and write JSON report
testssl.sh --quiet --color 0 --jsonfile tls-report.json example.com:443

Suppresses the startup banner (--quiet) and ANSI colors (--color 0) while saving structured findings to tls-report.json.

Check protocols and server defaults only
testssl.sh --quiet --color 0 -p -S example.com

Runs a fast read-only check of TLS protocol versions (-p) and server certificate defaults (-S).

Strengths for Agents

  • + --quiet --color 0 --jsonfile delivers clean, structured vulnerability and cipher reports.
  • + Zero-auth local execution with deep STARTTLS and certificate chain inspection.

Caveats & Pitfalls

  • ! Full default scans can take 30–90 seconds and open dozens of TLS connections; use -p or -S for quick checks.
  • ! Not native on Windows without WSL.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI