Lion Cipher Lab

Audit a domain's email and TLS hygiene with plain SQL: Steampipe's net plugin, no cloud account needed

Why it matters

A lot of security posture is public and checkable from outside: whether a domain tells mail servers to reject spoofed email, whether its certificates are about to expire, whether its servers still accept old protocols, and whether browsers are told to always use HTTPS. Teams often check these by hand with a pile of one-off tools, which means they get checked rarely. Steampipe, an open-source tool from Turbot, presents APIs as SQL tables, so the same SELECT statement you would run on a database can ask DNS, a TLS handshake or a web server a question. This lab uses the net plugin, which needs…

What you'll learn

Steps in this lab

  1. Install Steampipe and the net plugin
  2. Your first query: a domain's DNS records
  3. Find the SPF record
  4. Find the DMARC policy
  5. Check the certificate
  6. Test which TLS versions the server accepts
  7. Check for HSTS
  8. Build the scorecard and save it as CSV
  9. Where this goes next

Open the full interactive lab →

Keep learning