This hypothesis posits that adversaries are actively deploying ELF-based Linux malware to establish persistent footholds within containerized or server workloads, often evading initial signature-based defenses due to its low-severity classification. Proactive hunting in Azure Sentinel is critical to uncover these stealthy infections early, ensuring that subtle behavioral anomalies indicative of Torte variants are identified before they escalate into broader lateral movement threats.
rule ELF_Linux_Torte_domains {
meta:
author = "@mmorenog,@yararules"
description = "Detects ELF Linux/Torte infection"
ref1 = "http://blog.malwaremustdie.org/2016/01/mmd-0050-2016-incident-report-elf.html"
strings:
$1 = "pages.touchpadz.com" ascii wide nocase
$2 = "bat.touchpadz.com" ascii wide nocase
$3 = "stat.touchpadz.com" ascii wide nocase
$4 = "sk2.touchpadz.com" ascii wide nocase
condition:
any of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 4 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the ELF Linux/Torte detection rule in an enterprise environment, along with recommended filters or exclusions:
CI/CD Pipeline Artifact Generation
/tmp or /workspace directories. The Torte infection logic may misinterpret the rapid creation of legitimate, unsigned executables by compilers like gcc or clang as a potential infection event, especially if the build process involves dynamic linking or temporary script execution./var/lib/jenkins/workspace/*, /home/gitlab-runner/builds/*) and filter out events where the parent process is a recognized build tool (java running Jenkins, gitlab-runner, or docker).Software Repository Updates via Package Managers
kernel, nginx, or python). The detection engine might flag the installation of these legitimate, signed packages as “infection” because they involve writing new executable files to critical directories like /usr/bin or /opt.dnf, yum, apt-get) and correlate with events where the file signature hash matches a known trusted repository (e.g., GPG signed packages). Additionally, exclude files located in standard package manager cache directories (e.g., /var/cache/dnf/*).Enterprise Endpoint Management Deployments *