Analyzing authenticode signatures

From meltedinhex/analyst-ai-pack · View interactive version

Analyzing authenticode signatures is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Analyzes Windows Authenticode signatures on PE files: checking for a signature, reading the signer certificate chain, detecting revoked/expired/stolen certs, and recognizing signature-stripping and catalog-signing abuse. Activates for requests to analyze a code signature, verify Authenticode, or ass

How to use this skill

Skill file

Analyzing Authenticode Signatures

When to Use

Do not use "is signed" as "is safe" — adversaries use stolen certs, abuse catalog signing,

and append invalid signatures; a valid signature only attests the signer, not benignity.

Prerequisites

Get-AuthenticodeSignature for authoritative verification.

Safety & Handling

Workflow

Step 1: Check for a signature

Read the PE security directory (certificate table). Absent entry = unsigned; present = embedded

PKCS#7. Note that valid signing can also be via a catalog file (not embedded).

python scripts/analyst.py check sample.exe

Step 2: Extract signer details

Parse the PKCS#7 to read the signer certificate: subject, issuer, validity dates, and serial.

Cross-reference against known-abused/stolen certs.

Step 3: Verify, do not just read

On Windows, verify the signature cryptographically and check revocation

(Get-AuthenticodeSignature). A present-but-invalid signature is a strong red flag.

Step 4: Assess trust in context

Weigh signer reputation, certificate age, and whether the signed file's behavior matches the

purported publisher. Treat anomalies (recently issued cert, mismatched publisher) as suspicious.

Validation

Windows.

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.