Query: detection rule: Detects execution of Microsoft bash launcher without any flags to execute the content of a bash script directly. This ca
Matching passage: Sigma rule: Detects execution of Microsoft bash launcher without any flags to execute the content of a bash script directly. This ca. Logsource: windows / process_creation. Rule: title: Indirect Command Execution From Script File Via Bash.EXE id: 2d22a514-e024-4428-9dba-41505bd63a5b related: - id: 5edc2273-c26f-406c-83f3-f4d948e740dd type: similar status: test description: 'Detects execution of Microsoft bash launcher without any flags to execute the content of a bash script directly. This can be used to potentially bypass defenses and execute Linux or Windows-based binaries directly via bash. ' references: - https://lolbas-project.github.io/lolbas/Binaries/Bash/ - https://linux.die.net/man/1/bash - Internal Research author: Nasreddine Bencherchali (Nextron Systems) date: 2023-08-15 tags: - attack.stealth - attack.t1202 logsource: category: process_creation product: windows detection: selection: - Image|endswith: - :\Windows\System32\bash.exe - :\Windows\SysWOW64\bash.exe - OriginalFileName: Bash.exe filter_main_cli_flag: CommandLine|contains: - bash.exe - - bash - filter_main_no_cli: CommandLine: null filter_main_empty: CommandLine: '' filter_main_no_flag: CommandLine: - bash.exe - bash condition: selection and not 1 of filter_main_* falsepositives: - Unknown level: medium
Near-miss passage: Sigma rule: Detects suspicious child processes of electron apps (teams, discord, slack, etc.). This could be a potential sign of ".a. Logsource: windows / process_creation. Rule: title: Suspicious Electron Application Child Processes id: f26eb764-fd89-464b-85e2-dc4a8e6e77b8 related: - id: 378a05d8-963c-46c9-bcce-13c7657eac99 type: similar status: test description: 'Detects suspicious child processes of electron apps (teams, discord, slack, etc.). This could be a potential sign of ".asar" file tampering (See reference section for more information) or binary execution proxy through specific CLI arguments (see related rule) ' references: - https://taggart-tech.com/quasar-electron/ - https://github.com/mttaggart/quasar - https://positive.security/blog/ms-officecmd-rce - https://lolbas-project.github.io/lolbas/Binaries/Msedge/ - https://lolbas-project.github.io/lolbas/Binaries/Teams/ - https://lolbas-project.github.io/lolbas/Binaries/msedgewebview2/ - https://medium.com/@MalFuzzer/one-electron-to-rule-them-all-dc2e9b263daf author: Nasreddine Bencherchali (Nextron Systems) date: 2022-10-21 modified: 2024-07-12 tags: - attack.execution logsource: category: process_creation product: windows detection: selection_parent: ParentImage|endswith: - \chrome.exe - \discord.exe - \GitHubDesktop.exe - \keybase.exe - \msedge.exe - \msedgewebview2.exe - \msteams.exe - \slack.exe - \teams.exe selection_child_image: Image|endswith: - \cmd.exe - \cscript.exe - \mshta.exe - \powershell.exe - \pwsh.exe - \regsvr32.exe - \whoami.exe - \wscript.exe selection_child_paths: Image|contains: - :\ProgramData\ - :\Temp\ - \AppData\Local\Temp\ - \Users\Public\ - \Windows\Temp\ filter_optional_discord: ParentImage|endswith: \Discord.exe Image|endswith: \cmd.exe CommandLine|contains: \NVSMI\nvidia-smi.exe condition: selection_parent and 1 of selection_child_* and not 1 of filter_optional_* falsepositives: - Unknown level: medium