DET-146 · human · confidence High
Snapshot and Image Sharing to Outside Accounts
Alert when a disk, database or machine image snapshot is shared with an account outside the organization or made public.
Snapshot sharing is a single API call that copies whole systems out. CloudTrail records ModifySnapshotAttribute, ModifyDBSnapshotAttribute, ModifyDBClusterSnapshotAttribute and ModifyImageAttribute with the target account IDs. Comparing those IDs to the organization's account list gives a precise, low-noise detection.
Because the data never crosses your network, this log is often the only evidence of the theft. Keep the snapshot ID, the target account and the caller, and ask the provider for help if the outside account must be identified. Also watch CreateSnapshot followed by a share from the same person.
- Data sources
- AWS CloudTrailAzure Activity LogGCP Cloud Audit Logs
- Platforms
- AWSAzureGCP
Logic
index=cloudtrail eventName IN (ModifySnapshotAttribute, ModifyDBSnapshotAttribute, ModifyDBClusterSnapshotAttribute, ModifyImageAttribute)
| spath requestParameters.createVolumePermission.add.items{}.userId output=ebs_targets
| spath requestParameters.valuesToAdd{} output=rds_targets
| spath requestParameters.launchPermission.add.items{}.userId output=ami_targets
| eval targets=mvappend(ebs_targets, rds_targets, ami_targets)
| mvexpand targets
| search NOT [| inputlookup org_accounts.csv | rename account_id AS targets]
| table _time userIdentity.arn eventName targets requestParameters
// Azure: Microsoft.Compute/disks/beginGetAccess/action (SAS export)False positives
Sharing with a vendor account for support, or migration to a newly acquired company not yet in the org list.