Query: detection rule: Rule to detect the use of the SCX RunAsProvider ExecuteScript to execute any UNIX/Linux script using the /bin/sh shell.
Matching passage: Sigma rule: Rule to detect the use of the SCX RunAsProvider ExecuteScript to execute any UNIX/Linux script using the /bin/sh shell.. Logsource: linux / process_creation. Rule: title: OMIGOD SCX RunAsProvider ExecuteScript id: 6eea1bf6-f8d2-488a-a742-e6ef6c1b67db status: test description: 'Rule to detect the use of the SCX RunAsProvider ExecuteScript to execute any UNIX/Linux script using the /bin/sh shell. Script being executed gets created as a temp file in /tmp folder with a scx* prefix. Then it is invoked from the following directory /etc/opt/microsoft/scx/conf/tmpdir/. The file in that directory has the same prefix scx*. SCXcore, started as the Microsoft Operations Manager UNIX/Linux Agent, is now used in a host of products including Microsoft Operations Manager, Microsoft Azure, and Microsoft Operations Management Suite. ' references: - https://www.wiz.io/blog/omigod-critical-vulnerabilities-in-omi-azure - https://github.com/Azure/Azure-Sentinel/pull/3059 author: Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research), MSTIC date: 2021-10-15 modified: 2022-10-05 tags: - attack.privilege-escalation - attack.initial-access - attack.execution - attack.t1068 - attack.t1190 - attack.t1203 logsource: product: linux category: process_creation detection: selection: User: root LogonId: 0 CurrentDirectory: /var/opt/microsoft/scx/tmp CommandLine|contains: /etc/opt/microsoft/scx/conf/tmpdir/scx condition: selection falsepositives: - Legitimate use of SCX RunAsProvider ExecuteScript. level: high
Near-miss passage: Sigma rule: Adversaries may establish persistence by executing malicious content triggered by user inactivity. Screensavers are prog. Logsource: windows / process_creation. Rule: title: Suspicious ScreenSave Change by Reg.exe id: 0fc35fc3-efe6-4898-8a37-0b233339524f status: test description: 'Adversaries may establish persistence by executing malicious content triggered by user inactivity. Screensavers are programs that execute after a configurable time of user inactivity and consist of Portable Executable (PE) files with a .scr file extension ' references: - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.002/T1546.002.md - https://www.welivesecurity.com/wp-content/uploads/2017/08/eset-gazer.pdf author: frack113 date: 2021-08-19 modified: 2022-06-02 tags: - attack.persistence - attack.privilege-escalation - attack.t1546.002 logsource: category: process_creation product: windows detection: selection_reg: Image|endswith: \reg.exe CommandLine|contains: - HKEY_CURRENT_USER\Control Panel\Desktop - HKCU\Control Panel\Desktop selection_option_1: CommandLine|contains|all: - /v ScreenSaveActive - /t REG_SZ - /d 1 - /f selection_option_2: CommandLine|contains|all: - /v ScreenSaveTimeout - /t REG_SZ - '/d ' - /f selection_option_3: CommandLine|contains|all: - /v ScreenSaverIsSecure - /t REG_SZ - /d 0 - /f selection_option_4: CommandLine|contains|all: - /v SCRNSAVE.EXE - /t REG_SZ - '/d ' - .scr - /f condition: selection_reg and 1 of selection_option_* falsepositives: - GPO level: medium