censys-search
БесплатноБез исполняемых скриптовНе проверенUse when the user wants to run a censys search, censys search for hosts or certificates, search censys for hosts/certs/web properties, find censys hosts with…
от censys★ 15 звёзд на GitHubОб этом скилле
Censys Search
When to use
Use this skill whenever the user wants to run a full-text or structured Censys Query Language (CenQL) query against Censys host, certificate, or web-property data via the censys search CLI command. This covers requests like:
- "censys search for SSH hosts not on port 22"
- "search censys for certificates matching censys.com"
- "find censys hosts with port 443 open in Germany"
- "censys query for hosts running HTTP"
If the user already has a specific IP, cert SHA-256, or FQDN and wants a single-record lookup (not a query), that's censys-view, not this skill. If the user wants counts/breakdowns by field value rather than raw matching records, that's censys-aggregate. If the user needs help writing or debugging the CenQL query itself, defer to censys-cenql.
Invocation
Base form:
censys search "<CenQL query>" [flags]
Search-specific flags
| Flag | Alias | Description |
|---|---|---|
--fields |
-f |
Comma-separated list of fields to return (reduces payload size and speeds up parsing) |
--page-size |
-n |
Results per page (default: 100) |
--max-pages |
-p |
Max pages to fetch (default: 1; use -1 for exhaustive/all pages) |
--collection-id |
-c |
Restrict the search to a specific collection (UUID) |
Output format
Pass --output-format/-O with one of: json (default), yaml, tree, short, template. For streaming/pipeline use, pass --streaming/-S to emit NDJSON (one JSON object per line) instead of a single JSON array — this is required for piping into jq over exhaustive result sets without buffering the whole array in memory.
Global CLI flags
See ${CLAUDE_SKILL_DIR}/references/cli-globals.md for the full global flags reference (output
format, streaming, diagnostics, org-id, and PAT vs OAuth notes).
Common patterns
# Find SSH hosts not on port 22
censys search 'host.services: (protocol=SSH and not port: 22)' -O short
# Search with specific fields returned
censys search --fields host.ip,host.location.country "host.services.protocol=HTTP"
# Exhaustive export to NDJSON, extract IPs with jq
censys search "host.services.port: 443 and host.location.country: Germany" \
--max-pages -1 --streaming | jq -r '.host.ip'
# Search within a specific collection
censys search -c <collection-uuid> "host.services.protocol=SSH"
# Paginated results (5 pages of 50 each = up to 250 results)
censys search --page-size 50 --max-pages 5 "cert.names=censys.com"
Post-retrieval filtering
Once results are retrieved, use jq for filtering, projecting, and counting rather than trying to encode every condition in CenQL:
# Extract specific fields from JSON output
censys search "host.services.port=22" | jq '.[].host.ip'
# Filter results by condition
censys search "host.services.port=443" -O json | \
jq '[.[] | select(.host.location.country_code == "US")]'
# Count results matching a sub-condition
censys search "host.services.protocol=SSH" --max-pages 3 -O json | \
jq '[.[] | select(.host.services[]? | .port == 22)] | length'
Output guidance
- Default to
-O shortfor quick human review of a handful of results in the terminal. - Use the default
json(or-O jsonexplicitly) when the output will be piped intojqor another tool for filtering/analysis. - Use
--streaming(NDJSON) whenever--max-pages -1(exhaustive) is combined with a pipeline — this avoids holding the full result set in memory as one JSON array and letsjqprocess records incrementally. -O treeis useful for visually inspecting the full nested structure of a single result during ad-hoc exploration.-O templatesupports custom output formatting when the user needs a specific text layout (e.g., for a report or script).
Export workflow
For bulk exports, always aggregate first to check population size before spending credits on a full pull:
# Step 1: Check distribution before committing to a full pull
censys aggregate "<query>" "host.location.country"
# Step 2: Export using the plugin's export script
"${CLAUDE_PLUGIN_ROOT}/scripts/censys-export.sh" "<query>" ips data/hosts.txt
"${CLAUDE_PLUGIN_ROOT}/scripts/censys-export.sh" "<query>" ndjson data/hosts.ndjson
"${CLAUDE_PLUGIN_ROOT}/scripts/censys-export.sh" "<query>" csv data/hosts.csv
The export script uses streaming (-S) by default to avoid buffering large
result sets. Formats:
ips— plain text, one IP per linendjson— one JSON object per line (ip, asn, country, services)csv— spreadsheet-ready with header row
Without an output file, the script writes to stdout for piping into jq or
other tools.
Export caveats
software.productvalues are lowercase —software.product="AnyDesk"silently returns nothing; usesoftware.product: "AnyDesk"(:is case-insensitive) orsoftware.product="anydesk". Seecensys-cenqlfor=vs:guidance.2>/dev/nullsuppresses the status line
Установить censys-search в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл censys-search?
Use when the user wants to run a censys search, censys search for hosts or certificates, search censys for hosts/certs/web properties, find censys hosts with a given condition, run a censys query for hosts, or search for certificates on censys using CenQL. Wraps the `censys search` CLI subcommand. Trigger phrases include "censys search," "search censys for," "find censys hosts with," "censys query for hosts," and "search for certificates on censys." Do not use for viewing a single known host/cert/domain by identifier (see censys-view) or for aggregating/counting by field (see censys-aggregate).
Как установить скилл censys-search?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл censys-search запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub