In this section

0.3 What an Infostealer Takes

Module 0

Introduction

An infostealer is the most common malware behind a modern breach, and it rarely does damage on the machine it infects. It collects what that machine knows about its user, the saved passwords, the signed-in sessions, the wallets and the files, packs it up and sends it away, and the breach happens later, somewhere else, when someone signs in as that user.

This lesson sets out why stealers became the main way in, how they are sold, what they take and how the haul is staged, sent and sold as logs. It then recovers a stealer's encrypted target list from the file, reads what each target means for the response, and checks an assistant's account of the same infection.

1

Why Stealers Are the Way In

The breach happens somewhere else

The clearest recent example of a stealer-led breach did not involve malware on any of the systems that lost data. In 2024, a group Mandiant tracks as UNC5537 stole data from customers of the Snowflake cloud data platform, and Mandiant traced every incident it responded to back to compromised customer credentials, mainly from infostealer infections on unrelated machines:

Infectiona laptop runsa stealercollectsLogpasswords, cookies,files, host detailssellsMarketlogs soldor sharedbuysBuyersigns in asthe userusesBreachdata taken froma cloud service

How a stealer infection becomes a breach somewhere else. The service that is breached never saw the malware.

Mandiant's account, in the terms a defender records:

Case: UNC5537 and Snowflake customer accounts, 2024

Stealer-led breach

Reported by

Mandiant, 10 June 2024

Way in

stolen customer credentials

Source

infostealer infections

Earliest infection

November 2020

MFA on affected accounts

none

Organizations notified

about 165

Families named

  • Vidar, RisePro, RedLine, Raccoon Stealer, Lumma, MetaStealer

What made it work

  • No multifactor authentication: a username and password were enough
  • Credentials not rotated for as long as four years

The infections were old and ordinary. Mandiant named Vidar, RisePro, RedLine, Raccoon Stealer, Lumma and MetaStealer, found that at least 79.7% of the accounts used had prior credential exposure, and dated the earliest infection behind a used credential to November 2020. Contractor laptops used for gaming and pirated software were a notable source.

What turned old credentials into breaches was the account configuration. The affected accounts had no multifactor authentication, so a username and password were enough, and some had not been rotated for as long as four years. Mandiant and Snowflake notified about 165 potentially exposed organizations.

For an analyst, this changes the question a stealer sample answers. The file says what was taken from one machine; the damage depends on what those credentials and sessions still open, which lesson 0.4 takes up.

It also changes who needs the answer. The machine's owner needs to know the device is clean. The identity team needs the list of accounts whose passwords or sessions were on it, the cloud service owners need to know which of those accounts reach their data, and all of them need it before a buyer finds the log.

A stealer analysis that ends with the sample's capabilities and no account list has answered the least urgent question. The account list is also the part of the analysis that ages fastest, because every day it waits is a day the log can be bought and used.

2

Malware as a Service

One intrusion, three roles

Most stealers are not used by the people who write them. Microsoft describes Lumma as a malware-as-a-service offering run by an actor it tracks as Storm-2477, where affiliates pay for access to a panel in which they build the stealer binary and manage its command and control and the stolen data:

OperatorBuildsthe stealer and its panelRunsthe servers that receive logsSellsaccess to affiliatesAffiliatePaysfor the serviceBuildsa sample in the panelDeliversby ads, ClickFix, phishingBuyerSearcheslogs for one companyReplaysa session or passwordMoves infrom the first account

Malware as a service splits one intrusion across three roles. Each can be replaced without the others, which is why a takedown slows the market rather than ending it.

The split explains what analysts see. The same stealer arrives through very different delivery routes, because each affiliate chooses their own, and the same family appears with different configurations, because each affiliate builds their own sample. Microsoft reports Lumma as the most prolific final payload of ClickFix lures, alongside the routes lesson 0.1 covered.

