PEEP Toolkit Turns Chrome and Edge Into Stealthy Persistence Backdoors

Security researchers uncover PEEP, a post-exploitation framework that tampers with Chromium's Secure Preferences to install covert browser backdoors.

S
ShaktiSecur Editorial
Tue Sep 08 2026 · 7 min read

In the modern enterprise security landscape, the web browser is no longer merely a window to the internet; it is the primary operating environment for workforce productivity. Because browsers hold the keys to identity providers, cloud infrastructure, and sensitive internal portals, threat actors have increasingly focused their efforts on compromising browser runtime environments. A newly disclosed post-exploitation framework known as PEEP highlights just how sophisticated these techniques have become.

Discovered by cybersecurity researchers, PEEP is a specialized post-compromise toolkit engineered to convert Google Chrome and Microsoft Edge into stealthy, persistent backdoors capable of executing arbitrary host commands. Masked deceptively as an innocuous bookmark management extension, PEEP bypasses standard security controls by directly manipulating Chromium's internal profile configurations—specifically forging cryptographic signatures to convince the browser that an unauthorized extension is legitimate.

While PEEP requires prior code execution or administrative privileges to deploy, its design addresses one of the hardest challenges facing modern threat actors: long-term persistence that evades Endpoint Detection and Response (EDR) platforms.

The Evolving Landscape of Browser-Based Persistence

Historically, when adversaries obtained administrative or elevated access on a target workstation, their go-to persistence mechanisms involved creating scheduled tasks, modifying Windows Registry run keys, establishing custom system services, or executing DLL side-loading. However, modern endpoint security tools heavily monitor these precise persistence vectors. An unexplained registry modification or novel scheduled task frequently triggers automated alerts within Security Operations Centers (SOCs).

To circumvent this visibility, advanced threat groups have increasingly adopted "Living off the Browser" (LotB) strategies. By embedding malicious capabilities within browser engines, attackers achieve several tactical advantages:

  1. Traffic Blending: Command-and-control (C2) communication originating from standard browser processes (chrome.exe or msedge.exe) blends seamlessly with normal, high-volume HTTP/HTTPS and WebSocket traffic.
  2. Credential Proximity: A compromised browser session provides direct access to active session cookies, web tokens, and saved credentials without requiring raw memory dumping techniques like LSASS scraping.
  3. User-Space Resilience: Traditional file integrity monitors often exclude user profile directories to prevent performance degradation, leaving local browser profiles under-monitored.

PEEP elevates LotB techniques by targeting the underlying data structures that Chromium uses to enforce browser integrity.

Unpacking PEEP: Architecture and Operability

PEEP is designed strictly as a post-exploitation framework. It does not contain an initial access vector, such as a browser exploit or phishing delivery system. Instead, it assumes the attacker has already established a footprint on the host system with sufficient privilege to write to disk and interact with local user profile directories.

When deployed, the PEEP installer target locations in the user's file system where Chromium stores profile data, such as %LOCALAPPDATA%\Google\Chrome\User Data\Default or %LOCALAPPDATA%\Microsoft\Edge\User Data\Default. Rather than using official browser interfaces or directing the victim to install an add-on from the Chrome Web Store or Microsoft Edge Add-ons catalog, PEEP side-loads its extension payloads directly into the host profile directory.

Under normal circumstances, Chromium browsers employ stringent safeguards against sideloaded extensions. If an external process attempts to drop an extension folder into a profile directory and edit the Preferences file, Chromium's built-in self-defense mechanisms kick in. Upon the next browser launch, Chromium detects an unauthorized modification, disables the extension, alerts the user with a prominent warning banner, or strips the extension entirely.

PEEP neutralizes this security safeguard through targeted cryptographic manipulation.

Breaking Chromium's Cryptographic Shield: Forging Secure Preferences

To prevent local malware from silently modifying browser settings—such as altering the default search engine, setting a malicious homepage, or force-installing untrusted extensions—Chromium introduced the Secure Preferences system.

The Secure Preferences file sits alongside the standard Preferences file in every browser profile directory. It contains a collection of hash values (HMACs) corresponding to critical browser settings. When Chrome or Edge starts up, the browser recalculates the HMACs for sensitive settings using a seed derived from host-specific system attributes and internal client IDs. If the calculated HMAC does not match the HMAC stored in Secure Preferences, the browser treats the configuration as corrupted or tampered with, discarding the modifications.

PEEP's primary innovation lies in its ability to forge these HMAC hashes outside of the browser process.

By reverse-engineering the exact algorithm, platform-specific parameters, and seed generation logic used by Chromium to produce Secure Preferences signatures, the PEEP installer can:

  • Write the malicious extension configuration directly into the user's profile settings.
  • Calculate valid HMAC hashes for the modified extension configurations.
  • Inject the forged hashes directly into the Secure Preferences file.

