A newly discovered malware campaign abuses trusted Google APIs and active browser sessions to silently compromise corporate Gmail accounts.
Cybercriminals continue to evolve their tactics, and the latest campaign linked to the advanced persistent threat (APT) group ToddyCat highlights a significant shift in how attackers target corporate email. Instead of stealing passwords, the group's newly identified Umbrij malware abuses Google's OAuth authentication process to gain long-term access to Gmail accounts through legitimate APIs.
Researchers discovered that Umbrij focuses on organizations using Gmail for business communications. Rather than attempting to capture user credentials directly, the malware exploits an already authenticated browser session to obtain OAuth authorization tokens. As a result, attackers can access corporate email without triggering traditional password-based security controls.
How the Attack Works
The attack begins after a Windows system has already been compromised. Umbrij then prepares the environment by identifying installed Chromium-based browsers such as Google Chrome and Microsoft Edge. It searches for browser profiles that contain signed-in Google accounts and copies important browser data into a temporary working directory.
Next, the malware launches the browser in headless mode, allowing it to run without displaying a visible window. Using Chromium's remote debugging interface and the Puppeteer automation framework, Umbrij silently controls the browser while preserving the victim's authenticated Google session.
The malware then initiates an OAuth authorization request using a legitimate Google Workspace migration application's client ID. It automatically selects the victim's Google account, grants the requested permissions, and captures the resulting OAuth authorization code.
Finally, attackers exchange this authorization code for an OAuth access token, enabling direct access to Gmail and other Google Workspace services through Google's official APIs.
Why This Technique Is Dangerous
Traditional phishing campaigns usually rely on stealing usernames and passwords. However, Umbrij demonstrates that attackers increasingly prefer stealing authentication tokens instead.
Because OAuth tokens represent trusted authorization, attackers can often bypass multi-factor authentication after the token has been issued. Additionally, API-based access may generate fewer security alerts than suspicious login attempts, making detection more difficult.
The campaign also highlights how legitimate cloud services can become attractive targets. Organizations that rely heavily on Google Workspace should recognize that account security extends beyond password protection.
Malware Delivery and Execution
Researchers observed Umbrij being launched through DLL side-loading, a technique that allows malicious code to execute alongside trusted applications.
The attackers abused legitimate signed executables, including components associated with Bitdefender software, Microsoft Visual Studio, and the discontinued Google Desktop application. Once executed, the malicious .NET DLL—protected with code obfuscation—takes control of the browser environment and begins harvesting the required OAuth authorization data.
The malware also creates backup copies of browser profile information, including cookies, local storage, login databases, preferences, and web data. This process ensures that authenticated sessions remain available even while browsers are actively running.
Who Is ToddyCat?
ToddyCat is an advanced persistent threat group that has targeted organizations across Europe and Asia for several years. The group has consistently focused on collecting sensitive corporate information, particularly business communications.
This latest campaign demonstrates a continued investment in sophisticated post-compromise techniques. Instead of relying solely on credential theft, ToddyCat now automates cloud account compromise through trusted authentication mechanisms, increasing both efficiency and stealth.
How Organizations Can Defend Against This Threat
Organizations should strengthen browser and cloud identity security alongside traditional endpoint protection.
Security teams should regularly review OAuth applications connected to corporate Google accounts and remove any that are unnecessary or unfamiliar. Particular attention should be given to migration-related applications that employees do not actively use.
Additionally, organizations should:
- Monitor OAuth consent grants across Google Workspace environments.
- Restrict unnecessary third-party application access.
- Detect browser launches using remote debugging or headless mode.
- Monitor for DLL side-loading activity and suspicious scheduled tasks.
- Deploy endpoint detection and response (EDR) solutions capable of identifying abnormal browser automation.
- Audit browser profiles for unauthorized modifications and unusual automation behavior.
- Educate users and administrators about OAuth-based attacks that do not involve password theft.
The Bigger Picture
Modern attackers increasingly target identity rather than infrastructure. OAuth abuse represents a growing challenge because it exploits legitimate authentication workflows instead of breaking them.
As organizations continue migrating business operations to cloud platforms, security teams must expand their visibility beyond passwords and focus on token security, API monitoring, browser protection, and identity governance. Defending cloud identities now requires continuous monitoring of trusted connections, not just successful login attempts.