Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

wazuh-lkrg

Wazuh Type License

Custom Wazuh decoders and rules for LKRG (Linux Kernel Runtime Guard) — surface kernel integrity violations, privilege escalation attempts, and exploit detection events directly in your SIEM.

What is LKRG

LKRG is a loadable kernel module that detects runtime integrity violations and exploitation attempts at the kernel level. It monitors:

  • kernel code/data integrity
  • process credential changes (privilege escalation)
  • SELinux/AppArmor enforcement bypass attempts
  • exploit technique detection (ROP, JOP, ret2usr, etc.)

It runs on mainline and distro kernels from RHEL7 onwards without kernel patching.

Install

# Copy decoders
cp lkrg_decoders.xml /var/ossec/etc/decoders/

# Copy rules
cp lkrg_rules.xml /var/ossec/etc/rules/

# Reload rules without restart
wazuh-reload-rules
# or
systemctl restart wazuh-manager

What gets detected

LKRG event Wazuh rule Description
LKRG: ALERT lkrg_alert Kernel integrity violation
LKRG: EXPLOIT lkrg_exploit Exploitation attempt blocked
LKRG: TASK lkrg_task Process credential tampering
LKRG: INIT lkrg_init LKRG module load/unload

Credits

About

This project contains custom LKRG (Linux Kernel Runtime Guard) decoders and rules for Wazuh

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors