T1587.003 Sumo Logic CSE · Sumo

Detect Digital Certificates in Sumo Logic CSE

Adversaries may create self-signed SSL/TLS certificates that can be used during targeting. SSL/TLS certificates are designed to instill trust and include key information, owner identity, and a digital signature from a verifying entity. In the case of self-signing, these certificates lack third-party CA trust but remain functional for encrypting traffic. Adversaries create self-signed certificates to encrypt C2 communications (as seen with APT29/WellMess using mutual TLS authentication), to enable adversary-in-the-middle attacks if installed as a trusted root certificate, or to impersonate legitimate services. PROMETHIUM used self-signed certificates for HTTPS C2, Gamaredon Group reused the same TLS certificate across infrastructure clusters, and Storm-0501 spoofed a 'Microsoft IT TLS CA 5' self-signed certificate. Detection must focus on observable side-effects: certificate generation tool execution on compromised hosts, suspicious certificate store modifications, and network TLS connections bearing anomalous certificate properties.

MITRE ATT&CK

Tactic
Resource Development
Technique
T1587 Develop Capabilities
Sub-technique
T1587.003 Digital Certificates
Canonical reference
https://attack.mitre.org/techniques/T1587/003/

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
_index=sec_record_process
| where (
    (
      matches(toLowerCase(baseImage), /openssl(\.exe)?|makecert\.exe|pvk2pfx\.exe|certmgr\.exe/)
      and matches(toLowerCase(commandLine), /req -new|x509 -req|genrsa|genpkey|pkcs12 -export|-newkey rsa|-newkey ec|req -x509|-selfsign/)
    )
    or (
      matches(toLowerCase(baseImage), /powershell\.exe|pwsh\.exe/)
      and matches(toLowerCase(commandLine), /new-selfsignedcertificate|x509certificate2|system\.security\.cryptography\.x509certificates|certificaterequest|rsacryptoserviceprovider|ecdsacng/)
    )
    or (
      matches(toLowerCase(baseImage), /certutil\.exe/)
      and matches(toLowerCase(commandLine), /-addstore|-addrepo|-mergepfx|-importpfx|-p12|-importcert/)
    )
    or (
      matches(toLowerCase(baseImage), /openssl(\.exe)?|makecert\.exe|pvk2pfx\.exe|certmgr\.exe/)
      and not matches(toLowerCase(commandLine), /req -new|x509 -req|genrsa|genpkey|pkcs12 -export|-newkey rsa|-newkey ec|req -x509|-selfsign/)
    )
  )
| if (matches(toLowerCase(baseImage), /openssl(\.exe)?|makecert\.exe|pvk2pfx\.exe/) and matches(toLowerCase(commandLine), /req -new|x509 -req|genrsa|genpkey|-newkey/), "CertGenToolWithArgs",
    if (matches(toLowerCase(baseImage), /powershell\.exe|pwsh\.exe/), "PSCertificateCreation",
      if (matches(toLowerCase(baseImage), /certutil\.exe/) and matches(toLowerCase(commandLine), /-addstore|-addrepo|-mergepfx|-importpfx|-importcert/), "CertUtilStoreImport",
        "CertGenToolExecution"))) as detectionBranch
| if (matches(toLowerCase(commandLine), /authroot|trustedpublisher|trustedpeople/), "true", "false") as targetsRootStore
| fields _messagetime, device_hostname, user_username, baseImage, commandLine, parentBaseImage, detectionBranch, targetsRootStore
| sort by _messagetime desc
high severity medium confidence

Sumo Logic CSE detection querying normalized sec_record_process records for self-signed certificate creation activity. Covers four branches: openssl/makecert/pvk2pfx execution with certificate-specific argument patterns, PowerShell New-SelfSignedCertificate and .NET X509 cryptographic class invocations, certutil certificate store manipulation commands, and bare certificate generation tool execution without specific argument patterns. Root store targeting is flagged via targetsRootStore field.

Data Sources

Sumo Logic Cloud SIEM Enterprise (CSE)Windows Endpoint via Sumo Logic Installed CollectorSysmon via Sumo Logic Windows Collector with process event normalization

Required Tables

sec_record_process

False Positives & Tuning

  • Help desk or endpoint management staff using certutil to push corporate root CA certificates to end-user machines as part of standard certificate deployment procedures or Active Directory Certificate Services enrollment
  • Local development workflows where developers run openssl req -x509 to generate self-signed certificates for running HTTPS locally (e.g., localhost TLS for web application development or Docker container services)
  • Automated certificate renewal agents (win-acme, Certify The Web, Posh-ACME) that call PowerShell certificate cmdlets or certutil on a recurring schedule to renew and import ACME-issued certificates
Download portable Sigma rule (.yml)

Other platforms for T1587.003


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 Self-Signed Certificate with PowerShell New-SelfSignedCertificate

    Expected signal: Sysmon Event ID 1: Process Create for powershell.exe with CommandLine containing 'New-SelfSignedCertificate' and the DnsName value. Sysmon Event ID 11: File Create event for df00tech-test-cert.pfx in %TEMP%. PowerShell ScriptBlock Log Event ID 4104 capturing the full certificate creation and export script. Registry Event ID 12/13 for the temporary certificate store entry under HKCU\SOFTWARE\Microsoft\SystemCertificates\My.

  2. Test 2Generate Self-Signed Certificate with OpenSSL

    Expected signal: Sysmon Event ID 1: Two Process Create events — first for 'openssl req -x509' with -subj containing the spoofed Microsoft subject, second for 'openssl pkcs12 -export'. Sysmon Event IDs 11: File Create events for .key, .crt, and .pfx files in %TEMP%. The -subj value '/CN=Microsoft IT TLS CA 5' directly matches the Storm-0501 technique documented in ATT&CK.

  3. Test 3Import Self-Signed Certificate to Root Certificate Store

    Expected signal: Sysmon Event ID 1: Process Create for certutil.exe with CommandLine '-addstore Root' and the .cer file path. Sysmon Event ID 12/13: Registry key creation under HKLM\SOFTWARE\Microsoft\SystemCertificates\Root\Certificates\<thumbprint>. Sysmon Event ID 11: File Create for the .cer export in %TEMP%. Security Event ID 4657 (if object access auditing enabled) for the registry write to the certificate store.

  4. Test 4Certificate Generation via OpenSSL on Linux

    Expected signal: Linux auditd execve syscall records for each openssl invocation with full argument list. Syslog process execution entries for openssl. File creation events in /tmp for .pem and .pfx files. If Sysmon for Linux is deployed: Event ID 1 (Process Create) with Image=/usr/bin/openssl and full CommandLine capture including the spoofed -subj value.

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections