Chuyển đến nội dung
Skillpedia
Bảo mật35k · #7685

auditing-tls-certificate-transparency-logs

Skill này làm gì

Hệ thống này kiểm tra các bản ghi chứng chỉ bảo mật công khai (nhật ký TLS CT) để tìm chứng chỉ bảo mật được cấp cho tên miền của bạn mà bạn không cho phép. Nó cũng giúp phát hiện các tên miền phụ (subdomain) và cảnh báo hoạt động đáng ngờ.

Khi nào nên dùng

  • ✓Khi bạn muốn biết có ai đã cấp chứng chỉ bảo mật cho tên miền của bạn mà không được phép hay không.
  • ✓Để tìm các tên miền phụ mà bạn không biết là tồn tại.
  • ✓Để phát hiện các nỗ lực lừa đảo dùng chứng chỉ bảo mật giống với của bạn.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/auditing-tls-certificate-transparency-logs/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kiểm tra các chứng chỉ bảo mật không được phép cho tên miền example.com và sub.example.com của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Hệ thống truy vấn các cơ sở dữ liệu chứng chỉ công khai (nhật ký CT) và dùng công cụ crt.sh để tìm thông tin. Sau đó, nó so sánh với dữ liệu bạn đã có để cảnh báo về các hoạt động mới hoặc lạ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

…

Câu hỏi thường gặp

Nhật ký Certificate Transparency (CT) là gì?

Đây là các nhật ký công khai, nơi các tổ chức cấp chứng chỉ bảo mật (cho website an toàn) phải ghi lại mọi chứng chỉ họ cấp. Điều này giúp đảm bảo mọi chứng chỉ đều hợp pháp.

Chứng chỉ bảo mật TLS là gì?

Đây là chứng chỉ số đảm bảo website đúng là nơi nó tự nhận và việc giao tiếp với website được mã hóa (an toàn). Nhờ nó mà trình duyệt hiển thị biểu tượng ổ khóa trên thanh địa chỉ.

Tên miền phụ (subdomain) là gì?

Đây là các phần của một tên miền chính. Ví dụ, “blog.example.com” và “shop.example.com” là các tên miền phụ của “example.com”.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#7685
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự