November 30, 2026
Blog

Could browser extensions be the most under-appreciated artefact in forensics?

We’ve found some real investigative gems lurking in browser extensions recently, and it has got us wondering whether they could be one of the most under-appreciated sources of evidence in all of digital forensics. Principal Analyst Alex Caithness certainly thinks so, and in this blog he’ll explain why.

Browser extensions have officially been a part of Google Chrome since 2010 and are widely used by web users looking at adding something extra to their browser experience. Correcting your grammar, finding coupon deals, blocking advertisements, and checking pages for security risks are among just some of the common use-cases.

In order to do their jobs though, these extensions need a fair amount of power over your browsing. The permissions granted to them upon installation should maybe give us pause. “Read and manage your browsing history”, “read and change all your data on websites you visit” – these sound like quite big deals, both from a privacy context… but also with our forensics hats on, with this level of access, they might be generating some interesting artefacts.

Add to this the fact that extensions are permitted to maintain their own storage areas within a browser profile, which by design, “Even if the user clears the cache and browsing history, the data persists.” (https://developer.chrome.com/docs/extensions/reference/api/storage#usage), it feels like a browser feature that really should not be overlooked in an investigation.

In this blog I’ll be discussing extensions in the context of Chrome, but most Chromium-based browsers (e.g., Opera, Edge, Brave, etc.) work in similar ways, so most of this information can translate across to those browsers too.

‍

What are extensions?

In essence they are webpages (which is to say: HTML, CSS and crucially JavaScript) that are always running alongside the pages that you are viewing in the browser. They use special JavaScript APIs (Application Programming Interfaces) to perform their functionality, which might include interacting with, or outright altering pages which the user is viewing, or performing other browser management operations such as editing browsing history, cookies or even managing other extensions.

They are usually installed via a web store (typically the Chrome Webstore https://chromewebstore.google.com/) but can also be “side-loaded” or installed as an “unpacked extension” during development.

Because they are based on web technologies, they can make use of the standard Web APIs to persist data on a user’s machine, such as IndexedDB (https://www.cclsolutionsgroup.com/post/indexeddb-on-chromium) and Web Storage (https://www.cclsolutionsgroup.com/post/chromium-session-storage-and-local-storage), but also have their own special methods for storing data and can additionally perform operations which lead to other data passively being stored in extension-related storage.

‍

How do we know what extensions are installed?

Extensions are managed by Chrome on a per-profile basis, so within Chrome’s “User Data” folder we’ll be looking for the “Default” folder if present, along with the “Profile 1”, “Profile 2”, etc. folders.

Each Chrome extension is identified by a 32-character ID (using the characters a-p) which is derived from the public key assigned to the extension (for extensions distributed as a “crx” file, usually via the Chrome Web Store) or from the path where it is installed on a user’s storage (for “unpacked” extensions – although this is only usually relevant when extensions are being developed, so is unlikely to be relevant in most real cases).

These IDs can be seen in the URLs for extensions on the Chrome Web Store (note the ID at the end of the URL):

Figure 1 - An extension listed on the Chrome Web Store. Note the 32-character extension ID at the end of the URL

The extensions themselves, and the code that they require in order to operate can be found in the “Extensions” folder in the browser profile, each in a folder named after the Extension’s ID.

Figure 2 - the contents of the Extensions folder, showing sub-folders named using the extension ID

You can derive the name of each extension from the content of each folder, but it does require a little work, and the process can require a few different files to be inspected due to localization issues. This folder also only contains the extensions installed by the profile and does not include any globally installed extensions (for example the Opera browser’s VPN extension).

Luckily Chrome has done all the hard work for us, and in the “Secure Preferences” JSON file, the full list of extensions available to the profile are listed.

Figure 3 - The "extensions.settings" property in the "Secure Settings" JSON file.

In the “extensions.settings” property, is an object which contains properties with each of the extensions’ ID as the key and the value is a wealth of information about the extension which, crucially, includes its name.

Figure 4 - A single extension's details in the "Secure Settings" JSON file

Where is the data, and how is it stored?

Before we dive into the specifics, let’s start in general terms: extension data is mostly in LevelDB. From a forensics perspective, that is almost always good news - LevelDB is a log structured data store, where previous versions of records, including those which have been deleted, stick around for a long time. In the case of the data which is solely related to extensions (rather than the more general browser artefacts), the data in the LevelDB databases is formatted as JSON, which is well understood, easy to parse, and even human readable if you are so inclined (although naturally I prefer to use RabbitHole myself).

‍

Local Extension Settings

The “Local Extension Settings” folder is, in my opinion at least, somewhat of a misnomer as, rather than being explicitly for settings, it is the primary location for locally stored extension data (i.e., stored using the “browser.storage.local” JavaScript API). This folder contains a sub-folder per extension (or rather a sub-folder for each extension which makes use of this feature), inside which is a LevelDB data store.

Figure 5 - A snippet of a Local Extensions Settings LevelDB displayed in RabbitHole

As far as LevelDB data stores go, this is one of the more straightforward ones to understand. For each record, the key is a text string which is the name of the property being stored by the extension, and the value is a JSON representation of the data stored for this property (the text is encoded using UTF-8). As is the case with all LevelDB, it is expected that you may find multiple records with the same key, as it shows the value being updated (or deleted) over time. Because the data in this data store is governed by each extension, the keys as well as the structure and content of the JSON will be different for each extension.

Although this is the recommended way for extensions to persist data locally, it’s important to know that there are multiple other Web APIs which allow data to be stored by web sites, and Extensions can make use of these too (as we’ll discuss later in this post), so it is important not to treat this as the sole location for persistent extension data. It is, however, what is referred to when Google say: “Even if the user clears the cache and browsing history, the data persists.”, so it is extremely good news when something particularly evidentially useful ends up here.

There is also the “Managed Extension Settings” folder, which is structurally similar to the Local Settings folder, but contains settings for enterprise managed extensions and is read-only as far as the extensions themselves are concerned when they are running, so shouldn’t usually contain data directly related to user activities (unless the user happens to be managing the IT estate for an enterprise I guess!).

‍

Extension State

Extension State isn’t strictly speaking a storage location for extensions, rather the browser stores information here when the extension uses some specific functionality provided to it via the Extensions JavaScript API. Anecdotally, across all of the data I have examined, this is dominated by “Alarms” (which allow an extension to schedule tasks which will still get picked up and completed when a browser has been shut down or a device has been “sleeping” https://developer.chrome.com/docs/extensions/reference/api/alarms) and where the extension has added items to the browser’s own context menu.

The “Extension State” folder contains a single LevelDB data store. The keys for each record take the form: “<extension id>.<state type>”, e.g., “lmjnegcaeklhafolokijcfjliaokphfk.context_menus”; the values are JSON, and because the browser is responsible for this data the structure for each type of data (e.g., the alarms or the context menu) will be consistent regardless of the extension.

‍

Other web APIs

As mentioned earlier in this post, extensions are essentially web sites, so they can make use of other functionality made available through JavaScript APIs to persist data locally on a user’s machine. This includes IndexedDB, Local Storage, Session Storage and the File System API. All these storage mechanisms relate stored data to a host with a URI. In the case of an extension, rather than the usual “http” or “https” schemes used for most websites, the URI will instead have a “chrome-extension” scheme with the extension id, e.g.: “chrome-extension://jghfifgedkimbpbfmjhgbdjoefkplmdd”.

‍

Case studies

Like the approach that we have previously suggested for browser forensics with artefacts related to websites (https://www.cclsolutionsgroup.com/post/skinny-dipping-into-browser-data), each extension should be treated on their own merit to maximize the value that we can extract from these artefacts.

To demonstrate what valuable information may be uncovered in an extension’s data, here are a couple of brief case studies from just some of the extensions we’ve investigated.

‍

Video Download Helper

“Video Download Helper” (extension id: lmjnegcaeklhafolokijcfjliaokphfk) is an extension which very much lives up to its name: it helps you download videos from websites – particularly those videos that are embedded in a page. One way to use the extension is to simply right-click on the video and a context menu item will be added to Chrome’s native context menu related to the video.

Figure 6 - Video Download Helper has added entries to Chrome's native context menu

Because the extension is making use of Chrome’s context menu, the “Extension State” for this extension should be updated, and indeed, looking up records in the LevelDB with keys “lmjnegcaeklhafolokijcfjliaokphfk.context_menus” we can find evidence of the names of the videos shown in the screenshot above (as well as previous versions of this record showing videos found on other pages).

Figure 7 - The context menu records in Extension State show the names of the videos

Our testing suggests that these names are populated simply by virtue of the extension detecting the video on the page, regardless of whether the user ever right-clicks on or downloads the video. Therefore, it shouldn’t be taken as evidence that the videos were downloaded, or even viewed necessarily, rather it is indicative of content on pages that have been visited.

The act of downloading one of these files manifests as a standard download in the expected locations: the History SQLite database, and the “shared_proto_db” LevelDB. For what it is worth, I tend to head to shared_proto_db in the first instance if I am digging into Chromium downloads as it has some benefits over the History database when it comes to recording “in-flight” downloads that haven’t completed; it also records the SHA-256 of the downloaded file, which you don’t get in the History database. In this case, however, the History database does have one major benefit as it records the fact that the download was completed by this extension:

Figure 8 - The downloads table in the History database shows that a download was performed by a browser extension

The database shows that the file was downloaded from the following URL: “blob:chrome-extension://lmjnegcaeklhafolokijcfjliaokphfk/2804d834-17fc-4282-aa77-dad4be45b0cf” (this is also shown in shared_proto_db). This is unexpected perhaps, as you might assume that you’d see some reference to the page it was downloaded from, or maybe the video hosting service (Vimeo in this case). Instead, it appears that this extension works in a somewhat similar fashion to Mega’s file-sharing service: first downloading the data to a location managed by the browser’s File System API, before serving that file back to Chrome to perform the download. Because of this we also see records relating to this extension’s activity in the “File System” folder, and may, in theory, be able to recover deleted videos here, however it does not record any additional information about the origin of the download, unfortunately.

Finally, I noted that, upon completion of a download, a native notification was shown by Windows, and indeed, the content of the notification could be recovered from the “wpndatabase.db” SQLite database and the payload XML helpfully recorded the Extension ID. I would expect to see something similar on a Mac in the “com.apple.notificationcenter” databases.

Figure 9 - notification payload XML showing the extension ID

Grammarly

At the time of writing this post, Grammarly (extension id: kbfnbcaeplbcioakkpcpgfkobkghlhen) is ranked at number 10 in the Chrome Webstore’s most popular extensions chart (as it happens, Video Download Helper narrowly misses out on the top 10 being placed at 11). If the seemingly relentless advertisements haven’t reached you, Grammarly is described (by Grammarly) as: “your always-on AI partner for clearer, more compelling communication. From brainstorming ideas to final edits, Grammarly’s advanced AI helps you write faster and with more confidence. It works across everything you write, whether it’s an email, a school paper, or a business proposal.”. In essence Grammarly sits and waits for you to visit any page where you might type something in, and gets ready to critique, and possibly improve what you have written.

To achieve its functionality, this is one of the extensions that you have to grant especially far-reaching permissions to, so, if it chose to do so, it could be recording a great deal of information about a user’s activity.

Heading into Grammarly’s “Local Extension Settings” LevelDB, we can see that it is, indeed, choosing to record such information:

Figure 10 - Grammarly's Local Extension Settings LevelDB keeps track of the URL of the page in the active tab

As a user is navigating the web, Grammarly is quietly updating an “activeTab” key in the LevelDB, which records, in a JSON format, the URL of the current tab.

Figure 11 - The content of the activeTab JSON data

Grammarly is recording a little “shadow history” which, by design, because it lives in the Local Extension Settings, is not erased when a user clears their history. That is certainly an interesting finding, but there is a big aspect missing here: a timestamp. LevelDB itself doesn’t record a timestamp for the insertion or update of a record, and as we can see from the screenshot, there’s no timestamp in the data itself.

But we should take a look at the surrounding records because one thing we can be confident about in LevelDB is the order of insertion, thanks to the sequence number.

Figure 12 - Surrounding records in Grammarly's Local Extension Settings do contain timestamps

Testing showed that the “extensionMeta” and “experimentationTreatments” keys contained records with timestamps accurate to their apparent time of insertion. This is useful because, although we can’t give a point time to the “activeTab” records, we can calculate a lower and upper bound for the activity based on these timestamped records that fall either side of them. How “tight” that time range is will depend on whether the browser is running and how the extension is operating. In our testing a range of 5-10 minutes was typical, some were accurate to a few seconds, and some had ranges of half a day (these seem to be when a page was visited and the browser had been closed before an upper-bound timestamp could be written).

It should also be noted that these records are for “active tabs” rather than visits, and a page which stays active for a long time may get several entries, especially if tabs are being switched regularly – you should not infer the number of visits to a website from these records, just that the website was active in a tab.

‍

Be the change you want to see in the world

At CCL we like to build things to make doing Digital Forensics better, and part of that is our commitment to open-source software. To that end we’ve updated our “ccl_chromium_reader” Python module to include new functionality to make getting at Extension data as straight-forward as possible, and have added a utility which makes auditing what extensions are present in a profile, what data there is and where it is : https://github.com/cclgroupltd/ccl_chromium_reader/blob/master/tools_and_utilities/audit_extensions.py

Additionally, if you’re a coder yourself, we’ve made a couple of example scripts, demonstrating how to use the module’s new functionality.

First, we have a script which demonstrates how to process the Grammarly data as described above: https://gist.github.com/AlexC-CCL/43f70a9d44b80d123dfd44cb1b1733d1

And here’s another example for the Bitdefender Web Sage Extension which also stores a sort of “shadow history”: https://gist.github.com/AlexC-CCL/8f5a60e6922da4e0a714c3e316d25eda

‍

We're here to help

Our experts are on hand to learn about your organisation and suggest the best approach to meet your needs. Contact an expert today.

Get in touch
hexes