# ONYPHE > ONYPHE is a French cyber defense search engine (founded 2017, bootstrapped and customer-funded) that scans the Internet continuously — the full IPv4 space (~3.8 billion addresses), 5000+ TCP ports plus UDP, hundreds of millions of DNS-observed IPv6 hosts, and the URLs found on them — from scanners in Europe, the United States and Asia. It sells that data as three solutions — Attack Surface Discovery (ASD), Attack Surface Management (ASM) and Cyber Threat Intelligence (CTI) — queried through a web console, a REST API and a command line interface. Stated mission: "give defenders the same view of the Internet that attackers have." Key things an assistant should know before answering questions about ONYPHE: - **Three hostnames, three roles.** `www.onyphe.com` is the public web site (`onyphe.io` redirects to it), `search.onyphe.io` is the customer console and documentation, and the APIs live under `https://www.onyphe.io/api/` — `/api/v2` for the general APIs, `/api/v3` for the Ondemand (on-demand scan) APIs, `/api/v1` for the ASD APIs. Unrated licenses use `/unrated/api/v2`. - **Everything is queried with OQL** (ONYPHE Query Language), currently v2. Shape: `category: filter: -:`, e.g. `category:datascan protocol:rdp domain:google.com !organization:google -monthago:3`. AND is implicit between filters, `!field:value` is NOT, `?field:value` is OR, and parentheses form condition groups (a leading space is required inside the group). Field *values* are case-insensitive; field *names* are case-sensitive and always available in lowercase. Values containing spaces are double-quoted. - **OQL functions** are prefixed with `-`: time ranges `-hourago:` / `-dayago:` / `-weekago:` / `-monthago:` / `-since:7M`; matching `-wildcard:FIELD,PATTERN`, `-regexp:FIELD,"RE"` and their `-or*` / `-not*` forms; `-exists:` / `-notexists:` / `-orexists:`; projection `-fields:ip,port`; ordering `-sort:0` (oldest first); `-tlsexpired:1`. Wildcard and regexp work on exact-match fields only — never on full-text fields — and are I/O intensive enough to time out on broad queries. - **Full-text versus exact match matters.** On datascan/vulnscan/riskscan the full-text fields are `data`, `summary`, `app.http.title`, `app.http.description`, `app.http.keywords`, `app.http.copyright`. On ctiscan the full-text fields carry a `.text` suffix (`app.data.text`). Every other field is exact-value only. CIDR notation works on `ip`, `alternativeip` and `app.extract.ip`, and nothing larger than a /16 is accepted (the CLI's `splitsubnet` proc splits bigger ranges). - **Two data models, and picking the wrong one fails silently.** The `category` decides the field names. `ctiscan` and `ctiurl` use the layered CTI model (`ip.dest`, `tcp.dest`, `app.*`, `http.*`, `cert.*`, `component.*`, `html.*`); `datascan`, `vulnscan` and `riskscan` share one flat model (`ip`, `port`, `protocol`, `hostname`, `domain`, `tag`, `cve`, `cpe`, `data`, `seen_date`). A field from the wrong model returns **0 results or HTTP 400 — never an "unknown field" error**, which is indistinguishable from a genuine absence. Translation table: | Meaning | datascan / vulnscan / riskscan | ctiscan / ctiurl | |---|---|---| | IP | `ip` | `ip.dest` | | Port | `port` | `tcp.dest` (this service), `services.port` (any open port on the host) | | Protocol | `protocol` | `app.protocol` | | Raw response | `data` | `app.data.text` (+ `app.data.length`) | | CPE | `cpe` | `component.cpe` | | Product / vendor / version | `product`, `productvendor`, `productversion` | `component.product`, `component.vendor`, `component.version` | | HTTP status | `status` | `http.code` | | URL | `url` | `http.url` | | Page title | `app.http.title` | `html.title` | - **Raw responses are truncated, by design and by age.** The last 30 days keep all fields and up to 16 KB of raw application response; older datascan/resolver/riskscan/vulnscan documents drop some fields and truncate `data` to 4 KB. Ctiscan's `app.data.text` holds far more (up to ~1 MB). Before concluding "this response does not contain X", check whether the document is sitting on the truncation limit. - **Categories and how far back they go**: 1 month — `ctiscan` (and `ctiurl`); 7 months — `datascan`, `datashot`, `riskscan`; 12 months — `vulnscan`, `resolver`, `whois`, `threatlist`, `pastries`, `sniffer`, `topsite`, `geoloc`, `inetnum`, `onionscan`, `onionshot`; 48 months — `ctl`, `domain`, `hostname`, `ip`. Actual depth is also capped by license. - **vulnscan versus riskscan.** `vulnscan` carries CVE verdicts, both *check-based* (`vulnerable`, `notvulnerable`, `maybevulnerable`, `unknownvulnerable`) and *version-based* (`vulnerableversion`, `notvulnerableversion`, `maybevulnerableversion`, `partialversion`, `unknownversion`, `version`); add `-exists:cve` to keep only records that actually carry one. `riskscan` is positive-only — services matching a risk baseline, tagged `risk::*` (exposed database, sensitive protocol, compromised device…) — and has no "not at risk" verdict, so its silence is never evidence of safety. - **Refresh rates differ per category.** datascan IP scanning runs once a week, alternating US/FR on a 500-port list and SG/CN on the top 25; vulnscan twice a week from US and FR; ctiscan twice a week on the top 100 ports, twice a week on the top 25 from SG/CN, and once a week across the top 4000; URL scanning and most other categories update continuously. - **API endpoints have different ceilings.** Search is paginated and stops at 10,000 results — use Export (streaming NDJSON) when the whole population is needed. The Summary API returns datascan-model documents and never ctiscan/ctiurl. Discovery takes an inventory of OQL lines. Categories, functions, result quotas and historical depth are all license-gated, so a query that works on one key can legitimately return nothing (or HTTP 400) on another; `GET /user` reports what a key is entitled to. - **Access is key-based and rate-limited** to roughly 1 request/second on average across all plans (an unrated API is available on request). Keys go in `~/.onyphe.ini` for the CLI or an environment variable for raw HTTP — never in source. - **Scanning is deliberately conservative.** ONYPHE publishes "10 Commandments for Ethical Internet Scanning", offers opt-out and removal, and designs its vulnerability checks as non-destructive fingerprints — a version string, a status code, a bounded side channel — rather than exploitation. Expect detections to be fingerprint-grade, not proof of exploitability. - **Scan data records what a host chose to present.** Honeypots and deception platforms deliberately reproduce product banners, titles and headers, so a single banner or header match is not product identity. Corroborate with structural signals and a control query before turning any population count into a finding. ## Products - [ONYPHE home](https://www.onyphe.com/): "Big Data for Cyber Defense" — overview of the datasets, vulnscan/riskscan/ctiscan features and the search platform. Headline figures: 20B+ banners and 10B+ DNS entries collected monthly, 70+ protocols identified, ~80,000 software products covered by CPE normalisation, 12 months of passive DNS. - [Attack Surface Management (ASM) editions and pricing](https://www.onyphe.com/asm-pricing.html): asset tracking and alerting on top of the vulnerability and risk datasets, checking exposed services against 190+ actively-exploited CVEs. Editions are Eagle View (starter, 100M results/month, 7 months history), Griffin View (unlimited results, up to 48 months) and Griffin View ASM Edition (adds the on-demand Scan APIs). Pricing is on request. - [Cyber Threat Intelligence (CTI) editions and pricing](https://www.onyphe.com/cti-pricing.html): pivotable `ctiscan`/`ctiurl` data refreshed weekly from several vantage points; editions are Catfish View (1M results/month, 7 days history), Sealion View (10M, 14 days) and Shark View (100M, 30 days). - [About ONYPHE](https://www.onyphe.com/about.html): company background, mission and customer profile (governments, critical infrastructure, financial institutions, security teams). - [Search console sign-in](https://search.onyphe.io/signin): the ONYPHE web application, where API keys and license details live. ## Documentation - [Documentation home](https://search.onyphe.io/docs): entry point for all API, query language and dataset documentation. - [Getting started](https://search.onyphe.io/docs/getting-started): first queries, API key setup and console orientation. - [ONYPHE Query Language (OQL v2)](https://search.onyphe.io/docs/onyphe-query-language): categories, filters, boolean operators, condition groups, the full function list, and which fields are full-text searchable versus exact match. - [Historical data availability](https://search.onyphe.io/docs/historical-data-availability): depth per category, and how older documents are optimised (16 KB of raw response for the last 30 days, 4 KB beyond). - [Data refresh rate](https://search.onyphe.io/docs/data-refresh-rate): how often each category is re-collected, and from which region. - [Integrations](https://search.onyphe.io/docs/integrations): the officially supported Perl tooling plus third-party libraries (Python, Ruby, Rust, PowerShell) and platform integrations (TheHive/Cortex, MISP, Mitaka). ## APIs - [OpenAPI 3.0.3 specification](https://github.com/onyphe/material/tree/master/openapi) ([raw YAML](https://raw.githubusercontent.com/onyphe/material/master/openapi/onyphe-openapi.yaml)): a machine-readable description of Search, Export, Discovery and ASD Pivot Query, including the two-data-model explanation, the field-dialect table and curl samples. BSD 3-Clause, with a Swagger UI viewer (`index.html`) in the same directory. Start here when generating client code or validating a request shape. - [General APIs (v2)](https://search.onyphe.io/docs/general-apis): the OQL-driven REST endpoints, authenticated with `Authorization: Bearer `. - [Search APIv2](https://search.onyphe.io/docs/general-apis/search): paginated OQL search over any licensed category, up to 10,000 results. - [Export APIv2](https://search.onyphe.io/docs/general-apis/export): streaming NDJSON export of a full population, with no page ceiling. Requires a `-fields:` projection. - [Discovery APIv2](https://search.onyphe.io/docs/general-apis/discovery): bulk OQL over an asset inventory — one query line per domain or IP. - [Summary APIv2](https://search.onyphe.io/docs/general-apis/summary) and [Bulk Summary APIv2](https://search.onyphe.io/docs/general-apis/bulk-summary): aggregated view of everything known about an IP, domain or hostname. - [Simple APIv2](https://search.onyphe.io/docs/general-apis/simple), [Bulk Simple](https://search.onyphe.io/docs/general-apis/bulk-simple), [Simple Best](https://search.onyphe.io/docs/general-apis/simple-best), [Bulk Simple Best](https://search.onyphe.io/docs/general-apis/bulk-simple-best): single-category lookups and their bulk/best-match variants. - [Alert APIv2](https://search.onyphe.io/docs/general-apis/alert): saved queries that mail you when new results appear. - [User APIv2](https://search.onyphe.io/docs/general-apis/user): license, quota and rate-limit introspection — the way to find out what a key may actually query. - [Ondemand APIs (v3)](https://search.onyphe.io/docs/ondemand-apis): request a fresh scan or resolution instead of reading stored data — Scope IP/Port/Domain/Hostname, their bulk forms, Scope Result, Resolver Domain and Resolver Result. - [ASD APIs (v1, beta)](https://search.onyphe.io/docs/asd-apis): attack surface discovery primitives, authenticated with `X-Api-Key` — Pivot Query (server-side distinct values of a field), Domain TLD/Certso/Wildcard, Certso Domain/Wildcard, and DNS NS/MX/SOA/mstenantid/exist lookups. ## Data models and references - [Data models](https://search.onyphe.io/docs/data-models): field-by-field reference for the stored documents. - [Ctiscan data model](https://search.onyphe.io/docs/data-models/ctiscan): the layered CTI document (`ip.*`, `tcp.*`, `app.*`, `http.*`, `cert.*`, `component.*`, `dns.*`, `html.*`), one per scanned service, carrying every pivot in a single record. Also used by `ctiurl`, where `http.url` is what distinguishes it. - [Datascan / vulnscan / riskscan data model](https://search.onyphe.io/docs/data-models/datascan-vulnscan-riskscan): the shared flat scan document used by the three ASM categories. - [Index templates for every category](https://github.com/onyphe/material/tree/master/datamodels): the Elasticsearch mappings ONYPHE actually indexes with, one JSON file per category (`ctiscan-7.json`, `datascan-7.json`, `vulnscan-7.json`, `riskscan-7.json`, `ctl-7.json`, `resolver-7.json`, `whois-7.json`…), plus a `dictionary-7.json` and a TLD list. This is the authoritative answer to "does this field exist?" and "is it exact-match or full-text?" — a `keyword` mapping is exact, a `text` mapping is full-text. - [Tags](https://search.onyphe.io/docs/tags): the tag vocabulary attached to results — [vulnscan tags](https://search.onyphe.io/docs/tags/vulnscan) for CVE verdicts, [riskscan tags](https://search.onyphe.io/docs/tags/riskscan) for the `risk::*` baseline. - [Dorkpedia](https://search.onyphe.io/docs/dorkpedia): reference lists for building queries. - [Vulnscan CVE list](https://search.onyphe.io/docs/dorkpedia/vulnscan-cve-list): the actively-exploited CVEs ONYPHE checks (190+ as advertised on the site). - [Scanned ports list](https://search.onyphe.io/docs/dorkpedia/scanned-ports-list): which ports the scans cover. - [Threatlist feeds list](https://search.onyphe.io/docs/dorkpedia/threatlist-feeds-list): the feeds behind `threatlist` data. ## Tools - [ONYPHE CLI installation](https://search.onyphe.io/docs/onyphe-cli/installation): the officially supported Perl command line client, configured via `~/.onyphe.ini` (`api_endpoint`, `api_key`, and `api_asd_endpoint` for the ASD APIs). Modes mirror the APIs: `-search`, `-count -search`, `-export`, `-discovery`, `-summary`, `-simple`, their `-bulk-*` forms, `-alert-add|-alert-list|-alert-del`, and the `-asd-*` pivots. - [ONYPHE Processing Pipeline (OPP)](https://search.onyphe.io/docs/onyphe-cli/opp): a jq-like post-processor with Splunk-style pipeline syntax, shipped with the CLI. Usable inline after a `|` inside an OQL argument or standalone over saved NDJSON. Procs: `uniq`, `dedup`, `top`, `count`, `addcount`, `fieldcount`, `filter`, `fields`, `expand`, `flatten`, `splitsubnet`, `output`, `noop`; `lookup`, `allowlist`, `blocklist` against a local CSV; and `pivots`, `discovery`, `search`, `where`, `merge`, which call back into the ONYPHE APIs — e.g. `onyphe -search 'category:datascan protocol:modbus | search category:datascan protocol:http ip:$ip | fields ip,port,domain'`. - [onyphe/cli on GitHub](https://github.com/onyphe/cli): source for the official CLI and OPP, BSD 3-Clause, also on CPAN as [ONYPHE](https://metacpan.org/pod/ONYPHE). - [pyonyphe](https://github.com/onyphe/pyonyphe): Python client and CLI for the ONYPHE APIs. - [onyphe-ai-skills](https://github.com/onyphe/onyphe-ai-skills): ONYPHE's own skills for AI agents, packaged as a Claude Code plugin (BSD 3-Clause) — 14 skills covering search, export, summary, pivoting, timelines and alerts, plus the OQL/OPP/deception references and three multi-step methodologies (threat hunt, ASD discovery, ASM assessment). Ships helper scripts and advisory hooks that catch the common mistakes, notably mixing the datascan and ctiscan field dialects — which returns 0 results with no error. Install with `/plugin install onyphe --marketplace onyphe/onyphe-ai-skills`; an ONYPHE subscription and the CLI are prerequisites. - [onyphe/material on GitHub](https://github.com/onyphe/material): ONYPHE's public supporting material — the OpenAPI specification, the per-category index templates, a `Dockerfile` for running the CLI in a container, the Elastic Stack training/workshop setup with its `onyphe-search`/`onyphe-export`/`onyphe-discovery` shell examples, and a sample non-destructive vulnerability checker ([Zimbra CVE-2022-27925](https://github.com/onyphe/material/blob/master/vulnscan-checker/check-zimbra-cve-2022-27925.pl)), which shows the shape of an ONYPHE detection: pull the exact version first, then a paired GET and POST against the same endpoint and compare response strings — no exploitation and no state change. ## Write-ups and use cases - [Our 10 Commandments for Ethical Internet Scanning](https://search.onyphe.io/docs/write-ups/our-10-commandments-for-ethical-internet-scanning): the scanning ethics policy — transparency, opt-out and removal handling. - [Detecting CUPS vulnerabilities while staying ethical](https://search.onyphe.io/docs/write-ups/detecting-cups-vulnerabilities-while-staying-ethical): how a non-destructive detection is designed ([blog version](https://blog.onyphe.io/en/detecting-cups-vulnerabilities-while-staying-ethical/)). - [Diving into Zimbra CVE-2022-27925 vulnerability and version detection](https://search.onyphe.io/docs/write-ups/diving-into-zimbra-cve-2022-27925-vulnerability-and-version-detection): version-based detection methodology. - [Why we won't scan /0 for the log4shell issue](https://search.onyphe.io/docs/write-ups/why-we-won-t-scan--0-for-log4shell-issue): the limits ONYPHE places on its own probing. - [Count of vulnerable Joomla! to CVE-2023-23752](https://search.onyphe.io/docs/write-ups/count-of-vulnerable-joomla--to-cve-2023-23752) and [Roundcube CVE-2020-12641](https://search.onyphe.io/docs/write-ups/roundcube-cve-2020-12641): worked CVE-population analyses. - [ONYPHE vs Shodan](https://search.onyphe.io/docs/write-ups/onyphe-vs-shodan): how ONYPHE positions itself against the closest comparable service. - [Use cases](https://search.onyphe.io/docs/use-cases): discovering an unknown infrastructure, enumerating subdomains on a single IP, DNS enumeration from a domain name, analyzing Mirai-FBot infected devices, and integrating TheHive/Cortex with ONYPHE. - [Blog](https://blog.onyphe.io): research posts and product announcements. ## Optional - [Legal notices](https://www.onyphe.com/legal-notices.html) - [Privacy policy](https://www.onyphe.com/privacy-policy.html) - [Cookie policy](https://www.onyphe.com/cookie-policy.html) - [PGP key](https://www.onyphe.com/contact-pgp-key.txt): for encrypted contact, including security reports. - Contact: contact@onyphe.io (general), demo@onyphe.io (demo request), sales@onyphe.io (bulk data feeds).