# Ct Tls Logs

> 证书透明度日志资产发现：crt.sh 查询、签发时间线分析、钓鱼仿冒域识别。触发词：证书透明、CT日志、crt.sh、仿冒域名。

- Skill: `wufufu770/ct-tls-logs` (Agent Skill)
- Install (CLI): `npx skillmds@latest add wufufu770/ct-tls-logs`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wufufu770/ct-tls-logs/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: wufufu770 (https://skillmd.com/u/wufufu770)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/wufufu770/ct-tls-logs

---


## TL;DR

- **目的**：Queries Certificate Transparency logs via crt.sh and pycrtsh to detect
  phishing domains, unauthorized certificate issuance, and shadow IT…
- **适用**：目标资产侦察/信息收集
- **输入**：目标根域名 + 监控开始时间（可选起止日）
- **输出**：资产清单 + 子域列表 + 暴露面报告
- **红线**：仅限授权范围内；扫描限速 `-c 10 -rl 10`；所有动作记 oplog
- **关联**：上游：003-src-session-start → 下游：004-analyzing-certificate-transparency-for-phishing, 006-analyzing-typosquatting-domains-with-dnstwist

  phishing domains, unauthorized certificate issuance, and shadow IT…
- **适用**：目标资产侦察/信息收集
- **输入**：见正文 工作流/输入 章节
- **输出**：执行结果 + 证据链
- **红线**：仅限授权范围内；扫描限速 `-c 10 -rl 10`；所有动作记 oplog
- **关联**：上游：src-session-start → 下游：01-src-component-nday / 65-hunt-sqli / 71-hunt-xss

  phishing domains, unauthorized certificate issuance, and shadow IT…
- **适用**：目标资产侦察/信息收集
- **输入**：见正文 工作流/输入 章节
- **输出**：执行结果 + 证据链
- **红线**：仅限授权范围内；扫描限速 `-c 10 -rl 10`；所有动作记 oplog
- **关联**：上游：src-session-start → 下游：01-src-component-nday / 65-hunt-sqli / 71-hunt-xss

# 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.

```python
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

```python
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')}")
```

## Tools & Systems

- **subfinder** — Subdomain enumeration (passive + active)
- **amass** — Deep subdomain recon with graph database
- **shodan** — Internet-wide device search
- **censys** — Certificate transparency + scan data
- **theHarvester** — Email/subdomain/host harvesting
- **SpiderFoot** — Automated OSINT (200+ modules)

All tools run locally with `-rate-limit 20` to avoid OPSEC issues.

## Output Format

```markdown
# Recon Report: <target>
Generated: <ISO timestamp>

## Subdomains
- sub1.target.com (resolved IP, ASN)
- sub2.target.com (resolved IP, ASN)

## Exposed services
- sub1.target.com:443 (HTTPS, cert issuer)
- sub2.target.com:80 (HTTP, server header)

## Email addresses
- admin@target.com (source)
- ceo@target.com (source)
```

Save as `share/intel/recon/<target>-<timestamp>.md`.

## Workflow

1. **Seed input** — Root domain, company name, or ASN
2. **Passive collection** — crt.sh, shodan, censys, theHarvester (no touch)
3. **Active enumeration** — subfinder with public resolvers
4. **Validation** — Resolve and probe live hosts
5. **Fingerprint** — Identify technology stack
6. **Reporting** — Aggregate into recon report


## Advanced Techniques

### Multi-Source Correlation
Combine passive sources (crt.sh, shodan) with active enumeration results to identify shadow IT, forgotten subdomains, and orphan DNS records.

### Timeline Analysis
Use `whois` history and Certificate Transparency logs to reconstruct the target's infrastructure evolution.

