T1588.003 Sumo Logic CSE · Sumo

Detect Code Signing Certificates in Sumo Logic CSE

Adversaries may buy and/or steal code signing certificates to sign malicious payloads, enabling their software to appear legitimate and bypass security controls that trust signed code. Code signing provides authenticity guarantees that cause users and security tools to trust signed executables more readily than unsigned binaries. Adversaries purchase certificates using front organizations or stolen identity information, or directly steal signing materials from compromised third parties. Real-world threat actors including Wizard Spider (DigiCert, GlobalSign certs), OilRig, BlackTech, MegaCortex (fake company certificates), and Kimsuky have all leveraged stolen or fraudulently-obtained code signing certificates. Detection pivots to observable artifacts when signed malicious code executes in the environment: certificate anomalies (revoked, expired, recently-issued, or from unusual certificate authorities), discrepancies between file metadata and certificate subjects, Windows Code Integrity enforcement events, and low-prevalence signed executables executing from user-writable paths.

MITRE ATT&CK

Tactic
Resource Development
Technique
T1588 Obtain Capabilities
Sub-technique
T1588.003 Code Signing Certificates
Canonical reference
https://attack.mitre.org/techniques/T1588/003/

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
_sourceCategory=*windows*sysmon* EventCode=7
| where Signed = "true"
| where SignatureStatus != "Valid"
| eval CertAnomalyType = if(SignatureStatus = "Revoked",
    "Revoked Certificate - HIGH PRIORITY",
    if(SignatureStatus = "Expired", "Expired Certificate",
    if(SignatureStatus = "Invalid", "Invalid Signature",
    "Unknown Certificate Issue")))
| eval SuspiciousPath = if(
    ImageLoaded matches "(?i).*\\\\AppData\\\\.*"
    or ImageLoaded matches "(?i).*\\\\Temp\\\\.*"
    or ImageLoaded matches "(?i).*\\\\Downloads\\\\.*"
    or ImageLoaded matches "(?i).*\\\\Users\\\\Public\\\\.*"
    or ImageLoaded matches "(?i).*\\\\ProgramData\\\\.*"
    , 1, 0)
| eval KnownPublisher = if(
    Signature matches "(?i).*(Microsoft|Google|Adobe|Oracle|Intel|NVIDIA|Cisco|VMware|Apple|Amazon).*"
    , 1, 0)
| eval RiskScore = SuspiciousPath
    + if(SignatureStatus = "Revoked", 3, 0)
    + if(KnownPublisher = 0, 1, 0)
| where RiskScore >= 1
| fields _messageTime, host, User, Image, ImageLoaded, Signature, SignatureStatus, CertAnomalyType, SuspiciousPath, KnownPublisher, RiskScore
| sort by RiskScore, _messageTime
high severity medium confidence

Sumo Logic query detecting Sysmon Event ID 7 (Image Load) events where a signed binary with an anomalous certificate status (revoked, expired, or invalid) is loaded from a user-writable path. Applies a composite risk score that prioritizes revoked certificates (+3) and unknown publishers (+1) on top of suspicious path presence (+1). Ingestion assumes a Sumo Logic Installed Collector with a Windows Event Log source pointed at the Sysmon Operational channel.

Data Sources

Sumo Logic Installed Collector with Windows Event Log source (Microsoft-Windows-Sysmon/Operational)Sumo Logic Cloud SIEM Enterprise (CSE) with Windows normalized event schema

Required Tables

Sysmon Operational Event Log (EventCode=7, _sourceCategory=*windows*sysmon*)

False Positives & Tuning

  • Legitimate user-installed consumer applications (Slack, Discord, Steam, Epic Games Launcher) executing signed DLLs from AppData subdirectories where minor certificate chain issues — such as a missing intermediate CA — cause Sysmon to report SignatureStatus as Invalid rather than Valid
  • IT software deployment tools (SCCM client, Intune Management Extension) temporarily staging signed MSI packages or DLLs under ProgramData during MDM-managed installation workflows before the installer relocates binaries to their final destination
  • In-house enterprise applications signed with certificates from an internal PKI whose root CA is not enrolled in the OS or Sysmon trust evaluation path — common in organizations with complex multi-tier PKI hierarchies or air-gapped internal CAs
Download portable Sigma rule (.yml)

Other platforms for T1588.003


Testing Methodology

Validate this detection against 5 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Create Self-Signed Code Signing Certificate and Sign Test Binary

    Expected signal: Sysmon Event ID 11 (File Create): argus_signed_test.exe created in %TEMP%. Sysmon Event ID 1 (Process Create): powershell.exe spawning csc.exe (C# compiler) to build the test binary. Sysmon Event ID 13 (Registry Value Set): certificate written to HKCU\SOFTWARE\Microsoft\SystemCertificates\My\. DeviceFileEvents in MDE: file creation event for the test executable in user temp path.

  2. Test 2Inspect Authenticode Certificate Chain on Suspicious Executable

    Expected signal: Sysmon Event ID 11 (File Create): argus_lolbin_test.exe in %TEMP%. Sysmon Event ID 1 (Process Create): certutil.exe with -verify -urlfetch flags and temp path argument. Sysmon Event ID 3 (Network Connection): certutil.exe making outbound HTTPS connections to Microsoft CRL distribution points (crl.microsoft.com, ocsp.msocsp.com) for revocation checking. DeviceProcessEvents: certutil.exe spawned from PowerShell/cmd.exe.

  3. Test 3Enumerate Code Signing Certificates Including Private Key Holders

    Expected signal: Sysmon Event ID 1 (Process Create): PowerShell accessing multiple certificate stores. Sysmon Event ID 11 (File Create): codesign_enum.csv created in %TEMP%. DeviceRegistryEvents: reads to HKLM\SOFTWARE\Microsoft\SystemCertificates\{My,Root,CA,TrustedPublisher}. DeviceFileEvents in MDE: CSV output file creation in user temp directory.

  4. Test 4Validate Executable Signatures Using Sigcheck Sysinternals Tool

    Expected signal: Sysmon Event ID 1 (Process Create): sigcheck.exe launching from %TEMP% with -a -h flags. Sysmon Event ID 3 (Network Connection): sigcheck.exe may attempt outbound connection to VirusTotal API if -vt flag is included. DeviceProcessEvents: sigcheck.exe spawned by PowerShell with the target path argument covering %TEMP% executables.

  5. Test 5Query Windows Code Integrity Logs for Historical Certificate Enforcement Events

    Expected signal: Sysmon Event ID 1 (Process Create): PowerShell executing Get-WinEvent against the Code Integrity operational log. DeviceProcessEvents: PowerShell with Get-WinEvent in command line. If any Code Integrity events were previously logged on this system (e.g., from WDAC policy enforcement), they will be returned. In environments without WDAC policy configured, Event IDs 3033/3034 may not appear, but 3036 (certificate details) often does.

Unlock Pro Content

Get the full detection package for T1588.003 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections