/censys:censys-timelinefrom censys
Performs temporal analysis of Censys-tracked assets (hosts, web properties, certificates) using `censys history`. Shows how assets changed over time, including service appearance, cert rotations, and ownership changes.
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.
Use this skill when the user wants to understand how an asset changed across a window of time, rather than its current state. Typical asks:
Do not use this for a single point-in-time lookup (censys-view), for
criteria-based search (censys-search), or for post-retrieval jq/SQLite recipes
on data you already have (censys-analyze, which this skill hands off to once
timeline JSON is pulled). This skill covers pulling and interpreting censys history output specifically.
censys history <asset> [flags]
<asset> type is auto-detected, same rules as censys view:
| Input pattern | Resolved as |
|---|---|
IP address (e.g. 8.8.8.8) | Host |
hostname:port | Web property |
| 64-character hex string | Certificate (SHA-256 fingerprint) — requires Threat Hunting module access |
| Flag | Purpose |
|---|---|
--duration, -d <window> | Time window ending now, e.g. 24h, 7d (default), 4w, 1y |
--start, -s <RFC3339> | Absolute window start |
--end, -e <RFC3339> | Absolute window end |
--start/--end and --duration compose (per CLI help examples):
| Flags given | Window |
|---|---|
--duration only | now − duration → now |
--start + --duration | start → start + duration |
--end + --duration | end − duration → end |
--start + --end | exact window; --duration ignored if also passed |
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). Note:
history does not support -O short or -O template (exit code 2).
A host timeline is a sequence of discrete events, each with an event_time and
a typed payload key. Treat the timeline as a diff stream, not a series of full
snapshots — each event describes what changed, not the whole host state at that
moment.
Each event has event_time plus exactly one of these payload keys (verified against cencli 1.1.3 output, 2026-08):
| Payload key | What it captures | Protocol field |
|---|---|---|
endpoint_scanned | HTTP/banner-level observation (headers, body, HTML title) | .endpoint_scanned.scan.endpoint_type |
service_scanned | Service-level observation (TLS, SSH, RDP, protocol ID) | .service_scanned.scan.protocol |
jarm_scanned | JARM fingerprint observation | .jarm_scanned.scan.fingerprint |
forward_dns_resolved | DNS A/AAAA resolution change | — |
reverse_dns_resolved | Reverse DNS (PTR) change | — |
whois_updated | WHOIS registration change | — |
Note that endpoint_scanned and service_scanned use different field names for the protocol (endpoint_type vs protocol). A single port can produce both event types, and can show multiple protocols (e.g. port 8888 responding as both HTTP and DVR_IP depending on the probe).
Use event types to classify changes:
service_scanned) — a port opened, closed, or its
transport/application protocol changed.endpoint_scanned) — the Server header, raw banner,
HTML title, or other application-layer text changed.service_scanned with .tls) — the TLS certificate
rotated. Note: cert fingerprint lives at .service_scanned.scan.tls.fingerprint_sha256 (an extra .scan level compared to censys view output).whois_updated, DNS events) — the announcing AS
changed, WHOIS registration updated, or DNS resolution shifted.# Last 30 days — always save to file for reuse across jq passes
censys history 8.8.8.8 --duration 30d -O json > data/timeline.json
# Bounded window for incident investigation
censys history 8.8.8.8 --start <start-date> --end <end-date> -O json
# Web property history
censys history example.com:443 --duration 14d -O json
# Certificate observation history (Threat Hunting module required)
censys history <sha256> --start <start-date> --end <end-date>
# Stream events as NDJSON instead of buffering a full array
censys history 8.8.8.8 --duration 90d -S
# When did a specific port first appear?
jq '[.[] | select(.service_scanned.scan.port == 8443) | .event_time] | sort | .[0]' \
data/timeline.json
# Track cert rotations over time (unique leaf fingerprints in order)
jq '[.[] | .service_scanned.scan.tls.fingerprint_sha256 // empty |
{cert: .}] | unique_by(.cert)' data/timeline.json
# Find all service-level changes, chronologically
jq '[.[] | select(.service_scanned) | {time: .event_time,
port: .service_scanned.scan.port,
protocol: .service_scanned.scan.protocol}] | sort_by(.time)' \
data/timeline.json
# Compare host state at two points in time (snapshot diff, not history events)
censys view 203.0.113.50 --at-time <past-date> -O json > data/before.json
censys view 203.0.113.50 -O json > data/after.json
diff <(jq -S '.[0].services | sort_by(.port)' data/before.json) \
<(jq -S '.[0].services | sort_by(.port)' data/after.json)
For anything beyond these direct lookups — cross-referencing multiple hosts'
timelines, loading into SQLite for aggregation, batch cert analysis — hand off
to censys-analyze once the timeline JSON is on disk.
censys history <ip> --duration 90d -O json > data/timeline.json.censys view --at-time
bracketing the cluster's start and end.diff pattern above) to pin down
exactly what changed, rather than inferring it from event summaries alone.event_time.History volume depends heavily on the host and time window. A busy, well-scanned host can produce thousands of events per day — measured: 8.8.8.8 returned 2,621 events for a single day (measured on cencli 1.1.3, 2026-08).
Always use streaming (-S) for history pulls. Buffered output (-O json
without -S) loads the entire result into memory before writing anything.
On a large history this can take minutes or never complete. Streaming emits
events as they arrive and completes in a fraction of the time.
For bulk history pulls across many hosts:
--duration 7d or --duration 30d to confirm
the signal is there before widening. A 1-year pull on an active host
can produce hundreds of thousands of events.data/ as it completes.When redirecting censys history -O json to a file and parsing it later:
-O json) is a single
JSON array starting on the first line. Parse it directly — no line-skipping
needed. The status line goes to stderr and -q suppresses it.null. Some hosts return null instead of []
for zero events. Defensive parsing: data = json.load(f) or [].jq or load into
a Python dict once rather than re-pulling.| Error | Cause | Resolution |
|---|---|---|
| Exit code 2, unsupported format | -O short or -O template passed to history | Use json, yaml, or tree instead |
[Threat Hunting Required] (or similar entitlement error) | Certificate history requested without Threat Hunting module access | Confirm module entitlement, or fall back to host/web-property history if the cert itself isn't the actual target |
| Slow response / rate limited | Window too wide (e.g. 1y) or too many concurrent history pulls | Start with --duration 7d, confirm the signal is there, then widen incrementally rather than jumping straight to a multi-year pull. See Performance characteristics above for expected times. |
| Empty result set | No events in the requested window | Widen the window, or confirm the asset had any Censys-observed activity at all via censys view first |
History events are diffs against the prior observed state, not full
snapshots — don't assume every field is repeated on every event. Use
censys view --at-time when a complete point-in-time record is needed.
Wide time windows are slow and count more heavily against rate limits. Widen
incrementally (7d → 30d → 90d) rather than defaulting to a large window.
GeoIP/location events reflect registry and geolocation data, which can lag or be imprecise — corroborate an apparent "location change" with the accompanying AS change before treating it as a strong reassignment signal.
Labels and event classifications are Censys-derived heuristics; treat them as triage aids, not ground truth, especially for attribution calls.
A port can be absent from the whole event stream and still be open. The
history stream does not always cover every port on a host. A port can produce
zero events across a full year — no success events and no failure events — while
censys view shows the same port scanned on the same day, with a complete
banner. Absence of events is not evidence that the service was down or
intermittent.
Confirm coverage before you make any claim about when a service started, stopped, or flapped:
# ports present in the history stream
jq -r '[.[].service_scanned.scan.port] | unique' history.json
# ports open right now
jq -r '[.[0].services[].port] | sort' view.json
If a port is in the second list but not the first, the history stream does not cover that port. State this as an instrumentation gap. Two consequences follow:
--at-time on a specific
date), see censys-view.censys-analyze.censys-investigate.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.Other plugins' skills for the same job