Analyzing rich header and compiler artifacts

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

Analyzing rich header and compiler artifacts is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Analyzes the PE Rich header and related compiler artifacts to fingerprint the build toolchain, cluster related samples, and detect inconsistencies that suggest tampering. Activates for requests to analyze a Rich header, fingerprint the compiler/linker, or cluster samples by build toolchain.

How to use this skill

Skill file

Analyzing Rich Header and Compiler Artifacts

When to Use

and build numbers) from the Rich header.

Do not use the Rich header as definitive attribution — it can be copied or stripped. This skill

reads the PE statically and executes nothing.

Prerequisites

Safety & Handling

Workflow

Step 1: Parse and decode the Rich header

python scripts/analyst.py rich sample.exe

Locates the Rich marker, recovers the XOR key (the DWORD after Rich), decodes the DanS-

prefixed entries, and lists (product_id, build_id, use_count) tuples.

Step 2: Fingerprint the toolchain

Map product IDs to compiler/linker products and build numbers to identify the Visual Studio

version(s) used.

Step 3: Compute a clustering hash

Hash the decoded Rich entries to produce a toolchain fingerprint for grouping related samples.

Step 4: Check for inconsistencies

Compare the Rich-derived linker version against the PE optional-header linker version; mismatches

suggest tampering or a copied header.

Validation

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.