Potentially Suspicious Electron Application CommandLine

Detects potentially suspicious CommandLine of electron apps (teams, discord, slack, etc.). This could be a sign of abuse to proxy execution through a signed binary.

Sigma rule (View on GitHub)

 1title: Potentially Suspicious Electron Application CommandLine
 2id: 378a05d8-963c-46c9-bcce-13c7657eac99
 3related:
 4    - id: f26eb764-fd89-464b-85e2-dc4a8e6e77b8
 5      type: similar
 6status: experimental
 7description: Detects potentially suspicious CommandLine of electron apps (teams, discord, slack, etc.). This could be a sign of abuse to proxy execution through a signed binary.
 8references:
 9    - https://positive.security/blog/ms-officecmd-rce
10    - https://lolbas-project.github.io/lolbas/Binaries/Teams/
11    - https://lolbas-project.github.io/lolbas/Binaries/Msedge/
12    - https://lolbas-project.github.io/lolbas/Binaries/msedgewebview2/
13    - https://medium.com/@MalFuzzer/one-electron-to-rule-them-all-dc2e9b263daf
14    - https://chromium.googlesource.com/chromium/chromium/+/master/content/public/common/content_switches.cc
15author: frack113, Nasreddine Bencherchali (Nextron Systems)
16date: 2023/09/05
17tags:
18    - attack.execution
19logsource:
20    category: process_creation
21    product: windows
22detection:
23    selection:
24        Image|endswith:
25            # Add more electron based app to the list
26            - '\chrome.exe'
27            - '\code.exe'
28            - '\discord.exe'
29            - '\GitHubDesktop.exe'
30            - '\keybase.exe'
31            - '\msedge.exe'
32            - '\msedgewebview2.exe'
33            - '\msteams.exe'
34            - '\slack.exe'
35            - '\Teams.exe'
36        CommandLine|contains:
37            - '--browser-subprocess-path'
38            - '--gpu-launcher'
39            - '--renderer-cmd-prefix'
40            - '--utility-cmd-prefix'
41    condition: selection
42falsepositives:
43    - Legitimate usage for debugging purposes
44# Increase the level once FP rate is known better (see status)
45level: medium

References

Related rules

to-top