Subscribe to the Non-Human & AI Identity Journal

Browser memory scraping

The act of reading sensitive data from a browser’s process memory while it is temporarily decrypted for use. This can expose passwords, session cookies, payment data, and wallet material during active sessions, even when the data is otherwise protected at rest.

Expanded Definition

Browser memory scraping is a post-processing attack against a running browser, where an attacker reads transient plaintext from process memory after encryption has already been undone for active use. That distinction matters: the browser may still be “secure at rest,” yet the session is vulnerable while cookies, passwords, form fills, wallet material, and tokens are loaded into memory for rendering or authentication.

In NHI and IAM terms, the issue is not limited to human browsing. Agentic workflows, service portals, and automation sessions often depend on browser-mediated authentication, making the browser a temporary holding area for high-value secrets. Definitions vary across vendors on whether the term should include memory dump tooling, injected scripts, or only native process inspection, so the operational test is simple: if sensitive material is readable from live browser memory, the exposure exists. Standards bodies such as the EU Cyber Resilience Act emphasize secure-by-design expectations for software behavior, but no single standard governs browser memory scraping as a standalone control class yet.

The most common misapplication is treating encrypted transport or encrypted storage as sufficient protection when the real exposure occurs after decryption inside the browser process.

Examples and Use Cases

Implementing protections against browser memory scraping rigorously often introduces usability and performance constraints, requiring organisations to weigh session convenience against reduced exposure of live secrets.

  • A finance user signs into a banking portal, and an attacker with local code execution extracts session cookies from browser memory to hijack the authenticated session.
  • An AI operator uses a web console to manage agents, and ephemeral access tokens become recoverable from live browser memory during active administration.
  • A developer pastes a password into a web form, and malware scans the browser process before the field is cleared from memory.
  • An enterprise SSO flow keeps a bearer token resident long enough for a memory-resident attacker to reuse it across downstream services.
  • A SaaS admin page used for recovery or support exposes recovery codes or wallet material in memory while the page is still open.

These scenarios are especially important when browser sessions serve as the front end for privileged access, because a single successful scrape can bypass stronger controls elsewhere. NHIMG’s Ultimate Guide to NHIs highlights that 79% of organisations have experienced secrets leaks, with 77% of those incidents causing tangible damage, which helps explain why live-session exposure deserves governance attention. Browser-based token handling is also increasingly relevant in agentic and automation-heavy environments, where the browser may become the last place a secret exists before execution. For implementation context, the EU Cyber Resilience Act reinforces the expectation that products reduce exploitable runtime conditions, not only protect stored data.

Why It Matters in NHI Security

Browser memory scraping matters because it turns the browser into a high-value secret reservoir during the exact window when NHIs, session tokens, and delegated credentials are most usable. For defenders, the problem is not merely credential theft. It is the collapse of trust in any browser-mediated workflow that relies on short-lived tokens, SSO handoffs, or secret reuse across tools. This is especially dangerous in environments where browser sessions are used to provision access, administer agents, or approve sensitive actions.

NHIMG research shows that 97% of NHIs carry excessive privileges, which means a single scraped token can unlock far more than the original browser session should have allowed. The same Ultimate Guide to NHIs also notes that only 5.7% of organisations have full visibility into service accounts, making it harder to trace how a stolen browser session becomes broader NHI compromise. In practice, browser memory scraping forces teams to think beyond password policy and into runtime exposure, session lifespan, and containment after authentication has already succeeded.

Organisations typically encounter this consequence only after a live session is hijacked or an endpoint is forensically inspected, at which point browser memory scraping becomes operationally unavoidable to address.

Standards & Framework Alignment

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

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Browser-session secret exposure maps to runtime credential misuse and theft.
NIST CSF 2.0 PR.AC-1 Session compromise undermines authentication and access control protections.
NIST Zero Trust (SP 800-207) SP 800-207 Zero Trust treats every session as potentially compromised and continuously revalidates trust.

Reduce live-session secret exposure by minimizing token residence and monitoring browser-facing NHI paths.