the_open_door
coffee
ESEN
← Back to index

Process Memory Dump for Credentials

ATT&CKT1555

A process handling a password holds it in memory in clear text while it uses it, however well encrypted the store it came from. Dumping that process's memory and combing it with strings is often the shortest way to the credential, and it needs neither LSASS nor administrator rights: being able to dump a process of your own user is enough.

The typical case is a browser open in an interactive session. A user with Firefox or Chrome running has almost certainly typed credentials into some internal panel, and those strings are still on the process heap.

The mechanism. On Windows the reference tool is ProcDump (Sysinternals). Three details decide whether the dump is any use:


ps | findstr firefox
.\procdump64.exe -accepteula -ma <pid>

The dump is downloaded to the attacking machine and combed there, which is faster and leaves no analysis tooling on the victim:


strings <process>.dmp | grep -i password

What comes out is usually not a hash but the string exactly as it was typed, sometimes inside a form URL (login_username=...&login_password=...), which is precisely what gets reused across every other service.

Requirements. Permission to open the target process (your own user over its processes, or SYSTEM over any), the ability to upload the binary, and an interesting process running: if nobody is logged in, there is no memory to dump. On a headless server this route does not exist.

How to detect it. The pattern is one process reaching into another's memory: Sysmon ProcessAccess (event 10) with memory-read rights over the browser, plus the creation of a large .dmp in the user's profile, an artefact that almost never shows up in normal use. A freshly uploaded Sysinternals binary (ProcDump is rarely installed) and its download over WinRM or SMB complete the chain. As a rule, a hundreds-of-megabytes .dmp in Documents deserves an alert on its own.

Defence. Do not leave interactive sessions open on servers and, where needed, turn on protections that prevent opening sensitive processes (PPL, Credential Guard for LSASS, application-control policies blocking dumping tools). The measure that really breaks the chain is the usual one: make sure the password found does not work anywhere else, because this dump does not steal a reusable hash but a cleartext password that tends to open every other door. When the target is LSASS rather than an application, the scenario is LSASS dumping.

Machines where it's used