(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
noui.exe 8 2025-02-20 2 weeks, 3 days ago
dt_socket.exe_ 7 2025-02-20 2 weeks, 3 days ago
weave hackvshack.net.dll 6 2025-02-12 3 weeks, 5 days ago
cracked-by-txmuxn.exe 6 2025-02-09 1 month ago
kernel32.dll 13 2024-12-30 2 months, 1 week ago
Eraser 6.2.0.2993.exe 4 2024-12-24 2 months, 1 week ago
honeypot.exe 5 2024-12-04 3 months ago
Xulytaikhoan.xlsx 14 2024-11-26 3 months, 1 week ago
Setup.exe 5 2024-11-25 3 months, 1 week ago
8126a59c84aad134868c842eabc2...204cd859e6322d22ce5a3b937e2a 5 2024-11-19 3 months, 2 weeks ago
View All

Created

January 11, 2024

Last Revised

January 11, 2024