class

Pyrite::TamperError

Inherits Pyrite::SecurityError < Pyrite::Error < Exception < Reference < Object

Raised immediately when the live SHA-256 digest of the running binary (/proc/self/exe) does not match the authorized hash decrypted from the envelope.

Indicates unauthorized bytecode modification, patching, or injection.

Example

begin
  Pyrite.bootstrap!(AppConfig)
rescue ex : Pyrite::TamperError
  STDERR.puts "Fatal: binary modified! Aborting."
  exit 1
end