The panel also explains the field called build in the configuration this lesson recovers. Affiliates generate their own samples, and a build or affiliate identifier in the configuration is what lets an analyst group samples from one affiliate across different files and delivery routes.

Two samples with different hashes and the same build value are one campaign; two with the same family and different build values may be two unrelated affiliates.

Microsoft's account of the service and its disruption:

Lumma, as a service

Malware as a service

Operator

Storm-2477

Sold to

affiliates

Affiliates get

a panel to build samples

Disrupted

21 May 2025

Domains taken down

about 2,300

Microsoft, 21 May 2025. The takedown removed infrastructure; the logs already sold kept their value.

That split also explains why takedowns slow the market rather than ending it. On 21 May 2025, Microsoft's Digital Crimes Unit, working with industry and international law enforcement, took down, suspended or blocked about 2,300 domains that formed Lumma's infrastructure. Affiliates who lose one service can buy another, and the logs already sold keep their value.

3

What a Stealer Takes

Credentials, sessions, wallets, files

The list is broad, and it is the same across most families. Microsoft's analysis of Lumma gives a representative set:

What Lumma collects

Source

Microsoft, 21 May 2025

From browsers

  • Saved passwords
  • Session cookies
  • Autofill data

Wallets

  • Wallet files, wallet browser extensions and locally stored keys

Applications and files

  • VPN, email, FTP and Telegram data
  • Documents, especially PDF, Word and RTF

The host

  • CPU, operating system version and other details

From browsers built on Chromium, Mozilla and Gecko, Lumma extracts saved passwords, session cookies and autofill data. It searches for wallet files, wallet browser extensions and locally stored keys for wallets such as MetaMask, Electrum and Exodus. It takes data from VPN, email, FTP and Telegram applications, harvests documents, especially PDF, Word and RTF files, and records host details such as the CPU and operating system version.

The session cookies matter most to a defender. A saved password still has to get past multifactor authentication on most accounts; a session cookie is the evidence that authentication already happened, and presenting it can let the holder skip the sign-in entirely.

That is why the cookie store is the first line a responder reads in a stealer's target list. A password taken from a browser protects only the account it opens, and many organizations put a second factor in front of it.

A session cookie for a cloud console, an email service or a single sign-on portal is already past that factor, and it stays useful until the session expires or someone revokes it.

Browsers have started to make that harder. On 30 July 2024, Google described App-Bound Encryption for Chrome on Windows, starting with cookies in Chrome 127:

BeforeStealer runsas the signed-in userAsks DPAPIto decrypt as that userGets cookiesno extra privilege neededChrome 127+Stealer runsas the signed-in userAsks a servicethat checks the callerRefusedunless SYSTEM or inside Chrome

App-Bound Encryption on Windows, as Google describes it. The protection does not stop theft; it raises the price to system privileges or injection into Chrome, both louder on the host.

Before it, the Windows data protection API kept data safe from other users and offline attacks but not from malicious code running as the signed-in user, which is exactly how a stealer runs.

With it, a privileged service checks which application is asking, and a stealer has to gain system privileges or inject into Chrome, both of which security tools are more likely to catch. Google planned to extend it to passwords and other tokens in later releases.

For an analyst, the protection changes what a stealer has to do on the host, and so what the host records. A stealer that elevates to system privileges or injects code into the browser process leaves evidence that a quiet file copy does not, and endpoint tools watch for both.

Browsers without the protection, older Chrome versions and stores it does not yet cover remain open to the simple method, so the browser version on the infected machine is part of the scope.

4

Finding the Target List

What the file says it will take

A stealer's configuration is the most useful thing in it: the list of paths to collect, where to stage them and where to send them.

Configurations are almost always encrypted, so the first look at the strings rarely shows them. They also hide in different places: in a data section, as here, in an embedded resource, appended after the last section, in the registry after first run, or on a server that the stealer contacts for its instructions.

