(YARA) Detect XOR Encoded Malicious Patterns
rule XOR_hunt
{
meta:
author = "Thomas Roccia | @fr0gger_"
description = "100DaysOfYara - An attempt to catch malicious/suspicious pe file using xor for some data"
status = "experimental"
strings:
$s1 = "http://" xor
$s2 = "https://" xor
$s3 = "ftp://" xor
$s4 = "This program cannot be run in DOS mode" xor
$s5 = "Mozilla/5.0" xor
$s6 = "cmd /c" xor
$s7 = "-ep bypass" xor
condition:
uint16(0) == 0x5A4D and any of them
}
Associated Techniques
| Technique Name | Technique ID's | Categories | Snippet(s) |
|---|---|---|---|
| XOR Operation | U0701 E1027.m02 |
|
Matching Samples 10 most recent
| Sample Name | Matching Techniques | First Seen | Last Seen |
|---|---|---|---|
| 2_5339247083163523934.exe | 6 | 2026-03-27 | 2 hours, 42 minutes ago |
| sentinel - roblox.exe | 1 | 2026-03-26 | 15 hours, 5 minutes ago |
| LEGO Voyagers installer.exe | 4 | 2026-03-25 | 2 days, 2 hours ago |
| rootkit.exe | 10 | 2026-03-24 | 3 days ago |
| spread.exe | 6 | 2026-03-24 | 3 days ago |
| rlm1611_http.dll | 6 | 2025-11-22 | 4 days ago |
| Client_2.exe | 3 | 2026-03-22 | 5 days, 7 hours ago |
| ngen.exe | 7 | 2026-03-20 | 1 week ago |
| write.exe | 5 | 2026-03-20 | 1 week ago |
| UnPackMe_VMProtect_1.53.exe | 7 | 2026-03-19 | 1 week, 1 day ago |
Created
January 4, 2024
Last Revised
March 27, 2026