elastic / detection-rules

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

[Meta] Evaluate moving PowerShell Rules to ES|QL #4095

Open w0rk3r opened 2 weeks ago

w0rk3r commented 2 weeks ago

Epic Link

No response

Meta Summary

Summary

Interacting with PowerShell logs has been complicated for a long time, as EQL doesn't support text fields. For them to work with KQL, we needed to adjust field types, analyzers, etc. Then in 8.12 we had bugs in how KQL parses backslashes & wildcards and had to adapt and use Query DSL for exceptions.

This issue aims to evaluate whether using ES|QL and the TO_LOWER function can simplify rule writing and maintenance/tuning.

Estimated Time to Complete

1 week

Potential Blockers

Tasking

### Meta Tasks
- [ ] Convert sample queries and test with PowerShell data
- [ ] Evaluate if `min_stack` is needed for ES|QL functions or language changes
- [ ] Convert rules and exceptions
- [ ] PR to detection rules

Potential References