Unattend.xml Administrator/AutoLogon Password

Detects plaintext passwords stored in Windows unattend.xml answer files, specifically the AdministratorPassword and AutoLogon <Value> XML elements used during Windows automated setup. These files frequently contain Administrator or auto-logon credentials in cleartext and represent a high severity finding when discovered on file shares or in software repositories. Mirrors Snaffler rule KeepUnattendXmlRegexRed.

Type
regex
Engine
boost_regex
Confidence
high
Confidence justification
High confidence: the XML element structure (<AdministratorPassword> or <AutoLogon> containing a <Value> child with non-empty content) is highly specific to Windows unattend answer files. False positives from XML fragments sharing this exact nesting are extremely rare.
Jurisdictions
global
Regulations
Criminal Code Act 1995 (Cth), Computer Fraud and Abuse Act (CFAA), Cybersecurity Maturity Model Certification (CMMC)
Frameworks
CIS Controls, ISO 27001, NIST CSF
Data categories
credentials, security, configuration
Scope
specific
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Compatible

Pattern

<AdministratorPassword>[\s\S]{0,30}<Value>[^<]{1,200}</Value>

Corroborative evidence keywords

urn:schemas-microsoft-com:unattend, UserAccounts, AutoLogon, cpassword, LocalAccounts, PlainText, unattend.xml, autounattend.xml

Proximity: 300 characters

Should match

Should not match

Known false positives

Collections