The last of those leaves nothing in the file, and the configuration has to come from the network capture or from the stealer's memory while it runs. The lab pack's stealer is built the same way, inert: it decodes its configuration in memory and reads no target. Its static strings hold its own message and one string that does not explain itself:

$ floss -q --only static -n 6 mw03-stealer-config.exe | grep -A1 RIDGELINE
RIDGELINE-SPECIMEN mw03: config decoded in memory (%u bytes, sum %u), no target read
rdg-0311  # ◄ eight characters, no obvious use

Eight printable characters with no obvious purpose, sitting next to the program's messages, is a candidate key. Looking at the bytes around it shows what it might be the key to:

$ od -A x -t x1 -v -j 0x7250 -N 64 mw03-stealer-config.exe
007250 72 65 61 64 0a 00 00 00 72 64 67 2d 30 33 31 31  # ◄ the same eight characters
007260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
007270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
007280 09 46 05 58 59 5f 55 13 48 46 15 49 1d 03 02 00  # ◄ not text, and not zeros
007290

The string is followed by padding and then by a block of bytes that are neither text nor zeros. Configuration data is commonly JSON, which begins with an opening brace and a quote. If that block is JSON encrypted with the candidate key, its first two bytes combined with those two characters should give back the start of the key:

$ python3 -c "print(bytes(a ^ b for a, b in zip(bytes.fromhex('0946'), b'{\"')))"
b'rd'

They do. Guessing a few bytes of what the plaintext must be and checking whether it produces the key is called a known-plaintext test, and it turns a suspicion into a near certainty in one line.

Two bytes can match by chance, so the test is a reason to try the key, not proof that it is right. Proof comes from decrypting the whole block and getting something with structure: JSON that parses, readable paths, a value that matches something else in the file.

A wrong key produces bytes that fail all three, which is as useful a result as success when several candidates have to be tried.

5

Decrypting the Configuration

From bytes to a list a responder can use

With the key confirmed, the whole block decrypts. JSON carries its own end, so the decoder reads a generous length and lets the JSON parser decide where the configuration stops:

$ python3 - <<'EOF'
import json
data = open('mw03-stealer-config.exe', 'rb').read()[0x7280:0x7280 + 1024]
key = b'rdg-0311'
text = bytes(c ^ key[i % 8] for i, c in enumerate(data)).decode('latin-1')
cfg, end = json.JSONDecoder().raw_decode(text)
open('config.json', 'w').write(json.dumps(cfg))
print(end, 'bytes of JSON')
EOF
488 bytes of JSON
$ jq 'del(.targets)' config.json
{
  "build": "rd-0311",
  "stage_dir": "%TEMP%\\rd0311",
  "archive": "rd0311.zip",
  "exfil": "https://collect.example.com/api/v2/upload",
  "note": "documentation values only"
}

Everything a responder needs about the mechanics is in that output, and none of it came from running the stealer. Recovering a configuration statically means no sample executes, nothing touches the network, and the result is the same every time it is repeated, which is what makes it evidence rather than an observation of one run.

The build name identifies this affiliate's sample among others of the same family, the staging folder and archive name are things to search for on the host, and the upload address is something to search for in the proxy and DNS records.

The configuration is also a set of indicators that last longer than the file. The sample's hash changes with every build; the staging folder name, the archive name and the upload path often stay the same across a campaign. Lesson 0.10 turns values like these into detections.

JSON makes the end easy to find, but many families use their own binary layouts or simple key and value text instead. The approach is the same with any format: decrypt more than enough, then let the structure of the plaintext say where it stops, whether that is a parser, a length field at the start, or a terminating byte.

The method generalizes. Finding a candidate key, testing it against a guess at the plaintext and then decrypting is how many real configurations are recovered, and where the key is not stored as a string, it is found in the decryption routine instead, which lesson 0.9 does for this same specimen.

6

Reading the Target List

Each path is a response task

The target list is where scoping starts. Each path names a store on the user's machine, and each store maps to a different response task:

