Skip to content

Instantly share code, notes, and snippets.

@feiyax
feiyax / kmod_validate.md
Last active April 15, 2024 16:39
Manually Validate Kernel Module Signature

Pre-req

  • kernel module *.ko
  • signing key signing_key.pem (containing private key and certificate)
  • scripts dir in linux source. usually also in /usr/src/linux-headers-$(uname -r)/scripts/
  • don't have whitespace in path. (yeam i'm too lazy to type quotes)

Convert everything into desired formats

extract the signature part and the data content parts out of the *.ko