Zum Inhalt springen
Skillpedia
Sicherheit35k · #7685

auditing-tls-certificate-transparency-logs

Was er macht

Dieses System prüft die öffentlichen Einträge von Sicherheitszertifikaten (TLS CT-Logs), um Zertifikate zu finden, die ohne deine Erlaubnis für deine Domains ausgestellt wurden. Außerdem hilft es dir, Subdomains zu entdecken, und schlägt Alarm bei verdächtigen Aktivitäten.

Wann du ihn nutzt

  • ✓Wenn du wissen willst, ob jemand ohne deine Genehmigung ein Sicherheitszertifikat für deine Domain ausgestellt hat.
  • ✓Um Subdomains zu finden, von denen du nichts wusstest.
  • ✓Um Betrugsversuche mit Sicherheitszertifikaten zu erkennen, die deinen eigenen ähnlich sehen.

Link zum Skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/auditing-tls-certificate-transparency-logs/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/auditing-tls-certificate-transparency-logs/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Prüfe, ob es nicht autorisierte Sicherheitszertifikate für meine Domains example.com und sub.example.com gibt.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Es fragt öffentliche Datenbanken für Sicherheitszertifikate (CT-Logs) ab und nutzt dafür das Tool crt.sh. Anschließend vergleicht es die Ergebnisse mit dem, was du bereits hast, und warnt dich vor neuen oder ungewöhnlichen Aktivitäten.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Auditing TLS Certificate Transparency Logs

When to Use

  • Monitoring owned domains for unauthorized or unexpected certificate issuance by unknown Certificate Authorities
  • Discovering subdomains and hidden services through certificates logged in public CT logs
  • Detecting phishing infrastructure that uses look-alike domain certificates (typosquatting, homograph attacks)
  • Auditing Certificate Authority compliance by verifying all issued certificates appear in CT logs as required by browser policies
  • Building continuous certificate monitoring into a security operations pipeline with alerting for new issuances

Do not use for attacking or disrupting Certificate Authorities, for scraping CT logs in violation of rate limits or terms of service, or as the sole method of subdomain enumeration without corroborating results through DNS verification.

Prerequisites

  • Python 3.10+ with requests, cryptography, and pyOpenSSL libraries installed
  • Network access to crt.sh (HTTPS) and public CT log servers
  • A list of domains to monitor (owned domains, brand variations, typosquat candidates)
  • SMTP credentials or webhook URL for alerting on new certificate discoveries
  • Basic understanding of X.509 certificate structure and TLS certificate chain validation

Workflow

Step 1: Domain Inventory and Baseline

Build the initial certificate inventory for monitored domains:

  • Define monitoring scope: List all owned root domains, registered brand names, and known subsidiaries. Include wildcard patterns (%.example.com) for comprehensive subdomain coverage.
  • Query crt.sh for historical certificates: Use the crt.sh JSON API to retrieve all known certificates for each domain. The API endpoint https://crt.sh/?q=%.example.com&output=json returns certificates matching the wildcard pattern with fields including issuer_ca_id, issuer_name, common_name, name_value, not_before, not_after, and serial_number.
  • Build baseline database: Store the initial certificate set in a local SQLite database with columns for certificate ID, domain, issuer, validity dates, SANs (Subject Alternative Names), and first-seen timestamp. This baseline prevents alerting on already-known certificates.
  • Identify authorized CAs: From the baseline, extract the set of Certificate Authorities that have legitimately issued certificates for your domains. Any future issuance from a CA not in this set triggers a high-priority alert.
  • Map subdomains: Extract all unique subdomains from the name_value field across all certificates to build an initial subdomain inventory.

Step 2: Continuous CT Log Monitoring

Set up ongoing monitoring for new certificate issuances:

  • Poll crt.sh periodically: Query the crt.sh API at regular intervals (every 15-60 minutes) for new certificates. Use the exclude=expired parameter to focus on currently valid certificates. Compare results against the baseline database to identify new entries.
  • Parse certificate details: For each new certificate, extract the full SAN list, issuer chain, validity period, key type and size, CT log SCT (Signed Certificate Timestamp) details, and certificate fingerprint (SHA-256).
  • Detect precertificates: CT logs include precertificates (poisoned certificates submitted before final issuance). Track these as early warnings since they indicate a certificate is about to be issued but may not yet be active.
  • Monitor CT log Signed Tree Heads (STH): For advanced monitoring, query CT log servers directly to fetch the latest STH and verify consistency proofs between consecutive tree heads. An inconsistency indicates log misbehavior (split-view attack).
  • Rate limiting awareness: Respect crt.sh rate limits by spacing queries and caching responses. Implement exponential backoff on HTTP 429 responses. For high-volume monitoring, consider querying the crt.sh PostgreSQL interface directly at crt.sh:5432.
  • Atom/RSS feed alternative: Subscribe to crt.sh's Atom feed for lighter-weight monitoring: https://crt.sh/atom?q=%25.example.com provides real-time notification of new log entries.

Step 3: Subdomain Discovery via CT Data

Extract and validate subdomains found in certificate transparency data:

  • Wildcard expansion: Certificates with wildcard SANs (*.dev.example.com) reveal the existence of subdomains that may not be in DNS zone files. Record the parent domain as a target for further enumeration.

…

Häufige Fragen

Was sind Certificate Transparency (CT)-Logs?

Das sind öffentliche Protokolle, in die alle Stellen, die Sicherheitszertifikate ausstellen (etwa für sichere Webseiten), jedes ausgestellte Zertifikat eintragen müssen. So lässt sich sicherstellen, dass alle Zertifikate legitim sind.

Was ist ein TLS-Sicherheitszertifikat?

Das ist ein digitales Zertifikat, das sicherstellt, dass eine Webseite die ist, für die sie sich ausgibt, und dass die Kommunikation mit ihr verschlüsselt ist. Es sorgt dafür, dass im Browser das Schloss-Symbol in der Adressleiste erscheint.

Was sind Subdomains?

Das sind Teile einer Hauptdomain. Zum Beispiel sind „blog.example.com“ und „shop.example.com“ Subdomains von „example.com“.

Details

Originalbeschreibung des Autors

Monitors Certificate Transparency (CT) logs to detect unauthorized certificate issuance, discover subdomains via CT data, and alert on suspicious certificate activity for owned domains. Uses the crt.sh API and direct CT log querying based on RFC 6962 to build continuous monitoring pipelines that catch rogue certificates, track CA behavior, and map the external attack surface. Activates for request

repo: mukul975/Anthropic-Cybersecurity-Skills

Beliebtheit

GitHub-Sterne
35k
Platz im Ranking
#7685
Lizenz
Apache-2.0
Aktualisiert
31.8.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills