Skip to content

Contact

Mexico City, Mexico
Available for remote and on-site projects.

Professional networks

LinkedIn · GitHub · Email
Applied engineering, measurable results.

How Malware Steals Your Sessions with GTA 6 Lures

· 6 min read · Samuel Torres

By Samuel Torres — Software & Cloud Engineer. 23+ production sites.

Have you ever received an email promising something related to GTA 6 and, without a second thought, opened an attached file? If so, you might have fallen into a trap of malware that steals browsing sessions. This type of malware can masquerade as a legitimate PDF [1] and, once installed, can steal your Chrome session cookies [1], allowing attackers to take control of your accounts without needing your passwords [3]. In this article, I'll explain how this malware works and how you can protect yourself from it.

How the malware that steals navigation sessions works

The malware that steals browsing sessions operates in a subtle and efficient manner. Typically, it is triggered through an email attachment that masquerades as a PDF [1].

Once installed, the malicious extension takes advantage of Chrome Native Messaging to move control from the browser to the operating system [1]. This allows the malware to perform deeper actions, such as stealing Chrome's session cookies [1].

The cookie theft process is automatic and occurs in the background, making it difficult to detect. For example, the malware can launch PowerShell and list the contents of the C: drive [1].

The PDF-disguised attachment

A disguised PDF attachment is a common technique used by attackers to trick users into installing malware on their systems. In this case, the attachment is disguised as a PDF to deceive users [1]. The file has a fake extension .pfd.js, making it appear as a PDF document, but it is actually an obfuscated JavaScript file.

When the user opens the file, this JavaScript runs automatically and downloads the malware onto the system. The malware installs itself as a malicious Chrome extension, allowing attackers to control the user's navigation and steal session cookies [1].

To protect yourself, it is crucial not to open attachments from unknown sources and to keep your system and software up to date. Additionally, it is recommended to use antivirus and firewall software to detect and block such threats. If you suspect that your system is infected, perform a full scan with a reliable security software.

How malware uses Chrome Native Messaging

This feature allows browser extensions to communicate with external applications on the operating system, which can be very useful for legitimate applications, but also is a gateway for malware.

How Does Chrome Native Messaging Work?

  1. Installation of the malicious extension: The user installs a malicious extension that masquerades as legitimate. This extension has permissions to access Chrome Native Messaging.
  2. Communication with the host: The malicious extension establishes communication with a host on the operating system. This host can be an executable file that was installed alongside the extension.
  3. Execution of commands: through the host, the malware can launch PowerShell and run commands on the system [1].
  4. Session cookie theft: Once the malware has access to the operating system, it can steal Chrome's session cookies.

Example Code

An example of how malware could use Chrome Native Messaging to execute commands in PowerShell:

// Malicious code in the extension
chrome.runtime.sendNativeMessage(
    "com.example.nativeapp", // Identifier of the host
    {action: "execute", command: "powershell.exe -command 'Get-ChildItem C:'"}, // Command to execute
    function(response) {
        // Process the response
    }
);

This code sends a message to the host that executes the PowerShell command to list the contents of the C: drive. The response is processed in the callback function, allowing the malware to obtain system information.

Conclusion

The use of Chrome Native Messaging by malware is a sophisticated technique that allows movement from the browser to the operating system, facilitating the theft of session cookies and other sensitive data. It is crucial to keep extensions updated and verify their origin to avoid installing malicious software.

How malware steals session cookies

Once the malware is installed on your system through a disguised PDF attachment [1], it uses Chrome Native Messaging to move from the browser to the operating system, facilitating the theft of session cookies [1].

The malware searches for and extracts session cookies stored in Chrome, which are essential for maintaining user session authentication.

The session cookie theft process can be automated and scaled, enabling the malware to extract and exfiltrate these cookies to servers controlled by the attackers. Once the cookies are stolen, they can be used to fraudulently access accounts, causing significant damage to the user.

It is crucial to be vigilant and take security measures to protect against such attacks, such as keeping the browser and extensions updated and verifying the origin of attachment files.

Detecting session attacks through stolen cookies

Session attacks can be detected through several technical methods:

Impossible Journeys