$ jq -r '.targets[]' config.json
%LOCALAPPDATA%\Google\Chrome\User Data\Default\Login Data  # ◄ saved passwords
%LOCALAPPDATA%\Google\Chrome\User Data\Default\Network\Cookies  # ◄ signed-in sessions
%LOCALAPPDATA%\Google\Chrome\User Data\Local State  # ◄ taken beside them
%APPDATA%\Mozilla\Firefox\Profiles\*\logins.json  # ◄ Firefox passwords
%APPDATA%\Exodus\exodus.wallet  # ◄ a crypto wallet
%USERPROFILE%\Documents\*.txt  # ◄ notes users keep

The first three are Chrome's: the saved password store, the cookie store with the user's signed-in sessions, and Local State, the browser-wide file a stealer takes along with the stores. The fourth is Firefox's saved logins, the fifth an Exodus cryptocurrency wallet, and the last every text file in Documents, where people keep notes, recovery codes and passwords they did not want to save in a browser.

Turned into tasks, that reads as follows. Every account with a password saved in either browser needs a reset. Every account with a session in the cookie store needs its sessions revoked, because a password reset does not end a session already issued. The wallet's owner has to move the funds to a new wallet. The text files need reading, because whatever they hold is now known to someone else.

Written as the record the response works from:

Response tasks from the target list

In priority order

Specimen

mw03-stealer-config.exe

Scope

the account that ran it, Chrome Default profile, Firefox

Tasks

  • 1. Revoke every session in the Chrome cookie store. Owner: identity team.
  • 2. Reset every password saved in Chrome or Firefox, accounts without a second factor first. Owner: identity team.
  • 3. Move the Exodus wallet funds to a new wallet. Owner: the wallet holder.
  • 4. Read the text files in Documents and change whatever they reveal. Owner: the user, with security.

The order of those tasks follows how fast each can be abused. Sessions come first, because a buyer can use one without any further step. Passwords come next, starting with accounts that have no second factor. The wallet's owner has to act the same day, because cryptocurrency moved is not recovered.

The text files are last, since what they hold decides what else needs changing, and they are often where the unexpected exposure is: recovery codes, a shared account's password, a note with a server address. Each task gets an owner in the record, because a list without owners is a list nobody finishes.

The paths themselves carry detail worth reading. They are written with Windows environment variables, so each resolves to the folder of whichever user ran the stealer, and a machine shared by several people exposes only the account that ran it. The Chrome paths name the Default profile only: a user with a second Chrome profile kept its passwords and cookies, and the scope says so.

Two cautions keep the list honest. A path in the configuration is what the stealer would try to read, not proof that the file existed on this laptop: if the user never ran Firefox, nothing was taken from it. And the list is the whole scope only if this is the configuration that ran, which is why the sample's hash is matched against what the host's records show executed.

7

Staging and Sending

Where the haul goes

The rest of the configuration describes the trip the data takes:

1. Read the targetseach path in the configuration, if it exists2. Copy to a folderhere %TEMP%\rd03113. Pack an archivehere rd0311.zip4. Send itover HTTPS, here to collect.example.com5. Sold as a logsearched by buyers for useful accountsOn the hostfile activityOn the networkproxy, DNSElsewheresign-ins

Staging as the configuration describes it. Steps 1 to 4 leave traces on the host and the network; step 5 is visible only in what happens next, somewhere else.

Lumma, as Microsoft describes it, sends stolen data to its servers over HTTPS in chunks, with servers behind Cloudflare's proxies and fallback addresses hidden in Steam profiles and Telegram channels. Families differ in the details; the shape is the same.

Fallback addresses matter to the response, because blocking the main server does not stop a stealer that knows where else to look for instructions. The data is gathered, packed, sent, and then sold as a log, a bundle of everything taken from one machine, which buyers search for accounts at organizations they want to reach.

