AWS S3 Static Site JavaScript File Uploaded
This rule detects when a JavaScript file is uploaded in an S3 static site directory (`static/js/`) by an IAM user or assumed role. This can indicate suspicious modification of web content hosted on S3, such as…
Description
This rule detects when a JavaScript file is uploaded in an S3 static site directory (`static/js/`) by an IAM user or assumed role. This can indicate suspicious modification of web content hosted on S3, such as injecting malicious scripts into a static website frontend.
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
- Development or deployment pipelines that update static frontends frequently (e.g., React/Vue apps) may trigger this. Verify the user agent, source IP, and whether the modification was expected.
MITRE ATT&CK mappings
1 exclusive technique.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/API/API_PutObject.html | Only this detection cites it |
| docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html | Only this detection cites it |
| www.sygnia.co/blog/sygnia-investigation-bybit-hack/ | 5 |
From the source
- At source
- Open at source
- Upstream identifier
- 16acac42-b2f9-4802-9290-d6c30914db6e
- Tagged by the source as
- Data Source: Amazon Web ServicesData Source: AWSData Source: AWS S3Domain: CloudNoise: LowPerformance: NormalPlatform: AWSResources: Investigation GuideRule Type: ES|QLService: AWS S3Tactic: ImpactUse Case: Cloud Threat DetectionUse Case: Web Application Compromise
Licence
- Published under
- Elastic License 2.0Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Sep 20, 2026
- Version
- 3