(YARA) YARA_Base64

Download Raw

rule golang_base64_enc {
	meta:
		author = "RussianPanda"
		decription = "Detects Base64 Encoding and Decoding patterns in Golang binaries"
        	reference = "https://unprotect.it/technique/base64/"
		date = "1/10/2024"
		hash = "509a359b4d0cd993497671b91255c3775628b078cde31a32158c1bc3b2ce461c"
	strings:
	        $s1 = {62 61 73 65 36 34 2e 53 74 64 45 6e 63 6f 64 69 6e 67 2e 45 6e 63 6f 64 65 54 6f 53 74 72 69 6e 67 28 [0-15] 29}
	        $s2 = {62 61 73 65 36 34 2e 53 74 64 45 6e 63 6f 64 69 6e 67 2e 44 65 63 6f 64 65 53 74 72 69 6e 67 28 [0-15] 29}
	        $s3 = {69 66 20 65 72 72 20 21 3D 20 6E 69 6C 20 7B}
		$s4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
 	condition:
		all of ($s*) 
        	and uint16(0) == 0x5A4D
}


rule base64_enc {
	meta:
		author = "RussianPanda"
		decription = "Detects Base64 Encoding"
        	reference = "https://unprotect.it/technique/base64/"
		date = "1/10/2024"
		hash = "09506d1af5d8e6570b2b7d05143f444f5685d2a9f3304780ef376edf7b2d79e6"
	strings:
		$s2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
        	$s3 = {83 E? 3F}
 	condition:
		all of ($s*) 
        	and uint16(0) == 0x5A4D
		
}

Associated Techniques

Technique Name Technique ID's Snippet(s) OS
Base64 U0706 E1027.m02

Matching Samples 10 most recent

Sample Name Matching Techniques First Seen Last Seen
DarkComet.exe 8 2025-04-25 4 days, 23 hours ago
mmmm.exe 7 2025-03-23 1 month ago
noui.exe 8 2025-02-20 2 months, 1 week ago
dt_socket.exe_ 7 2025-02-20 2 months, 1 week ago
weave hackvshack.net.dll 6 2025-02-12 2 months, 2 weeks ago
cracked-by-txmuxn.exe 6 2025-02-09 2 months, 2 weeks ago
kernel32.dll 13 2024-12-30 3 months, 4 weeks ago
Eraser 6.2.0.2993.exe 4 2024-12-24 4 months ago
honeypot.exe 5 2024-12-04 4 months, 3 weeks ago
Xulytaikhoan.xlsx 14 2024-11-26 5 months ago
View All

Created

January 11, 2024

Last Revised

January 11, 2024