Логотип Auditing Tls Certificate Transparency Logs

Auditing Tls Certificate Transparency Logs

Сообщество
26zl
auditing-tls-certificate-transparency-logs

Отслеживает журналы Certificate Transparency (CT), чтобы обнаруживать выдачу сертификатов без разрешения, находить поддомены по данным CT и получать оповещения о подозрительной активности с сертификатами для принадлежащих вам доменов. Использует API crt.sh и прямые запросы к журналам CT на основе RFC 6962 для создания конвейеров непрерывного мониторинга, которые выявляют мошеннические сертификаты, отслеживают действия центров сертификации и картируют внешнюю поверхность атаки. Активируется при запросах о мониторинге Certificate Transparency, аудите журналов CT, поиске поддоменов по сертификатам или оповещениях о выдаче сертификатов.

Обзор

Издатель26zl
Репозиторийcybersec-toolkit
Название навыкаauditing-tls-certificate-transparency-logs
Звёзды
95
Форки
18
Файлы в комплекте
2
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 2

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — 26zl. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Auditing Tls Certificate Transparency Logs в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/26zl/cybersec-toolkit/tree/main/.claude/skills/auditing-tls-certificate-transparency-logs
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/26zl/cybersec-toolkit.git /tmp/cybersec-toolkit
mkdir -p .claude/skills
cp -r /tmp/cybersec-toolkit/.claude/skills/auditing-tls-certificate-transparency-logs .claude/skills/auditing-tls-certificate-transparency-logs
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Auditing Tls Certificate Transparency Logs в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Auditing Tls Certificate Transparency Logs, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Auditing Tls Certificate Transparency Logs не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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.
  • Historical certificate mining: Query crt.sh without the exclude=expired parameter to find subdomains from expired certificates that may still resolve in DNS. These represent historical infrastructure that could be vulnerable to subdomain takeover.
  • DNS validation: For each discovered subdomain, perform DNS resolution (A, AAAA, CNAME records) to determine if the subdomain is currently active. Cross-reference with known IP ranges to identify shadow IT or unauthorized services.
  • Typosquat detection: Generate permutations of the monitored domain (bitsquatting, homograph, insertion, omission, transposition, keyboard-adjacent replacement) and query CT logs for certificates issued to these variations. Certificates for typosquat domains strongly indicate phishing infrastructure.
  • Deduplication and enrichment: Normalize discovered subdomains (lowercase, remove trailing dots), deduplicate, and enrich with WHOIS data, IP geolocation, and HTTP response headers to prioritize investigation.

Step 4: Certificate Issuance Alerting

Configure alerting rules for security-relevant certificate events:

  • Unauthorized CA alert: Trigger when a certificate is issued by a CA not in the authorized CA list. This is the highest-priority alert as it may indicate domain hijacking, BGP hijacking for domain validation, or a compromised CA.
  • New subdomain alert: Trigger when a certificate contains a SAN with a previously unseen subdomain. This catches shadow IT deployments and unauthorized services.
  • Wildcard certificate alert: Trigger on any new wildcard certificate issuance, as wildcard certificates have broader impact if compromised and their issuance should be tightly controlled.
  • Short-lived certificate anomaly: Alert when certificates have unusually short validity periods (under 24 hours) that deviate from the organization's normal certificate lifecycle, as this may indicate Let's Encrypt abuse or automated phishing infrastructure.
  • Expiration warning: Alert when certificates for critical services approach expiration (30, 14, 7 days) based on the not_after field from CT log data.
  • Alert delivery: Send alerts via email (SMTP), Slack webhook, PagerDuty, or write to a SIEM-compatible JSON log format for integration with existing security monitoring.

Step 5: CT Log Integrity Verification and Reporting

Verify log integrity and produce compliance evidence:

  • Signed Tree Head (STH) monitoring: Fetch the latest STH from each monitored CT log via the get-sth API endpoint. The STH contains the tree size and a signed timestamp. Verify the signature using the log's public key.
  • Consistency proof verification: Between consecutive STH fetches, request a consistency proof via get-sth-consistency to verify the log remains append-only and no entries have been modified or removed.
  • Certificate inventory report: Produce a complete inventory of all certificates issued for monitored domains, grouped by issuer, with validity status and key strength metrics.
  • CA diversity analysis: Report on how many different CAs issue certificates for the organization, identifying consolidation opportunities and single-points-of-failure.
  • Compliance evidence: For organizations subject to PCI-DSS, SOC 2, or similar frameworks, CT monitoring logs provide evidence of certificate lifecycle management and unauthorized issuance detection capabilities.

