WithSecureLabs / lolcerts

A repository of code signing certificates known to have been leaked or stolen, then abused by threat actors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Living Off The LandLeaked Certificates (LoLCerts)

Threat actors are known to sign their malware using stolen, or even legally acquired, code signing certificates. This threat is becoming more relevant as more and more defenses are relying on digital signatures for allowing or not execution on an endpoint. This project aims at collecting the details of the certificates that are known to be abused in the wild by malicious actors.

The scripts directory contains a Python script used to generate Yara rules for all the certificates. Rules are written according to Nextron System - Short tutorial how to create a yara rule for a compromised certificate.

To generate all the yara rules:

cd scripts/
python3 generate_yara.py

Schema:

name: name_of_the_certificate
meta:
  status: revoked|valid
  source: leaked|malicious
  description: |
    Brief description of the certificate and where was it obtained from
  references: Threat intelligence reference
  date: Date of release
  author: Author Name
issuer: Issuer of the certificate
timestamp: Unix timestamp of when the cert was leaked, if relevant
serial: Array of strings containing the serial numbers of the certificates
thumbprint: Optional array of strings containing the thumbprints of the certificates

About

A repository of code signing certificates known to have been leaked or stolen, then abused by threat actors

License:Apache License 2.0


Languages

Language:YARA 55.3%Language:Python 39.0%Language:Jinja 5.7%