Microsoft Defender Sensor Configuration with Credentials

Detects Microsoft Defender for Identity (MDI) SensorConfiguration.json files containing DirectoryServicesAccount credentials and Microsoft Defender for Endpoint (MDE) mdatp_managed.json files containing onboardingInfo blobs, both of which represent high-value security tool configuration secrets. Mirrors Snaffler rule KeepDefenderConfigByName.

Type
regex
Engine
boost_regex
Confidence
medium
Confidence justification
Medium confidence: the DirectoryServicesAccount + Password co-occurrence is specific to MDI sensor config and highly unlikely in other JSON files. The onboardingInfo form is less structurally constrained. Both patterns are flagged as plausible-but-unverified against actual Defender on-disk formats; false positives are possible if other security tools use similar field names.
Jurisdictions
global
Regulations
Criminal Code Act 1995 (Cth)
Frameworks
CIS Controls, ISO 27001, NIST CSF
Data categories
credentials, security
Scope
specific
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Unsupported

Pattern

"DirectoryServicesAccount"[\s\S]{0,200}"(?:Password|EncryptedPassword)"\s*:\s*"[^"]{6,}"

Corroborative evidence keywords

DirectoryServicesAccount, onboardingInfo, SensorConfiguration, mdatp, cloudService, DefenderForIdentity, MicrosoftDefender

Proximity: 300 characters

Should match

Should not match

Known false positives

Collections