gnql-query
Search GreyNoise threat data using GNQL to retrieve full IP context including raw scan information and network details.
Instructions
Search GreyNoise data using GNQL (GreyNoise Query Language). Returns full IP context results including raw scan data.
GNQL is a domain-specific query language that uses Lucene deep under the hood.
Facets:
"ip" - The IP address of the scanning device
"classification" - Whether the device has been categorized as unknown, benign, or malicious
"first_seen" / "last_seen" - Date the device was first/most recently observed
"actor" - The benign actor the device has been associated with (Shodan, Censys, etc)
"tags" - Tags assigned to the device over the past 90 days
"cve" - CVEs associated with the device
"vpn" / "vpn_service" / "bot" / "tor" - Boolean/string indicators
"metadata.category" - Network category (business, isp, hosting, education, mobile)
"metadata.source_country" / "metadata.source_country_code" - Source location
"metadata.organization" / "metadata.asn" / "metadata.rdns" - Network info
"raw_data.scan.port" / "raw_data.scan.protocol" - Scan targets
"raw_data.web.paths" / "raw_data.web.useragents" - HTTP activity
"raw_data.ja3.fingerprint" / "raw_data.hassh.fingerprint" - TLS/SSH fingerprints
Examples:
"classification:malicious last_seen:1d" - Malicious IPs seen in last day
"tags:Mirai" - Devices tagged as Mirai
"raw_data.scan.port:445 metadata.os:Windows*" - Windows hosts scanning port 445
"cve:CVE-2021-30461" - Devices associated with a CVE
"source_country:Iran destination_country:Ukraine single_destination:true" - Targeted scanning
Results are paginated. Use the scroll parameter to retrieve additional pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | GNQL query string | |
| size | No | Results per page (default: 25, max: 10000) | |
| scroll | No | Pagination scroll token from a previous response |