Skip to content

Instantly share code, notes, and snippets.

@Barrixar
Barrixar / winverify.go
Last active September 19, 2025 21:36 — forked from heaths/winverify.go
Check Authenticode signature on Windows with Go
//go:build windows
// Credit is due to "heaths" for his part in this program and inspiration, see: https://gist.github.com/heaths/ebbca7d956f0b42bbb33193f0837e272?permalink_comment_id=5766639#gistcomment-5766639
// This program implements an advanced Windows digital signature verification tool.
// It leverages Windows WinTrust API functions to validate Authenticode signatures on executable files (.exe, .dll, .sys, etc.)
// with support for both standard verification and extended verification modes. The tool provides detailed
// signature information including certificate chains, timestamps, and signature algorithms.
//
// IMPORTANT SECURITY NOTES: