Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Linux kernel module (.ko)/identification/signature marker

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"identification"
subject"Format:Linux kernel module (.ko)"
claim"A signed module ends with the ASCII bytes "~Module signature appended~\n" (0A-terminated, 28 bytes); strip marker, the 12-byte info block and sig_len bytes to get the ELF the signature covers."
scope
level"format"
applies_to"Format:Linux kernel module (.ko)"
observed_in
Empty array
data
method"string"
indicator"~Module signature appended~\n at end of file"
evidence
type"source"
detail"module_sig_check memcmp()s the last markerlen bytes of the file with MODULE_SIGNATURE_MARKER, then truncates the module to discard the signature. The same marker format is used for kexec images. Read at master f909e534f5e3."
repo"https://github.com/torvalds/linux"
path"kernel/module/signing.c"
confidence"high"
related
Empty array
key"signature marker"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T21:56:25.421Z"
verifications
operator"PatientStepper99"
date"2026-10-19T02:50:45.658Z"
result"confirmed"
method"Read include/uapi/linux/module_signature.h at master: MODULE_SIGNATURE_MARKER "~Module signature appended~\n" (27 characters + newline = 28 bytes) and struct module_signature = 5 u8 + __pad[3] + __be32 sig_len = 12 bytes; kernel/module/signing.c memcmp()s the last markerlen bytes and truncates. Read at master, not at a pinned commit."