ms-rodc 0.1.0

Read-Only Domain Controller (RODC) audit primitives for Active Directory: RODC discovery, per-RODC krbtgt account (krbtgt_NNNNN) naming, msDS-RevealedList / msDS-NeverRevealGroup / msDS-RevealedUsers exposure audit, and RODC-scoped TGT shape checks.
Documentation
  • Coverage
  • 90.91%
    30 out of 33 items documented0 out of 12 items with examples
  • Size
  • Source code size: 18.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 263.0 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • icedracon

ms-rodc

Read-Only Domain Controller (RODC) audit primitives for Active Directory, in pure Rust.

RODCs carry their own attack surface that regular DC audits miss: per-RODC krbtgt accounts, a Password Replication Policy that decides which principals get cached locally, and a msDS-RevealedList that says what actually has been. If a Tier-0 account shows up in an RODC's revealed list, physical compromise of that RODC hands the attacker a live secret. This crate gives you the primitives to catch that.

use ms_rodc::{RodcObject, RevealAudit, RevealTier, ldap_filter_rodc_computers, RODC_AUDIT_ATTRS};

// Enumerate RODCs with your LDAP client of choice, decode into RodcObjects.
let rodcs: Vec<RodcObject> = /* ... */;

let audit = RevealAudit {
    rodcs: &rodcs,
    classify: |dn| classify_from_bloodhound(dn),
};
for f in audit.run() {
    println!("{}: tier-0 principal {} cached", f.rodc_dn, f.principal_dn);
}

What it gives you

  • RodcObject::from_attrs — decode an RODC computer object.
  • per_rodc_krbtgt_dn / per_rodc_krbtgt_sam — build the expected per-RODC krbtgt DN from a numeric suffix.
  • is_per_rodc_krbtgt_sam — cheap krbtgt_NNNNN shape check with numeric extraction.
  • RevealAudit — flag Tier-0 principals present in an RODC's msDS-RevealedList.
  • ldap_filter_rodc_computers / ldap_filter_krbtgt_all / ldap_filter_per_rodc_krbtgt — ready LDAP filters.
  • RODC_AUDIT_ATTRS / KRBTGT_AUDIT_ATTRS — attribute lists for LDAP search.

What it doesn't do

  • No LDAP transport. Plug in whatever you use.
  • No forgery for the per-RODC krbtgt key — that lives in ms-pac-forge once you've extracted the key.
  • No AP-REQ inspection to distinguish where a ticket was issued (RODC vs writable DC) — future work.

License

MIT