ToddyCat's Umbrij Malware Abuses Debugging Ports to Steal Corporate Gmail OAuth Tokens
Cybersecurity researchers have uncovered a new tool used by the ToddyCat APT group that abuses Google's OAuth API and browser debugging ports to silently extract access tokens from active Gmail sessions.
By Naina Verma
Share this story
Cybersecurity researchers have identified a new custom malware tool dubbed "Umbrij," deployed by the advanced persistent threat (APT) group known as ToddyCat. The discovery was made during a proactive threat hunting operation aimed at uncovering novel evasion techniques.[3]
The primary objective of the Umbrij malware is to compromise corporate email communications hosted on Google Workspace, specifically targeting Gmail accounts. By gaining access to these inboxes, the threat actors can monitor sensitive internal correspondence and exfiltrate proprietary data.[1]
Unlike traditional credential stealers that attempt to harvest usernames and passwords, Umbrij operates on a completely different paradigm. It abuses Google's OAuth 2.0 authorization process to silently extract access tokens, bypassing the need for traditional login credentials entirely.[2]
Claim 1: The malware bypasses Multi-Factor Authentication (MFA) by hijacking existing, authenticated sessions. Evidence strongly supports this assertion: the attack relies on the victim already being logged into their Google account within a Chromium-based browser, such as Google Chrome or Microsoft Edge.[1]
Because the session is already authenticated by the user, Google's security systems recognize the browser profile as legitimate. Consequently, the platform does not prompt the user to re-enter a password or provide a secondary MFA token, allowing the malware to operate undetected by standard identity checks.[2]
Claim 2: The attack utilizes a novel technique dubbed "Shadow Token via Remote Debug" (STRD). Kaspersky's technical analysis details how the malware launches a hidden, headless instance of the user's Chromium browser, operating entirely in the background without rendering a visible window.[3]
Once the headless browser is running, Umbrij connects to it via the remote debugging port. This built-in developer feature allows the malware to programmatically control the browser, inspect web elements, and execute commands without the user's knowledge or interaction.
To execute the automation, the attackers utilize Puppeteer Sharp, a .NET port of the popular Node.js library widely used by developers for legitimate browser automation and software testing.
Through Puppeteer Sharp, the malware navigates the headless browser to a specially crafted Google OAuth authorization page. Here, it impersonates legitimate Google Workspace applications, specifically mimicking "Google Workspace Migration for Microsoft Outlook" (GWMMO) or "Google Workspace Sync."[1][2]
Claim 3: The malware automates the consent process to grant itself access. The evidence shows that Umbrij programmatically interacts with the DOM (Document Object Model) to click the "Allow" button on the OAuth consent screen, authorizing the requested permissions instantly.[3]
These requested permissions are exceptionally broad. The malware seeks full access to the victim's Gmail, Google Drive, Calendar, Contacts, and user profile information, effectively granting the attackers total control over the user's cloud workspace.[2]
Once the consent is granted, Google issues an OAuth authorization code. Umbrij captures this code from the browser, saves it to a local log file, and subsequently exfiltrates it to the attacker's command-and-control server.[1]
The threat actors then exchange this authorization code for a persistent OAuth access token. They use this token to query the Google API directly from their own infrastructure, completely bypassing the victim's machine for all subsequent data access.[1]
Claim 4: The malware employs sophisticated obfuscation to evade endpoint detection. Researchers note that Umbrij is written in the .NET framework and heavily protected using the open-source ConfuserEx obfuscator, making reverse engineering and static analysis highly difficult for security software.[2]
Furthermore, the malware relies on DLL sideloading for its initial execution. It hides within trusted, digitally signed applications—such as Bitdefender ConnectAgent or Microsoft Visual Studio testing tools—to bypass basic security checks and execute its malicious payload under the guise of a legitimate process.[2]
Uncertainty and Limitations: While the STRD technique is highly effective, the evidence indicates it has strict prerequisites. The victim's machine must already be compromised to deploy the malware, and the user must have an active, unexpired Google session in their browser for the token extraction to succeed.[2]
If the user has explicitly logged out of their Google account, the headless browser instance will hit a standard login screen. Because the malware does not possess the user's password, the automated OAuth extraction process will fail.[3]
Defense and Mitigation: Because the attack leverages legitimate API functionality and developer tools, traditional endpoint detection and response (EDR) platforms may struggle to flag the behavior. Defenders must pivot their strategy toward identity and configuration management.[1][4]
Security teams are strongly advised to disable browser developer tools and remote debugging ports via Group Policy across the enterprise, ensuring that these features are only accessible to authorized developer roles.
Additionally, administrators should regularly audit OAuth grants within their organization. By reviewing connected applications at myaccount.google.com/connections, security teams can identify unauthorized instances of "Google Workspace Migration for Microsoft Outlook" and revoke the malicious access tokens immediately.[1][3]
Key points
- The ToddyCat APT group has deployed a new malware tool named Umbrij to target corporate Gmail accounts.
- The malware bypasses passwords and MFA by hijacking active, authenticated browser sessions.
- It uses a technique called 'Shadow Token via Remote Debug' (STRD) to silently launch a headless Chromium browser.
- Umbrij automates the Google OAuth consent process to grant itself extensive access to email, drive, and contacts.
What we don’t know
- How many organizations have been successfully compromised by the Umbrij malware to date.
- Whether the ToddyCat APT group has adapted the STRD technique to target other cloud providers beyond Google Workspace.
- The exact initial infection vector used to deploy the malware onto victim machines before the OAuth extraction begins.
How we got here
2020
The ToddyCat advanced persistent threat (APT) group is first observed targeting organizations in Europe and Asia.
November 2025
Kaspersky details ToddyCat's use of 'TCSectorCopy' to steal Microsoft Outlook data from targeted companies.
June 2026
Researchers uncover 'Umbrij', a new tool shifting the group's focus to Google Workspace and OAuth abuse.
- Threat Intelligence Analysts
- Focusing on the technical sophistication of the ToddyCat APT group and the novelty of the STRD technique.
- Enterprise Network Defenders
- Prioritizing practical mitigation, browser configuration management, and endpoint monitoring.
- Identity Security Experts
- Highlighting the structural vulnerabilities of persistent API access and the limitations of MFA.
Perspectives this story doesn't cover
- Google Workspace Product Security Team
- End-users whose accounts were compromised
Sources
[1]The Hacker NewsEnterprise Network DefendersToddyCat-Linked Umbrij Malware Abuses OAuth to Access Gmail via Google API
Read on The Hacker News →
[2]CyberpressIdentity Security ExpertsToddyCat Automates Gmail Compromise
Read on Cyberpress →
[3]KasperskyThreat Intelligence AnalystsKaspersky experts have identified a previously unknown tool used by the APT group ToddyCat
Read on Kaspersky →
[4]BackBoxEnterprise Network DefendersToddyCat-Linked Umbrij Malware Abuses OAuth to Access Gmail via Google API
Read on BackBox →
More in Technology
See all →Data Breach
State Bank of India Investigates Cyberattack After Customer Data Surfaces on Dark Web
7 sources
AI Espionage
Judge Orders Accused OpenAI Spy Abdulrahman Alfozan Held in Custody Over Saudi Flight Risk
4 sources
Retail Cyberattacks
Cyberattack Knocks Grocery Giant Ahold Delhaize Systems Offline Across US and Europe
4 sources
Memory Security
Why 32-Bit Pointers Lack the Entropy to Support Address Space Layout Randomization
5 sources
Comments
Every angle. Every day.
Get Technology stories with full source coverage and perspective breakdowns, free every day.