Key Concepts

TermDefinition
Certificate Transparency (CT)An open framework (RFC 6962) requiring Certificate Authorities to log all issued certificates in publicly auditable append-only logs, enabling domain owners to detect unauthorized issuance
Signed Certificate Timestamp (SCT)A promise from a CT log that a certificate will be included within the Maximum Merge Delay (typically 24 hours); browsers require SCTs from multiple logs before trusting a certificate
Merkle TreeThe cryptographic data structure used by CT logs where leaf nodes are certificate hashes and parent nodes are hashes of their children, enabling efficient consistency and inclusion proofs
PrecertificateA certificate submitted to CT logs before final issuance, containing a poison extension (OID 1.3.6.1.4.1.11129.2.4.3) that prevents it from being used for TLS but reserves its place in the log
crt.shA free web service operated by Sectigo that aggregates certificates from all major CT logs into a searchable PostgreSQL database, providing both web and API access
Subdomain TakeoverA vulnerability where a subdomain's DNS record points to a decommissioned service (cloud provider, CDN) that an attacker can reclaim, made discoverable through expired CT certificates
Maximum Merge Delay (MMD)The maximum time (typically 24 hours) a CT log has to incorporate a submitted certificate into its Merkle tree after returning an SCT
CAA RecordDNS Certification Authority Authorization record that specifies which CAs are permitted to issue certificates for a domain; CT monitoring detects violations of CAA policy

Tools & Systems

  • crt.sh: Primary CT log aggregator providing JSON API access at https://crt.sh/?q=<query>&output=json with support for wildcard queries, identity filtering, and certificate detail retrieval
  • ct-woodpecker: Open-source CT log monitoring tool from Let's Encrypt that integrates with Prometheus and Grafana for operational monitoring of log health and consistency
  • certspotter: SSLMate's CT log monitor that watches for newly issued certificates and sends notifications; available as hosted service or self-hosted tool
  • Google Argon / Xenon / Icarus: Google-operated CT logs that are among the most widely used, queryable via the RFC 6962 API at their respective log URLs
  • OpenSSL: Command-line tool for parsing certificate details, verifying chains, and extracting SAN lists from certificates retrieved through CT monitoring

Common Scenarios

Scenario: Detecting Unauthorized Certificate Issuance for a Financial Services Company

Context: A bank monitors its primary domain (bank.example.com) and discovers via CT logs that a certificate has been issued by a CA they have never used, covering secure-login.bank.example.com -- a subdomain that does not exist in their DNS.

Approach:

  1. CT monitoring agent detects a new certificate from "FreeSSL CA" for secure-login.bank.example.com in crt.sh results, which is not in the authorized CA list (DigiCert, Sectigo)
  2. Alert fires as unauthorized CA + new subdomain, escalating to the security team within 15 minutes of CT log entry
  3. Investigate the certificate: extract the public key, check if the domain validated via HTTP-01 or DNS-01 challenge, query WHOIS for the issuing organization
  4. DNS lookup for secure-login.bank.example.com reveals it resolves to an IP address in a hosting provider not used by the bank -- confirming this is attacker infrastructure
  5. Initiate incident response: request certificate revocation from FreeSSL CA, file a domain abuse report, add the IP to blocklists, and notify the anti-phishing team
  6. Implement CAA DNS records (bank.example.com. CAA 0 issue "digicert.com") to prevent unauthorized CAs from issuing future certificates

Pitfalls:

  • Not monitoring wildcard patterns (%.bank.example.com) and missing certificates for subdomains
  • Ignoring precertificates that appear in CT logs before the actual certificate is issued, losing the early warning advantage
  • Failing to verify that CAA records are properly configured on all domains after an incident
  • Over-alerting on legitimate certificate renewals because the baseline database was not updated after authorized changes

Scenario: Attack Surface Mapping Through CT Log Subdomain Discovery

Context: A penetration tester uses CT logs as the first phase of external reconnaissance to map the target organization's internet-facing services before active scanning.

Approach:

  1. Query crt.sh for %.target.com and all known subsidiary domains, collecting 2,400 unique certificates spanning 8 years
  2. Extract 347 unique subdomains from SAN fields across all certificates, including expired ones
  3. DNS-resolve all 347 subdomains, finding 189 currently active with A/AAAA records
  4. Identify 12 subdomains pointing to decommissioned cloud services (CNAME to S3 buckets, Azure endpoints) that are candidates for subdomain takeover
  5. Discover staging-api.target.com and dev-portal.target.com which are not in the target's documented scope but are reachable and running older software versions
  6. Present findings to the target organization showing the gap between their known asset inventory and the CT-derived attack surface

Pitfalls:

  • Assuming all CT-discovered subdomains are in scope without confirming with the asset owner
  • Not checking for wildcard DNS responses that make it appear subdomains exist when they resolve to a catch-all
  • Relying solely on CT data without cross-referencing with passive DNS databases for comprehensive coverage

Output Format

## CT Log Monitoring Report

**Domain**: example.com
**Monitoring Period**: 2026-03-01 to 2026-03-19
**Total Certificates Tracked**: 142
**New Certificates Detected**: 7
**Alerts Generated**: 2

### Alert: Unauthorized CA Issuance
- **Severity**: Critical
- **Certificate CN**: secure-login.example.com
- **SANs**: secure-login.example.com, www.secure-login.example.com
- **Issuer**: Unknown Free CA (NOT in authorized CA list)
- **Serial**: 04:A3:B7:2F:...:9E
- **Not Before**: 2026-03-18T00:00:00Z
- **Not After**: 2026-06-16T00:00:00Z
- **CT Log**: Google Argon 2026
- **SCT Timestamp**: 2026-03-17T22:15:33Z
- **Action Required**: Investigate immediately, request revocation

### Subdomain Discovery Summary
- **Total Unique Subdomains**: 89
- **New Subdomains This Period**: 3
  - api-v3.example.com (DigiCert, valid)
  - staging-new.example.com (Let's Encrypt, valid)
  - old-portal.example.com (expired 2025-12-01, CNAME to Azure -- takeover risk)

### Typosquatting Alerts
| Domain | Certificate Count | Issuer | Action Required |
|--------|-------------------|--------|-----------------|
| exarnple.com | 2 | Let's Encrypt | Investigate phishing |
| examp1e.com | 1 | ZeroSSL | Investigate phishing |

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Auditing Tls Certificate Transparency Logs?

Отслеживает журналы Certificate Transparency (CT), чтобы обнаруживать выдачу сертификатов без разрешения, находить поддомены по данным CT и получать оповещения о подозрительной активности с сертификатами для принадлежащих вам доменов. Использует API crt.sh и прямые запросы к журналам CT на основе RFC 6962 для создания конвейеров непрерывного мониторинга, которые выявляют мошеннические сертификаты, отслеживают действия центров сертификации и картируют внешнюю поверхность атаки. Активируется при запросах о мониторинге Certificate Transparency, аудите журналов CT, поиске поддоменов по сертифик...

Зачем использовать Auditing Tls Certificate Transparency Logs в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Auditing Tls Certificate Transparency Logs — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Auditing Tls Certificate Transparency Logs в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/26zl/cybersec-toolkit/tree/main/.claude/skills/auditing-tls-certificate-transparency-logs. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Auditing Tls Certificate Transparency Logs?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Auditing Tls Certificate Transparency Logs?

С любым количеством. В TypingMind вы можете использовать Auditing Tls Certificate Transparency Logs с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Auditing Tls Certificate Transparency Logs?

Да. Навык опубликован на GitHub по лицензии Apache-2.0. Издатель — 26zl. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип affaan-m

Architecture Decision Records

affaan-m
СообществоПопулярный

Записывает архитектурные решения в структурированные ADR во время сеансов разработки: автоматически обнаруживает моменты принятия решений и фиксирует контекст, рассмотренные альтернативы и обоснование. Ведёт журнал ADR, чтобы будущие разработчики понимали, почему кодовая база устроена именно так.

39.1K
261.1K
Инструкции
Открыть
Логотип affaan-m

Automation Audit Ops

affaan-m
СообществоПопулярный

Рабочий процесс для составления основанного на доказательствах перечня средств автоматизации ECC и аудита пересечений. Используйте, когда пользователь хочет узнать, какие задачи, хуки, коннекторы, MCP-серверы или обёртки работают, сломаны, дублируют друг друга или отсутствуют и требуют исправления.

39.1K
261.1K
Инструкции
Открыть
Логотип NousResearch

Grok

NousResearch
ОрганизацияПопулярный

Delegate coding to xAI Grok Build CLI (features, PRs).

53.5K
250.4K
Инструкции
Открыть
Логотип NousResearch

Setup Wizard Generator

NousResearch
ОрганизацияПопулярный

Generate a bash wizard guiding a human through manual setup.

53.5K
250.4K
Файлы: 1
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