T1553.002 CrowdStrike LogScale · LogScale

Detect Code Signing in CrowdStrike LogScale

Adversaries may create, acquire, or steal code signing materials to sign their malware or tools. Code signing provides a level of authenticity on a binary from the developer and a guarantee that the binary has not been tampered with. Valid signatures can bypass security policies requiring signed code to execute, making this technique effective for defense evasion. Threat actors including FIN7, Scattered Spider, Kimsuky, and Patchwork have all leveraged purchased, stolen, or self-signed certificates to make malicious binaries appear legitimate.

MITRE ATT&CK

Tactic
Defense Evasion
Technique
T1553 Subvert Trust Controls
Sub-technique
T1553.002 Code Signing
Canonical reference
https://attack.mitre.org/techniques/T1553/002/

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
// Detection 1: signtool.exe and certutil.exe signing/import activity
#event_simpleName = ProcessRollup2
| FileName = /(?i)^(signtool|certutil)\.exe$/
| CommandLine = /(?i)(\-sign|\/sign|\/f |\-f |\/p |\-p |\/fd |\-fd |\/tr |\-tr |sha256|sha1|\-addstore|\-addcert|\-importpfx|\-p12|trustedpublisher|authroot)/
| ParentBaseFileName = /(?i)^(cmd|powershell|pwsh|wscript|cscript|mshta|rundll32|explorer)\.exe$/
| eval IsSigntool = if(lower(FileName) = "signtool.exe", "true", "false")
| eval IsCertutil = if(lower(FileName) = "certutil.exe", "true", "false")
| eval HasPFX = if(CommandLine = /(?i)(\.(pfx|p12))/, "true", "false")
| eval SelfSigned = if(lower(FileName) = "signtool.exe" and CommandLine != /(?i)(\-tr|\/tr)/, "true", "false")
| eval DetectionType = if(IsSigntool = "true", "SigntoolSigning", "CertutilImport")
| table([timestamp, ComputerName, UserName, FileName, CommandLine, ParentBaseFileName, IsSigntool, IsCertutil, HasPFX, SelfSigned, DetectionType])
| sort(timestamp, order=desc)

// Detection 2: Certificate file creation in suspicious paths (use union or run separately)
// #event_simpleName = /^(NewExecutableWritten|PeFileWritten|GenericFileWritten)$/
// | TargetFileName = /(?i)\.(pfx|p12|cer|crt)$/
// | TargetFileName = /(?i)(\\Temp\\|\\Downloads\\|\\AppData\\Local|\\AppData\\Roaming|Users\\Public|ProgramData)/
// | table([timestamp, ComputerName, UserName, FileName, TargetFileName])

// Detection 3: Registry writes to certificate trust stores
// #event_simpleName = /^(RegGenericValueUpdate|RegistryOperationCreate)$/
// | RegObjectName = /(?i)(ROOT\\Certificates|TrustedPublisher\\Certificates|AuthRoot\\Certificates|SystemCertificates\\ROOT|SystemCertificates\\TrustedPublisher)/
// | FileName != /(?i)^(certutil|mmc|wuauclt|TrustedInstaller|svchost)\.exe$/
// | table([timestamp, ComputerName, UserName, FileName, RegObjectName, RegValueName])
high severity high confidence

CrowdStrike LogScale (Falcon) detection for T1553.002 Code Signing abuse. Primary query targets ProcessRollup2 events for signtool.exe and certutil.exe with signing or certificate import arguments launched from suspicious shell parents. Supplementary commented queries cover certificate file writes via file creation events and certificate store registry modifications via registry event types. Uses Falcon event_simpleName taxonomy.

Data Sources

CrowdStrike Falcon PlatformCrowdStrike LogScale (Humio)Falcon Sensor telemetry (ProcessRollup2, RegGenericValueUpdate, NewExecutableWritten)

Required Tables

ProcessRollup2NewExecutableWrittenRegGenericValueUpdateRegistryOperationCreate

False Positives & Tuning

  • Developer workstations or CI build agents where signtool.exe is routinely called from powershell.exe or cmd.exe as part of standard application signing workflows — common in Microsoft-ecosystem software shops
  • Managed endpoint environments where certutil.exe is scripted by SCCM or Intune to import enterprise certificates into TrustedPublisher or ROOT stores during device provisioning
  • CrowdStrike Falcon sensor itself or other EDR tools that may write certificate files to AppData during SSL inspection or agent update operations
Download portable Sigma rule (.yml)

Other platforms for T1553.002


Testing Methodology

Validate this detection against 4 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 and Use a Self-Signed Code Signing Certificate

    Expected signal: Sysmon Event ID 1: Process Create for powershell.exe with New-SelfSignedCertificate in command line. Sysmon Event ID 1: Process Create for signtool.exe with command line containing '/sign', '/f', '.pfx', '/fd sha256', and the target binary path. Sysmon Event ID 11: File creation events for df00tech-codesign.pfx and df00tech-test.exe in %TEMP%. PowerShell ScriptBlock Log Event ID 4104 with the New-SelfSignedCertificate and Export-PfxCertificate commands.

  2. Test 2Import Self-Signed Certificate into Trusted Publishers Store

    Expected signal: Sysmon Event ID 1: Process Create for certutil.exe with CommandLine containing '-addstore TrustedPublisher'. Sysmon Event ID 11: File creation for df00tech-publisher.cer in %TEMP%. Sysmon Event ID 13 (Registry Value Set): new value under HKLM\SOFTWARE\Microsoft\SystemCertificates\TrustedPublisher\Certificates\ keyed by the certificate thumbprint. PowerShell ScriptBlock Log Event ID 4104 for the New-SelfSignedCertificate commands.

  3. Test 3Verify Signed Binary Execution Trust (Authenticode Check Bypass Simulation)

    Expected signal: Sysmon Event ID 1: Process Create for certutil.exe with '-addstore -user TrustedPublisher'. Sysmon Event ID 11: File creation events for df00tech-sign-test.cer and df00tech-payload.ps1 in %TEMP%. Sysmon Event ID 13: Registry modification under HKCU\SOFTWARE\Microsoft\SystemCertificates\TrustedPublisher\Certificates (user-store variant). PowerShell ScriptBlock Log Event ID 4104 for Set-AuthenticodeSignature cmdlet execution.

  4. Test 4macOS Ad-Hoc Code Signing

    Expected signal: macOS Unified Log: codesign process execution with '--sign -' arguments visible in process audit logs. Endpoint Security Framework events for ES_EVENT_TYPE_NOTIFY_EXEC when codesign runs. Security.framework log entries in /var/log/system.log for code signing operations. If EDR is present (CrowdStrike, SentinelOne): process creation event for codesign with suspicious ad-hoc signing arguments. spctl execution generates Gatekeeper assessment log entries in /var/log/system.log.

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections