/censys:censys-investigatefrom censys
Runs a multi-step Censys investigation methodology (20-50+ API calls) with baseline collection and decision trees. Confirms scope and cost before starting.
Ships in censys. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Fires on explicit multi-command investigation requests — asks that need a methodology spanning several Censys commands, not just a single lookup. Typical triggers:
NOT for a single lookup (censys-view), a single search (censys-search), or
a single history request (censys-timeline). If the user says "what's running
on this IP," "profile this host," or "show me this host's services" — use
censys-view, not this skill.
Before starting: confirm with the user the investigation target, estimated API call count (typically 20–50+ for a standard investigation, 100+ for deep pivoting), and whether they want the full methodology or a lighter pass.
Precedence: If guidance in this skill conflicts with a command skill (censys-search, censys-view, censys-aggregate, etc.), the command skill wins. Command skills own the facts about their own CLI behavior; this skill owns the investigation methodology.
Requires the Censys CLI installed and authenticated. See the repo README for install and auth steps.
This skill runs in two phases:
Every query result is saved to data/. The audit trail has three layers:
findings.md holds conclusions, data/ holds raw observations, and the
commands embedded throughout this skill are the methodology that connects
one to the other.
Create the task directory:
YYYY-MM-DD_description/
├── data/
│ └── pivot_results/
├── analysis/
│ └── findings.md ← initialized from template
└── src/
censys view <IP> -O json > data/censys_view_<IP>.json
Parse: services (port, protocol, software), TLS certs, DNS names, ASN/location,
OS indicators. Populate Host Profile and Current Services in
findings.md.
censys history <IP> --duration 30d -S > data/censys_history_<IP>.ndjson
Start with 30 days and widen only if the baseline reveals a signal worth
chasing further back. Always use streaming (-S) — buffered output on a
large history can take minutes or fail to complete. Widen incrementally:
30d → 90d → 1y.
See censys-timeline for flag details, event model, and interpretation
guidance.
Parse: service uptime intervals, service changes, signal rotations, ownership events, reverse DNS. Populate Infrastructure Timeline.
For each associated domain:
censys history <domain>:443 --duration 30d -S > data/censys_history_<domain>.ndjson
Skip if no domains. Document DNS resolution history, flag previous IPs.
Extract all pivotable indicators from steps 2–4. Categorize using
censys-cenql's known-noise section:
Unique — body hashes, banner hashes, cert fingerprints, build artifact strings, custom ETags
Broad / Noise — common software versions, default hostnames, shared CDN hashes, framework defaults
Unknown — count the hosts that match, then classify. 0–5 hits → unique. 25+ → broad.
"${CLAUDE_PLUGIN_ROOT}/scripts/censys-count.sh" '<query>'
The script pages the full result set and prints the count. It exits 2 with a warning if the count hits the 10,000-result API ceiling — treat that number as a floor, not a total.
Do not count with --page-size 1 --max-pages 1. That command returns one
record and no total. Do not count by adding censys aggregate buckets either:
-n limits the bucket list and the default is 25, so the sum can be far below
the true total. See censys-aggregate for measured evidence.
Shared-tooling pitfall: C2 framework identifiers (Cobalt Strike watermarks,
Sliver implant IDs, Mythic callback tokens) can be shared across unrelated
operators via cracked/leaked licenses or shared builders. Always run a
population count before classifying as unique — e.g., CS watermark 987654321
appears on 77+ unrelated hosts globally. Treat these as Broad unless the
population is very small (< 5 hosts). The C2 framework's public key or
beacon config URIs are more likely to be operator-specific than the license
watermark.
Hosting-provider fleet artifact: a provider can run its own service on every VPS it rents. That service then appears on every host in the cluster you hunt, and it looks like operator tradecraft. It is not. It carries no attribution weight, and a query that uses it is locked to that provider even when the query contains no ASN filter — so the query returns zero after the operator changes provider.
Before you classify any port, banner, or service as operator-specific, sweep the host's own ASN for it:
censys aggregate 'host.autonomous_system.asn = <asn> and host.services.port = "<port>"' \
host.operating_system.product -n 25
Read the result this way:
A real case: port 17500 returned a TLS unrecognized_name fatal alert on all six
hosts of a Linux C2 cluster. The banner suggested a deliberate SNI gate. A sweep
of the ASN returned 19 hosts with the identical banner hash. 13 were bare
Windows/RDP VPS with no relation to the cluster. Port 17500 was the provider's
own service.
Dark infrastructure caveat: CenQL endpoint fields (e.g., Cobalt Strike
watermark/public key) only match hosts with currently active listeners.
If a cluster's services are offline, these searches return 0 — which means
"not currently visible," not "unique to target." Verify the field is indexed
by running a wildcard query (field:*) before interpreting 0 results.
Populate Indicator Triage. Output = a prioritized indicator list for the decision trees below.
All raw data, history dumps, and pivot query results are saved to data/.
Nothing is discarded.
Naming convention:
data/censys_view_<IP>.jsondata/censys_history_<IP>.ndjsondata/censys_history_<domain>.ndjsondata/censys_history_cert_<sha256_prefix>.ndjsondata/pivot_results/<query_name>.jsondata/pivot_results/<query_name>.errRules:
field:*
before calling anything unique.findings.md references every file in
data/.The baseline's outputs determine which decision tree(s) to enter. Multiple trees may apply, and trees feed back into each other as new candidates surface.
For the full decision tree flowcharts (Trees 1–6), see ${CLAUDE_SKILL_DIR}/references/decision-trees.md.
Initialize analysis/findings.md from the template in
${CLAUDE_SKILL_DIR}/references/findings-template.md at the start
of every investigation.
Tactical pivot techniques and bulk verification procedures are in ${CLAUDE_SKILL_DIR}/references/pivot-patterns.md.
censys history for baseline Step 3 and deep-dive (Tree 4).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub censys/censys-ai-skills --plugin censys9 skills in this plugin
/censys-aggregateUse when the user wants to aggregate, bucket, or count censys search results by field, censys break down results by field, censys top ports for a query, censys count by country, censys distribution of a field, or the equivalent of the Censys Platform Report Builder. Wraps the `censys aggregate` CLI subcommand. Trigger phrases include "censys aggregate," "censys break down by," "censys top ports for," "censys count by country," and "censys distribution of." Do not use for returning raw matching records (see censys-search) or for single-record lookup by identifier (see censys-view)./censys-analyzeUse when the user wants to do structured post-retrieval analysis on Censys CLI output — e.g. "censys analyze results," "analyze censys data," "censys jq," "query saved censys data," "censys batch certs," "cross-reference censys results," or "censys post-processing." Teaches saving CLI output to files, jq recipes for filtering/extraction, loading results into SQLite for SQL-style queries, batch certificate workflows, and cross-referencing multiple result sets. Not for generating the underlying data — see censys-search, censys-view, or censys-timeline for that./censys-cenqlUse when the user needs help with CenQL syntax, censys query syntax, how to write a censys query, what censys fields are available, or censys query help — field paths, operators, quoting/escaping rules, or example queries for hosts, certificates, and web properties. Trigger phrases include "CenQL syntax," "censys query syntax," "how do I write a censys query," "what censys fields are available," and "censys query help." Also fires when the user writes "CQL," a frequent misspelling of CenQL. This is a reference skill, not a CLI wrapper — defer to censys-search, censys-aggregate, or censys-view to actually execute the query once it's constructed./censys-censeyeUse when the user wants to run censys censeye, censys pivot analysis, censys rarity analysis, censys find related infrastructure, or run censeye on a host. Wraps the `censys censeye` CLI subcommand to analyze a single host and generate pivotable threat-hunting queries bounded by rarity (how many other hosts share each attribute). Trigger phrases include "censys censeye," "censys pivot analysis," "censys rarity analysis," "censys find related infrastructure," and "run censeye on." Requires Threat Hunting feature access on the organization. Not for criteria-based search (see censys-search) or single-record point lookups (see censys-view)./censys-enrichUse when the user wants fast, credit-free IP context for SOC/triage work via the Censys CLI — e.g. "censys enrich," "censys enrich this IP," "censys bulk enrich," "censys triage IP," "censys SOC lookup," "is this IP interesting per censys," "censys check this IP for scanning activity," or "censys reputation on this address." Wraps `censys enrich` for single/bulk IP enrichment (location, AS, WHOIS, DNS, labels, GreyNoise, reputation, network/privacy classification, third-party verdicts). Not for full host records with all services and raw banners (see censys-view) or criteria-based search (see censys-search)./censys-searchUse 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).Other plugins' skills for the same job