Skip to main content

Crate ms_nrpc

Crate ms_nrpc 

Source
Expand description

§ms-nrpc

MS-NRPC (Netlogon) — the minimum secure-channel setup needed to detect Zerologon (CVE-2020-1472) without touching the machine password.

§Scope

  • secure_channel — NDR encoders for NetrServerReqChallenge and NetrServerAuthenticate3, plus the AES-128-CFB8 primitive and the HMAC-SHA256 session-key derivation from MS-NRPC 3.1.4.3.1.
  • detect — a read-only Zerologon probe that establishes an authenticated session with the all-zero client credential and reports whether the DC accepted it. Never sets the machine password.

§Deliberately not here

NetrServerPasswordSet2 (the destructive step that zeroes the machine password) and the corresponding restore flows are intentionally NOT included. Those live inside adhammer as an internal, gated module so this crate stays useful to defenders (hunt-friendly) without shipping a ready-made DC-bricking primitive on crates.io.

Modules§

detect
Read-only Zerologon (CVE-2020-1472) probe.
secure_channel
MS-NRPC secure-channel primitives: interface identity, opnums, NDR encoders for the two calls needed to reach the Zerologon decision point, plus the AES-128-CFB8 credential cipher and HMAC-SHA256 session-key derivation.