endpoint(external, opens in a new tab or window)
sentinel_one_cloud_funnel(external, opens in a new tab or window)
text code block:process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event", "start", "ProcessRollup2") and ?process.parent.executable != null and process.name in ("swapon", "swapoff") or ( process.command_line like ("*vm.swappiness*", "*/proc/sys/vm/swappiness*") and ( (process.name == "sysctl" and process.args like ("*-w*", "*--write*", "*=*")) or ( process.name in ("bash", "dash", "sh", "tcsh", "csh", "zsh", "ksh", "fish") and process.args == "-c" and process.command_line like "*echo *" ) ) ) and not process.parent.name in ("lynis", "systemd", "end-zram-swapping", "SyxsenseResponder", "tuned", "platform-python", "timeout")
Install detection rules in Elastic Security
Detect Memory Swap Modification 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).