Skip to content

Node.JS wrapper for the Get-Authenticode Powershell cmdlet

License

Notifications You must be signed in to change notification settings

doctolib/authenticode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Quentin Ménoret
Oct 12, 2020
89d2ee8 · Oct 12, 2020

History

13 Commits
May 15, 2020
May 15, 2020
May 13, 2020
May 15, 2020
Oct 12, 2020
Oct 12, 2020
Oct 12, 2020
May 15, 2020

Repository files navigation

Authenticode for Node.JS

Installation

# with npm
npm install authenticode

# with yarn
yarn add authenticode

What is this about

Authenticode is Microsoft’s code-signing mechanism which allows identifying the publisher of executables (binaries or Powershell scripts).

This module wraps the Powershell cmdlet Get-Authenticode to return information about signatures of executable files to Node.JS.

import { getAuthenticode, SignatureStatus } from 'authenticode'

async function isSigned(path: string): Promise<boolean> {
  const { Status } = await getAuthenticode(path)
  return Status === SignatureStatus.Valid
}