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 with CommadnLine conditions "Testing Line Dllhost.exe exclusion" #74

Open
johnyb0312 opened this issue Jun 8, 2019 · 5 comments

Comments

@johnyb0312
Copy link

Any:

Trying to understand config fully.

Under ProcessCreate onmatch='exclude' I expect that all processes created on the system running sysmon to be logged except what we specify in the stanza's below.

Line 76: C:\Windows\system32\DllHost.exe /Processid

When the system creates a service using DLLHost.exe from system32 the system "does not" log the event. This is expected.

When I attempt to invoke the process interactively from "cmd.exe" the system logs the event.

Can someone explain why this is and what I need to do to test this rule interactively or explain why I cannot?

@SwiftOnSecurity
Copy link
Owner

I'm sorry can you provide the complete line you're testing?

@ClintRajaniemi
Copy link

I'm new to working with Sysmon and I'm interested in this too.
This is under Event ID 1 section. I've grabbed a few extra lines for context.

<!--DATA: UtcTime, ProcessGuid, ProcessID, Image, FileVersion, Description, Product, Company, CommandLine, CurrentDirectory, User, LogonGuid, LogonId, TerminalSessionId, IntegrityLevel, Hashes, ParentProcessGuid, ParentProcessId, ParentImage, ParentCommandLine-->
	<ProcessCreate onmatch="exclude">
		<!--SECTION: Microsoft Windows-->
		<CommandLine condition="begin with">C:\Windows\system32\DllHost.exe /Processid</CommandLine> <!--Microsoft:Windows-->
			

@johnyb0312
Copy link
Author

johnyb0312 commented Jun 30, 2019

Sorry, I have been away for a few days.

Upgraded to 10.2 with same issues.

<RuleGroup name="" groupRelation="or"> <ProcessCreate onmatch="exclude"> <!--SECTION: Microsoft Windows--> <CommandLine condition="is">C:\Windows\system32\wermgr.exe -upload</CommandLine> <!--Windows:Windows error reporting/telemetry-->

wermgr cmd line execution
wermgr_evt2

@cyberkryption
Copy link

cyberkryption commented Jul 2, 2019 via email

@cyberkryption
Copy link

cyberkryption commented Jul 2, 2019 via email

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

4 participants