text code block:host.os.type:linux and event.category:file and event.action:("opened-file" or "read-file" or "wrote-to-file") and file.path : ("/etc/sysctl.conf" or "/etc/sysctl.d" or /etc/sysctl.d/*) and not ( process.name:( dpkg or dockerd or unattended-upg or systemd-sysctl or python* or auditbeat or dpkg or pool* ) or process.executable:( /opt/sophos-spl/plugins/av/bin/* or /usr/bin/pacman or "/usr/lib/dracut/dracut-install" or /var/lib/elastic-agent/* ) )
Install detection rules in Elastic Security
Detect Suspicious Sysctl File Event in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).