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 ;
// Enumerate RODCs with your LDAP client of choice, decode into RodcObjects.
let rodcs: = /* ... */;
let audit = RevealAudit ;
for f in audit.run
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— cheapkrbtgt_NNNNNshape check with numeric extraction.RevealAudit— flag Tier-0 principals present in an RODC'smsDS-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-forgeonce you've extracted the key. - No AP-REQ inspection to distinguish where a ticket was issued (RODC vs writable DC) — future work.
License
MIT