The three values that describe that trip come straight out of the configuration, and each names a place to search:

$ jq -r '.stage_dir, .archive, .exfil' config.json
%TEMP%\rd0311  # ◄ search the host
rd0311.zip  # ◄ search the host
https://collect.example.com/api/v2/upload  # ◄ search the proxy

Each step leaves different evidence. Reading the targets and writing the staging folder and archive happen on the host, in file activity the endpoint records. The upload happens on the network, in proxy and DNS records. The sale leaves nothing a defender can see, and the next evidence is a sign-in by someone else.

The searches are specific. On the host: a folder created under the user's temporary directory with the staging name, files copied into it from the target paths, and an archive created there, all shortly after the stealer ran.

On the network: a lookup of the upload host and an HTTPS connection to it from the infected machine, and the size of what was sent, which says roughly how much was taken. Timing ties the two together.

That is why the configuration is described as intent. It says where the data would go. Whether it went is a question for the network records from the time of infection, and the record should keep the two apart.

8

Working With the Assistant

Prompt, session, record

Scoping a stealer is a task an assistant speeds up a great deal, and the question decides whether the scope is this sample's or the family's. Asked what the stealer steals, it answers from what stealers usually take:

OpenCode in REMnux, file namedPrepared example
What does this stealer steal?
Like most commodity stealers, it most likely takes:
  1. Saved passwords and cookies from Chrome, Edge and Firefox.
  2. Cryptocurrency wallets and documents.
  3. Everything is sent to the operator's server.
Numbered for checking against the tool output

Every line of that is plausible and none of it comes from the file. The prompt that works asks for the configuration first and the scope from it, and says what kind of claim belongs in the answer:

PromptThe prompt that works
mw03-stealer-config.exe ran on a user's laptop and is in REMnux. Recover its configuration and turn it into a scope for the response: what it would take, where it would put it, and what each item means for the response. Report only what the configuration says, and say what it cannot show. One command at a time.
  1. Recover its configurationasks for this sample's own settings, not the family's usual habits
  2. turn it into a scope for the responsesays who the answer is for and what shape it takes
  3. what each item means for the responseasks for tasks, not only a list of paths
  4. Report only what the configuration saysthe standard: nothing added from what stealers usually take
  5. say what it cannot showkeeps questions like the upload open instead of answered by assumption

With it, the assistant finds the key, proves it, writes the decoder and drafts the scope, and needs steering once:

