Security Research

Fake Aggr Chrome Extension Crypto Theft Analysis: Cookie Stealing and Wash Trading

#Web3 Phishing#Malware#Threat Intelligence
Over a near-black teal-blue background, a disguised Aggr extension icon in the Chrome Web Store alongside a flow of stolen cookie data, malicious nodes marked copper-orange in the network topology, and malicious code fragments planted inside a jQuery file scattered across the backdrop — symbolizing the fake Aggr Chrome extension's cookie theft and wash-trading crypto heist

Background

On March 1, 2024, Twitter user @doomxbt reported abnormal activity on their Binance account, with funds suspected to have been stolen:

@doomxbt report

Initially this incident did not attract much attention. However, on May 28, 2024, Twitter user @Tree_of_Alpha analyzed and discovered that the victim @doomxbt had apparently installed a malicious Aggr extension from the Chrome Web Store that had many positive reviews (we did not directly verify this with the victim)! It could steal all cookies from every website a user visited, and two months earlier someone had paid influential accounts to promote it.

@Tree_of_Alpha analysis

Over the past couple of days, attention to this incident has risen. Some victims had their post-login credentials stolen, after which the hackers drained their cryptocurrency assets through wash trading. Many users have reached out to the SlowMist security team about this issue. Below we will analyze this attack in detail to sound the alarm for the crypto community.

Analysis

First, we needed to find this malicious extension. Although Google had already removed the malicious extension from the store, we could still see some historical data through snapshot information.

Extension snapshot information

After downloading it for analysis, the JS files in the directory were background.js, content.js, jquery-3.6.0.min.js, and jquery-3.5.1.min.js.

During static analysis, we found that background.js and content.js did not contain much complex code, nor did they have obviously suspicious logic. However, in background.js we discovered a link to a site, and the plugin would send the collected data to https[:]//aggrtrade-extension[.]com/statistics_collection/index[.]php.

background.js analysis

By analyzing the manifest.json file, we could see that the background used /jquery/jquery-3.6.0.min.js and the content used /jquery/jquery-3.5.1.min.js. We therefore focused our analysis on these two jQuery files:

manifest.json

In jquery/jquery-3.6.0.min.js we found suspicious malicious code that processed the browser’s cookies as JSON and sent them to https[:]//aggrtrade-extension[.]com/statistics_collection/index[.]php.

jQuery malicious code

After static analysis, in order to more accurately analyze the extension’s data exfiltration behavior, we proceeded to install and debug the extension. (Note: analysis must be performed in a brand-new test environment with no accounts logged in, and the malicious site must be redirected to one under your own control, to avoid sending sensitive data to the attacker’s server during testing.)

After installing the malicious extension in the test environment, we opened any website, such as google.com, and then observed the network requests in the extension’s background. We found that Google’s cookie data was being sent to an external server:

background network request

We also saw the cookie data sent by the malicious extension on the Weblog service:

Weblog cookies data

At this point, if the attacker obtains the user’s authentication credentials and other information, hijacking cookies via the browser extension would allow them to conduct wash trading on exchange websites and steal the user’s crypto assets.

Next, let’s analyze the exfiltration URL https[:]//aggrtrade-extension[.]com/statistics_collection/index[.]php.

Domain involved: aggrtrade-extension[.]com

Domain information

Resolving the domain from the image above:

Domain resolution

The .ru TLD suggests a typical Russian-language user, so this is most likely a Russian or Eastern European hacker group.

Attack Timeline

Analyzing the malicious website aggrtrade-extension[.]com, which impersonates AGGR (aggr.trade), we found that the hacker began plotting the attack 3 years ago:

Plotting 3 years ago

Four months ago, the hacker deployed the attack:

Deployed 4 months ago

Based on the InMist Threat Intelligence cooperation network, we found that the hacker’s IP is located in Moscow, using a VPS provided by srvape.com, with the email aggrdev@gmail.com.

Hacker IP information

Hacker email information

After successful deployment, the hacker began promoting it on Twitter, waiting for victims to take the bait. The rest of the story is well known: some users installed the malicious extension and were then robbed.

Hacker promotion

The image below is AggrTrade’s official warning:

AggrTrade official warning

In Closing

The SlowMist security team reminds all users that the risk of a browser extension is almost as great as directly running an executable, so you must carefully review it before installation. At the same time, be cautious of people who send you private messages. Hackers and scammers nowadays love to impersonate legitimate, well-known projects, targeting content creators under the guise of sponsorship, promotion, and the like. Finally, when walking through the dark forest of blockchain, always maintain a skeptical attitude, make sure what you install is safe, and don’t give hackers any opportunity to exploit you.