@censys/platform-sdk 0.12.12 → 0.12.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/sdks/adversaryinvestigation/README.md +8 -8
- package/docs/sdks/collections/README.md +6 -6
- package/docs/sdks/globaldata/README.md +38 -22
- package/docs/sdks/tagsandcomments/README.md +1 -1
- package/docs/sdks/threathunting/README.md +9 -9
- package/funcs/collectionsAggregate.d.ts +1 -1
- package/funcs/collectionsAggregate.js +1 -1
- package/funcs/collectionsCreate.d.ts +1 -1
- package/funcs/collectionsCreate.js +1 -1
- package/funcs/collectionsGet.d.ts +1 -1
- package/funcs/collectionsGet.js +1 -1
- package/funcs/collectionsListEvents.d.ts +1 -1
- package/funcs/collectionsListEvents.js +1 -1
- package/funcs/collectionsSearch.d.ts +1 -1
- package/funcs/collectionsSearch.js +1 -1
- package/funcs/collectionsUpdate.d.ts +1 -1
- package/funcs/collectionsUpdate.js +1 -1
- package/funcs/globalDataAggregate.d.ts +1 -1
- package/funcs/globalDataAggregate.js +1 -1
- package/funcs/globalDataCreateTrackedScan.d.ts +1 -1
- package/funcs/globalDataCreateTrackedScan.js +1 -1
- package/funcs/globalDataGetCertificate.d.ts +1 -1
- package/funcs/globalDataGetCertificate.js +4 -2
- package/funcs/globalDataGetCertificate.js.map +1 -1
- package/funcs/globalDataGetCertificateRaw.d.ts +1 -1
- package/funcs/globalDataGetCertificateRaw.js +1 -1
- package/funcs/globalDataGetCertificates.d.ts +1 -1
- package/funcs/globalDataGetCertificates.js +1 -1
- package/funcs/globalDataGetCertificatesRaw.d.ts +1 -1
- package/funcs/globalDataGetCertificatesRaw.js +1 -1
- package/funcs/globalDataGetHost.d.ts +1 -1
- package/funcs/globalDataGetHost.js +4 -2
- package/funcs/globalDataGetHost.js.map +1 -1
- package/funcs/globalDataGetHostEnrichment.d.ts +1 -1
- package/funcs/globalDataGetHostEnrichment.js +4 -2
- package/funcs/globalDataGetHostEnrichment.js.map +1 -1
- package/funcs/globalDataGetHostTimeline.d.ts +1 -1
- package/funcs/globalDataGetHostTimeline.js +1 -1
- package/funcs/globalDataGetHosts.d.ts +1 -1
- package/funcs/globalDataGetHosts.js +1 -1
- package/funcs/globalDataGetTrackedScan.d.ts +1 -1
- package/funcs/globalDataGetTrackedScan.js +1 -1
- package/funcs/globalDataGetWebProperties.d.ts +1 -1
- package/funcs/globalDataGetWebProperties.js +1 -1
- package/funcs/globalDataGetWebProperty.d.ts +1 -1
- package/funcs/globalDataGetWebProperty.js +3 -1
- package/funcs/globalDataGetWebProperty.js.map +1 -1
- package/funcs/globalDataListDnsIpResolutionBounds.d.ts +1 -1
- package/funcs/globalDataListDnsIpResolutionBounds.js +1 -1
- package/funcs/globalDataListDnsIpResolutionRanges.d.ts +1 -1
- package/funcs/globalDataListDnsIpResolutionRanges.js +1 -1
- package/funcs/globalDataListDnsNameResolutionBounds.d.ts +1 -1
- package/funcs/globalDataListDnsNameResolutionBounds.js +1 -1
- package/funcs/globalDataListDnsNameResolutionRanges.d.ts +1 -1
- package/funcs/globalDataListDnsNameResolutionRanges.js +1 -1
- package/funcs/globalDataListServicesOnHost.d.ts +1 -1
- package/funcs/globalDataListServicesOnHost.js +1 -1
- package/funcs/globalDataSearch.d.ts +1 -1
- package/funcs/globalDataSearch.js +1 -1
- package/funcs/tagsAndCommentsUpdateTag.d.ts +1 -1
- package/funcs/tagsAndCommentsUpdateTag.js +1 -1
- package/funcs/threatHuntingCreateCenseyeJob.d.ts +1 -1
- package/funcs/threatHuntingCreateCenseyeJob.js +1 -1
- package/funcs/threatHuntingCreateInvestigationFileUpload.d.ts +1 -1
- package/funcs/threatHuntingCreateInvestigationFileUpload.js +1 -1
- package/funcs/threatHuntingCreateInvestigationJob.d.ts +1 -1
- package/funcs/threatHuntingCreateInvestigationJob.js +1 -1
- package/funcs/threatHuntingCreateTrackedScan.d.ts +1 -1
- package/funcs/threatHuntingCreateTrackedScan.js +1 -1
- package/funcs/threatHuntingGetCenseyeJobResults.d.ts +1 -1
- package/funcs/threatHuntingGetCenseyeJobResults.js +1 -1
- package/funcs/threatHuntingGetHostObservationsWithCertificate.d.ts +1 -1
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js +1 -1
- package/funcs/threatHuntingGetTrackedScanThreatHunting.d.ts +1 -1
- package/funcs/threatHuntingGetTrackedScanThreatHunting.js +1 -1
- package/funcs/threatHuntingListThreats.d.ts +1 -1
- package/funcs/threatHuntingListThreats.js +1 -1
- package/funcs/threatHuntingValueCounts.d.ts +1 -1
- package/funcs/threatHuntingValueCounts.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/collection.d.ts +18 -1
- package/models/components/collection.d.ts.map +1 -1
- package/models/components/collection.js +11 -1
- package/models/components/collection.js.map +1 -1
- package/models/components/crudcreateinputbody.d.ts +19 -0
- package/models/components/crudcreateinputbody.d.ts.map +1 -1
- package/models/components/crudcreateinputbody.js +11 -1
- package/models/components/crudcreateinputbody.js.map +1 -1
- package/models/components/crudupdateinputbody.d.ts +19 -0
- package/models/components/crudupdateinputbody.d.ts.map +1 -1
- package/models/components/crudupdateinputbody.js +11 -1
- package/models/components/crudupdateinputbody.js.map +1 -1
- package/models/components/http.d.ts +6 -0
- package/models/components/http.d.ts.map +1 -1
- package/models/components/http.js +4 -0
- package/models/components/http.js.map +1 -1
- package/models/components/httpcopyright.d.ts +17 -0
- package/models/components/httpcopyright.d.ts.map +1 -0
- package/models/components/httpcopyright.js +51 -0
- package/models/components/httpcopyright.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/operations/v3globaldataassetcertificate.d.ts +10 -0
- package/models/operations/v3globaldataassetcertificate.d.ts.map +1 -1
- package/models/operations/v3globaldataassetcertificate.js +3 -0
- package/models/operations/v3globaldataassetcertificate.js.map +1 -1
- package/models/operations/v3globaldataassethost.d.ts +10 -0
- package/models/operations/v3globaldataassethost.d.ts.map +1 -1
- package/models/operations/v3globaldataassethost.js +3 -0
- package/models/operations/v3globaldataassethost.js.map +1 -1
- package/models/operations/v3globaldataassethostenrichment.d.ts +10 -0
- package/models/operations/v3globaldataassethostenrichment.d.ts.map +1 -1
- package/models/operations/v3globaldataassethostenrichment.js +3 -0
- package/models/operations/v3globaldataassethostenrichment.js.map +1 -1
- package/models/operations/v3globaldataassetwebproperty.d.ts +10 -0
- package/models/operations/v3globaldataassetwebproperty.d.ts.map +1 -1
- package/models/operations/v3globaldataassetwebproperty.js +3 -0
- package/models/operations/v3globaldataassetwebproperty.js.map +1 -1
- package/package.json +2 -2
- package/sdk/adversaryinvestigation.d.ts +8 -8
- package/sdk/adversaryinvestigation.js +8 -8
- package/sdk/collections.d.ts +6 -6
- package/sdk/collections.js +6 -6
- package/sdk/globaldata.d.ts +19 -19
- package/sdk/globaldata.js +19 -19
- package/sdk/tagsandcomments.d.ts +1 -1
- package/sdk/tagsandcomments.js +1 -1
- package/sdk/threathunting.d.ts +9 -9
- package/sdk/threathunting.js +9 -9
- package/src/funcs/collectionsAggregate.ts +1 -1
- package/src/funcs/collectionsCreate.ts +1 -1
- package/src/funcs/collectionsGet.ts +1 -1
- package/src/funcs/collectionsListEvents.ts +1 -1
- package/src/funcs/collectionsSearch.ts +1 -1
- package/src/funcs/collectionsUpdate.ts +1 -1
- package/src/funcs/globalDataAggregate.ts +1 -1
- package/src/funcs/globalDataCreateTrackedScan.ts +1 -1
- package/src/funcs/globalDataGetCertificate.ts +4 -2
- package/src/funcs/globalDataGetCertificateRaw.ts +1 -1
- package/src/funcs/globalDataGetCertificates.ts +1 -1
- package/src/funcs/globalDataGetCertificatesRaw.ts +1 -1
- package/src/funcs/globalDataGetHost.ts +4 -2
- package/src/funcs/globalDataGetHostEnrichment.ts +4 -2
- package/src/funcs/globalDataGetHostTimeline.ts +1 -1
- package/src/funcs/globalDataGetHosts.ts +1 -1
- package/src/funcs/globalDataGetTrackedScan.ts +1 -1
- package/src/funcs/globalDataGetWebProperties.ts +1 -1
- package/src/funcs/globalDataGetWebProperty.ts +3 -1
- package/src/funcs/globalDataListDnsIpResolutionBounds.ts +1 -1
- package/src/funcs/globalDataListDnsIpResolutionRanges.ts +1 -1
- package/src/funcs/globalDataListDnsNameResolutionBounds.ts +1 -1
- package/src/funcs/globalDataListDnsNameResolutionRanges.ts +1 -1
- package/src/funcs/globalDataListServicesOnHost.ts +1 -1
- package/src/funcs/globalDataSearch.ts +1 -1
- package/src/funcs/tagsAndCommentsUpdateTag.ts +1 -1
- package/src/funcs/threatHuntingCreateCenseyeJob.ts +1 -1
- package/src/funcs/threatHuntingCreateInvestigationFileUpload.ts +1 -1
- package/src/funcs/threatHuntingCreateInvestigationJob.ts +1 -1
- package/src/funcs/threatHuntingCreateTrackedScan.ts +1 -1
- package/src/funcs/threatHuntingGetCenseyeJobResults.ts +1 -1
- package/src/funcs/threatHuntingGetHostObservationsWithCertificate.ts +1 -1
- package/src/funcs/threatHuntingGetTrackedScanThreatHunting.ts +1 -1
- package/src/funcs/threatHuntingListThreats.ts +1 -1
- package/src/funcs/threatHuntingValueCounts.ts +1 -1
- package/src/lib/config.ts +4 -4
- package/src/models/components/collection.ts +25 -1
- package/src/models/components/crudcreateinputbody.ts +26 -0
- package/src/models/components/crudupdateinputbody.ts +26 -0
- package/src/models/components/http.ts +9 -0
- package/src/models/components/httpcopyright.ts +39 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/operations/v3globaldataassetcertificate.ts +13 -0
- package/src/models/operations/v3globaldataassethost.ts +13 -0
- package/src/models/operations/v3globaldataassethostenrichment.ts +13 -0
- package/src/models/operations/v3globaldataassetwebproperty.ts +13 -0
- package/src/sdk/adversaryinvestigation.ts +8 -8
- package/src/sdk/collections.ts +6 -6
- package/src/sdk/globaldata.ts +19 -19
- package/src/sdk/tagsandcomments.ts +1 -1
- package/src/sdk/threathunting.ts +9 -9
|
@@ -48,11 +48,14 @@ exports.V3GlobaldataAssetWebpropertyRequest$outboundSchema = z.object({
|
|
|
48
48
|
organizationId: z.string().optional(),
|
|
49
49
|
webpropertyId: z.string(),
|
|
50
50
|
atTime: z.date().transform(v => v.toISOString()).optional(),
|
|
51
|
+
fields: z.string().optional(),
|
|
52
|
+
excludeFields: z.string().optional(),
|
|
51
53
|
}).transform((v) => {
|
|
52
54
|
return (0, primitives_js_1.remap)(v, {
|
|
53
55
|
organizationId: "organization_id",
|
|
54
56
|
webpropertyId: "webproperty_id",
|
|
55
57
|
atTime: "at_time",
|
|
58
|
+
excludeFields: "exclude_fields",
|
|
56
59
|
});
|
|
57
60
|
});
|
|
58
61
|
function v3GlobaldataAssetWebpropertyRequestToJSON(v3GlobaldataAssetWebpropertyRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3globaldataassetwebproperty.js","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassetwebproperty.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"v3globaldataassetwebproperty.js","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassetwebproperty.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEH,8FAQC;AAiBD,oGASC;AAtGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA4CrD,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,aAAa,EAAE,gBAAgB;QAC/B,MAAM,EAAE,SAAS;QACjB,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yCAAyC,CACvD,mCAAwE;IAExE,OAAO,IAAI,CAAC,SAAS,CACnB,0DAAkD,CAAC,KAAK,CACtD,mCAAmC,CACpC,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAClD,MAAM,EAAE,UAAU,CAAC,8CAA8C;CAClE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@censys/platform-sdk",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.14",
|
|
4
4
|
"author": "Speakeasy",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"typescript-eslint": "^8.26.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"zod": "^3.25.0 || ^4.
|
|
27
|
+
"zod": "^3.25.0 || ^4.6.6"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -5,7 +5,7 @@ export declare class AdversaryInvestigation extends ClientSDK {
|
|
|
5
5
|
* CensEye: Create a pivot analysis job
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts [default pivot fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) from the target asset and counts matching documents for each field-value pair. Poll the job status endpoint to track progress, then retrieve results when complete.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.<br><br>This endpoint costs 44 credits to execute for a host, 28 credits to execute for a web property, and 7 credits to execute for a certificate.
|
|
8
|
+
* Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts [default pivot fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) from the target asset and counts matching documents for each field-value pair. Poll the job status endpoint to track progress, then retrieve results when complete.<br><br>Use this endpoint to start an analysis of a suspicious host, web property, or certificate that finds the rare attributes it shares with other assets, so you can uncover related attacker infrastructure.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.<br><br>This endpoint costs 44 credits to execute for a host, 28 credits to execute for a web property, and 7 credits to execute for a certificate.
|
|
9
9
|
*/
|
|
10
10
|
createCenseyeJob(request: operations.V3ThreathuntingCenseyeJobsCreateRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingCenseyeJobsCreateResponse>;
|
|
11
11
|
/**
|
|
@@ -19,21 +19,21 @@ export declare class AdversaryInvestigation extends ClientSDK {
|
|
|
19
19
|
* CensEye: Get job results
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Retrieve the results of a completed CensEye pivot analysis job. Each result contains a count and the field-value pairs that were analyzed. Results may be empty if the job is still running.<br><br>Results are paginated. Use the `next_page_token` from the response to fetch subsequent pages.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.
|
|
22
|
+
* Retrieve the results of a completed CensEye pivot analysis job. Use this endpoint to retrieve the pivots from a finished job, then turn the most distinctive ones into searches or blocklist candidates.<br><br>Each result contains a count and the field-value pairs that were analyzed. Results may be empty if the job is still running.<br><br>Results are paginated. Use the `next_page_token` from the response to fetch subsequent pages.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.
|
|
23
23
|
*/
|
|
24
24
|
getCenseyeJobResults(request: operations.V3ThreathuntingCenseyeJobResultsRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingCenseyeJobResultsResponse>;
|
|
25
25
|
/**
|
|
26
26
|
* Get host history for a certificate
|
|
27
27
|
*
|
|
28
28
|
* @remarks
|
|
29
|
-
* Retrieve the historical observations of hosts associated with a certificate.
|
|
29
|
+
* Retrieve the historical observations of hosts associated with a certificate. Use this endpoint to see every host that has presented a given certificate over time, so you can build a timeline and find other infrastructure using it.<br><br>Certificate history is also visible to Adversary Investigation users in the Platform UI on the [certificate timeline](https://docs.censys.com/docs/platform-threat-hunting-use-cert-history-to-build-better-detections#/).<br><br>You can define a specific time frame of interest. If you do not specify a time frame, this endpoint will search the historical dataset that is available to your account.<br><br>For workspaces with a history limit, the API returns observation ranges that overlap the allowed history window. The window starts at 00:00 UTC the allowed number of days ago and ends at the time of the request. Ranges are returned in full, with their original start and end times, even if they extend outside the window.<br><br>You may also filter results by port and transport protocol.<br><br>This endpoint is available to organizations that have access to the Adversary Investigation module. This endpoint costs one credit per page of results.
|
|
30
30
|
*/
|
|
31
31
|
getHostObservationsWithCertificate(request: operations.V3ThreathuntingGetHostObservationsWithCertificateRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingGetHostObservationsWithCertificateResponse>;
|
|
32
32
|
/**
|
|
33
33
|
* Investigations: Create file upload
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
|
-
* Prepare to attach an evidence file to an investigation. This endpoint does not accept the file. It returns a URL to send the file to and an identifier to pass to the [create job endpoint](https://docs.censys.com/reference/v3-threathunting-investigations-jobs-create) afterwards.<br><br>Upload the file with an HTTP PUT to `upload_url` and send `upload_headers` exactly as returned by this endpoint. The URL grants access to that one file and stops working at `expire_time`; a file uploaded before that stays usable afterwards. Prepare one upload per file.<br><br>Start the investigation promptly after uploading. There is a limit on how many uploaded files you may hold without using them and starting an investigation from a file releases its slot. A file that no investigation references is discarded once it passes the service's retention window for unused uploads. A file an investigation does reference is kept with that investigation for as long as the investigation itself.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.<br><br>This endpoint does not cost any credits to execute.
|
|
36
|
+
* Prepare to attach an evidence file to an investigation. Use this endpoint to stage evidence, such as logs, malware reports, or alert exports, so an AI investigation can use it.<br><br>This endpoint does not accept the file. It returns a URL to send the file to and an identifier to pass to the [create job endpoint](https://docs.censys.com/reference/v3-threathunting-investigations-jobs-create) afterwards.<br><br>Upload the file with an HTTP PUT to `upload_url` and send `upload_headers` exactly as returned by this endpoint. The URL grants access to that one file and stops working at `expire_time`; a file uploaded before that stays usable afterwards. Prepare one upload per file.<br><br>Start the investigation promptly after uploading. There is a limit on how many uploaded files you may hold without using them and starting an investigation from a file releases its slot. A file that no investigation references is discarded once it passes the service's retention window for unused uploads. A file an investigation does reference is kept with that investigation for as long as the investigation itself.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.<br><br>This endpoint does not cost any credits to execute.
|
|
37
37
|
*/
|
|
38
38
|
createInvestigationFileUpload(request: operations.V3ThreathuntingInvestigationsFilesCreateRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingInvestigationsFilesCreateResponse>;
|
|
39
39
|
/**
|
|
@@ -47,7 +47,7 @@ export declare class AdversaryInvestigation extends ClientSDK {
|
|
|
47
47
|
* Investigations: Create job
|
|
48
48
|
*
|
|
49
49
|
* @remarks
|
|
50
|
-
* Start an [AI investigation](https://docs.censys.com/docs/platform-ai-investigations) from a set of indicators, a set of previously uploaded evidence files, or both
|
|
50
|
+
* Start an [AI investigation](https://docs.censys.com/docs/platform-ai-investigations) from a set of indicators, a set of previously uploaded evidence files, or both to obtain a report on suspect infrastructure without doing the pivots by hand.<br><br>Supply at least one `indicators` or `file_ids`. To use files, upload them first with the [create file upload endpoint](https://docs.censys.com/reference/v3-threathunting-investigations-files-create).<br><br>This endpoint returns a `job_id` that you can poll to retrieve its status and results.<br><br>Provide `start_time` and `end_time` to scope the investigation to a time frame, or `start_time` alone to scope it from that time up to now. Omit both to investigate current data.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.
|
|
51
51
|
*/
|
|
52
52
|
createInvestigationJob(request: operations.V3ThreathuntingInvestigationsJobsCreateRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingInvestigationsJobsCreateResponse>;
|
|
53
53
|
/**
|
|
@@ -75,21 +75,21 @@ export declare class AdversaryInvestigation extends ClientSDK {
|
|
|
75
75
|
* Live Discovery: Initiate a new scan
|
|
76
76
|
*
|
|
77
77
|
* @remarks
|
|
78
|
-
* Initiate a scan to look for a currently unobserved service at a specific IP and port (`ip:port`) or hostname and port (`hostname:port`). This is equivalent to the [Live Discovery](https://docs.censys.com/docs/platform-threat-hunting-use-live-scan-and-rescan-to-validate-infrastructure#/) feature available in the UI, but you can also target web properties in addition to hosts.<br><br>The scan may take several minutes to complete. The response will contain a scan ID that you can use to [monitor the scan's status](https://docs.censys.com/reference/v3-threathunting-scans-get#/). After the scan completes, perform a lookup on the target asset to retrieve detailed scan information.<br><br>This endpoint is available to organizations that have access to the Adversary Investigation module. It costs 15 credits to execute this endpoint.
|
|
78
|
+
* Initiate a scan to look for a currently unobserved service at a specific IP and port (`ip:port`) or hostname and port (`hostname:port`). This is equivalent to the [Live Discovery](https://docs.censys.com/docs/platform-threat-hunting-use-live-scan-and-rescan-to-validate-infrastructure#/) feature available in the UI, but you can also target web properties in addition to hosts.<br><br>The scan may take several minutes to complete. The response will contain a scan ID that you can use to [monitor the scan's status](https://docs.censys.com/reference/v3-threathunting-scans-get#/). After the scan completes, perform a lookup on the target asset to retrieve detailed scan information.<br><br>Use this endpoint to scan for a service at an `ip:port` or `hostname:port`, such as a new IOC from an incident, so you can get data on it right away.<br><br>This endpoint is available to organizations that have access to the Adversary Investigation module. It costs 15 credits to execute this endpoint.
|
|
79
79
|
*/
|
|
80
80
|
createTrackedScan(request: operations.V3ThreathuntingScansDiscoveryRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingScansDiscoveryResponse>;
|
|
81
81
|
/**
|
|
82
82
|
* List active threats
|
|
83
83
|
*
|
|
84
84
|
* @remarks
|
|
85
|
-
* Retrieve a list of active threats observed by Censys by aggregating threat IDs across hosts and web properties. Threats are active if their fingerprint has been identified on hosts or web properties by Censys scans. This information is also available on the [Explore Threats page in the Platform web UI](https://platform.censys.io/threats).<br><br>This endpoint is available to organizations that have access to the Adversary Investigation module.
|
|
85
|
+
* Retrieve a list of active threats observed by Censys by aggregating threat IDs across hosts and web properties. Use this endpoint to see currently active threats so you can prioritize which malicious infrastructure to hunt or block first.<br><br>Threats are active if their fingerprint has been identified on hosts or web properties by Censys scans. This information is also available on the [Explore Threats page in the Platform web UI](https://platform.censys.io/threats).<br><br>This endpoint is available to organizations that have access to the Adversary Investigation module.
|
|
86
86
|
*/
|
|
87
87
|
listThreats(request: operations.V3ThreathuntingThreatsListRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingThreatsListResponse>;
|
|
88
88
|
/**
|
|
89
89
|
* CensEye: Retrieve value counts to discover pivots
|
|
90
90
|
*
|
|
91
91
|
* @remarks
|
|
92
|
-
* Get counts of web assets for specific field-value pairs and combinations of field-value pairs. This is similar to the [CensEye functionality](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#/) available in the Platform web UI, but it allows you to define specific fields of interest rather than the [default fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) leveraged by the tool in the UI.<br><br>Each array can only target fields within the same nested object and may contain at most 5 field-value pairs. For example, you can combine `host.services.port=80` and `host.services.protocol=SSH` in the same array, but you cannot combine `host.services.port=80` and `host.location.country="United States"` in the same array. You can input multiple arrays of objects in each API call.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module. This endpoint costs 1 credit per count condition (array of objects) included in the API call.
|
|
92
|
+
* Get counts of web assets for specific field-value pairs and combinations of field-value pairs. This is similar to the [CensEye functionality](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#/) available in the Platform web UI, but it allows you to define specific fields of interest rather than the [default fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) leveraged by the tool in the UI.<br><br>Each array can only target fields within the same nested object and may contain at most 5 field-value pairs. For example, you can combine `host.services.port=80` and `host.services.protocol=SSH` in the same array, but you cannot combine `host.services.port=80` and `host.location.country="United States"` in the same array. You can input multiple arrays of objects in each API call.<br><br>Use this endpoint to see how many assets share a given field value, so you can tell which attributes are rare enough to pivot on and which are too common to be useful.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module. This endpoint costs 1 credit per count condition (array of objects) included in the API call.
|
|
93
93
|
*/
|
|
94
94
|
valueCounts(request: operations.V3ThreathuntingValueCountsRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingValueCountsResponse>;
|
|
95
95
|
}
|
|
@@ -24,7 +24,7 @@ class AdversaryInvestigation extends sdks_js_1.ClientSDK {
|
|
|
24
24
|
* CensEye: Create a pivot analysis job
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
|
-
* Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts [default pivot fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) from the target asset and counts matching documents for each field-value pair. Poll the job status endpoint to track progress, then retrieve results when complete.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.<br><br>This endpoint costs 44 credits to execute for a host, 28 credits to execute for a web property, and 7 credits to execute for a certificate.
|
|
27
|
+
* Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts [default pivot fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) from the target asset and counts matching documents for each field-value pair. Poll the job status endpoint to track progress, then retrieve results when complete.<br><br>Use this endpoint to start an analysis of a suspicious host, web property, or certificate that finds the rare attributes it shares with other assets, so you can uncover related attacker infrastructure.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.<br><br>This endpoint costs 44 credits to execute for a host, 28 credits to execute for a web property, and 7 credits to execute for a certificate.
|
|
28
28
|
*/
|
|
29
29
|
async createCenseyeJob(request, options) {
|
|
30
30
|
return (0, fp_js_1.unwrapAsync)((0, threatHuntingCreateCenseyeJob_js_1.threatHuntingCreateCenseyeJob)(this, request, options));
|
|
@@ -42,7 +42,7 @@ class AdversaryInvestigation extends sdks_js_1.ClientSDK {
|
|
|
42
42
|
* CensEye: Get job results
|
|
43
43
|
*
|
|
44
44
|
* @remarks
|
|
45
|
-
* Retrieve the results of a completed CensEye pivot analysis job. Each result contains a count and the field-value pairs that were analyzed. Results may be empty if the job is still running.<br><br>Results are paginated. Use the `next_page_token` from the response to fetch subsequent pages.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.
|
|
45
|
+
* Retrieve the results of a completed CensEye pivot analysis job. Use this endpoint to retrieve the pivots from a finished job, then turn the most distinctive ones into searches or blocklist candidates.<br><br>Each result contains a count and the field-value pairs that were analyzed. Results may be empty if the job is still running.<br><br>Results are paginated. Use the `next_page_token` from the response to fetch subsequent pages.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.
|
|
46
46
|
*/
|
|
47
47
|
async getCenseyeJobResults(request, options) {
|
|
48
48
|
return (0, fp_js_1.unwrapAsync)((0, threatHuntingGetCenseyeJobResults_js_1.threatHuntingGetCenseyeJobResults)(this, request, options));
|
|
@@ -51,7 +51,7 @@ class AdversaryInvestigation extends sdks_js_1.ClientSDK {
|
|
|
51
51
|
* Get host history for a certificate
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Retrieve the historical observations of hosts associated with a certificate.
|
|
54
|
+
* Retrieve the historical observations of hosts associated with a certificate. Use this endpoint to see every host that has presented a given certificate over time, so you can build a timeline and find other infrastructure using it.<br><br>Certificate history is also visible to Adversary Investigation users in the Platform UI on the [certificate timeline](https://docs.censys.com/docs/platform-threat-hunting-use-cert-history-to-build-better-detections#/).<br><br>You can define a specific time frame of interest. If you do not specify a time frame, this endpoint will search the historical dataset that is available to your account.<br><br>For workspaces with a history limit, the API returns observation ranges that overlap the allowed history window. The window starts at 00:00 UTC the allowed number of days ago and ends at the time of the request. Ranges are returned in full, with their original start and end times, even if they extend outside the window.<br><br>You may also filter results by port and transport protocol.<br><br>This endpoint is available to organizations that have access to the Adversary Investigation module. This endpoint costs one credit per page of results.
|
|
55
55
|
*/
|
|
56
56
|
async getHostObservationsWithCertificate(request, options) {
|
|
57
57
|
return (0, fp_js_1.unwrapAsync)((0, threatHuntingGetHostObservationsWithCertificate_js_1.threatHuntingGetHostObservationsWithCertificate)(this, request, options));
|
|
@@ -60,7 +60,7 @@ class AdversaryInvestigation extends sdks_js_1.ClientSDK {
|
|
|
60
60
|
* Investigations: Create file upload
|
|
61
61
|
*
|
|
62
62
|
* @remarks
|
|
63
|
-
* Prepare to attach an evidence file to an investigation. This endpoint does not accept the file. It returns a URL to send the file to and an identifier to pass to the [create job endpoint](https://docs.censys.com/reference/v3-threathunting-investigations-jobs-create) afterwards.<br><br>Upload the file with an HTTP PUT to `upload_url` and send `upload_headers` exactly as returned by this endpoint. The URL grants access to that one file and stops working at `expire_time`; a file uploaded before that stays usable afterwards. Prepare one upload per file.<br><br>Start the investigation promptly after uploading. There is a limit on how many uploaded files you may hold without using them and starting an investigation from a file releases its slot. A file that no investigation references is discarded once it passes the service's retention window for unused uploads. A file an investigation does reference is kept with that investigation for as long as the investigation itself.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.<br><br>This endpoint does not cost any credits to execute.
|
|
63
|
+
* Prepare to attach an evidence file to an investigation. Use this endpoint to stage evidence, such as logs, malware reports, or alert exports, so an AI investigation can use it.<br><br>This endpoint does not accept the file. It returns a URL to send the file to and an identifier to pass to the [create job endpoint](https://docs.censys.com/reference/v3-threathunting-investigations-jobs-create) afterwards.<br><br>Upload the file with an HTTP PUT to `upload_url` and send `upload_headers` exactly as returned by this endpoint. The URL grants access to that one file and stops working at `expire_time`; a file uploaded before that stays usable afterwards. Prepare one upload per file.<br><br>Start the investigation promptly after uploading. There is a limit on how many uploaded files you may hold without using them and starting an investigation from a file releases its slot. A file that no investigation references is discarded once it passes the service's retention window for unused uploads. A file an investigation does reference is kept with that investigation for as long as the investigation itself.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.<br><br>This endpoint does not cost any credits to execute.
|
|
64
64
|
*/
|
|
65
65
|
async createInvestigationFileUpload(request, options) {
|
|
66
66
|
return (0, fp_js_1.unwrapAsync)((0, threatHuntingCreateInvestigationFileUpload_js_1.threatHuntingCreateInvestigationFileUpload)(this, request, options));
|
|
@@ -78,7 +78,7 @@ class AdversaryInvestigation extends sdks_js_1.ClientSDK {
|
|
|
78
78
|
* Investigations: Create job
|
|
79
79
|
*
|
|
80
80
|
* @remarks
|
|
81
|
-
* Start an [AI investigation](https://docs.censys.com/docs/platform-ai-investigations) from a set of indicators, a set of previously uploaded evidence files, or both
|
|
81
|
+
* Start an [AI investigation](https://docs.censys.com/docs/platform-ai-investigations) from a set of indicators, a set of previously uploaded evidence files, or both to obtain a report on suspect infrastructure without doing the pivots by hand.<br><br>Supply at least one `indicators` or `file_ids`. To use files, upload them first with the [create file upload endpoint](https://docs.censys.com/reference/v3-threathunting-investigations-files-create).<br><br>This endpoint returns a `job_id` that you can poll to retrieve its status and results.<br><br>Provide `start_time` and `end_time` to scope the investigation to a time frame, or `start_time` alone to scope it from that time up to now. Omit both to investigate current data.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.
|
|
82
82
|
*/
|
|
83
83
|
async createInvestigationJob(request, options) {
|
|
84
84
|
return (0, fp_js_1.unwrapAsync)((0, threatHuntingCreateInvestigationJob_js_1.threatHuntingCreateInvestigationJob)(this, request, options));
|
|
@@ -114,7 +114,7 @@ class AdversaryInvestigation extends sdks_js_1.ClientSDK {
|
|
|
114
114
|
* Live Discovery: Initiate a new scan
|
|
115
115
|
*
|
|
116
116
|
* @remarks
|
|
117
|
-
* Initiate a scan to look for a currently unobserved service at a specific IP and port (`ip:port`) or hostname and port (`hostname:port`). This is equivalent to the [Live Discovery](https://docs.censys.com/docs/platform-threat-hunting-use-live-scan-and-rescan-to-validate-infrastructure#/) feature available in the UI, but you can also target web properties in addition to hosts.<br><br>The scan may take several minutes to complete. The response will contain a scan ID that you can use to [monitor the scan's status](https://docs.censys.com/reference/v3-threathunting-scans-get#/). After the scan completes, perform a lookup on the target asset to retrieve detailed scan information.<br><br>This endpoint is available to organizations that have access to the Adversary Investigation module. It costs 15 credits to execute this endpoint.
|
|
117
|
+
* Initiate a scan to look for a currently unobserved service at a specific IP and port (`ip:port`) or hostname and port (`hostname:port`). This is equivalent to the [Live Discovery](https://docs.censys.com/docs/platform-threat-hunting-use-live-scan-and-rescan-to-validate-infrastructure#/) feature available in the UI, but you can also target web properties in addition to hosts.<br><br>The scan may take several minutes to complete. The response will contain a scan ID that you can use to [monitor the scan's status](https://docs.censys.com/reference/v3-threathunting-scans-get#/). After the scan completes, perform a lookup on the target asset to retrieve detailed scan information.<br><br>Use this endpoint to scan for a service at an `ip:port` or `hostname:port`, such as a new IOC from an incident, so you can get data on it right away.<br><br>This endpoint is available to organizations that have access to the Adversary Investigation module. It costs 15 credits to execute this endpoint.
|
|
118
118
|
*/
|
|
119
119
|
async createTrackedScan(request, options) {
|
|
120
120
|
return (0, fp_js_1.unwrapAsync)((0, threatHuntingCreateTrackedScan_js_1.threatHuntingCreateTrackedScan)(this, request, options));
|
|
@@ -123,7 +123,7 @@ class AdversaryInvestigation extends sdks_js_1.ClientSDK {
|
|
|
123
123
|
* List active threats
|
|
124
124
|
*
|
|
125
125
|
* @remarks
|
|
126
|
-
* Retrieve a list of active threats observed by Censys by aggregating threat IDs across hosts and web properties. Threats are active if their fingerprint has been identified on hosts or web properties by Censys scans. This information is also available on the [Explore Threats page in the Platform web UI](https://platform.censys.io/threats).<br><br>This endpoint is available to organizations that have access to the Adversary Investigation module.
|
|
126
|
+
* Retrieve a list of active threats observed by Censys by aggregating threat IDs across hosts and web properties. Use this endpoint to see currently active threats so you can prioritize which malicious infrastructure to hunt or block first.<br><br>Threats are active if their fingerprint has been identified on hosts or web properties by Censys scans. This information is also available on the [Explore Threats page in the Platform web UI](https://platform.censys.io/threats).<br><br>This endpoint is available to organizations that have access to the Adversary Investigation module.
|
|
127
127
|
*/
|
|
128
128
|
async listThreats(request, options) {
|
|
129
129
|
return (0, fp_js_1.unwrapAsync)((0, threatHuntingListThreats_js_1.threatHuntingListThreats)(this, request, options));
|
|
@@ -132,7 +132,7 @@ class AdversaryInvestigation extends sdks_js_1.ClientSDK {
|
|
|
132
132
|
* CensEye: Retrieve value counts to discover pivots
|
|
133
133
|
*
|
|
134
134
|
* @remarks
|
|
135
|
-
* Get counts of web assets for specific field-value pairs and combinations of field-value pairs. This is similar to the [CensEye functionality](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#/) available in the Platform web UI, but it allows you to define specific fields of interest rather than the [default fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) leveraged by the tool in the UI.<br><br>Each array can only target fields within the same nested object and may contain at most 5 field-value pairs. For example, you can combine `host.services.port=80` and `host.services.protocol=SSH` in the same array, but you cannot combine `host.services.port=80` and `host.location.country="United States"` in the same array. You can input multiple arrays of objects in each API call.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module. This endpoint costs 1 credit per count condition (array of objects) included in the API call.
|
|
135
|
+
* Get counts of web assets for specific field-value pairs and combinations of field-value pairs. This is similar to the [CensEye functionality](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#/) available in the Platform web UI, but it allows you to define specific fields of interest rather than the [default fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) leveraged by the tool in the UI.<br><br>Each array can only target fields within the same nested object and may contain at most 5 field-value pairs. For example, you can combine `host.services.port=80` and `host.services.protocol=SSH` in the same array, but you cannot combine `host.services.port=80` and `host.location.country="United States"` in the same array. You can input multiple arrays of objects in each API call.<br><br>Use this endpoint to see how many assets share a given field value, so you can tell which attributes are rare enough to pivot on and which are too common to be useful.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module. This endpoint costs 1 credit per count condition (array of objects) included in the API call.
|
|
136
136
|
*/
|
|
137
137
|
async valueCounts(request, options) {
|
|
138
138
|
return (0, fp_js_1.unwrapAsync)((0, threatHuntingValueCounts_js_1.threatHuntingValueCounts)(this, request, options));
|
package/sdk/collections.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class Collections extends ClientSDK {
|
|
|
14
14
|
* Create a collection
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Create a new collection.<br><br>This endpoint does not cost credits to execute.
|
|
17
|
+
* Create a new [collection](https://docs.censys.com/docs/platform-collections).<br><br>In a SOC environment, use this endpoint to save a query as a dynamic asset group, such as all internet-facing RDP hosts or a threat's footprint, so SOC monitoring and reporting stay scoped as assets change.<br><br>This endpoint does not cost credits to execute.
|
|
18
18
|
*/
|
|
19
19
|
create(request: operations.V3CollectionsCrudCreateRequest, options?: RequestOptions): Promise<operations.V3CollectionsCrudCreateResponse>;
|
|
20
20
|
/**
|
|
@@ -30,35 +30,35 @@ export declare class Collections extends ClientSDK {
|
|
|
30
30
|
* Get a collection
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Retrieve information about a collection. Retrieved information includes its name, query, description, status, and asset count.<br><br>This endpoint does not cost credits to execute.
|
|
33
|
+
* Retrieve information about a collection. Retrieved information includes its name, query, description, status, and asset count. Use it to confirm it still reflects the scope you intend to monitor.<br><br>This endpoint does not cost credits to execute.
|
|
34
34
|
*/
|
|
35
35
|
get(request: operations.V3CollectionsCrudGetRequest, options?: RequestOptions): Promise<operations.V3CollectionsCrudGetResponse>;
|
|
36
36
|
/**
|
|
37
37
|
* Update a collection
|
|
38
38
|
*
|
|
39
39
|
* @remarks
|
|
40
|
-
* Update a collection's name, description, and/or
|
|
40
|
+
* Update a collection's name, description, query, and/or privacy.<br><br>This endpoint does not cost credits to execute.
|
|
41
41
|
*/
|
|
42
42
|
update(request: operations.V3CollectionsCrudUpdateRequest, options?: RequestOptions): Promise<operations.V3CollectionsCrudUpdateResponse>;
|
|
43
43
|
/**
|
|
44
44
|
* Get a collection's events
|
|
45
45
|
*
|
|
46
46
|
* @remarks
|
|
47
|
-
* Retrieve the event history for a collection. This includes the addition or removal of assets as well as collection status changes.<br><br>This endpoint does not cost credits to execute.
|
|
47
|
+
* Retrieve the event history for a collection. This includes the addition or removal of assets as well as collection status changes.<br><br>In a SOC environment, use this endpoint to see which assets were added or removed and when, to catch new exposure or unexpected changes in a monitored scope.<br><br>This endpoint does not cost credits to execute.
|
|
48
48
|
*/
|
|
49
49
|
listEvents(request: operations.V3CollectionsListEventsRequest, options?: RequestOptions): Promise<operations.V3CollectionsListEventsResponse>;
|
|
50
50
|
/**
|
|
51
51
|
* Aggregate results for a search query within a collection
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Aggregate results for a Platform search query that targets a collection's assets. This functionality is equivalent to the [Report Builder](https://docs.censys.com/docs/platform-report-builder#/) in the Platform web UI.
|
|
54
|
+
* Aggregate results for a Platform search query that targets a collection's assets. This functionality is equivalent to the [Report Builder](https://docs.censys.com/docs/platform-report-builder#/) in the Platform web UI.<br><br>In a SOC environment, use this endpoint to count and bucket matches by field, such as port, country, or software, inside a collection so you can spot exposure trends without pulling every asset.
|
|
55
55
|
*/
|
|
56
56
|
aggregate(request: operations.V3CollectionsSearchAggregateRequest, options?: RequestOptions): Promise<operations.V3CollectionsSearchAggregateResponse>;
|
|
57
57
|
/**
|
|
58
58
|
* Run a search query within a collection
|
|
59
59
|
*
|
|
60
60
|
* @remarks
|
|
61
|
-
* Run a search query across a collection's assets. Reference the [documentation on Censys Query Language](https://docs.censys.com/docs/censys-query-language#/) for information about query syntax. Host services that match your search criteria will be returned in a `matched_services` object.
|
|
61
|
+
* Run a search query across a collection's assets. Reference the [documentation on Censys Query Language](https://docs.censys.com/docs/censys-query-language#/) for information about query syntax. Host services that match your search criteria will be returned in a `matched_services` object.<br><br>In a SOC environment, use this endpoint to search only within the defined scope of a collection, so triage and hunting results stay relevant instead of covering the whole internet.
|
|
62
62
|
*/
|
|
63
63
|
search(request: operations.V3CollectionsSearchQueryRequest, options?: RequestOptions): Promise<operations.V3CollectionsSearchQueryResponse>;
|
|
64
64
|
}
|
package/sdk/collections.js
CHANGED
|
@@ -30,7 +30,7 @@ class Collections extends sdks_js_1.ClientSDK {
|
|
|
30
30
|
* Create a collection
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Create a new collection.<br><br>This endpoint does not cost credits to execute.
|
|
33
|
+
* Create a new [collection](https://docs.censys.com/docs/platform-collections).<br><br>In a SOC environment, use this endpoint to save a query as a dynamic asset group, such as all internet-facing RDP hosts or a threat's footprint, so SOC monitoring and reporting stay scoped as assets change.<br><br>This endpoint does not cost credits to execute.
|
|
34
34
|
*/
|
|
35
35
|
async create(request, options) {
|
|
36
36
|
return (0, fp_js_1.unwrapAsync)((0, collectionsCreate_js_1.collectionsCreate)(this, request, options));
|
|
@@ -48,7 +48,7 @@ class Collections extends sdks_js_1.ClientSDK {
|
|
|
48
48
|
* Get a collection
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
|
-
* Retrieve information about a collection. Retrieved information includes its name, query, description, status, and asset count.<br><br>This endpoint does not cost credits to execute.
|
|
51
|
+
* Retrieve information about a collection. Retrieved information includes its name, query, description, status, and asset count. Use it to confirm it still reflects the scope you intend to monitor.<br><br>This endpoint does not cost credits to execute.
|
|
52
52
|
*/
|
|
53
53
|
async get(request, options) {
|
|
54
54
|
return (0, fp_js_1.unwrapAsync)((0, collectionsGet_js_1.collectionsGet)(this, request, options));
|
|
@@ -57,7 +57,7 @@ class Collections extends sdks_js_1.ClientSDK {
|
|
|
57
57
|
* Update a collection
|
|
58
58
|
*
|
|
59
59
|
* @remarks
|
|
60
|
-
* Update a collection's name, description, and/or
|
|
60
|
+
* Update a collection's name, description, query, and/or privacy.<br><br>This endpoint does not cost credits to execute.
|
|
61
61
|
*/
|
|
62
62
|
async update(request, options) {
|
|
63
63
|
return (0, fp_js_1.unwrapAsync)((0, collectionsUpdate_js_1.collectionsUpdate)(this, request, options));
|
|
@@ -66,7 +66,7 @@ class Collections extends sdks_js_1.ClientSDK {
|
|
|
66
66
|
* Get a collection's events
|
|
67
67
|
*
|
|
68
68
|
* @remarks
|
|
69
|
-
* Retrieve the event history for a collection. This includes the addition or removal of assets as well as collection status changes.<br><br>This endpoint does not cost credits to execute.
|
|
69
|
+
* Retrieve the event history for a collection. This includes the addition or removal of assets as well as collection status changes.<br><br>In a SOC environment, use this endpoint to see which assets were added or removed and when, to catch new exposure or unexpected changes in a monitored scope.<br><br>This endpoint does not cost credits to execute.
|
|
70
70
|
*/
|
|
71
71
|
async listEvents(request, options) {
|
|
72
72
|
return (0, fp_js_1.unwrapAsync)((0, collectionsListEvents_js_1.collectionsListEvents)(this, request, options));
|
|
@@ -75,7 +75,7 @@ class Collections extends sdks_js_1.ClientSDK {
|
|
|
75
75
|
* Aggregate results for a search query within a collection
|
|
76
76
|
*
|
|
77
77
|
* @remarks
|
|
78
|
-
* Aggregate results for a Platform search query that targets a collection's assets. This functionality is equivalent to the [Report Builder](https://docs.censys.com/docs/platform-report-builder#/) in the Platform web UI.
|
|
78
|
+
* Aggregate results for a Platform search query that targets a collection's assets. This functionality is equivalent to the [Report Builder](https://docs.censys.com/docs/platform-report-builder#/) in the Platform web UI.<br><br>In a SOC environment, use this endpoint to count and bucket matches by field, such as port, country, or software, inside a collection so you can spot exposure trends without pulling every asset.
|
|
79
79
|
*/
|
|
80
80
|
async aggregate(request, options) {
|
|
81
81
|
return (0, fp_js_1.unwrapAsync)((0, collectionsAggregate_js_1.collectionsAggregate)(this, request, options));
|
|
@@ -84,7 +84,7 @@ class Collections extends sdks_js_1.ClientSDK {
|
|
|
84
84
|
* Run a search query within a collection
|
|
85
85
|
*
|
|
86
86
|
* @remarks
|
|
87
|
-
* Run a search query across a collection's assets. Reference the [documentation on Censys Query Language](https://docs.censys.com/docs/censys-query-language#/) for information about query syntax. Host services that match your search criteria will be returned in a `matched_services` object.
|
|
87
|
+
* Run a search query across a collection's assets. Reference the [documentation on Censys Query Language](https://docs.censys.com/docs/censys-query-language#/) for information about query syntax. Host services that match your search criteria will be returned in a `matched_services` object.<br><br>In a SOC environment, use this endpoint to search only within the defined scope of a collection, so triage and hunting results stay relevant instead of covering the whole internet.
|
|
88
88
|
*/
|
|
89
89
|
async search(request, options) {
|
|
90
90
|
return (0, fp_js_1.unwrapAsync)((0, collectionsSearch_js_1.collectionsSearch)(this, request, options));
|
package/sdk/globaldata.d.ts
CHANGED
|
@@ -5,77 +5,77 @@ export declare class GlobalData extends ClientSDK {
|
|
|
5
5
|
* Retrieve multiple certificates
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Retrieve information about multiple certificates. You can retrieve up to 1,000 certificates per call. A certificate ID is its SHA-256 fingerprint
|
|
8
|
+
* Retrieve information about multiple certificates. You can retrieve up to 1,000 certificates per call. A certificate ID is its SHA-256 fingerprint.<br><br>In a SOC environment, use this endpoint to bulk-check multiple certificates from network telemetry for self-signed, newly issued, or lookalike certs.
|
|
9
9
|
*/
|
|
10
10
|
getCertificates(request: operations.V3GlobaldataAssetCertificateListPostRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetCertificateListPostResponse>;
|
|
11
11
|
/**
|
|
12
12
|
* Retrieve multiple certificates in PEM format
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Retrieve the raw PEM-encoded format for multiple certificates. You can retrieve up to 1,000 certificates per call. A certificate ID is its SHA-256 fingerprint
|
|
15
|
+
* Retrieve the raw PEM-encoded format for multiple certificates. You can retrieve up to 1,000 certificates per call. A certificate ID is its SHA-256 fingerprint.<br><br>Use this endpoint to export raw PEMs for multiple certificates at once, for bulk analysis or sharing with your detection pipeline.
|
|
16
16
|
*/
|
|
17
17
|
getCertificatesRaw(request: operations.V3GlobaldataAssetCertificateListRawPostRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetCertificateListRawPostResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Get a certificate
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Retrieve information about a single certificate. A certificate ID is its SHA-256 fingerprint in
|
|
22
|
+
* Retrieve information about a single certificate. A certificate ID is its SHA-256 fingerprint.<br><br>In a SOC environment, use this endpoint to look up a certificate by SHA-256 fingerprint to see its subject, issuer, and validity, so you can vet certs seen in TLS logs or alerts.
|
|
23
23
|
*/
|
|
24
24
|
getCertificate(request: operations.V3GlobaldataAssetCertificateRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetCertificateResponse>;
|
|
25
25
|
/**
|
|
26
26
|
* Get a certificate in PEM format
|
|
27
27
|
*
|
|
28
28
|
* @remarks
|
|
29
|
-
* Retrieve the raw PEM-encoded format of a certificate. A certificate ID is its SHA-256 fingerprint
|
|
29
|
+
* Retrieve the raw PEM-encoded format of a certificate. A certificate ID is its SHA-256 fingerprint.<br><br>Use this endpoint to retrieve the raw PEM of a suspicious certificate for offline analysis or to feed other tooling.
|
|
30
30
|
*/
|
|
31
31
|
getCertificateRaw(request: operations.V3GlobaldataAssetCertificateRawRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetCertificateRawResponse>;
|
|
32
32
|
/**
|
|
33
33
|
* Get host enrichment
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
|
-
* Retrieve enrichment data for a single host. This endpoint is optimized for high-volume SOC enrichment use cases.<br><br>This endpoint does not consume standard Censys credits. Core organizations may perform up to 20,000 enrichment calls per day. Core + Unlimited Enrichment organizations may perform an unlimited amount of enrichment calls per day.<br><br>[Learn more about the enrichment API here](https://docs.censys.com/docs/host-enrichment).
|
|
36
|
+
* Retrieve enrichment data for a single host. This endpoint is optimized for high-volume SOC enrichment use cases.<br><br>Use this endpoint to add Censys context (location, ASN, labels, reputation, and more) to IPs in your SIEM or SOAR at high volume, without spending standard credits.<br><br>This endpoint does not consume standard Censys credits. Core organizations may perform up to 20,000 enrichment calls per day. Core + Unlimited Enrichment organizations may perform an unlimited amount of enrichment calls per day.<br><br>[Learn more about the enrichment API here](https://docs.censys.com/docs/host-enrichment).
|
|
37
37
|
*/
|
|
38
38
|
getHostEnrichment(request: operations.V3GlobaldataAssetHostEnrichmentRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetHostEnrichmentResponse>;
|
|
39
39
|
/**
|
|
40
40
|
* Retrieve multiple hosts
|
|
41
41
|
*
|
|
42
42
|
* @remarks
|
|
43
|
-
* Retrieve information about multiple hosts. You can retrieve up to 100 hosts per call. A host ID is its IP address.
|
|
43
|
+
* Retrieve information about multiple hosts. You can retrieve up to 100 hosts per call. A host ID is its IP address.<br><br>In a SOC environment, use this endpoint to look up multiple IPs from an alert, log, or threat feed in one call, so you can triage a whole indicator list quickly.
|
|
44
44
|
*/
|
|
45
45
|
getHosts(request: operations.V3GlobaldataAssetHostListPostRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetHostListPostResponse>;
|
|
46
46
|
/**
|
|
47
47
|
* Get a host
|
|
48
48
|
*
|
|
49
49
|
* @remarks
|
|
50
|
-
* Retrieve information about a single host. A host ID is its IP address.
|
|
50
|
+
* Retrieve information about a single host. A host ID is its IP address.<br><br>In a SOC environment, use this endpoint to pull the current services, software, certificates, and labels on an IP from an alert, so you can quickly judge whether it is malicious or benign.
|
|
51
51
|
*/
|
|
52
52
|
getHost(request: operations.V3GlobaldataAssetHostRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetHostResponse>;
|
|
53
53
|
/**
|
|
54
54
|
* Get service history for a host
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
|
-
* Retrieve historical service observations for a host. This endpoint returns time ranges during which services were detected on the host.<br><br>You can define a specific time frame of interest. If you do not specify a time frame, this endpoint will search the historical dataset that is available to your account.<br><br>You can filter by port number, protocol, and transport protocol.
|
|
57
|
+
* Retrieve historical service observations for a host. This endpoint returns time ranges during which services were detected on the host.<br><br>You can define a specific time frame of interest. If you do not specify a time frame, this endpoint will search the historical dataset that is available to your account.<br><br>You can filter by port number, protocol, and transport protocol.<br><br>In a SOC environment, use this endpoint to see when a specific service was exposed on an IP, so you can check whether it was live during the window of a suspected incident.
|
|
58
58
|
*/
|
|
59
59
|
listServicesOnHost(request: operations.V3GlobaldataServiceOnHostRequest, options?: RequestOptions): Promise<operations.V3GlobaldataServiceOnHostResponse>;
|
|
60
60
|
/**
|
|
61
61
|
* Get host event history
|
|
62
62
|
*
|
|
63
63
|
* @remarks
|
|
64
|
-
* Retrieve event history for a host. A host ID is its IP address.<br><br>Note that when a service protocol changes after a new scan (for example, from `UNKNOWN` to `NETBIOS`), this information will be reflected in the `scan` object.
|
|
64
|
+
* Retrieve event history for a host. A host ID is its IP address.<br><br>Note that when a service protocol changes after a new scan (for example, from `UNKNOWN` to `NETBIOS`), this information will be reflected in the `scan` object.<br><br>In a SOC environment, use this endpoint to see what changed on an IP over time, such as new services, certificate swaps, and software changes, to reconstruct when attacker infrastructure was stood up or modified.
|
|
65
65
|
*/
|
|
66
66
|
getHostTimeline(request: operations.V3GlobaldataAssetHostTimelineRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetHostTimelineResponse>;
|
|
67
67
|
/**
|
|
68
68
|
* Retrieve multiple web properties
|
|
69
69
|
*
|
|
70
70
|
* @remarks
|
|
71
|
-
* Retrieve information about multiple web properties. You can retrieve up to 100 web properties per call. Web properties are identified using a combination of a hostname and port joined with a colon, such as `platform.censys.io:80
|
|
71
|
+
* Retrieve information about multiple web properties. You can retrieve up to 100 web properties per call. Web properties are identified using a combination of a hostname and port joined with a colon, such as `platform.censys.io:80`.<br><br>In a SOC environment, use this endpoint to check up to 100 suspicious hostnames at once, such as domains from phishing reports or proxy logs, to find the live and malicious ones.
|
|
72
72
|
*/
|
|
73
73
|
getWebProperties(request: operations.V3GlobaldataAssetWebpropertyListPostRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetWebpropertyListPostResponse>;
|
|
74
74
|
/**
|
|
75
75
|
* Get a web property
|
|
76
76
|
*
|
|
77
77
|
* @remarks
|
|
78
|
-
* Retrieve information about a single web property. Web properties are identified using a combination of a hostname and port joined with a colon, such as `platform.censys.io:80
|
|
78
|
+
* Retrieve information about a single web property. Web properties are identified using a combination of a hostname and port joined with a colon, such as `platform.censys.io:80`.<br><br>In a SOC environment, use this endpoint to inspect the current content, technologies, and certificate for a hostname and port from a phishing or C2 alert.
|
|
79
79
|
*/
|
|
80
80
|
getWebProperty(request: operations.V3GlobaldataAssetWebpropertyRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetWebpropertyResponse>;
|
|
81
81
|
/**
|
|
@@ -89,49 +89,49 @@ export declare class GlobalData extends ClientSDK {
|
|
|
89
89
|
* Get DNS names that resolved to an IP (aggregated bounds)
|
|
90
90
|
*
|
|
91
91
|
* @remarks
|
|
92
|
-
* Retrieve the domain names that resolved to an IP during a time frame. You can narrow results with `record_types` (A or AAAA).<br><br>Results are aggregated per domain name and multiple distinct ranges for a name will be grouped into one row of results. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will group those ranges into one entry for `censys.com` in the response.<br><br>To retrieve domain names for an IP with each record broken down by time range, use the [ranges endpoint](https://docs.censys.com/reference/v3-globaldata-dns-ip-resolution-ranges)<br><br>This endpoint is only available to organizations on the Censys Search and Censys Core plans.<br><br>[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns).
|
|
92
|
+
* Retrieve the domain names that resolved to an IP during a time frame. You can narrow results with `record_types` (A or AAAA).<br><br>Results are aggregated per domain name and multiple distinct ranges for a name will be grouped into one row of results. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will group those ranges into one entry for `censys.com` in the response.<br><br>To retrieve domain names for an IP with each record broken down by time range, use the [ranges endpoint](https://docs.censys.com/reference/v3-globaldata-dns-ip-resolution-ranges)<br><br>In a SOC environment, use this endpoint to find every domain that has pointed at a malicious IP, with first- and last-seen bounds per name, so you can discover related domains and block them.<br><br>This endpoint is only available to organizations on the Censys Search and Censys Core plans.<br><br>[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns).
|
|
93
93
|
*/
|
|
94
94
|
listDnsIpResolutionBounds(request: operations.V3GlobaldataDnsIpResolutionBoundRequest, options?: RequestOptions): Promise<operations.V3GlobaldataDnsIpResolutionBoundResponse>;
|
|
95
95
|
/**
|
|
96
96
|
* Get DNS names that resolved to an IP (ranges)
|
|
97
97
|
*
|
|
98
98
|
* @remarks
|
|
99
|
-
* Retrieve the domain names that resolved to an IP during a time frame. You can narrow results with `record_types` (A or AAAA).<br><br>Record results are broken down based on time range. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will return one row for each of those distinct ranges.<br><br>To retrieve domain names for an IP with each result aggregated by name, use the [bounds endpoint endpoint](https://docs.censys.com/reference/v3-globaldata-dns-ip-resolution-bound).<br><br>This endpoint is only available to organizations on the Censys Search and Censys Core plans.<br><br>[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns).
|
|
99
|
+
* Retrieve the domain names that resolved to an IP during a time frame. You can narrow results with `record_types` (A or AAAA).<br><br>Record results are broken down based on time range. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will return one row for each of those distinct ranges.<br><br>To retrieve domain names for an IP with each result aggregated by name, use the [bounds endpoint endpoint](https://docs.censys.com/reference/v3-globaldata-dns-ip-resolution-bound).<br><br>In a SOC environment, use this endpoint to see the exact time ranges a domain resolved to an IP, to confirm it was active during the incident window or to spot infrastructure reuse.<br><br>This endpoint is only available to organizations on the Censys Search and Censys Core plans.<br><br>[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns).
|
|
100
100
|
*/
|
|
101
101
|
listDnsIpResolutionRanges(request: operations.V3GlobaldataDnsIpResolutionRangesRequest, options?: RequestOptions): Promise<operations.V3GlobaldataDnsIpResolutionRangesResponse>;
|
|
102
102
|
/**
|
|
103
103
|
* Get DNS resolution records for a name (aggregated bounds)
|
|
104
104
|
*
|
|
105
105
|
* @remarks
|
|
106
|
-
* Retrieve the DNS resolution records for a name. This endpoint returns observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using record_types.<br><br>Results are aggregated per record distinct ranges for a record will be grouped into one row of results. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will group those ranges into one entry for the `1.1.1.1` A record in the response.<br><br>To retrieve records for a name with each record broken down by time range, use the [ranges endpoint](https://docs.censys.com/reference/v3-globaldata-dns-name-resolution-ranges).<br><br>This endpoint is only available to organizations on the Censys Search and Censys Core plans.<br><br>[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns).
|
|
106
|
+
* Retrieve the DNS resolution records for a name. This endpoint returns observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using record_types.<br><br>Results are aggregated per record distinct ranges for a record will be grouped into one row of results. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will group those ranges into one entry for the `1.1.1.1` A record in the response.<br><br>To retrieve records for a name with each record broken down by time range, use the [ranges endpoint](https://docs.censys.com/reference/v3-globaldata-dns-name-resolution-ranges).<br><br>In a SOC environment, use this endpoint to see the A, AAAA, MX, NS, SOA, and TXT records observed for a suspicious domain, to pivot to its hosting and mail infrastructure.<br><br>This endpoint is only available to organizations on the Censys Search and Censys Core plans.<br><br>[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns).
|
|
107
107
|
*/
|
|
108
108
|
listDnsNameResolutionBounds(request: operations.V3GlobaldataDnsNameResolutionBoundRequest, options?: RequestOptions): Promise<operations.V3GlobaldataDnsNameResolutionBoundResponse>;
|
|
109
109
|
/**
|
|
110
110
|
* Get DNS resolution records for a name (ranges)
|
|
111
111
|
*
|
|
112
112
|
* @remarks
|
|
113
|
-
* Retrieve the records that resolved for a name during a time frame. This endpoint returns observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using `record_types`.<br><br>Record results are broken down based on time range. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will return one row for each of those distinct ranges for the `1.1.1.1` A record.<br><br>To retrieve records for a name with each result aggregated per record, use the [bounds endpoint endpoint](https://docs.censys.com/reference/v3-globaldata-dns-name-resolution-bound).<br><br>This endpoint is only available to organizations on the Censys Search and Censys Core plans.<br><br>[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns).
|
|
113
|
+
* Retrieve the records that resolved for a name during a time frame. This endpoint returns observed A, AAAA, MX, NS, SOA, and TXT records for the name you provide. You can filter by one or more record types using `record_types`.<br><br>Record results are broken down based on time range. For example, if `censys.com` resolved to `1.1.1.1` from January 1 to January 7 during two different ranges of January 1 to January 3 and January 5 to January 7, and you targeted January 1 through January 7 with your API call, then this endpoint will return one row for each of those distinct ranges for the `1.1.1.1` A record.<br><br>To retrieve records for a name with each result aggregated per record, use the [bounds endpoint endpoint](https://docs.censys.com/reference/v3-globaldata-dns-name-resolution-bound).<br><br>In a SOC environment, use this endpoint to see when a domain's records changed over time, such as a sudden hosting move after takedown.<br><br>This endpoint is only available to organizations on the Censys Search and Censys Core plans.<br><br>[Learn more about Censys Active DNS](https://docs.censys.com/docs/platform-active-dns).
|
|
114
114
|
*/
|
|
115
115
|
listDnsNameResolutionRanges(request: operations.V3GlobaldataDnsNameResolutionRangesRequest, options?: RequestOptions): Promise<operations.V3GlobaldataDnsNameResolutionRangesResponse>;
|
|
116
116
|
/**
|
|
117
117
|
* Live Rescan: Initiate a new rescan
|
|
118
118
|
*
|
|
119
119
|
* @remarks
|
|
120
|
-
* Initiate a rescan for a known host service at a specific IP and port (`ip:port`) or hostname and port (`hostname:port`). This is equivalent to the [Live Rescan](https://docs.censys.com/docs/platform-live-rescan#/) feature available in the UI, but you can also target web properties in addition to hosts.<br><br>The scan may take several minutes to complete. The response will contain a scan ID that you can use to [monitor the scan's status](https://docs.censys.com/reference/v3-globaldata-scans-get#/). After the scan completes, perform a lookup on the target asset to retrieve detailed scan information.<br><br>This endpoint is available to all Enterprise customers. It costs 10 credits to execute.
|
|
120
|
+
* Initiate a rescan for a known host service at a specific IP and port (`ip:port`) or hostname and port (`hostname:port`). This is equivalent to the [Live Rescan](https://docs.censys.com/docs/platform-live-rescan#/) feature available in the UI, but you can also target web properties in addition to hosts.<br><br>The scan may take several minutes to complete. The response will contain a scan ID that you can use to [monitor the scan's status](https://docs.censys.com/reference/v3-globaldata-scans-get#/). After the scan completes, perform a lookup on the target asset to retrieve detailed scan information.<br><br>In a SOC environment, rescan to ensure triage, an investigation, or a hunt has the most accurate and current state. This includes information like whether C2 servers are still operational, or whether an organization's asset is still exposed to the internet.<br><br>This endpoint is available to all Enterprise customers. It costs 10 credits to execute.
|
|
121
121
|
*/
|
|
122
122
|
createTrackedScan(request: operations.V3GlobaldataScansRescanRequest, options?: RequestOptions): Promise<operations.V3GlobaldataScansRescanResponse>;
|
|
123
123
|
/**
|
|
124
124
|
* Get scan status
|
|
125
125
|
*
|
|
126
126
|
* @remarks
|
|
127
|
-
* Retrieve the current status of a scan by its ID. This endpoint works for both [Live Discovery scans](https://docs.censys.com/reference/v3-threathunting-scans-discovery#/) and [Live Rescans](https://docs.censys.com/reference/v3-globaldata-scans-rescan#/).<br><br>If the scan was successful, perform a lookup on the target asset to retrieve detailed scan information.<br><br>This endpoint is available to all
|
|
127
|
+
* Retrieve the current status of a scan by its ID. This endpoint works for both [Live Discovery scans](https://docs.censys.com/reference/v3-threathunting-scans-discovery#/) and [Live Rescans](https://docs.censys.com/reference/v3-globaldata-scans-rescan#/).<br><br>Use this endpoint to check whether a Live Discovery or Live Rescan scan has finished, so automation knows when fresh data is ready to pull.<br><br>If the scan was successful, perform a lookup on the target asset to retrieve detailed scan information.<br><br>This endpoint is available to all enterprise customers. This endpoint does not cost any credits to execute.
|
|
128
128
|
*/
|
|
129
129
|
getTrackedScan(request: operations.V3GlobaldataScansGetRequest, options?: RequestOptions): Promise<operations.V3GlobaldataScansGetResponse>;
|
|
130
130
|
/**
|
|
131
131
|
* Aggregate results for a search query
|
|
132
132
|
*
|
|
133
133
|
* @remarks
|
|
134
|
-
* Aggregate results for a Platform search query. This functionality is equivalent to the [Report Builder](https://docs.censys.com/docs/platform-report-builder#/) in the Platform web UI.
|
|
134
|
+
* Aggregate results for a Platform search query. This functionality is equivalent to the [Report Builder](https://docs.censys.com/docs/platform-report-builder#/) in the Platform web UI.<br><br>In a SOC environment, use this endpoint to count and bucket matches by field, such as country, ASN, or port, to size a campaign or spot where malicious infrastructure clusters without pulling every record.
|
|
135
135
|
*/
|
|
136
136
|
aggregate(request: operations.V3GlobaldataSearchAggregateRequest, options?: RequestOptions): Promise<operations.V3GlobaldataSearchAggregateResponse>;
|
|
137
137
|
/**
|
|
@@ -145,7 +145,7 @@ export declare class GlobalData extends ClientSDK {
|
|
|
145
145
|
* Run a search query
|
|
146
146
|
*
|
|
147
147
|
* @remarks
|
|
148
|
-
* Run a search query across Censys data. Reference the [documentation on Censys Query Language](https://docs.censys.com/docs/censys-query-language#/) for information about query syntax
|
|
148
|
+
* Run a search query across Censys data. Reference the [documentation on Censys Query Language](https://docs.censys.com/docs/censys-query-language#/) for information about query syntax.<br><br>Host services that match your search criteria will be returned in a `matched_services` object.<br><br>In a SOC environment, use this endpoint to hunt for hosts, web properties, or certificates that match an indicator, such as a C2 banner, JARM, or favicon hash to scope infrastructure tied to an alert.
|
|
149
149
|
*/
|
|
150
150
|
search(request: operations.V3GlobaldataSearchQueryRequest, options?: RequestOptions): Promise<operations.V3GlobaldataSearchQueryResponse>;
|
|
151
151
|
}
|