Scan
Request package scan
post/scan/package
Request
- Base URL/v1 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared. Required headers: X-Auth-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Auth-Tokenstring required
Request body
Example request
{
"source": "github",
"user": "user",
"job": "scan",
"workspace": "/local",
"function": "monitor",
"region": "West",
"application_packages": [
{
"app_name": "CVE-2019-1549",
"module_name": "openssl",
"version": "1.1.1c-r0",
"file_name": "OPENSSL_init"
}
]
}Response
Success
Example response
{
"report": {
"verdict": "Scan Report",
"message": "Scan Report",
"cvedb_version": "1.011",
"cvedb_create_time": "2018-06-20T19:00:53Z",
"vulnerabilities": [
{
"name": "CVE-2015-8356",
"score": 7.2,
"severity": "High",
"description": "The setup_env function in group.c in sshd in OpenSSH allows local users to gain privileges.",
"package_name": "openssh",
"package_version": "7.2_p2-r0",
"fixed_version": "1:7.2p2-3",
"link": "https://security-tracker.debian.org/tracker/CVE-2015-8356",
"score_v3": 7.3,
"published_timestamp": 1516561260,
"last_modified_timestamp": 1516561253,
"in_base_image": true
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.