diff --git a/wait-for-ecr-scan-and-get-sarif/tests/sample-api-response-ecr-scan-ubuntu-reduced-to-one-issue.json b/wait-for-ecr-scan-and-get-sarif/tests/sample-api-response-ecr-scan-ubuntu-reduced-to-one-issue.json new file mode 100644 index 0000000..d8360bd --- /dev/null +++ b/wait-for-ecr-scan-and-get-sarif/tests/sample-api-response-ecr-scan-ubuntu-reduced-to-one-issue.json @@ -0,0 +1,81 @@ +{ + "imageScanFindings": { + "enhancedFindings": [ + { + "awsAccountId": "772215651096", + "description": " Issue summary: Checking excessively long DSA keys or parameters may be very slow. Impact summary: Applications that use the functions EVP_PKEY_param_check() or EVP_PKEY_public_check() to check a DSA public key or DSA parameters may experience long delays. Where the key or parameters that are being checked have been obtained from an untrusted source this may lead to a Denial of Service. The functions EVP_PKEY_param_check() or EVP_PKEY_public_check() perform various checks on DSA parameters. Some of those computations take a long time if the modulus (`p` parameter) is too large. Trying to use a very large modulus is slow and OpenSSL will not allow using public keys with a modulus which is over 10,000 bits in length for signature verification. However the key and parameter check functions do not limit the modulus size when performing the checks. An application that calls EVP_PKEY_param_check() or EVP_PKEY_public_check() and supplies a key or parameters obtained from an untrusted source could be vulnerable to a ", + "findingArn": "arn:aws:inspector2:us-east-2:772215651096:finding/ad5766346c1bd7d00155d228605c8e98", + "firstObservedAt": "2024-08-15T11:00:34.053000-04:00", + "lastObservedAt": "2024-08-15T11:00:34.053000-04:00", + "packageVulnerabilityDetails": { + "cvss": [], + "referenceUrls": [ + "https://www.cve.org/CVERecord?id=CVE-2024-4603", + "https://www.openssl.org/news/secadv/20240516.txt", + "https://ubuntu.com/security/notices/USN-6937-1" + ], + "relatedVulnerabilities": ["USN-6937-1"], + "source": "UBUNTU_CVE", + "sourceUrl": "https://people.canonical.com/~ubuntu-security/cve/2024/CVE-2024-4603.html", + "vendorCreatedAt": "2024-05-16T12:15:00-04:00", + "vulnerabilityId": "CVE-2024-4603", + "vulnerablePackages": [ + { + "arch": "AMD64", + "epoch": 0, + "name": "libssl3t64", + "packageManager": "OS", + "release": "0ubuntu3.1", + "sourceLayerHash": "sha256:2b3981cac065674916a0b4e8d1b5d7eb49d9863a79ec47ba37336c70496ac8ab", + "version": "3.0.13" + } + ] + }, + "remediation": { + "recommendation": { + "text": "None Provided" + } + }, + "resources": [ + { + "details": { + "awsEcrContainerImage": { + "architecture": "amd64", + "imageHash": "sha256:a616befefefd567cd27092f0eacaa057e3e9592b3c1c57110800f2a43828994f", + "imageTags": ["main"], + "platform": "UBUNTU_24_04", + "pushedAt": "2024-08-15T11:00:23-04:00", + "registry": "772215651096", + "repositoryName": "infr/testcloud2202" + } + }, + "id": "arn:aws:ecr:us-east-2:772215651096:repository/infr/testcloud2202/sha256:a616befefefd567cd27092f0eacaa057e3e9592b3c1c57110800f2a43828994f", + "tags": {}, + "type": "AWS_ECR_CONTAINER_IMAGE" + } + ], + "score": 0.0, + "severity": "UNTRIAGED", + "status": "ACTIVE", + "title": "CVE-2024-4603 - libssl3t64", + "type": "PACKAGE_VULNERABILITY", + "updatedAt": "2024-08-15T11:00:34.053000-04:00" + } + ], + "imageScanCompletedAt": "2024-08-15T11:00:34.053000-04:00", + "vulnerabilitySourceUpdatedAt": "2024-08-15T11:00:34.053000-04:00", + "findingSeverityCounts": { + "UNTRIAGED": 4 + } + }, + "registryId": "772215651096", + "repositoryName": "infr/testcloud2202", + "imageId": { + "imageDigest": "sha256:a616befefefd567cd27092f0eacaa057e3e9592b3c1c57110800f2a43828994f", + "imageTag": "main" + }, + "imageScanStatus": { + "status": "ACTIVE", + "description": "Continuous scan is selected for image." + } +}