AWS S3 Object Encryption Using External KMS Key
Identifies use of the S3 CopyObject API where the destination object is encrypted using an AWS KMS key from an external AWS account. This behavior may indicate ransomware-style impact activity where an adversary with…
Description
Identifies use of the S3 CopyObject API where the destination object is encrypted using an AWS KMS key from an external AWS account. This behavior may indicate ransomware-style impact activity where an adversary with access to a misconfigured S3 bucket encrypts objects using a KMS key they control, preventing the bucket owner from decrypting their own data. This technique is a critical early signal of destructive intent or cross-account misuse.
Detection logic
Its licence does not clear it for publishing here
Sunturai publishes a detection's own text where the licence it arrived under has been reviewed and permits it, and Elastic License 2.0 has not. The query as its source wrote it, its canonical form and the hash that pins this revision are in the workspace record.
Detection requirements
Known benign triggers
- Cross-account KMS key usage may be legitimate in multi-account AWS Organizations architectures where centralized encryption keys are used for data governance or auditing workflows. Confirm whether the external KMS key belongs to an expected account before taking action. Data migration or cross-account backup workflows may legitimately re-encrypt S3 objects using a key in another account. Ensure these workflows are documented, tied to known IAM roles, and occur on predictable schedules.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html | Only this detection cites it |
| docs.aws.amazon.com/kms/latest/APIReference/API_GenerateDataKey.html | Only this detection cites it |
| rhinosecuritylabs.com/aws/s3-ransomware-part-1-attack-vector/ | 6from 2 sources |
From the source
- At source
- Open at source
- Upstream identifier
- ab8f074c-5565-4bc4-991c-d49770e19fc9
- Tagged by the source as
- Data Source: Amazon Web ServicesData Source: AWSData Source: AWS KMSData Source: AWS S3Domain: CloudNoise: LowPerformance: NormalPlatform: AWSProfile: RecommendedResources: Investigation GuideRule Type: ES|QLService: AWS KMSService: AWS S3Tactic: ImpactThreat: RansomwareUse Case: Threat Detection
Licence
- Published under
- Elastic License 2.0Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Oct 8, 2026
- Version
- 4