This rule detects the execution of the Yoda Crypter, a lightweight malware tool often used by adversaries to encrypt files or establish persistence during initial access phases. Proactively hunting for this indicator in Azure Sentinel allows the SOC team to identify low-severity compromises that may be overlooked by standard alerts, ensuring early containment of potential ransomware precursors or crypter-based attacks.
rule yoda_crypter_1_3 : Crypter
{
meta:
author="Kevin Falcoz"
date_create="15/04/2013"
description="Yoda Crypter 1.3"
strings:
$signature1={55 8B EC 53 56 57 60 E8 00 00 00 00 5D 81 ED 6C 28 40 00 B9 5D 34 40 00 81 E9 C6 28 40 00 8B D5 81 C2 C6 28 40 00 8D 3A 8B F7 33 C0 EB 04 90 EB 01 C2 AC}
condition:
$signature1 at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
yodacrypt (or a similar custom crypter wrapper) to obfuscate a small PowerShell script or C# payload before deploying it to a staging environment for testing, where the crypter is executed locally to generate the encrypted output.
code.exe, idea64.exe, visualstudio.exe) or a build tool (e.g., msbuild.exe, dotnet.exe) and the command line arguments contain keywords like --output, --encrypt, or -o.*.lab.local) or security test accounts (e.g., svc-security-test, admin-crypto-bench) and limit exclusions to non-production AD groups.NT AUTHORITY\NETWORK SERVICE, svc-build-agent) where the working directory is within standard build paths (e.g., C:\builds\, D:\artifacts\) and the process name matches the crypter binary (e.g., yodacrypt.exe, crypter13.exe).