elastic / detection-rules

https://www.elastic.co/guide/en/security/current/detection-engine-overview.html
Other
1.85k stars 462 forks source link

[Bug] Microsoft IIS Service Account Password Dumped doesn't match the command arg #3807

Open fdartayre opened 1 week ago

fdartayre commented 1 week ago

Describe the bug

The query of the Microsoft IIS Service Account Password Dumped rule is:

process where host.os.type == "windows" and event.type == "start" and
   (process.name : "appcmd.exe" or ?process.pe.original_file_name == "appcmd.exe") and
   process.args : "/list" and process.args : "/text*password"

process.args : "/list" doesn't match the list command argument as described in Microsoft documentation.

To Reproduce

  1. The rule doesn't detect appcmd list apppool /text:processmodel.password
  2. Replacing process.args : "/list" with process.args : "list" in the rule fixes it