mcpField
A
analyzing-tls-certificate-transparency-logs

analyzing-tls-certificate-transparency-logs

github.com/mukul975Security35.2k270 installsUpdated 8w ago
Repository

About analyzing-tls-certificate-transparency-logs

A security-analysis skill for querying crt.sh Certificate Transparency logs and reviewing certificates related to a domain. It is intended for SOC analysts and threat hunters investigating phishing infrastructure and monitoring coverage.

Key features

  1. 01Query crt.sh for domain certificates
  2. 02Find typosquatting domain variations
  3. 03Flag certificates from unexpected CAs
  4. 04Review wildcard certificates on suspicious subdomains
  5. 05Cross-reference known phishing infrastructure

Use cases

  1. 01Investigate certificates resembling an organization's domain
  2. 02Hunt for phishing infrastructure
  3. 03Develop domain-focused detection queries

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mukul975/anthropic-cybersecurity-skills --skill analyzing-tls-certificate-transparency-logs

After installing, type/analyzing-tls-certificate-transparency-logsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

LICENSE
references/
api-reference.md
scripts/
agent.py

Details

From the project README

Analyzing TLS Certificate Transparency Logs

When to Use

  • When investigating security incidents that require analyzing tls certificate transparency logs
  • When building detection rules or threat hunting queries for this domain
  • When SOC analysts need structured procedures for this analysis type
  • When validating security monitoring coverage for related attack techniques

Prerequisites

  • Familiarity with security operations concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Instructions

Query crt.sh Certificate Transparency database to find certificates issued for domains similar to your organization's brand, detecting phishing infrastructure.

from pycrtsh import Crtsh

c = Crtsh()
# Search for certificates matching a domain
certs = c.search("example.com")
for cert in certs:
    print(cert["id"], cert["name_value"])

# Get full certificate details
details = c.get(certs[0]["id"], type="id")

Key analysis steps:

  1. Query crt.sh for all certificates matching your domain pattern
  2. Identify certificates with typosquatting variations (Levenshtein distance)
  3. Flag certificates from unexpected CAs
  4. Monitor for wildcard certificates on suspicious subdomains
  5. Cross-reference with known phishing infrastructure

Examples

from pycrtsh import Crtsh
c = Crtsh()
certs = c.search("%.example.com")
for cert in certs:
    print(f"Issuer: {cert.get('issuer_name')}, Domain: {cert.get('name_value')}")

Comments

Markdown supported