(YARA) Detect XOR Encoded Malicious Patterns

Download Raw

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
vgk.sys 9 2026-11-23 1 day, 4 hours ago
VmProtectUnpacker.vmp.exe 2 2026-11-21 3 days, 17 hours ago
HoneypotLoader.exe 9 2026-11-18 6 days, 13 hours ago
Phantom_Emulator(1).exe 4 2026-11-16 1 week, 1 day ago
CrackMeTestOne.exe 7 2026-11-11 1 week, 6 days ago
Game.vmp.exe 4 2026-11-11 2 weeks ago
Promob5.exe 5 2026-11-10 2 weeks ago
NjRat 0.7D Horror Edition.exe 7 2026-11-05 2 weeks, 5 days ago
1_78_04-windows(4).exe 3 2026-11-01 3 weeks, 2 days ago
PCSoundFix.exe 4 2026-10-26 4 weeks, 1 day ago
View All

Created

January 4, 2024

Last Revised

March 27, 2026