Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Local State
Cyber Security

Local State

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Cyber Security

Local State is a JSON file in a Chromium-based browser's user data directory holding browser-wide settings; on Windows it also holds the DPAPI-protected key used to encrypt stored cookies and passwords. Infostealer malware reads it to decrypt stolen browser data. Defenders watch for non-browser processes accessing it.

Browser state and what Local State actually contains

Local State is browser-level metadata, not a user bookmark store or page cache. In Chromium-based browsers it lives in the profile or user data directory and holds settings that the browser itself needs to start, sync, or configure shared behaviour across profiles and features.

On Windows, one of its most security-sensitive roles is that it stores the DPAPI-protected key material used to encrypt saved cookies and passwords. That makes the file interesting to defenders and attackers alike, because the file itself may not reveal secrets in clear text, but it can enable decryption when paired with the same user context or a compromised host.

Why Local State matters to browser security

The security significance of Local State comes from its position in the browser trust model. If an attacker can read it from disk, they may gain the information needed to unwrap protected browser data or to understand browser configuration that supports abuse, persistence, or session theft.

This is why browser credential theft often focuses on the profile directory rather than only on the visible browser window. The file is a small control point with outsized value: it can help connect encrypted artifacts to the underlying decryption mechanism, especially when the endpoint is already compromised.

For a broader control perspective, the issue aligns with the need to protect authentication material, local secrets, and endpoint files that support decryption or session recovery, which is why browser data theft is treated as an endpoint and identity-adjacent problem rather than a simple file-access event.

How defenders should interpret access to Local State

Suspicious access is usually about process behaviour, not the filename alone. A normal browser process may access Local State as part of ordinary operation, but non-browser processes, scripting hosts, archiving tools, or infostealer chains reading it from the user profile deserve scrutiny, especially when followed by access to cookie databases or password stores.

Defenders should correlate file access with process lineage, command-line context, and the presence of broader browser-data collection activity. The file is most informative when viewed as part of a sequence: discovery of profile paths, read access to state files, extraction of protected browser data, and subsequent authentication abuse.

That is why endpoint telemetry, file-access auditing, and browser-profile hygiene all matter. A single read may be benign; repeated reads from unusual processes, especially by unsigned or recently dropped binaries, are a meaningful compromise signal.

Practical consequences when Local State is exposed

Exposure of Local State can turn a local compromise into account compromise. If the browser’s protected cookie or password material can be decrypted, an attacker may reuse authenticated sessions, steal credentials, or pivot into cloud, SaaS, or enterprise applications without needing to defeat login controls again.

On Windows, the DPAPI dependency means the risk is tied to the user context and the host. That limits some offline abuse, but it also means that malware running in the right context can often make the file immediately useful. Once the file and related browser artifacts are collected together, the defender is no longer dealing with a single document, but with a pathway to browser identity material.

For incident response, that usually means reviewing browser sessions, revoking suspicious tokens or cookies where possible, and treating the endpoint as a source of credential exposure rather than only a malware infection.

Risk and Threat Considerations

Local State is attractive to infostealers because it helps bridge the gap between encrypted browser storage and usable stolen data. The main risk is not the file alone, but the way it can support decryption of cookies and passwords after endpoint compromise or unauthorized profile access.

Failure mechanism: Malware or another unauthorized process reads the file from the browser profile, extracts the protected key material, and combines it with other browser artifacts to recover credentials or session data.

Impact: Attackers may hijack active sessions, reuse saved credentials, and extend a local compromise into wider account abuse across web applications and services.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1555.003 — Credentials from Web BrowsersLocal State helps recover browser-stored secrets used by this technique
Recommendation — Hunt for browser credential theft and correlate reads of profile files with credential-access activity.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementBrowser-stored secrets and session material require lifecycle control and rotation
Recommendation — Rotate exposed authenticators and invalidate browser sessions after suspected theft.
CIS Controls v8CIS-8 — Audit Log ManagementDetecting unauthorized file access depends on endpoint and file activity visibility
Recommendation — Collect and review endpoint file-access telemetry for unusual reads of browser profile artifacts.
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageThe file can enable recovery of browser secrets when endpoint access is compromised
NHI-07 — Long-Lived SecretsBrowser-stored decryption material and sessions can remain useful long after creation
Recommendation — Treat browser profile files as secret-bearing artifacts and remove unnecessary exposure. Shorten secret lifetime by expiring sessions and rotating credentials after exposure.

Practitioner Guidance

What to watch for: Treat Local State as a high-value browser artifact and monitor for reads by processes that are not expected to interact with Chromium profile files. That includes scripted collection tools, unusual child processes, and binaries that appear only briefly before collecting browser data.

Practitioner note: If you detect browser-data theft, response should go beyond malware removal. Investigate the surrounding profile directory, browser sessions, and any accounts that may have accepted stolen cookies or passwords, then rotate or invalidate the exposed access paths where feasible.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org