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
14modified: 2024/03/05
15tags:
16    - attack.defense_evasion
17    - attack.t1218
18logsource:
19    category: process_creation
20    product: windows
21detection:
22    selection_img:
23        - Image|endswith: '\certoc.exe'
24        - OriginalFileName: 'CertOC.exe'
25    selection_cli:
26        CommandLine|contains|windash: ' -LoadDLL '
27    selection_paths:
28        CommandLine|contains:
29            - '\Appdata\Local\Temp\'
30            - '\Desktop\'
31            - '\Downloads\'
32            - '\Users\Public\'
33            - 'C:\Windows\Tasks\'
34            - 'C:\Windows\Temp\'
35    condition: all of selection_*
36falsepositives:
37    - Unknown
38level: high

References

Related rules

to-top