Windows PowerShell Credential Guessing via LDAP using System.Net.NetworkCredential

Detects PowerShell scripts referencing LDAP connection and .NET network credential handling, potentially indicating remote credential access activity.

FreeReviewedSigma · Low · v2
Product
windows
Category
ps_script
Author
frack113 (SigmaHQ), DRL 1.1
Published
2021-12-27
Updated
2026-07-31

ATT&CK techniques

Cred Access
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags PowerShell script block content that constructs LDAP connections and uses System.Net.NetworkCredential, which can be used to repeatedly try credential values against remote accounts. Credential guessing and brute-force attempts matter because they seek access by iterating authentication attempts without valid prior credentials. The detection relies on Script Block Logging telemetry to match specific .NET classes and LDAP connection patterns within executed PowerShell code.

Related detections4 linkedT1110.001 — drag to rearrange
Suspicious Bruteforce via Password Reset (via security)
Suspicious sshpass Noninteractive SSH Password Authentication (via process_creation)
Windows SMB Client Security: Rejected Guest Logon with Blank UserName
Windows Process Creation: Hydra Password Bruteforce Command-Line Parameters
Windows PowerShell Credential Guessing via LDAP using System.Net.NetworkCredential
Pivot detection · T1110.001 · 4 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.