(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
L2Oldies.dll 1 2026-09-23 1 day, 17 hours ago
GHelper.exe 5 2026-09-18 6 days, 17 hours ago
ci3-shop.exe 5 2026-09-17 1 week ago
Promob5.exe 5 2026-09-15 1 week, 2 days ago
4KVideoDownloaderPlusPortable.exe 8 2026-09-12 1 week, 5 days ago
server - copia.exe 4 2026-09-12 1 week, 5 days ago
Calculadora.exe 4 2026-09-12 1 week, 5 days ago
AOMEI Partition Assistant Keygen.exe 3 2026-09-08 2 weeks, 2 days ago
sample1.ex 6 2026-09-08 2 weeks, 2 days ago
discord_game_sdk.dll 7 2026-09-08 2 weeks, 3 days ago
View All

Created

January 4, 2024

Last Revised

March 27, 2026