A clear indicator of a session attack is when a session cookie is used from two geographically distant locations in an impossibly short time [2].

Sudden Changes in Session Attributes

Other indicators include sudden changes in the range of IP addresses, user-agent strings, or device fingerprints [2]. If you notice that your session starts from an IP address different from the one you normally use, this could be a sign that someone is using your account without your permission.

Unusual Account Activity

Unusual activity in your account can also be a strong indicator of a session attack. For example, if you see transactions or configuration changes that you did not make, it is possible that your session has been compromised.

Continuous Monitoring

To protect yourself, it is important to continuously monitor your account and enable login notifications on unknown devices if your gaming platform allows it. These notifications allow you to be aware of any suspicious activity in real-time.

Use of Security Tools

Additionally, you can use security tools such as browser extensions that block access to suspicious sites and continuously monitor your online activity to detect any anomalies.

How to protect yourself from this malware

Do Not Download Attachments from Unknown Emails

Malware often spreads through email attachments that masquerade as PDFs [1]. If you are unsure, it's best not to open it.

Use Updated Antivirus and Antimalware Software

Install and keep a reliable antivirus and antimalware software up to date. These programs can detect and remove malware before it causes damage. Additionally, it is crucial to regularly update your operating system and browsers to ensure you have the latest defenses against threats.

Avoid Clicking on Suspicious Links

Links in emails, chat messages, or videos can redirect you to malicious websites that attempt to infect your system with malware. If you see a link that seems suspicious, especially if it promises something related to GTA 6, do not click on it.

Review Browser Extensions

Malicious extensions can steal session cookies and other sensitive data [4]. To protect yourself, regularly review the extensions installed in your browser and uninstall those you do not need or that seem suspicious. Ensure that the extensions you install come from reliable sources.

Use Additional Security Tools

Consider using additional security tools such as browser extensions that block access to suspicious sites and monitor your online activity to detect anomalies. These tools can help you detect and prevent malware attacks.

Steps to detect and avoid malicious extensions

Review and Clean Extensions

  1. Check your installed extensions: Go to the extension management page in your browser and review each one. Verify who the developer is and what permissions each extension requests.
  2. Uninstall suspicious extensions: If you find extensions you don't recognize or that seem suspicious, uninstall them immediately.
  3. Install only from trusted sources: Make sure that the extensions you install come from trusted sources, such as the official browser store.

Additional tools

  1. Security extensions: Consider installing security extensions that block access to suspicious sites and monitor your online activity to detect anomalies.
  2. Monitoring hashes and permissions: Use tools that can check the hashes of installed extensions and the permissions they request. This can help you detect unusual or suspicious changes in the extensions.

Actionable Steps

1. Go to the installed extensions in your browser.
2. Check who the developer is and the permissions of each extension.
3. Uninstall extensions you don't recognize or that seem suspicious.
4. Install security extensions that monitor your online activity.
5. Use tools that check hashes and permissions of the extensions.

Keep reading the series

If this is useful for your business, see WordPress security and malware cleanup.

Want me to take a look?

If you want me to review your site or infrastructure, message me on WhatsApp.

Sources

  1. malwarebytes.com
  2. cybersierra.co
  3. lifehacker.com
  4. ismalicious.com

About the author

Samuel Torres is a Software & Cloud Engineer at Conqr Digital Agency (Mexico City). He runs 23+ production WordPress sites and migrated the Conqr site from 3.99 to 766 requests per second in 9 days. He loves cars and Formula 1, collects Hot Wheels (GARAGE) and builds browser games by hand (/en/games/). More at /en/about/.

GTA and Grand Theft Auto are trademarks of Take-Two Interactive. This site is not affiliated with Rockstar Games. Get a quote on WhatsApp in 2 min

Samuel Torres Pichardo

Samuel Torres Pichardo
Software and cloud engineer in Mexico City, with about 3 years of professional experience.
About me · LinkedIn · GitHub · Contact

Got a project in mind?

Hire me: I'll help you build it.

Websites, online stores, custom systems and cloud. Tell me what you need and I'll tell you how I'd build it, what it costs and how long it takes.

  • Mexico City · remote

Menu

Español

[email protected]