Suspicious Execution From GUID Like Folder Names

Detects potential suspicious execution of a GUID like folder name located in a suspicious location such as %TEMP% as seen being used in IcedID attacks

Sigma rule (View on GitHub)

 1title: Suspicious Execution From GUID Like Folder Names
 2id: 90b63c33-2b97-4631-a011-ceb0f47b77c3
 3status: test
 4description: Detects potential suspicious execution of a GUID like folder name located in a suspicious location such as %TEMP% as seen being used in IcedID attacks
 5references:
 6    - https://twitter.com/Kostastsale/status/1565257924204986369
 7author: Nasreddine Bencherchali (Nextron Systems)
 8date: 2022/09/01
 9modified: 2023/03/02
10tags:
11    - attack.defense_evasion
12    - attack.t1027
13logsource:
14    category: process_creation
15    product: windows
16detection:
17    # Uncomment this section and remove the filter if you want the rule to be more specific to processes
18    # selection_img:
19    #     Image|endswith:
20    #         - '\rundll32.exe'
21    selection_folder:
22        CommandLine|contains:
23            # Add more suspicious or unexpected paths
24            - '\AppData\Roaming\'
25            - '\AppData\Local\Temp\' # This could generate some FP with some installers creating folders with GUID
26    selection_guid:
27        CommandLine|contains|all:
28            - '\{'
29            - '}\'
30    filter:
31        Image|contains|all:
32            - '\{'
33            - '}\'
34    filter_null:
35        Image: null
36    filter_driver_inst:  # DrvInst.exe "4" "0" "C:\Users\venom\AppData\Local\Temp\{a0753cc2-fcea-4d49-a787-2290b564b06f}\nvvhci.inf" "9" "43a2fa8e7" "00000000000001C0" "WinSta0\Default" "00000000000001C4" "208" "c:\program files\nvidia corporation\installer2\nvvhci.{eb7b4460-7ec9-42d6-b73f-d487d4550526}"
37        Image: 'C:\Windows\System32\drvinst.exe'
38    condition: all of selection_* and not 1 of filter*
39falsepositives:
40    - Installers are sometimes known for creating temporary folders with GUID like names. Add appropriate filters accordingly
41level: medium

References

Related rules

to-top