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

Created

January 4, 2024

Last Revised

March 27, 2026