Suspicious Bapak AWS EC2 ImportKeyPair With Known Attacker Key Names via CloudTrail

PremiumReviewedSigma · High · v1
Product
aws
Service
cloudtrail
Author
HuntRule
Published
2026-11-04
Updated
2026-11-04

ATT&CK techniques

Persistence → Cred Access
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Defense Evasion

  6. Discovery

  7. Lateral Movement

  8. Collection

  9. C2

  10. Exfiltration

  11. Impact

What it detects

This rule detects EC2 ImportKeyPair CloudTrail events that use SSH key names hardcoded by the Bapak cloud threat actor. It surfaces the actor planting persistent SSH access after credential compromise, and it matters because attacker controlled key material grants durable instance access.

Related detections9 linkedT1098 — drag to rearrange
Suspicious EKS Access Entry Creation via CloudTrail
Suspicious Kerberos Constrained Delegation Configuration via msDS-AllowedToDelegateTo
Malicious Domain and Enterprise Admins Group Addition via net group Domain Add (via process_creation)
Malicious LiteLLM Authentication SQL Injection via Web Request (via webserver)
Suspicious Route53 Domain Transfer Lock Disabled via Scattered Spider Technique
Suspicious Domain Admin Account Creation via net (via process_creation)
Suspicious Guest Account Privilege Escalation (via process_creation)
Suspicious Login Shell Assigned to Service Account games on Linux
Suspicious AWS API Call from TruffleHog Credential Scanner User Agent
Suspicious Bapak AWS EC2 ImportKeyPair With Known Attacker Key Names via CloudTrail
Pivot detection · T1098 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.