Masquerading: Invalid Code Signature

Adversaries may attempt to mimic features of valid code signatures to increase the chance of deceiving a user, analyst, or tool. Code signing provides a level of authenticity on a binary from the developer and a guarantee that the binary has not been tampered with. Adversaries can copy the metadata and signature information from a signed program, then use it as a template for an unsigned program. Files with invalid code signatures will fail digital signature validation checks, but they may appear more legitimate to users and security tools may improperly handle these files.[1]

Unlike Code Signing, this activity will not result in a valid signature.

ID: T1036.001
Sub-technique of:  T1036
Tactic: Defense Evasion
Platforms: Windows, macOS
Data Sources: File: File Metadata
Version: 1.0
Created: 10 February 2020
Last Modified: 10 February 2020

Procedure Examples

ID Name Description
G0067 APT37

APT37 has signed its malware with an invalid digital certificates listed as "Tencent Technology (Shenzhen) Company Limited."[2]

S0128 BADNEWS

BADNEWS is sometimes signed with an invalid Authenticode certificate in an apparent effort to make it look more legitimate.[3]

S0198 NETWIRE

The NETWIRE client has been signed by fake and invalid digital certificates.[4]

S0019 Regin

Regin stage 1 modules for 64-bit systems have been found to be signed with fake certificates masquerading as originating from Microsoft Corporation and Broadcom Corporation.[5]

G0112 Windshift

Windshift has used revoked certificates to sign malware.[6][7]

S0466 WindTail

WindTail has been incompletely signed with revoked certificates.[6]

Mitigations

ID Mitigation Description
M1045 Code Signing

Require signed binaries.

Detection

Collect and analyze signing certificate metadata and check signature validity on software that executes within the environment, look for invalid signatures as well as unusual certificate characteristics and outliers.

References