🔥 3-day streak
Professional Security Operations Engineer234 / 241
Question 234 of 241
A detection engineer writes a YARA-L single-event rule to catch suspicious PowerShell execution. The intent is: alert when a process is powershell.exe AND either the command line contains '-enc' OR the command line contains 'DownloadString'. The current condition reads: $e.principal.process.file.full_path = /powershell\.exe$ and re.regex($e.target.process.command_line, `-enc`) or re.regex($e.target.process.command_line, `DownloadString`). After deployment, the rule fires on many benign events where the command line merely contains 'DownloadString' from unrelated non-PowerShell processes. What is the root cause and best fix?
Reviewed for accuracy · Report an issueNext question