Show Details of a Secret Detector

Shows a list of detected secrets for an image.

GET/csapi/v1.3/images/{imageSha}/secrets

Input ParametersInput Parameters

Parameter Mandatory/Optional Data Type Description
imageSha Mandatory string Specify the SHA value of an image.
filter Optional string Filter the secret detectors by providing a QQL search query.
pageNumber Optional integer Specify the page to be returned.
pageSize Optional integer Specify the number of records to be included in the response.
sort Optional string Specify how you want to organize the results using sortable tokens For example, lastUpdated:desc. Available values are asc and desc.

Sample: Fetch a List of Detected Secrets for an ImageSample: Fetch a List of Detected Secrets for an Image

API Request

curl -X "GET"
"<qualys_base_url>/csapi/v1.3/images/561f23db5e2d22838992ab8a5d3a52ee1097085735290a9fd3c41ac7ff639983/secrets"
-H "accept: application/json"
-H "Authorization: Bearer <token>"

Response

{
    "data": [
        {
            "secretType": "Asymmetric Private Key",
            "category": "AsymmetricPrivateKey",
            "severity": "HIGH",
            "ruleUuid": "d68b44e4-c96b-11ed-afa1-0242ac120002",
            "lastUpdated": "1615188407216",
            "matches": [
                {
                    "startLine": 5,
                    "match": "BEGIN RSA PRIVATE KE"
                }
            ],
            "layerSha": "sha2563d762ca8378d40f3029bb10de71ec98652580cb8859248250d812bede6998505",
            "filePath": "root/jignal.pem"
        },
        {
            "secretType": "Shopify Token",
            "category": "shopify",
            "severity": "HIGH",
            "ruleUuid": "d68b44e4-c96b-11ed-afa1-0242ac120002",
            "lastUpdated": "1615188407216",
            "matches": [
                {
                    "startLine": 10,
                    "match": "BEGIN RSA PRIVATE KE"
                }
            ],
            "layerSha": "sha2563d762ca8378d40f3029bb10de71ec98652580cb8859248250d812bede6998505",
            "filePath": "root/jignal.pem"
        }
    ],
    "count": 2,
    "groups": {}
}

 

 

Was this topic helpful?

success Thank you! We're glad to hear that this topic was useful.
success We appreciate your feedback. We'll work to make this topic better for you in the future.