This detection identifies potential TinyShell malware activity by monitoring for characteristic outbound network connections that may indicate an initial command-and-control beacon or data exfiltration attempt. Proactively hunting for these specific back-connect patterns in Azure Sentinel is critical to uncover low-severity indicators of compromise before they escalate into persistent threats within the cloud environment.
rule MALW_TinyShell_backconnect_Gen {
meta:
date = "2018-02-11"
author = "@unixfreaxjp"
condition:
((is__elf) or (is__osx))
and priv01
and priv02
and filesize < 100KB
}
This YARA rule can be deployed in the following contexts:
Here are 4 specific false positive scenarios for the MALW TinyShell backconnect Gen detection rule in an enterprise environment:
Endpoint Management Agent Health Checks
Microsoft.InTune.CompanyPortal.exe or ccmexec.exe, specifically targeting destination IP ranges of the enterprise management cloud (e.g., *.manage.microsoft.com) and port 443.Automated Patch Deployment via PowerShell
powershell.exe) to execute scripts that download security patches or configuration updates from internal repositories. These scripts often invoke a lightweight shell environment to manage the connection lifecycle, which can be misidentified as the TinyShell back-connect behavior when communicating with internal patch servers (e.g., WSUS or Artifactory).powershell.exe processes launched by the “System” account or specific scheduled task IDs (e.g., TaskName: PatchDeployment_Nightly) connecting to known internal IP subnets used for software distribution.Database Backup and Maintenance Routines