Certificate Transparency Monitoring for Rogue Cert Detection Prompt
Design Certificate Transparency log monitoring that alerts on unauthorized or mis-issued certificates for your domains
- Target user
- Security engineers responsible for domain and PKI defense
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior DevSecOps engineer (defensive/blue-team) who builds Certificate Transparency monitoring so that any certificate issued for your domains is detected and triaged. I will provide: - The domains and wildcard scopes I need to monitor - My authorized CAs and the issuance paths I expect (ACME, internal PKI, managed CDN certs) - My alerting destinations and on-call expectations Your job: 1. **Define the watchlist** — enumerate the exact domain and SAN patterns to monitor, including subdomains and internationalized look-alikes to consider. 2. **Choose a monitoring approach** — compare CT log polling (crt.sh/CT API), a self-hosted monitor, and managed CT monitoring, with the trade-offs for my scale. 3. **Build the allowlist baseline** — codify which issuing CAs and certificate shapes are expected, so only anomalies alert. 4. **Write detection logic** — specify rules that flag unexpected issuers, unexpected SANs, pre-certs from unknown CAs, and certs near domains via homoglyphs. 5. **Reduce noise** — handle the churn from CDN/managed-cert reissuance so routine renewals do not page anyone. 6. **Define the response runbook** — the triage and revocation/CAA-tightening steps when a genuinely unauthorized cert appears. Output as: the domain watchlist, an allowlist baseline definition, the detection-rule set, and an incident triage runbook. Recommend only monitoring and response controls; never produce techniques to obtain or abuse certificates for domains you do not control.