0x The Malware Lab
Stealer
Stealer.SikoMode.Nim

Nim / Win64 · SikoMode

A Nim-compiled information stealer. It reads cosmo.jpeg from the Desktop, encrypts it with RC4 using the key "SikoMode", and exfiltrates it as base64 chunks to a hardcoded C2. It self-deletes ("houdini") when conditions aren't met, and only runs if it can reach its first callback.

Identification

Original name
Stealer.exe.malz
Aliases
Stealer.exe.malz, unknown.exe.malz, SikoMode
File type
PE32+ executable (GUI) x86-64, for MS Windows
SHA256
3aca2a08cf296f1845d6171958ef0ffd1c8bdfc3e48bdd34a605cb1f7468213e
MD5
b9497ffb7e9c6f49823b95851ec874e3
VirusTotal
No result (not seen by VirusTotal)

Capabilities

Indicators of Compromise

Network indicators

TypeValueNote
urlhttp://update.ec12-4-109-278-3-ubuntu20-04.local/First callback URL — must be reachable or the sample self-deletes
urlhttp://cdn.altimiter.local/feed?post=[data]Exfiltration endpoint; [data] = RC4-encrypted, base64 file chunks
domaincdn.altimiter.localExfiltration host

Host indicators

TypeValueNote
fileDesktop\cosmo.jpegTarget file read, encrypted, and exfiltrated
filepasswrd.txtContains the RC4 key ("SikoMode")

MITRE ATT&CK

TechniqueIDNote
Data from Local SystemT1005Reads cosmo.jpeg from the Desktop.
Archive Collected Data: Archive via Custom MethodT1560.001RC4-encrypts and base64-encodes the file before sending.
Exfiltration Over C2 ChannelT1041Sends encoded chunks to cdn.altimiter.local.
Indicator Removal: File DeletionT1070.004"houdini" routine deletes the binary from disk.
Obfuscated Files or InformationT1027Nim stack strings; RC4 + base64 encoding of exfil data.

Execution flow

1. Check the first callback URL (update.ec12-4-109-278-3-ubuntu20-04.local). If unreachable and cosmo.jpg is absent from the Desktop, invoke houdini and self-delete. 2. Read cosmo.jpeg from the Desktop and base64-encode it. 3. Encrypt it with RC4, key SikoMode (the contents of passwrd.txt). 4. Exfiltrate the result in chunks to http://cdn.altimiter.local/feed?post=[data]. 5. Invoke houdini again to remove the binary from disk.

Static analysis

file reports PE32+ executable (GUI) x86-64 — a 64-bit binary. Strings and FLOSS show heavy Nim artifacts (fatal.nim, io.nim, parseutils.nim, strutils.nim) and networking calls (connect, send, select, POST). FLOSS extracted several stack strings. Notable IAT entries: GetModuleFileNameW, CreateFileW, SetFileInformationByHandle, CloseHandle, InternetOpenW, InternetOpenUrlA, InternetCloseHandle (SetFileInformationByHandle supports the self-delete).

Dynamic analysis

When connected to the internet (with INetSim), the sample first deletes itself after executing. It has no persistence and self-deletes under the same conditions that keep it from running (first callback unreachable and cosmo.jpg absent).

Challenge Q&A:

http://cdn.altimiter.local/feed?post=[data], where [data] is the encrypted, base64-encoded content of cosmo.jpeg sent in chunks.

cosmo.jpeg is read in, then encrypted using the contents of passwrd.txt as the key.

RC4 — visible from the imported libraries and by following the sym.stealstuff() routine, which calls toRC4 after opening cosmo.jpeg and converting it to base64.

The contents of passwrd.txt, i.e. the text SikoMode.

houdini is the method that makes the binary delete itself from disk; it is invoked in several places (visible in strings and in the Cutter decompilation).

Screenshots

Nim strings / FLOSS output
Nim strings / FLOSS output
RC4 exfiltration and self-delete behaviour
RC4 exfiltration and self-delete behaviour
← All samples