Skip to content

Serverless

The Serverless Exports service collection provides operations for managing export jobs for Lambda Security resources. Read export job entities, query available jobs, download export files, retrieve vulnerabilities in SARIF format, and launch new export jobs.

The Serverless Vulnerabilities service collection provides operations for retrieving vulnerability data for serverless functions. Query and retrieve lambda vulnerabilities in SARIF format using Falcon Query Language filters.

LanguageLast Update
Pythonv1.6.7
PowerShell
Gov0.25.0
TypeScriptv0.9.0
Rustv0.7.1
Rubyv1.6.0

OperationDescription
DownloadExportFileMixin0
download_export_file
Download an export file
GetCombinedVulnerabilitiesSARIF
get_vulnerabilities
Retrieve all lambda vulnerabilities that match the given query and return in the SARIF format
LaunchExportJobMixin0
launch_export_job
Launch an export job of a Lambda Security resource.
QueryExportJobsMixin0
query_export_jobs
Query export jobs entities
ReadExportJobsMixin0
read_export_jobs
Read export jobs entities

Download an export file

Method GET
Route /lambdas/entities/exports/files/v1
Scope Falcon Container Image: READ
PEP 8 download_export_file
id query · string
Export job ID.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import Serverless
falcon = Serverless(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("output_file", "wb") as save_file:
response = falcon.download_export_file(id="string", stream=boolean)
save_file.write(response)
{
"errors": [
{
"code": 0,
"id": "string",
"message": "string"
}
],
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total": 0
},
"powered_by": "string",
"query_time": 0.0,
"trace_id": "string",
"writes": {
"resources_affected": 0
}
}
}


Retrieve all lambda vulnerabilities that match the given query and return in the SARIF format

Method GET
Route /lambdas/combined/vulnerabilities/sarif/v1
Scope Falcon Container Image: READ
PEP 8 get_vulnerabilities
filter query · string
Filter lambda vulnerabilities using a query in Falcon Query Language (FQL).Supported filters:
Available values (21)
application_nameapplication_name_versioncid
cloud_account_idcloud_account_namecloud_provider
cve_idcve_reachablecvss_base_score
exprt_ratingfirst_seen_timestampfunction_name
function_resource_idis_supportedis_valid_asset_id
layerregionruntime
severitytimestamptype
limit query · integer
The upper-bound on the number of records to retrieve.
offset query · integer
The offset from where to begin.
sort query · string
The fields to sort the records on. Supported columns:
Available values (18)
application_nameapplication_name_versioncid
cloud_account_idcloud_account_namecloud_provider
cve_idcvss_base_scoreexprt_rating
first_seen_timestampfunction_resource_idis_supported
layerregionruntime
severitytimestamptype
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import Serverless
falcon = Serverless(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_vulnerabilities(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
{
"$schema": "string",
"runs": [],
"version": "string"
}
]


Launch an export job of a Lambda Security resource.

Method POST
Route /lambdas/entities/exports/v1
Scope Falcon Container Image: READ
PEP 8 launch_export_job
body body · dictionary
Full body payload as JSON formatted dictionary.
expand_vulnerabilities body · boolean
When set to true for function vulnerabilities export, includes detailed vulnerability information. Currently returns same data as without expansion - full expansion to be implemented in next step
format body · string
Format of the export file. One of:
Available values (2)
csvjson
fql body · string
Falcon Query Language string to filter documents
resource body · string
Resource to export. Refer to API docs for the possible values
sort body · string
Sort value to apply to documents. Note: not all resources support sorting
from falconpy import Serverless
falcon = Serverless(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.launch_export_job(expand_vulnerabilities=boolean,
format="string",
fql="string",
resource="string",
sort="string")
print(response)
[
"string"
]


Query export jobs entities

Method GET
Route /lambdas/queries/exports/v1
Scope Falcon Container Image: READ
PEP 8 query_export_jobs
filter query · string
Filter exports using a query in Falcon Query Language (FQL). Only the last 100 jobs are returned. Supported filter fields:
Available values (2)
resourcestatus
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import Serverless
falcon = Serverless(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_export_jobs(filter="string")
print(response)
[
"string"
]


Read export jobs entities

Method GET
Route /lambdas/entities/exports/v1
Scope Falcon Container Image: READ
PEP 8 read_export_jobs
ids query · string or list of strings
Export Job IDs to read. Allowed up to 100 IDs per request.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import Serverless
falcon = Serverless(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.read_export_jobs(ids=id_list)
print(response)
[
{
"created_at": "string",
"id": "string",
"resource": "string",
"retries": 0,
"status": "string",
"updated_at": "string"
}
]