Hi Franco,
Here is an alert:
----------------------------------------------------------------------------------------------------
</meta>
<result offset='0'>
<field k='_raw'><v xml:space='preserve' trunc='0'>{";timestamp";:";2023-07-26T19:00:07.891+0300";,";rule";:{";level";:12,";description";:";Sysmon - Suspicious Process - powershell.exe";,";id";:";100000";,";firedtimes";:1,";mail";:true,";groups";:[";windows";,"; sysmon";]},";agent";:{";id";:";699";,";name";:";addc";,";ip";:";10.111.111.111";},";manager";:{";name";:";wazwor-01p";},";id";:";1690387207.4792811172";,";cluster";:{";name";:";wazuh";,";node";:";worker1";},";decoder";:{";name";:";windows_eventchannel";},";data";:{";win";:{";system";:{";providerName";:";Microsoft-Windows-Sysmon";,";providerGuid";:";{5770385f-c22a-43e0-bf4c-06f5698ffbd9}";,";eventID";:";1";,";version";:";5";,";level";:";4";,";task";:";1";,";opcode";:";0";,";keywords";:";0x8000000000000000";,";systemTime";:";2023-07-26T16:00:06.792478000Z";,";eventRecordID";:";9408502";,";processID";:";3652";,";threadID";:";4560";,";channel";:";Microsoft-Windows-Sysmon/Operational";,";computer";:";addc";,";severityValue";:";INFORMATION";,";message";:";\";Process Create:\r\nRuleName: -\r\nUtcTime: 2023-07-26 16:00:06.773\r\nProcessGuid: {912fddc4-4306-64c1-c943-020000000f00}\r\nProcessId: 8500\r\nImage: C:\\Windows\\System32\\cmd.exe\r\nFileVersion: 10.0.17763.1697 (WinBuild.160101.0800)\r\nDescription: Windows Command Processor\r\nProduct: Microsoft® Windows® Operating System\r\nCompany: Microsoft Corporation\r\nOriginalFileName: Cmd.Exe\r\nCommandLine: C:\\Windows\\system32\\cmd.exe /c \";\";c:\\Program Files\\SplunkUniversalForwarder\\etc\\apps\\inputs\\bin\\runpowershell.cmd\"; nt6-repl-stat.ps1\";\r\nCurrentDirectory: C:\\Windows\\system32\\\r\nUser: NT AUTHORITY\\SYSTEM\r\nLogonGuid: {912fddc4-7211-64b1-e703-000000000000}\r\nLogonId: 0x3E7\r\nTerminalSessionId: 0\r\nIntegrityLevel: System\r\nHashes: SHA256=634DC282C7A0E609DA17A8FA05B0744C0EC527\r\nParentProcessGuid: {912fddc4-7220-64b1-5800-000000000f00}\r\nParentProcessId: 3968\r\nParentImage: C:\\Program Files\\SplunkUniversalForwarder\\bin\\splunkd.exe\r\nParentCommandLine: \";c:\\Program Files\\SplunkUniversalForwarder\\bin\\splunkd.exe\"; service\";";},";eventdata";:{";utcTime";:";2023-07-26 16:00:06.773";,";processGuid";:";{912fddc4-4306-64c1-c943-020000000f00}";,";processId";:";8500";,";image";:";C:\\\\Windows\\\\System32\\\\cmd.exe";,";fileVersion";:";10.0.17763.1697 (WinBuild.160101.0800)";,";description";:";Windows Command Processor";,";product";:";Microsoft® Windows® Operating System";,";company";:";Microsoft Corporation";,";originalFileName";:";Cmd.Exe";,";commandLine";:";C:\\\\Windows\\\\system32\\\\cmd.exe /c \\\";\\\";c:\\\\Program Files\\\\SplunkUniversalForwarder\\\\etc\\\\apps\\\\inputs\\\\bin\\\\runpowershell.cmd\\\"; nt6-repl-stat.ps1\\\";";,";currentDirectory";:";C:\\\\Windows\\\\system32\\\\";,";user";:";NT AUTHORITY\\\\SYSTEM";,";logonGuid";:";{912fddc1-64b1-e703-000000000000}";,";logonId";:";0x3e7";,";terminalSessionId";:";0";,";integrityLevel";:";System";,";hashes";:";SHA256=DA37E24DC2634DC282C7E6F5209DA17A8FA105B07";,";parentProcessGuid";:";{9124-7220-64b1-5800-000000000f00}";,";parentProcessId";:";3968";,";parentImage";:";C:\\\\Program Files\\\\SplunkUniversalForwarder\\\\bin\\\\splunkd.exe";,";parentCommandLine";:";\\\";c:\\\\Program Files\\\\SplunkUniversalForwarder\\\\bin\\\\splunkd.exe\\\"; service";}}},";location";:";EventChannel";}</v></field>
---------------------------------------------------------------------------------------------
Here is the rule:
<group name="windows, sysmon,">
<rule id="100000" level="12">
<if_group>sysmon_event1</if_group>
<field name="win.eventdata.image">\\cmd.exe||\\powershell.exe</field>
<description>Sysmon - Suspicious Process - powershell.exe</description>
<options>no_full_log</options>
</rule>
Thank you.
понедельник, 31 июля 2023 г. в 14:01:32 UTC+3, Franco Giovanolli: