Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› Remote Service Execution (PsExec, SMBExec)
Threats, Abuse & Incident Response

Remote Service Execution (PsExec, SMBExec)

← Back to Glossary
By NHI Mgmt Group Updated October 20, 2026 Domain: Threats, Abuse & Incident Response

Remote Service Execution is a technique for running commands on a remote Windows system by creating or controlling a service, often over SMB. Tools such as PsExec and SMBExec are commonly associated with this method. Defenders should monitor service creation, administrative share use, and remote execution from management hosts that do not normally perform it.

How remote service execution works

Remote service execution on Windows works by creating, starting, or controlling a service on the target host so commands run in a system context. PsExec and SMBExec are common examples because they rely on administrative access and Windows service control primitives.

This technique is attractive to attackers and administrators alike because it turns existing management capability into code execution. The key security boundary is not the tool name itself, but whether a host is allowed to create services remotely and whether that action is expected from the source system.

Why PsExec and SMBExec are high-value intrusion techniques

These tools are often used after an initial foothold to move laterally, execute payloads, and expand control across Windows environments. They are especially useful when the attacker already has valid credentials, because they can blend into normal administrative activity while still delivering high-impact execution.

The technique becomes more dangerous when administrative shares, service control, and remote management are broadly reachable. If an operator can create a service on many systems, then a single compromised account can become a repeatable path to fleet-wide execution.

For defenders, this is the same family of behaviour covered in NHIMG's Lateral Movement Guide, especially where SMB admin shares and remote services are used together.

What defenders should watch for

Remote service execution is usually visible if you know where to look: unusual service creation, remote service start events, admin share access such as C$ or ADMIN$, and command execution from management hosts that do not normally perform it. A service name, binary path, or parent process that looks out of place can be a useful early clue.

Detection improves when service creation is correlated with authentication logs and network activity. A remote logon followed by service installation and immediate process execution on the target is a classic pattern, especially when the source host is not a standard administration workstation.

Normal administration traffic should form a stable baseline. If a user, workstation, or jump host begins using PsExec-style behaviour outside its usual role, that change in pattern is often more important than the specific tool used.

Controlling exposure and reducing blast radius

Reducing exposure starts with limiting who can administer Windows systems remotely and where that administration is allowed to originate. Segmentation, tighter control of admin shares, and separate management paths help prevent a compromised workstation from becoming a launch point for service-based execution.

Because these tools depend on valid access, hardening credential handling matters as much as endpoint hardening. Tiered administration, unique admin accounts, and reduced reuse of privileged credentials make it harder for a single compromise to support broad lateral execution.

For Windows environments, the general defensive model in Remote Desktop (RDP) Security Guide is also relevant here, because both techniques depend on constraining privileged remote administration paths rather than trusting them by default.

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.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1021.002 — Remote Services: SMB/Windows Admin SharesRemote service execution over SMB aligns directly with ATT&CK's SMB admin-share lateral movement technique.
Recommendation — Map remote service activity to T1021.002 and alert on unexpected service creation from non-admin hosts.
CIS Controls v8CIS-6 — Access Control ManagementConstraining remote execution depends on limiting and reviewing administrative access paths and privileges.
Recommendation — Restrict remote admin rights and review who can invoke service-based execution across Windows systems.
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeRemote service execution becomes dangerous when broad administrative privilege enables service creation at scale.
AU-12 — Audit GenerationDetection of PsExec/SMBExec relies on generating logs for service creation, remote logon, and process execution.
CM-7 — Least FunctionalityReducing exposed management features and admin share reachability directly lowers the attack surface for remote execution.
Recommendation — Apply AC-6 to limit service-creation and remote administration rights to only approved operators. Generate and retain audit records for remote service creation and execution events. Disable or constrain unnecessary remote administration pathways and services to shrink execution exposure.

Practitioner Guidance

Why practitioners should care: Remote service execution is a common bridge from initial access to lateral movement, so it deserves the same operational attention as remote shell access or credential theft. If it is normal in your environment, it should be tightly scoped, monitored, and attributable.

What to watch for: Focus on source hosts, remote service creation patterns, and service binaries that appear only during short execution windows. The most useful signal is often a mismatch between the host performing the action and its normal administrative role.

Practitioner takeaway: Treat PsExec-style activity as a privileged control path, not a convenience feature, and make sure your monitoring can distinguish approved remote administration from lateral execution.

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.

NHIMG Editorial Note
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