Because the injected hashes match what Chromium expects during boot initialization, the browser treats the newly added PEEP extension as a legitimate, user-approved, or enterprise-managed installation. No security prompts are displayed to the user, no developer mode warnings appear, and Web Store verification checks are completely bypassed.

From Browser Extension to System Control

Once PEEP achieves silent persistence within the browser profile, it activates its secondary capability: host command execution.

While standard browser extensions operate within a sandboxed JavaScript runtime environment—restricting direct interaction with the underlying operating system—PEEP bypasses these constraints by taking advantage of browser APIs designed for desktop integration, such as Native Messaging, or by leveraging local host execution bridges set up during the initial installation phase.

The covert extension, posing as a basic utility like a bookmark manager, establishes an outbound communication channel back to the attacker’s C2 infrastructure. Instructions received over web sockets or HTTPS polling are decoded by the extension background script.

When execution instructions are received, the extension interacts with its dropped host components or native host wrappers to invoke operating system shells (such as cmd.exe or powershell.exe). The results of these system commands are then gathered, encrypted, and exfiltrated back out through the browser's standard network stack.

This design effectively creates a full-featured reverse shell that resides inside the user's primary web browser process, effectively obfuscating the command-and-control loop from traditional endpoint telemetry.

The Strategic Advantage of Living Inside the Browser

For enterprise security teams, PEEP represents a challenging shift in threat actor tactics. Traditional security monitoring heavily scrutinizes process creation chains. For instance, if an unexpected process spawns powershell.exe with encoded command-line arguments, an EDR platform will instantly flag or block the activity.

However, when a legitimate browser binary spawns a native helper or writes to standard user directories, security systems must carefully balance detection logic against false-positive rates. Web browsers frequently launch child processes for rendering, audio handling, utility tasks, and software updates.

Furthermore, because PEEP disguises its footprint as a harmless bookmark manager within the browser's user interface (or hides its UI footprint entirely via background service worker scripts), standard users are unlikely to notice anything amiss during their daily activities. Web browsing continues normally, while in the background, the browser periodically checks in with command-and-control servers.

Hunting for PEEP and Mitigating Profile Tampering

Defending against tools like PEEP requires security operations to expand their focus beyond network perimeters and traditional system run keys, incorporating deep file-integrity auditing and aggressive browser management policies.

1. Enforce Enterprise Extension Policies

Organizations using Google Chrome or Microsoft Edge should strictly enforce browser management via Group Policy Objects (GPO), Microsoft Intune, or Google Workspace Cloud Management.

By configuring policies such as ExtensionInstallBlocklist set to * (blocking all extensions by default) alongside ExtensionInstallAllowlist or ExtensionInstallForcelist, administrators override local profile preferences. When enterprise management policies are active, hardcoded policy rules take precedence over local Preferences and Secure Preferences files, preventing unauthorized extensions from running even if local profile hashes are valid.

2. Monitor Profile Directory File Writes

Security teams should configure EDR solutions to monitor non-browser binaries interacting with browser profile directories. Under normal operations, files like Secure Preferences and Preferences should only be written to by the parent browser process (chrome.exe, msedge.exe) or official installers/updaters. Any command-line tool, script, or unverified executable attempting to write to or modify files within %LOCALAPPDATA%\Google\Chrome\User Data\ should immediately be flagged for investigation.

3. Audit Local Native Messaging Hosts

Because host command execution often relies on Chromium's Native Messaging framework, security audits should periodically review registry keys associated with native messaging hosts:

  • HKCU\Software\Google\Chrome\NativeMessagingHosts
  • HKLM\Software\Google\Chrome\NativeMessagingHosts
  • HKCU\Software\Microsoft\Edge\NativeMessagingHosts
  • HKLM\Software\Microsoft\Edge\NativeMessagingHosts

Unrecognized entries pointing to unusual scripts or executables in user-writable directories should be treated as potential indicators of compromise (IoCs).

The Broader Implications for Enterprise Endpoint Defense

The discovery of PEEP highlights a persistent game of cat-and-mouse between browser vendors and threat actors. As Google and Microsoft continue to tighten local profile protection mechanisms, adversaries will invest more resources into reverse-engineering cryptographic controls like Secure Preferences to maintain their operational footprints.

To effectively counter this trend, the industry must re-evaluate how browsers validate local state integrity. Security models that rely on client-side secrets or local machine identifiers to build integrity hashes will inherently remain vulnerable to post-exploitation tools running with administrative privileges on the same host.

For enterprise security leaders, the takeaway is clear: enterprise browsers must be treated with the same rigor, monitoring, and policy enforcement as core operating system components. Leaving browser profiles unmanaged or relying solely on default browser security prompts is no longer sufficient against modern post-exploitation frameworks.

Reported using information from The Hacker News.