Join our Newsletter — 33% off our NHI Course

Sqldumper.exe (Windows LOLBin)

Sqldumper.exe is a Microsoft SQL Server diagnostic utility that collects crash and hang dumps for troubleshooting. Attackers abuse it to create memory dumps that may expose credentials, tokens or application secrets, and to run code under service contexts. Defenders should monitor unexpected dump creation and use outside approved SQL troubleshooting.

What Sqldumper.exe Is and Why It Matters

Sqldumper.exe is a Microsoft SQL Server diagnostic utility, but it is also a dual-use Windows LOLBin. Because it can create process memory dumps, it may expose credentials, tokens, and application secrets if it is invoked outside normal troubleshooting.

That dual-use character is what makes it operationally important. A tool intended for crash analysis can be repurposed to collect sensitive memory from a live service context, so defenders should treat unexpected dump creation as both a troubleshooting event and a potential security signal.

How Sqldumper.exe Is Abused in Living-off-the-Land Activity

Attackers value Sqldumper.exe because it can blend into legitimate administration and because dump files can contain far more than application state. If the target process holds passwords, session material, connection strings, or other sensitive runtime data, the resulting dump becomes a rich source of post-compromise intelligence.

In practice, this kind of abuse is a form of living-off-the-land tradecraft: the binary itself is trusted, signed, and often present in SQL Server environments, so it can be used to reduce the visibility that would normally come with a custom dumping tool. NHIMG’s Living off the Land Guide is useful background on how dual-use binaries are abused, mapped, and detected.

For defenders, the key question is not whether Sqldumper.exe exists on a host, but whether its use matches a known SQL troubleshooting workflow. Unexpected command-line arguments, unusual parent processes, or execution on systems that do not normally host SQL diagnostics are all reasons to investigate.

What Defenders Should Watch For

Sqldumper.exe is most concerning when it appears in environments where crash-dump collection is not expected, or when it is used to target sensitive services rather than SQL Server itself. A dump of an application process can become a shortcut to secrets that were never meant to be written to disk.

Detection should focus on the surrounding behaviour as much as the binary itself. Monitor process creation, command lines, dump-file creation, and the location where the dump is written. Correlate those events with change windows, approved support activity, and known SQL maintenance tasks so that legitimate diagnostics are separated from abuse.

Attackers may also chain dump collection with later credential theft or lateral movement, especially if the dumped process contains reusable authentication material. MITRE ATT&CK Enterprise Matrix provides the broader adversary model for credential access, privilege escalation, and post-exploitation behaviour that often follows memory dumping.

Safer Use, Review, and Response

Sqldumper.exe should be governed as an approved diagnostic capability, not a routine system utility. Restrict who can run it, where it can run, and which hosts are allowed to generate dumps, then verify that those conditions match actual support procedures.

If a suspicious dump is created, review the host for exposed secrets, the user context under which the utility ran, and any follow-on activity that suggests the dump was used for theft rather than troubleshooting. Because the utility can surface sensitive runtime material, response often needs to include password, token, or key rotation for anything that may have been present in memory at the time.

Use application control and alerting to reduce ambiguity: if the utility is only needed in narrow support cases, make those cases explicit and detectable. CIS Benchmarks are a practical reference point for hardening and limiting administrative abuse paths on Windows systems that host sensitive services.

Risk and Threat Considerations

Sqldumper.exe creates security risk because a legitimate dump can capture live secrets, and a malicious dump can quietly turn a troubleshooting tool into a credential-exposure mechanism. The main danger is not the binary itself, but the sensitive memory it can collect when used outside controlled support workflows.

Failure mechanism: An attacker or careless operator invokes the utility against a process that holds authentication material, then extracts secrets from the resulting dump file before detection or cleanup occurs.

Impact: Exposed credentials, tokens, or application secrets can enable account takeover, service abuse, and lateral movement, and the dump file itself can become a durable source of compromise evidence.

Standards & Framework Alignment

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

MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
MITRE ATT&CK T1003 — OS Credential Dumping Sqldumper.exe is abused to dump memory and expose credentials or secrets.
Recommendation — Map dump-creation telemetry to T1003 and hunt for credential access after suspicious Sqldumper.exe use.
CIS Controls v8 CIS-8 — Audit Log Management Unexpected dump creation is best detected through endpoint and command-line auditing.
CIS-2 — Inventory and Control of Software Assets Approved versus unexpected presence and use of the utility depends on knowing where it should exist.
Recommendation — Centralise process and file-creation logs so suspicious dump activity is alertable. Maintain an inventory of hosts permitted to run SQL diagnostic utilities and alert on exceptions.
NIST SP 800-53 Rev 5 AU-12 — Audit Record Generation Detecting abusive dump creation depends on reliable generation of process and file audit records.
SI-4 — System Monitoring Sqldumper.exe abuse is a monitoring problem involving anomalous utility execution and file creation.
Recommendation — Generate audit records for process creation and dump-file activity on sensitive SQL hosts. Monitor for unusual Sqldumper.exe execution, parentage, and dump-file paths on production systems.

Practitioner Guidance

What to watch for: Treat unexpected Sqldumper.exe execution as a high-value event when it appears on hosts without active SQL troubleshooting, or when it writes dumps in nonstandard locations. That is often the clearest signal that a trusted utility is being used outside its intended purpose.

Governance implication: Define approved use cases, approved operators, and approved hosts for dump creation, then make those boundaries visible to monitoring and incident response. The more explicit the normal workflow, the easier it becomes to spot abuse without chasing every legitimate support action.