Suspicious DLL Loaded via CertOC.EXE

Detects when a user installs certificates by using CertOC.exe to load the target DLL file.

Sigma rule (View on GitHub)

 1title: Suspicious DLL Loaded via CertOC.EXE
 2id: 84232095-ecca-4015-b0d7-7726507ee793
 3related:
 4    - id: 242301bc-f92f-4476-8718-78004a6efd9f
 5      type: similar
 6status: test
 7description: Detects when a user installs certificates by using CertOC.exe to load the target DLL file.
 8references:
 9    - https://twitter.com/sblmsrsn/status/1445758411803480072?s=20
10    - https://github.com/elastic/protections-artifacts/commit/746086721fd385d9f5c6647cada1788db4aea95f#diff-fe98e74189873d6df72a15df2eaa0315c59ba9cdaca93ecd68afc4ea09194ef2
11    - https://lolbas-project.github.io/lolbas/Binaries/Certoc/
12author: Nasreddine Bencherchali (Nextron Systems)
13date: 2023/02/15
14tags:
15    - attack.defense_evasion
16    - attack.t1218
17logsource:
18    category: process_creation
19    product: windows
20detection:
21    selection_img:
22        - Image|endswith: '\certoc.exe'
23        - OriginalFileName: 'CertOC.exe'
24    selection_cli:
25        CommandLine|contains:
26            - ' -LoadDLL '
27            - ' /LoadDLL '
28    selection_paths:
29        CommandLine|contains:
30            - '\Appdata\Local\Temp\'
31            - '\Desktop\'
32            - '\Downloads\'
33            - '\Users\Public\'
34            - 'C:\Windows\Tasks\'
35            - 'C:\Windows\Temp\'
36    condition: all of selection_*
37falsepositives:
38    - Unknown
39level: high

References

Related rules

to-top