A
analyzing-tls-certificate-transparency-logs
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
- 01Query crt.sh for domain certificates
- 02Find typosquatting domain variations
- 03Flag certificates from unexpected CAs
- 04Review wildcard certificates on suspicious subdomains
- 05Cross-reference known phishing infrastructure
Use cases
- 01Investigate certificates resembling an organization's domain
- 02Hunt for phishing infrastructure
- 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-logsAfter installing, type/analyzing-tls-certificate-transparency-logsin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
LICENSEreferences/api-reference.mdscripts/agent.pyDetails
From the project READMEAnalyzing 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:
- Query crt.sh for all certificates matching your domain pattern
- Identify certificates with typosquatting variations (Levenshtein distance)
- Flag certificates from unexpected CAs
- Monitor for wildcard certificates on suspicious subdomains
- 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