This rule detects the presence of CICompress, a compression utility frequently leveraged by adversaries to stage or obfuscate payloads within CI/CD pipelines. Proactively hunting for this tool helps identify potential supply chain attacks or unauthorized code execution that may be hidden within build artifacts in the Azure Sentinel environment.
rule CICompressv10
{
meta:
author="malware-lu"
strings:
$a0 = { 6A 04 68 00 10 00 00 FF 35 9C 14 40 00 6A 00 FF 15 38 10 40 00 A3 FC 10 40 00 97 BE 00 20 40 00 E8 71 00 00 00 3B 05 9C 14 40 00 75 61 6A 00 6A 20 6A 02 6A 00 6A 03 68 00 00 00 C0 68 94 10 40 00 FF 15 2C 10 40 00 A3 F8 10 40 00 6A 00 68 F4 10 40 00 FF 35 }
condition:
$a0 at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
7z.exe, 7zG.exe, WinRAR.exe, or WinRAR.exe when the parent process is a known shell (explorer.exe, cmd.exe, powershell.exe) or a standard file manager.gzip, bzip2, or zip) as part of nightly data archival jobs on file servers or build agents.
Task Scheduler (svchost.exe with specific service GUIDs) or schtasks.exe where the command line contains keywords like archive, backup, or compress and the destination path is a known backup share (e.g., \\backup-server\archives\).zip, tar, or 7z commands within containerized agents or virtual machine runners.
svc-ci-agent, jenkins-agent) or where the working directory matches standard CI workspace paths (e.g., C:\Jenkins\workspace\, /home/runner/work/).