HxHippy

File Integrity Checker

Monitor critical files for changes using checksums.

Last updated: 2024-12-15

File Integrity Checker

#!/bin/bash
BASELINE="/var/lib/integrity/baseline"
case "${1:---check}" in
    --init) sha256sum /etc/passwd /etc/shadow /etc/sudoers > "$BASELINE" ;;
    *) sha256sum -c "$BASELINE" ;;
esac
intermediate Security Updated 2024-12-15
  • integrity
  • checksum
  • sha256
  • monitor
  • security