ToddyCat Uses Umbrij to Hijack Gmail Access via Google OAuth and Chromium Debugging
Attack Tradecraft · 7 sources · Updated 4mo ago · First seen May 13, 2021

Kaspersky researchers reported that the ToddyCat APT group is using a new .NET malware tool, Umbrij, to compromise corporate Gmail accounts and other Google resources by abusing Google OAuth flows in Chromium-based browsers. The malware is delivered through DLL sideloading with legitimate executables including BDSubWiz.exe, VSTestVideoRecorder.exe, and GoogleDesktop.exe, and can also persist through masqueraded scheduled tasks. After execution, Umbrij reuses an already authenticated browser profile, launches Chrome or Edge in headless mode with a remote debugging port, and automates account-selection and consent steps to capture an OAuth authorization code.
The attackers then exchange the stolen code for Google access tokens and use the API to access Gmail and other account data while remaining largely invisible to the victim. Researchers named the technique Shadow Token via Remote Debug (STRD) and said it depends on an active Google session already present in the victim’s browser; in some cases the malware also impersonates the user by duplicating an explorer.exe token. Defenders were advised to monitor for DLL sideloading and suspicious Chromium launches using flags such as ```
--remote-debugging-port
--headless


