censys-view
Use when the user wants detailed point-lookup data on a single asset via the Censys CLI — e.g. "censys view," "censys look up this IP," "censys host details for," "view this cert on censys," "censys what services does X run," "censys view this cert," "look this host up on censys," "censys pull the record for," "what does censys show for this hostname," "what's running on this IP," "profile this host," or "show me this host's services." Wraps `censys view` for hosts, certificates, and web properties. This is the right skill for any single-asset lookup — use censys-investigate only when the user explicitly asks for a multi-step investigation. Not for search-by-criteria (see censys-search) or time-series history (see censys-timeline).
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-30
- Stars
- ★ 14
- Forks
- 0
01 前言 Front Matter
- name
- censys-view
- version
- 0.1.0
- description
- Use when the user wants detailed point-lookup data on a single asset via the Censys CLI — e.g. "censys view," "censys look up this IP," "censys host details for," "view this cert on censys," "censys what services does X run," "censys view this cert," "look this host up on censys," "censys pull the record for," "what does censys show for this hostname," "what's running on this IP," "profile this host," or "show me this host's services." Wraps `censys view` for hosts, certificates, and web properties. This is the right skill for any single-asset lookup — use censys-investigate only when the user explicitly asks for a multi-step investigation. Not for search-by-criteria (see censys-search) or time-series history (see censys-timeline).
02 资源文件 1
- 参考文档references/cli-globals.md1.9 KB
03 SKILL.md 正文
censys-view
When to use
Use this skill when the user already has a specific asset in hand — an IP address, a hostname (with or without a port), or a certificate SHA-256 fingerprint — and wants the current (or a point-in-time) detailed record for it. Typical asks:
- "censys view 8.8.8.8"
- "censys host details for 203.0.113.5"
- "what services does platform.censys.io run, per censys"
- "view this cert on censys: 3daf2843a77b..."
- "censys look up this IP as of last September"
Do not use this for criteria-based search ("find hosts running X" — that's
censys-search), field aggregation/reporting (censys-aggregate), or historical
timelines and change detection across snapshots (censys-timeline, backed by
censys history). This skill covers a single-shot lookup of one or more known assets.
Invocation
censys view <asset> [flags]
<asset> type is auto-detected:
| Input pattern | Resolved as |
|---|---|
IP address (e.g. 8.8.8.8) |
Host |
hostname:port |
Web property |
| bare hostname (no port) | Web property, defaults to port 443 |
| 64-character hex string | Certificate (SHA-256 fingerprint) |
Defanged IPs are accepted and normalized automatically, e.g. 8[.]8[.]8[.]8 →
8.8.8.8.
Skill-specific flags
| Flag | Purpose |
|---|---|
--input-file <path> |
Read one asset per line from a file instead of the CLI arg. Use - to read from stdin. |
--at-time, --at, -a <RFC3339> |
Return the record as it existed at a specific point in time instead of the current snapshot. Not supported for certificates — certs are content-addressed and don't have a "point in time" state. |
Multiple assets can be passed comma-separated in a single invocation
(censys view 8.8.8.8,9.9.9.9), via --input-file, or piped through stdin.
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
# Basic host lookup
censys view 8.8.8.8
# Compact, human-scannable output instead of full JSON
censys view 8.8.8.8 -O short
# Web property lookup — bare hostname defaults to :443
censys view platform.censys.io
# Web property lookup — explicit port
censys view platform.censys.io:80
# Multiple assets in one call (comma-separated)
censys view 8.8.8.8,9.9.9.9
# Historical snapshot of a host at a specific time
censys view 8.8.8.8 --at-time <YYYY-MM-DDTHH:MM:SSZ>
# Certificate lookup by SHA-256 fingerprint
censys view 3daf2843a77b6f4e6af43cd9b6f6746053b8c928e056e8a724808db8905a94cf
# Bulk lookup from a file (one asset per line), streaming results out
censys view --input-file hosts.txt -S
# Bulk lookup from stdin
cat hosts.txt | censys view --input-file - -O short
Output structure
censys view always wraps its JSON result in an array, even for a single asset — all jq paths must start with .[0]:
# Correct — index into the array first
censys view 8.8.8.8 -O json | jq '.[0].services[] | {port, protocol}'
# Wrong — this returns null
censys view 8.8.8.8 -O json | jq '.services[]'
Interpreting results
- Services — each entry has a port, transport protocol (
tcp/udp), and detected application protocol (e.g.HTTP,SSH,TLS). This is the primary "what's running here" signal. - AS info (
autonomous_system.asn,autonomous_system.name) — identifies the network operator/ISP hosting the asset. Useful for attributing infrastructure to a hosting provider vs. an enterprise network. - Location — city/province/country derived from GeoIP. Treat as approximate; it reflects the IP's registered/geolocated position, not necessarily the physical location of whoever controls the asset.
- WHOIS — organization name and abuse contacts for the network block. Useful for abuse reporting or ownership context, but can lag real-world reassignments.
- Labels — Censys-applied tags such as
remote-access,database,login-page. These are heuristic classifications, not guarantees; use them to triage/prioritize, not as ground truth.
Output guidance
- Default to
jsonwhen the result will be parsed further (piped tojq, fed into another tool, or when the user wants "raw data"). - Use
-O shortwhen a human just wants a quick read of what an asset is running — it drops nested detail in favor of scannable summary lines. - Use
-O treefor visually inspecting nested structure (e.g. all services and their sub-fields) without writing a jq filter. - Use
-O yamlwhen the user wants something diffable/readable but still structured. - For multi-asset lookups where the user wants to review-and-move-on rather than
post-process, use
-S(streaming) so results appear incrementally as NDJSON.-Sand-Ocannot be combined — streaming is the output format.
Error handling
| Error | Cause | Resolution |
|---|---|---|
[Invalid Asset ID] |
Input isn't a valid IP, hostname:port, bare hostname, or 64-char SHA-256 |
Confirm the asset string — check for typos, stray whitespace, or a truncated hash |
[Invalid Timestamp] |
--at-time value isn't valid RFC3339 |
Reformat as YYYY-MM-DDTHH:MM:SSZ (or with an explicit UTC offset) |
[At-Time Not Supported] |
--at-time was passed with a certificate asset |
Drop --at-time for cert lookups, or use censys history if temporal cert data is genuinely needed |
If a lookup returns no record for a host/web property, that generally means Censys has no current scan data for that asset (it may be down, filtered, or simply unobserved) — this is distinct from an error and won't raise one of the above.
Caveats
- Bare hostnames silently resolve to port
443. If the user means a different port, they must specify it explicitly (hostname:8080). - GeoIP location is approximate and can be wrong for satellite links, VPNs, CDNs, and cloud provider ranges — don't present it as authoritative.
--at-timereconstructs the record as of that snapshot; it is not the same as a diff or change log. For "what changed between two dates," usecensys historyinstead.- Certificates have no temporal dimension in
view— a cert's fields (issuer, validity window, SANs) are fixed by the cert itself, not by when Censys observed it. - Labels and classifications are Censys-derived heuristics and can lag or misclassify; corroborate with raw service/banner data before acting on a label alone.
Cross-references
- For time-series historical data, snapshot diffing, or change detection over a
window, use
censys history— see thecensys-timelineskill. - For finding assets matching criteria (rather than looking up a known asset),
see the
censys-searchskill. - For deeper investigative workflows that chain multiple lookups together, see
the
censys-investigateskill.
04 同仓库更多 Skills
censys-timeline
Use when the user wants temporal analysis of how a Censys-tracked asset changed over time — e.g. "censys timeline," "censys host history," "censys what changed on this host," "censys when did this service appear," "censys change detection," "censys temporal analysis," "censys track cert rotations," or "censys did this host change hands." Wraps `censys history` for hosts, web properties, and certificates. Not for current-state lookups (see censys-view) or criteria search (see censys-search).
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-investigate
Use when the user explicitly requests a multi-step Censys investigation — e.g. "censys investigate," "censys deep dive into," "trace this infrastructure with censys," "censys pivot chain," "full censys investigation," "hunt for related infrastructure," or "/censys-investigate." This is a heavyweight methodology skill (typically 20–50+ API calls) — do NOT fire on simple lookups like "what's running on this IP" or "profile this host" (use censys-view for those). Structured as a baseline collection phase followed by decision trees that branch on what the baseline reveals. Prescribes a findings template and data preservation convention. Always confirms scope and estimated cost with the user before starting.
censys-enrich
Use 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-censeye
Use 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-cenql
Use 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.