Join our Newsletter — 33% off our NHI Course
Foundations & NHI Taxonomy

SAMRPC

← Back to Glossary
By NHI Mgmt Group Updated November 9, 2026 Domain: Foundations & NHI Taxonomy

SAMRPC is Microsoft’s Security Account Manager Remote Protocol, used for remote calls to the local Security Account Manager database on Windows systems. It supports account and group management functions and is commonly exposed through SMB-related administration paths, so access to it can affect local credential and privilege control.

What SAMRPC Does and Why It Matters

SAMRPC is the Windows remote interface used to query and manage local Security Account Manager data, including account and group operations. Because it sits on a path to local credential and privilege control, it is not just another management protocol: it can become a direct administrative trust boundary if exposed or misused.

In practice, SAMRPC matters because it touches the identity store that governs local principals and their group membership. If an attacker reaches it with sufficient rights, the protocol can be used to change who has access on the host, which makes exposure far more consequential than a simple service availability issue.

Where SAMRPC Fits in Windows Administration

SAMRPC is commonly reached through SMB-related administration paths, so it often appears alongside other remote management traffic rather than as a standalone service. That makes it part of the wider Windows administrative surface, where remote convenience and local authority are tightly coupled.

The practical security implication is that access to the protocol should be treated as privileged access to the machine itself. It is especially important on systems that still permit broad remote administration, because the protocol can become reachable through pathways that were intended for legitimate operator use.

For a broader control view of local authentication and access handling, NIST SP 800-53 Rev 5 Security and Privacy Controls is useful for mapping access control, identification, authentication and audit expectations to this kind of administrative interface.

Exposure, Abuse, and Control Boundaries

The core risk is not that SAMRPC exists, but that it can be reachable in environments where remote administration is too broad, too loosely segmented, or insufficiently monitored. When that happens, local account and group management may be influenced from paths that were never meant to carry routine user traffic.

Because SAMRPC is tied to local security state, misuse can translate into privilege changes, altered group membership, or support for follow-on credential abuse. That makes it a control boundary worth constraining with network restrictions, administrative tiering, and strong host hardening.

Windows hardening guidance such as CIS Benchmarks is relevant here because the protocol is usually governed by the same host, service, and network exposure decisions that determine how much remote administrative surface remains available.

Detection and Response Considerations

Monitoring should focus on unexpected remote account or group-management activity, especially where the source host, timing, or admin account usage does not match normal operations. Changes to local administrators, service accounts, or privileged local groups deserve particular attention because they may indicate that the protocol has been used to alter trust on the endpoint.

Post-incident review should include the host’s administrative pathways, not just the immediate account change. If SAMRPC was reachable during compromise, investigators should assume the attacker may have used a legitimate management path to blend in with normal Windows administration activity.

MITRE ATT&CK Enterprise Matrix helps place this kind of behaviour into a detection and response workflow, especially where adversaries abuse administrative channels to support privilege escalation or lateral movement.

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 NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeSAMRPC governs privileged local account and group control, so access should be limited to authorized admins.
IA-2 — Identification and Authentication (Organizational Users)Remote SAMRPC use depends on proving administrative identity before account changes are allowed.
AU-2 — Event LoggingRemote local account and group changes need audit trails for detection and review.
Recommendation — Restrict SAMRPC reachability and usage to least-privilege administrative paths. Require strong admin authentication before permitting remote account-management actions. Log SAMRPC-driven account and group activity for incident detection and forensic review.
CIS Controls v8CIS-6 — Access Control ManagementSAMRPC exposure is governed by who can reach and use administrative access paths on the host.
CIS-8 — Audit Log ManagementChanges made through SAMRPC should be recorded and retained for investigation.
Recommendation — Limit administrative access paths that expose SAMRPC to only approved management channels. Centralize and review logs for remote account and group-management activity.
MITRE ATT&CKT1098 — Account ManipulationSAMRPC can be used to alter local accounts and groups, matching account-manipulation behaviour.
Recommendation — Map suspicious SAMRPC activity to account-manipulation detections and response playbooks.

Practitioner Guidance

Why practitioners should care: SAMRPC is one of those Windows interfaces where remote convenience directly touches local authority. If you allow it too broadly, you increase the chance that account and group control on the host can be influenced from an overexposed administration path.

What to watch for: Treat unexpected remote use of local account-management functions as a security event, especially on systems that should only be administered from known management networks. The key question is whether the observed source and account align with expected privileged administration, not merely whether the action succeeded.

Practitioner takeaway: Manage SAMRPC as a privileged administrative surface, not a routine protocol, and align its reachability with the minimum network and access paths needed for legitimate operations.

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 November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org