/censys:censys-cenqlfrom censys
Helps construct, debug, and understand Censys Query Language (CenQL) queries — field paths, operators, quoting rules, and example patterns for hosts, certificates, and web properties.
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 whenever the user needs help constructing, debugging, or understanding a Censys Query Language (CenQL) query — field paths, operators, grouping, quoting, or example patterns. This covers requests like:
Users sometimes write "CQL." This is a misspelling of CenQL. Answer the question, and use the name CenQL in the reply.
This skill is a reference only — it does not execute queries. Once the query string is built, hand it to censys-search (raw search), censys-aggregate (counts/breakdowns), or censys-view (single-record lookup) to actually run it.
host.services.port, cert.parsed.subject.common_name.= — exact match (the field value must equal the given term exactly): — contains / flexible match (substring, tokenized, or "in" semantics depending on field type)and, or — boolean combinatorsnot — negationand/or across nested fields: host.services: (protocol=SSH and port: 22).host.ip: '198.51.100.0/24'.cert.parsed.issuer.organization: 'Let''s Encrypt'.host.services: (...) scopes all conditions inside the parens to the same service entry on the host — critical when a host has multiple services and you don't want conditions matching across unrelated services.host.ip, host.services.port, host.services.protocol, host.services.transport_protocolhost.services.banner, host.services.banner_hash_sha256, host.services.endpoints.http.headers: (key: "<name>" and value: "<value>") (see Gotchas #3). Note: for HTTP body, title, and favicon content, use the Endpoint fields below — host.services.http.response.body does NOT work in CenQL v2.host.services.tls.certificates.leaf_fp_sha_256, host.services.tls.certificates.leaf_data.*host.services.ssh.server_host_key.fingerprint_sha256host.services.jarm, host.services.tls.ja3shost.location.country, host.location.city, host.location.province, host.location.country_codehost.autonomous_system.asn, host.autonomous_system.namelabels (top-level, not host.labels)host.whois.organization.namehost.services.software.vendor, host.services.software.product, host.services.software.versionhost.operating_system.product, host.operating_system.vendor, host.operating_system.versionhost.service_count (number of services — useful for profiling hosts with a specific service footprint)Certain service-level data lives under host.services.endpoints.<type>.*, NOT
directly under host.services.<type>.*. The endpoints. path component is
required — omitting it returns a 422 "Field not found." This applies to all
endpoint-extracted data: HTTP content, C2 framework configs, and any future
endpoint type Censys adds. When in doubt about a service sub-field, try the
endpoints. path first.
| Field | Path |
|---|---|
| Body hash (SHA-256) | host.services.endpoints.http.body_hash_sha256 |
| HTML title | host.services.endpoints.http.html_title |
| Body content (text search) | host.services.endpoints.http.body |
| Favicon hash (SHA-256) | host.services.endpoints.http.favicons.hash_sha256 |
| HTML tags | host.services.endpoints.http.html_tags |
| Response header | host.services.endpoints.http.headers: (key: "<name>" and value: "<value>") |
| Field | Path |
|---|---|
| Watermark | host.services.endpoints.cobalt_strike.x64.watermark |
| Public key | host.services.endpoints.cobalt_strike.x64.public_key |
Both x64 and x86 arch variants exist. These fields only match hosts with
currently active CS listeners — hosts that had CS historically but are now
dark (offline/firewalled) will not appear. Verify the field is indexed by
running a wildcard query (field:*) before interpreting 0 results as "unique."
cert.names, cert.parsed.subject.common_name, cert.parsed.subject.organizationcert.parsed.issuer.common_name, cert.parsed.issuer.organizationcert.parsed.validity_period.not_before, cert.parsed.validity_period.not_aftercert.fingerprint_sha256, cert.validation_levelThe web property prefix is web.. The prefix webproperty. returns 422 "Field not found".
web.hostname, web.endpoints.ip, web.endpoints.portweb.endpoints.http.status_code, web.labelsweb.software.vendor, web.software.product. Product values use the Censys name, for example http_server for Apache httpd, not Apache.For copy-paste query examples, see ${CLAUDE_SKILL_DIR}/references/cookbook.md.
The cookbook gives copy-paste examples. This section teaches how to think about building queries — especially when combining conditions across nested fields.
Without scoping, conditions on service sub-fields match independently across all services on a host:
# WRONG: matches hosts with RDP on ANY port AND port 7070 running ANY protocol
censys search "host.services.protocol=RDP and host.services.port=7070"
# RIGHT: scopes both conditions to the SAME service entry
censys search 'host.services: (protocol=RDP and port=7070)'
Use separate host.services: (...) blocks to require different services on the same host:
# Hosts with RDP on 3389 AND AnyDesk on 7070 (two distinct services)
censys search 'host.services: (protocol="RDP" and port: 3389) and host.services: (software.product: "AnyDesk" and port: 7070)'
This finds hosts that have both services, but doesn't constrain the total number of services — see host.service_count below.
Combine compound matching with host.service_count to find hosts with a specific service combination and nothing else:
# Hosts running EXACTLY RDP:3389 + AnyDesk:7070, no other services
censys search 'host.services: (protocol="RDP" and port: 3389) and host.services: (software.product: "AnyDesk" and port: 7070) and host.service_count=2'
Purpose-built infrastructure (C2 panels, relay boxes, proxy nodes) tends to have minimal service footprints. Filtering by service_count surfaces these among the noise of multi-service hosts.
= vs := — exact match: the field value must equal the term exactly: — flexible match: substring, tokenized, or "in" semantics depending on field typeWhen it matters: on string fields, : can match substrings (host.services.software.product: nginx matches entries containing "nginx"), while = requires the full value. On enum-like fields (protocol, transport_protocol), both behave the same in practice.
Rule of thumb: use = when you know the exact value you're looking for; use : when exploring or when the value might appear as a substring of a longer string.
CenQL search fields do NOT always match the JSON paths in censys view / censys search output. Use the CenQL column for queries, the jq column for extracting from results:
| Signal | CenQL search field | jq extraction path |
|---|---|---|
| Cert fingerprint | host.services.tls.certificates.leaf_fp_sha_256 | .services[].tls.fingerprint_sha256 or .services[].cert.fingerprint_sha256 |
| JARM fingerprint | host.services.jarm | .services[].jarm.fingerprint |
| Software identity | host.services.software.product | .services[].software[].product |
| HTTP body | host.services.endpoints.http.body (see Gotchas #2) | .services[].endpoints[].http.body |
| SSH host key | host.services.ssh.server_host_key.fingerprint_sha256 | .services[].ssh.server_host_key.fingerprint_sha256 (same) |
| Banner hash | host.services.banner_hash_sha256 | .services[].banner_hash_sha256 (same) |
| Labels | labels (top-level) | .labels (top-level, NOT host.labels) |
| Body hash | host.services.endpoints.http.body_hash_sha256 | .services[].endpoints[].http.body_hash_sha256 |
| HTML title | host.services.endpoints.http.html_title | .services[].endpoints[].http.html_title |
| Response header | host.services.endpoints.http.headers: (key: "Server" and value: "Apache") | .services[].endpoints[].http.headers.Server.headers[] (object keyed by header name; each value is {"headers": [...]}) |
| Body content | host.services.endpoints.http.body | .services[].endpoints[].http.body |
| Favicon hash | host.services.endpoints.http.favicons.hash_sha256 | .services[].endpoints[].http.favicons[].hash_sha256 |
| CS watermark | host.services.endpoints.cobalt_strike.x64.watermark | .services[].endpoints[].cobalt_strike.x64.watermark |
| CS public key | host.services.endpoints.cobalt_strike.x64.public_key | .services[].endpoints[].cobalt_strike.x64.public_key |
'value with spaces', "remote-access". Hyphens are especially treacherous — labels: remote-access fails because the parser reads -access as negation.and, or, not) appearing as literal values (not as operators) must be quoted, or the parser will treat them as boolean operators.'Let''s Encrypt'); when that same string is passed through a shell command line, the shell's own quoting also needs escaping, which produces the doubled pattern '\'' seen in cookbook example 6 — one layer for the shell, one for CenQL.host. prefix required in CLI. CenQL v2 via the CLI requires host. on all
host field paths. The Censys web UI does not — queries that work in the browser
will fail with a 422 on the CLI.
endpoints. level for all endpoint-extracted data. HTTP content, Cobalt
Strike configs, and other endpoint-level fields live under
host.services.endpoints.<type>.*, NOT host.services.<type>.*. The extra
endpoints. nesting is required for every endpoint type. See the Endpoint
fields tables above.
HTTP header queries use a nested key/value block. Put the header name in
key and the header value in value, under endpoints.http.headers:
host.services: (endpoints.http.headers: (key: "X-Powered-By" and value: "Express")).
host.services.endpoints.http.headers.upgrade
and host.services.http.response.headers.server return 422 "Field not found".key= is case-sensitive. key="x-powered-by" matched 29,094 hosts.
key="X-Powered-By" matched 1,204,043 hosts. Use key: to match all casings
(1,231,579 hosts).host.services: (...) block as the other
service conditions. This pins the header to the same service.host.services.software.product is often simpler. Censys
extracts software identity from headers into the software field.(Verified with the censys CLI on 2026-10-29.)
Body text search uses :, not =. Use
host.services.endpoints.http.body:"search string" (colon, flexible match) for
substring/text search within body content. Use = only for exact match on hash
fields like body_hash_sha256.
software.product values are lowercase. software.product="AnyDesk" returns
nothing; use software.product: "AnyDesk" (: is case-insensitive) or
software.product="anydesk" (exact lowercase).
For known-noise indicators to exclude during triage, see ${CLAUDE_SKILL_DIR}/references/known-noise.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 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-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).npx claudepluginhub censys/censys-ai-skills --plugin censysOther plugins' skills for the same job