ID | Technique | Tactic |
---|---|---|
T1204.003 | Malicious Image | Execution |
T1204 | User Execution | Execution |
Detection: AWS ECR Container Scanning Findings Low Informational Unknown
Description
The following analytic identifies low, informational, or unknown severity findings from AWS Elastic Container Registry (ECR) image scans. It leverages AWS CloudTrail logs, specifically the DescribeImageScanFindings event, to detect these findings. This activity is significant for a SOC as it helps in early identification of potential vulnerabilities or misconfigurations in container images, which could be exploited if left unaddressed. If confirmed malicious, these findings could lead to unauthorized access, data breaches, or further exploitation within the containerized environment.
Search
1`cloudtrail` eventSource=ecr.amazonaws.com eventName=DescribeImageScanFindings
2| spath path=responseElements.imageScanFindings.findings{} output=findings
3| mvexpand findings
4| spath input=findings
5| search severity IN ("LOW", "INFORMATIONAL", "UNKNOWN")
6| rename name as finding_name, description as finding_description, requestParameters.imageId.imageDigest as imageDigest, requestParameters.repositoryName as repository, userIdentity.principalId as user
7| eval finding = finding_name.", ".finding_description
8| eval phase="release"
9| eval severity="low"
10| stats min(_time) as firstTime max(_time) as lastTime by awsRegion, eventName, eventSource, imageDigest, repository, user, src_ip, finding, phase, severity
11| `security_content_ctime(firstTime)`
12| `security_content_ctime(lastTime)`
13| `aws_ecr_container_scanning_findings_low_informational_unknown_filter`
Data Source
Name | Platform | Sourcetype | Source | Supported App |
---|---|---|---|---|
AWS CloudTrail DescribeImageScanFindings | AWS | 'aws:cloudtrail' |
'aws_cloudtrail' |
N/A |
Macros Used
Name | Value |
---|---|
cloudtrail | sourcetype=aws:cloudtrail |
aws_ecr_container_scanning_findings_low_informational_unknown_filter | search * |
aws_ecr_container_scanning_findings_low_informational_unknown_filter
is an empty macro by default. It allows the user to filter out any results (false positives) without editing the SPL.
Annotations
Default Configuration
This detection is configured by default in Splunk Enterprise Security to run with the following settings:
Setting | Value |
---|---|
Disabled | true |
Cron Schedule | 0 * * * * |
Earliest Time | -70m@m |
Latest Time | -10m@m |
Schedule Window | auto |
Creates Risk Event | True |
Implementation
You must install splunk AWS add on and Splunk App for AWS. This search works with AWS CloudTrail logs.
Known False Positives
unknown
Associated Analytic Story
Risk Based Analytics (RBA)
Risk Message | Risk Score | Impact | Confidence |
---|---|---|---|
Vulnerabilities with severity $severity$ found in repository $repository$ | 5 | 10 | 50 |
References
Detection Testing
Test Type | Status | Dataset | Source | Sourcetype |
---|---|---|---|---|
Validation | ✅ Passing | N/A | N/A | N/A |
Unit | ✅ Passing | Dataset | aws_cloudtrail |
aws:cloudtrail |
Integration | ✅ Passing | Dataset | aws_cloudtrail |
aws:cloudtrail |
Replay any dataset to Splunk Enterprise by using our replay.py
tool or the UI.
Alternatively you can replay a dataset into a Splunk Attack Range
Source: GitHub | Version: 3