RDP Saved Password (.rdp file)

Detects DPAPI-encrypted saved passwords stored in Windows Remote Desktop Protocol (.rdp) configuration files. The characteristic line "password 51:b:<base64-blob>" contains a DPAPI ciphertext blob representing a saved RDP credential. These files are frequently found on file shares, workstations, and in source-control repositories and represent a high-severity finding because the blob can be decrypted on the originating machine under the same user context. Mirrors Snaffler rule KeepRdpPasswords.

Type
regex
Engine
boost_regex
Confidence
high
Confidence justification
High confidence: the literal token "51:b:" is unique to the RDP file format's password storage mechanism and does not appear in other file types. The trailing base64 blob of at least 16 characters confirms a real credential rather than a truncated or template placeholder. False positive rate is extremely low.
Jurisdictions
global
Regulations
Computer Fraud and Abuse Act (CFAA), Criminal Code Act 1995 (Cth), Cybersecurity Maturity Model Certification (CMMC), Network and Information Systems (NIS) Directive
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

password\s+51:b:[A-Za-z0-9+/=]{16,}

Corroborative evidence keywords

[object Object], [object Object], prompt for credentials, rdp, remote desktop, .rdp, [object Object]

Proximity: 300 characters

Should match

Should not match

Known false positives

Collections