Sigma rule: PowerShell Credential Prompt

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-8e24bbd94636, updated 2022-12-25T00:00:00.000Z.

Rule

Title
PowerShell Credential Prompt
Status
test
Level
high
Author
John Lambert (idea), Florian Roth (Nextron Systems)
Date
2017-04-09
Modified
2022-12-25
File
rules/windows/powershell/powershell_script/posh_ps_prompt_credentials.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects PowerShell calling a credential prompt

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection:
    ScriptBlockText|contains: 'PromptForCredential'
condition: selection

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.credential-access
  • attack.execution
  • attack.t1059.001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_prompt_credentials.yml

Sources and licences

  • SigmaHQ

    "PowerShell Credential Prompt" by John Lambert (idea), Florian Roth (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_prompt_credentials.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: PowerShell Credential Prompt",
entity page, dataset version ref-8e24bbd94636, updated 2022-12-25T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ca8b77a9-d499-4095-b793-5d5f330d450e (accessed 2026-11-03).
Underlying source: SigmaHQ rule ca8b77a9-d499-4095-b793-5d5f330d450e, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.