Cyber Security News

JavaGhost: Exploiting Amazon IAM Permissions for Phishing Attacks

Unit 42 researchers have observed a threat actor group known as JavaGhost exploiting misconfigurations in Amazon Web Services (AWS) environments to conduct sophisticated phishing campaigns.

Active for over five years, JavaGhost has pivoted from website defacement to leveraging compromised cloud infrastructure for financial gain.

The group’s attacks stem from exposed long-term AWS access keys, which they use to gain initial access to victim environments.

JavaGhost has demonstrated increasing sophistication, employing advanced evasion techniques typically associated with more notorious threat actors like Scattered Spider.

Websites defaced by JavaGhost

Phishing Infrastructure Setup

Upon gaining access, JavaGhost establishes phishing infrastructure using Amazon Simple Email Service (SES) and WorkMail.

The attackers create multiple email identities, configure DKIM settings, and modify Mail-from attributes.

They also set up WorkMail organizations and users, generating various SES and AWS Directory Service events in CloudTrail logs.

Creating a new WorkMail user.

To send phishing emails, JavaGhost creates new SMTP credentials, resulting in the generation of new IAM users with specific permissions.

When preexisting SES infrastructure is available, the group leverages it, leaving minimal traces in CloudTrail logs unless dataplane logging is enabled.

Identity and Access Management Exploitation

JavaGhost creates various IAM users, some actively used in attacks and others seemingly for long-term persistence.

According to Unit 42 Report, these users are typically granted AdministratorAccess policy and console access.

In recent attacks, the group has evolved to using IAM roles with trust policies, allowing access from attacker-controlled AWS accounts.

The attackers also attempt to leave AWS Organizations and enable all AWS regions not enabled by default, potentially to evade security controls.

These actions generate detectable events in CloudTrail logs, providing opportunities for threat detection and response.

As JavaGhost continues to refine its tactics, organizations must remain vigilant.

Implementing least privilege access, rotating IAM credentials regularly, using short-term access tokens, enabling multi-factor authentication, and leveraging cloud security posture management tools are crucial mitigations against such threats.

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

Aman Mishra

Aman Mishra is a Security and privacy Reporter covering various data breach, cyber crime, malware, & vulnerability.

Recent Posts

Threat Actors Exploiting AES Encryption for Stealthy Payload Protection

Cybersecurity researchers have uncovered a surge in the use of Advanced Encryption Standard (AES) encryption…

34 minutes ago

33.3 Million Cyber Attacks Targeted Mobile Devices in 2024 as Threats Surge

Kaspersky's latest report on mobile malware evolution in 2024 reveals a significant increase in cyber…

35 minutes ago

Routers Under Attack as Scanning Attacks on IoT and Networks Surge to Record Highs

In a concerning trend, the frequency of scanning attacks targeting Internet of Things (IoT) devices…

36 minutes ago

Google Launches Shielded Email to Keep Your Address Hidden from Apps

Google is rolling out a new privacy-focused feature called Shielded Email, designed to prevent apps and…

6 hours ago

Hackers Using PowerShell and Microsoft Legitimate Apps to Deploy Malware

Cybersecurity experts are warning of an increasing trend in fileless attacks, where hackers leverage PowerShell…

7 hours ago

New Poco RAT Via Weaponized PDF Attacking Users to Capture Sensitive Data

A new variant of malware, dubbed "Poco RAT," has emerged as a potent espionage tool…

8 hours ago