CrowdStrike Falcon CrowdStrike Subreddit

Using the Spotlight Vulnerability Metadata service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation IDDescription
combineVulnMetadataExt
PEP 8get_cve_metadata
Perform a combined query and get operation for retrieving Risk (vulnerability metadata) entities.

Passing credentials

WARNING

client_id and client_secret are keyword arguments that contain your CrowdStrike API credentials. Please note that all examples below do not hard code these values. (These values are ingested as strings.)

CrowdStrike does not recommend hard coding API credentials or customer identifiers within source code.

combineVulnMetadataExt

Perform a combined query and get operation for retrieving Risk (vulnerability metadata) entities.

PEP8 method name

get_cve_metadata

Endpoint

MethodRoute
GET/spotlight/combined/vulnerability-metadata-external/v1

Required Scope

risk-platform-risk:read

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
afterService Class SupportUber Class SupportquerystringA pagination token used with the limit parameter to manage pagination of results. On your first request, don't provide an after token. On subsequent requests, provide the after token from the previous response to continue from that place in the results.
filterService Class SupportUber Class SupportquerystringFilter items using a query in Falcon Query Language (FQL). Wildcards * and empty filter values are unsupported. Available filter fields that support exact match: id, provider, cve_ids, cwe_ids, impact.cvss_v2.base_metrics.vector, impact.cvss_v2.temporal_metrics.vector, impact.cvss_v3.base_metrics.integrity_impact, impact.cvss_v3.base_metrics.vector, impact.cvss_v3.temporal_metrics.vector. Available filter fields that support range comparisons (>, <, >=, <=): created_timestamp, impact.cvss_v2.base_metrics.base_score, impact.cvss_v3.base_metrics.base_score, impact.cvss_v2.temporal_metrics.temporal_score, impact.cvss_v3.temporal_metrics.temporal_score, source_created_timestamp, source_updated_timestamp, updated_timestamp. Required.
limitService Class SupportUber Class SupportqueryintegerThe number of items to return in this response (default: 100, max: 400). Use with the after parameter to manage pagination of results.
offsetService Class SupportUber Class SupportquerystringStarting index of overall result set from which to return ids.
risk_providerService Class SupportUber Class Supportquerystring or list of stringsZero or more risk providers. Zero means all. Supported values: S (for Falcon sensor).
sortService Class SupportUber Class SupportquerystringSort vulnerabilities by their properties. Available sort options: created_timestamp|asc/desc, updated_timestamp|asc/desc.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import SpotlightVulnerabilityMetadata

# Do not hardcode API credentials!
falcon = SpotlightVulnerabilityMetadata(client_id=CLIENT_ID,
                                        client_secret=CLIENT_SECRET
                                        )

response = falcon.get_cve_metadata(after="string",
                                   filter="string",
                                   limit=integer,
                                   offset="string",
                                   risk_provider="string",
                                   sort="string"
                                   )
print(response)
Service class example (Operation ID syntax)
from falconpy import SpotlightVulnerabilityMetadata

# Do not hardcode API credentials!
falcon = SpotlightVulnerabilityMetadata(client_id=CLIENT_ID,
                                        client_secret=CLIENT_SECRET
                                        )

response = falcon.combineVulnMetadataExt(after="string",
                                         filter="string",
                                         limit=integer,
                                         offset="string",
                                         risk_provider="string",
                                         sort="string"
                                         )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("combineVulnMetadataExt",
                          after="string",
                          filter="string",
                          limit=integer,
                          offset="string",
                          risk_provider="string",
                          sort="string"
                          )
print(response)

Back to Table of Contents