How SSL Certificate History Can Help Threat Hunters Map Malicious Infrastructure

· Original article ↗

Summary

Historical SSL/TLS certificate data can help threat hunters connect domains and IPs, identify reused certificates and suspicious changes, and investigate infrastructure linked to malware and threat actors.

Key points

  • Threat hunters can analyze certificate issuers, validity periods, and reuse across domains and IPs to find links to potentially malicious infrastructure.
  • The article describes a Hunt.io investigation that used reused TLS certificates to connect KeyPlug command-and-control servers to infrastructure attributed to RedGolf/APT41.
  • Historical certificate data may also reveal suspicious issuer-name patterns associated with malicious browser extensions.
  • Monitoring certificate history can help identify unexpected changes on an organization's domains that may warrant investigation.
  • OpenSSL can inspect current certificates, but the article notes it does not provide historical certificate data.
  • The article demonstrates using Hunt.io's platform and HuntSQL to query certificate observations and pivot from certificates to associated IPs and hosts.
  • Examples involving DarkPeony and Earth Baxia describe using certificate patterns and redirects to connect infrastructure associated with PlugX.

Article Details

Defense Focus
Use current and historical SSL/TLS certificate data to identify suspicious certificate changes, connect related infrastructure, and support threat hunting.
Detection Methods
  • Compare certificate issuers, validity periods, subject names, and reuse patterns across domains and IP addresses.
  • Review certificate history for unexpected changes, replacements, or certificates appearing under altered but familiar-sounding issuer names.
  • Pivot from a certificate to IP addresses and hostnames where it has been observed; correlate timestamps, ports, and associated domains.
  • Monitor new SSL/TLS certificates and hostnames found on certificates.
Data Sources
  • Current and historical SSL/TLS certificate records, including issuers, validity periods, subject common names, and timestamps
  • Certificate-to-IP and certificate-to-hostname observations
  • IP address, port, and certificate activity history
Rule Types
  • HuntSQL queries
Platforms
  • Hunt.io Threat Hunting Platform
Defensive Actions
  • Monitor historical certificate data for unexpected changes on owned domains and investigate changes promptly.
  • Pivot across IP addresses, hostnames, and domains that reuse a suspicious certificate to identify related infrastructure.
  • Use certificate feeds to monitor newly observed certificates and hostnames.
  • Investigate suspicious issuer names, certificate reuse, and associated ports and timestamps.

Indicators of compromise

TypeIndicatorContext
IPV447[.]121[.]120[.]18IP address that the article says is associated with AsyncRAT in certificate-history results.

Threat Actors

Malware

Vendors

Products

Tools

Related Articles