Crt sh

From taracodlabs/aiden · View interactive version

Crt sh is an AI agent skill from the GitHub repository taracodlabs/aiden. Enumerate subdomains and TLS certs via CT logs (no API key needed)

How to use this skill

Skill file

Certificate Transparency Search (crt.sh)

Query crt.sh to enumerate all TLS/SSL certificates ever issued for a domain. Certificate transparency logs are public — no API key or account needed.

When to Use

How to Use

List all certificates for a domain

$domain = "taracod.com"
$url    = "https://crt.sh/?q=$domain&output=json"

$certs = Invoke-RestMethod -Uri $url
Write-Host "Found $($certs.Count) certificate records"
$certs | Select-Object -First 10 | Format-Table id, name_value, not_before, not_after -AutoSize

Extract unique subdomain names

$domain = "taracod.com"
$url    = "https://crt.sh/?q=$([Uri]::EscapeDataString("*.$domain"))&output=json"

$certs  = Invoke-RestMethod -Uri $url
$names  = $certs | ForEach-Object { $_.name_value -split "`n" } |
          Sort-Object -Unique |
          Where-Object { $_ -ne "" -and $_ -ne "*.$domain" }

Write-Host "Unique subdomains / names ($($names.Count)):"
$names | ForEach-Object { Write-Host "  $_" }

Search for certificates by organization (CA issuance)

$domain  = "taracod.com"
$url     = "https://crt.sh/?q=$domain&output=json"
$certs   = Invoke-RestMethod -Uri $url

$certs | Select-Object issuer_name, not_before, not_after, name_value |
    Sort-Object not_before -Descending |
    Select-Object -First 20 |
    Format-Table -AutoSize

Find recently issued certificates (last 30 days)

$domain    = "example.com"
$url       = "https://crt.sh/?q=$domain&output=json"
$certs     = Invoke-RestMethod -Uri $url
$cutoff    = (Get-Date).AddDays(-30)

$recent = $certs | Where-Object {
    [datetime]$_.not_before -gt $cutoff
} | Select-Object name_value, not_before, issuer_name

Write-Host "Certificates issued in the last 30 days: $($recent.Count)"
$recent | Format-Table -AutoSize

Examples

"Find all subdomains for google.com"

→ Use the subdomain extraction snippet with $domain = "google.com".

"What TLS certificates has github.com had?"

→ Use the first snippet with $domain = "github.com" and look at not_before/not_after.

"Show me recently issued certs for competitor.com"

→ Use the "recently issued" snippet — useful for tracking new infrastructure.

Cautions

Requirements

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.