Shared Object Load via LoLBin

Last updated 3 days ago on 2026-07-02
Created 3 days ago on 2026-07-02

About

This rule detects when a process not commonly used to load shared objects, is executed with arguments that load a shared object file. This technique can load a malicious shared object into memory while attempting to evade detection.
Tags
Domain: EndpointOS: LinuxUse Case: Threat DetectionTactic: Defense EvasionTactic: ExecutionData Source: Elastic EndgameData Source: Elastic DefendData Source: Auditd ManagerData Source: SentinelOneData Source: CrowdstrikeLanguage: eql
Severity
medium
Risk Score
47
MITRE ATT&CK™

Defense Evasion (TA0005)(external, opens in a new tab or window)

Execution (TA0002)(external, opens in a new tab or window)

License
Elastic License v2(external, opens in a new tab or window)

Definition

Rule Type
Event Correlation Rule
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
auditbeat-*endgame-*logs-auditd_manager.auditd-*logs-endpoint.events.process*logs-sentinel_one_cloud_funnel.*logs-crowdstrike.fdr*
Related Integrations

endpoint(external, opens in a new tab or window)

auditd_manager(external, opens in a new tab or window)

sentinel_one_cloud_funnel(external, opens in a new tab or window)

crowdstrike(external, opens in a new tab or window)

Query
text code block:
process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event", "executed", "process_started", "start", "ProcessRollup2") and ?process.parent.executable != null and ( (process.name == "bash" and process.args == "-c" and process.args like "* enable *-f*.so*") or (process.name == "openssl" and process.args == "-engine" and process.args like "*.so*") or (process.name like "python*" and process.args == "-c" and process.args like "*cdll.LoadLibrary*.so*") or (process.name like "ruby*" and process.args == "-e" and process.args like "*Fiddle.dlopen*.so*") or (process.name in ("gdb", "gimp", "rview", "rvim", "view", "vim", "vimdiff") and process.args like "*cdll.LoadLibrary*.so*") or (process.name in ("bash", "dash", "sh", "tcsh", "csh", "zsh", "ksh", "fish") and process.args == "-c" and process.args like ("*cdll.LoadLibrary*.so*", "*ruby*-e**Fiddle.dlopen*.so*") ) ) and not ( ?process.parent.executable like ( "/root/.cache/bazel/_bazel_root/install/*", "/opt/Xilinx/PetaLinux/*", "/usr/bin/find", "/bin/find", "/opt/nessus_agent/sbin/nessus-agent-module", "/sw/eb/sw/Python/*/bin/python*" ) or ?process.parent.name in ("make", "process-wrapper", "bwrap") or (process.name like "python*" and ?process.command_line like~ "*import torch*torchinductor*") or ?process.command_line like "*https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE*" )

Install detection rules in Elastic Security

Detect Shared Object Load via LoLBin 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).