Scoping the stealer with the assistantOpenCode in REMnux, mw03-stealer-config.exePrepared example
  1. You
    mw03-stealer-config.exe ran on a user's laptop and is in REMnux. Recover its configuration and turn it into a scope for the response: what it would take, where it would put it, and what each item means for the response. Report only what the configuration says, and say what it cannot show. One command at a time.
  2. Assistant
    Start with the strings: configurations are often encrypted with a key kept in the clear nearby.
  3. REMnux
    $ floss -q --only static -n 6 mw03-stealer-config.exe \
        | grep -A1 RIDGELINE | cut -c1-60
    RIDGELINE-SPECIMEN mw03: config decoded in memory (%u bytes,
    rdg-0311
  4. Assistant
    rdg-0311 has no obvious use as text, which makes it a candidate key. Dump the bytes just after it.
  5. REMnux
    $ od -A x -t x1 -c -j 0x7250 -N 16 mw03-stealer-config.exe
    007250  72  65  61  64  0a  00  00  00  72  64  67  2d  30  33  31  31
             r   e   a   d  \n  \0  \0  \0   r   d   g   -   0   3   1   1
    007260
    $ od -A x -t x1 -j 0x7280 -N 16 mw03-stealer-config.exe
    007280 09 46 05 58 59 5f 55 13 48 46 15 49 1d 03 02 00
    007290
  6. Assistant
    The key sits at 0x7250, and from 0x7280 the bytes are neither text nor zeros. If the configuration is JSON it begins with {", so XOR the first two bytes with that and see whether the key appears.
  7. REMnux
    $ printf '%x %x\n' $((0x09 ^ 0x7b)) $((0x46 ^ 0x22))
    72 64
  8. Assistant
    72 64 is rd in ASCII, the key's first two characters. Here is a decoder that XORs with rdg-0311, keeps the JSON and prints the targets and where the haul goes.
  9. REMnux
    $ python3 - <<'EOF'
    import json
    raw = open('mw03-stealer-config.exe', 'rb').read()[0x7280:0x7280 + 1024]
    key = b'rdg-0311'
    text = bytes(c ^ key[i % 8] for i, c in enumerate(raw)).decode('latin-1')
    json.dump(json.JSONDecoder().raw_decode(text)[0], open('c.json', 'w'))
    EOF
    $ jq -r '.targets[]' c.json
    %LOCALAPPDATA%\Google\Chrome\User Data\Default\Login Data
    %LOCALAPPDATA%\Google\Chrome\User Data\Default\Network\Cookies
    %LOCALAPPDATA%\Google\Chrome\User Data\Local State
    %APPDATA%\Mozilla\Firefox\Profiles\*\logins.json
    %APPDATA%\Exodus\exodus.wallet
    %USERPROFILE%\Documents\*.txt
    $ jq -r '.archive, .exfil' c.json
    rd0311.zip
    https://collect.example.com/api/v2/upload
  10. Assistant
    Scope: saved passwords and cookies from Chrome, its Local State, Firefox logins, an Exodus wallet and text files in Documents, plus Edge passwords, which stealers like this also take.
  11. You
    Edge is not in the list. Keep to what the configuration says.
  12. Assistant
    Corrected: no Edge. The haul is zipped as rd0311.zip and set to go to collect.example.com; whether it was sent is in the proxy logs, not the file. The cookie store means sessions are stolen, so revoke them before resetting passwords. The wallet needs its owner, and the text files need someone to read what they held.
REMnux turns are the commands as run, with their output

The one slip was the habit the weak prompt invited: Edge, added because stealers like this usually take it. The prompt had already set the standard, so the reply only had to point at the list, and the corrected scope is better than most analysts would write in the same time, with the upload kept open and the session revocation put before the password reset.

The time saved is concentrated in the middle of the session. The known-plaintext probe and the decoder are each a few minutes' work by hand, and the step from a list of paths to a list of response tasks, which the last turn does, is the part that turns analysis into something a response lead can act on.

The scope goes to the response on three facts, each from the decrypted configuration or from the records that settle what it cannot:

What the scope rests on

What it takes

the decrypted target list, path by path

Sessions stolen

the Chrome Cookies path is in the list: revoke before the reset

What stays open

whether rd0311.zip was sent: the proxy and DNS records decide it

Each line has a reader. The target list goes to the identity team as the scope of revocations and resets, the open question about the upload goes to whoever holds the proxy logs, and the wallet and the text files go to the people who own what they held.

Do

Practice

What did this stealer take?
prepared evidence

The scenario below holds the working session and the decrypted configuration from this lesson. Decide how to steer the assistant, then choose the response steps the target list makes necessary.

In the lab, run the same commands on mw03-stealer-config.exe in your REMnux machine, then work the file in OpenCode, started in the pack's lab folder, using the prompt above, and steer it back to the list whenever it adds what stealers usually take. The pack's answers.json holds the configuration and the key.

An infostealer takes what a machine knows about its user, and the breach it enables happens later, somewhere else, when a buyer signs in with a stolen password or session. Stealers are sold as a service, so the same family arrives by many routes and with many configurations.

The configuration is the evidence that matters: recovered from the file, it gives the targets, which become response tasks, and the staging and upload settings, which become searches. It describes intent; the host and network records show what happened.

Resources

Vendors and projects revise these pages; where a page and this lesson disagree, the page is newer.