SQLToolsPS.exe is a Microsoft SQL Server PowerShell-related executable used for SQL administration tasks. Attackers can abuse it as a living-off-the-land binary to run code through a trusted component and hide in administrative traffic. Defenders should monitor unusual launches, command-line abuse, and executions that are not tied to legitimate database management work.
What this LOLBin is doing under the hood
SQLToolsPS.exe is not dangerous because it is obscure, it is dangerous because it sits inside an administrative workflow that defenders may already trust. As a Microsoft SQL Server PowerShell-related executable, it can be used as intended for database administration, but it can also be abused to launch code through a signed, familiar component and blend into legitimate operations.
The security problem is not the presence of a management binary by itself. The problem is that attacker activity can inherit the credibility of ordinary DBA tooling, which makes execution review harder than it would be for a clearly hostile dropper or script host.
Why it is attractive for abuse
Living off the land works when the attacker can borrow normality. A trusted executable can bypass crude allowlists, inherit execution context from approved administrative paths, and create noise that looks like routine support work. That makes SQLToolsPS.exe useful in post-compromise tradecraft when an adversary wants to reduce suspicion while executing code on a Windows host.
Living off the Land Guide explains how dual-use Windows utilities, proxy execution, and command-line abuse are commonly chained, which is the same abuse pattern defenders should consider here. In practice, the more closely an execution resembles normal admin activity, the more likely it is to evade casual review.
How defenders should evaluate exposure
Exposure starts with knowing where the binary exists, where it is permitted to run, and which teams actually use it. If SQL administration tooling appears on endpoints that do not support database work, or launches from user workstations rather than managed admin systems, the likelihood of abuse rises sharply.
Review command-line patterns, parent-child process relationships, and whether executions occur during real maintenance windows. A launch is more suspicious when it is not tied to a change ticket, database task, or approved remote administration path. That context matters because the same binary can be benign in one environment and highly suspicious in another.
Use the vendor's own documentation and Microsoft security guidance to confirm normal behavior and legitimate administrative use, rather than trying to infer allowlist decisions from the filename alone.
Detection and response priorities
Detection should focus on abnormal launches, unusual arguments, and executions that do not line up with known SQL administration work. Process creation telemetry, PowerShell logging, and command-line auditing are especially useful when they show the binary being invoked from unexpected paths or by unusual parent processes.
MITRE ATT&CK Enterprise Matrix is the right reference point for mapping this behavior to proxy execution, command interpretation, and adjacent post-compromise activity. That mapping helps defenders decide whether they are seeing a one-off misuse of admin tooling or part of a wider intrusion chain.
If abuse is confirmed, review what the process touched, what child processes were spawned, and whether the host shows signs of lateral movement or credential abuse. For a LOLBin, the executable is often only the carrier, not the end goal.
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 | T1218 — Signed Binary Proxy Execution | SQLToolsPS.exe abuse relies on trusted signed utilities to execute attacker-controlled activity. |
| Recommendation — Map suspicious launches to signed proxy execution patterns and hunt for adjacent persistence or lateral movement. | ||
| CIS Controls v8 | CIS-8 — Audit Log Management | Detection of abnormal SQLToolsPS.exe use depends on process and command-line logging. |
| Recommendation — Centralize and review process and command-line telemetry for unauthorized administrative tool use. | ||
| NIST SP 800-53 Rev 5 | SI-4 — System Monitoring | Monitoring unusual execution of admin binaries is a direct system-monitoring control use case. |
| AU-12 — Audit Record Generation | Process creation and command-line records are needed to investigate misuse of the utility. | |
| CM-7 — Least Functionality | Restricting unnecessary execution of admin tools reduces LOLBin abuse opportunities. | |
| Recommendation — Apply SI-4 to alert on unapproved SQLToolsPS.exe execution paths and arguments. Generate audit records for process creation and command-line activity involving database admin tools. Limit SQLToolsPS.exe availability to systems and users that truly need database administration. | ||
Practitioner Guidance
What to watch for: Treat this binary as a monitored administrative utility, not as a ban-by-name candidate. The strongest signal is not that it exists, but that it runs outside normal DBA context, from unexpected parents, or with arguments that do not match routine database maintenance.
Governance implication: Define who may use SQL administration tooling, from where, and under what change-control conditions. That makes it easier to separate legitimate work from adversary use without blocking valid operations.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org