Skip to content
Misconfiguration Write-up Advanced

SIBREXIN: Installing Browser Extensions Silently

Chrome's Secure Preferences file uses a constant HMAC seed and predictable device ID, allowing an attacker with local access to silently install a malicious extension. This enables persistence without user interaction and bypasses tested AV/EDR solutions.

medium.com

Published on medium.com

In this article, Offensive Security Team describes an exercise that combined physical intrusion with the stealthy installation of a Chrome extension to achieve persistence on employee laptops. The team ultimately explored whether such an extension could be deployed entirely through keyboard emulation without user…

Toni Lopez, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker with local access could silently install a malicious extension that persists across reboots, and this technique was not flagged or blocked by tested AV or EDR solutions.

What the attacker needed

Local access to the target computer; ability to run a terminal command; Google Chrome installed

How it was found

  1. Run a one-liner terminal command on a computer with Google Chrome installed.
  2. The one-liner connects to a remote server to fetch the appropriate installation script based on the operating system.
  3. The script downloads the malicious Chrome extension and places it in Chrome's Default directory.
  4. The script retrieves the username and device identifier required for HMAC generation.
  5. The script transfers the retrieved information and the Preferences or Secure Preferences file to the server.
  6. The server updates the Secure Preferences file by computing the extension ID, adding the extension entry, and recalculating the HMACs, then sends it back.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Chrome stores its settings, including which extensions are installed, in a file protected by a secret code called an HMAC. The report found that the secret used to create this code is the same for every Chrome installation, so anyone who knows it can edit the file and add an extension without Chrome noticing. An attacker who can run a command on the computer can therefore install a malicious extension that survives reboots.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.