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
Capabilities
- Written in Nim (64-bit), statically linked runtime
- Reads a target file (cosmo.jpeg) from the Desktop
- Encrypts data with RC4 using the key "SikoMode" (key = contents of passwrd.txt)
- Base64-encodes and exfiltrates data in chunks over HTTP
- Self-deletes on disk ("houdini") as an anti-forensics measure
- Guarded execution — checks a callback and the presence of cosmo.jpeg
Indicators of Compromise
Network indicators
| Type | Value | Note |
|---|---|---|
| url | http://update.ec12-4-109-278-3-ubuntu20-04.local/ | First callback URL — must be reachable or the sample self-deletes |
| url | http://cdn.altimiter.local/feed?post=[data] | Exfiltration endpoint; [data] = RC4-encrypted, base64 file chunks |
| domain | cdn.altimiter.local | Exfiltration host |
Host indicators
| Type | Value | Note |
|---|---|---|
| file | Desktop\cosmo.jpeg | Target file read, encrypted, and exfiltrated |
| file | passwrd.txt | Contains the RC4 key ("SikoMode") |
MITRE ATT&CK
| Technique | ID | Note |
|---|---|---|
| Data from Local System | T1005 | Reads cosmo.jpeg from the Desktop. |
| Archive Collected Data: Archive via Custom Method | T1560.001 | RC4-encrypts and base64-encodes the file before sending. |
| Exfiltration Over C2 Channel | T1041 | Sends encoded chunks to cdn.altimiter.local. |
| Indicator Removal: File Deletion | T1070.004 | "houdini" routine deletes the binary from disk. |
| Obfuscated Files or Information | T1027 | Nim 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:
- What URI is used to exfiltrate data?
http://cdn.altimiter.local/feed?post=[data], where [data] is the encrypted, base64-encoded content of cosmo.jpeg sent in chunks.
- How is the file's data transmitted?
cosmo.jpeg is read in, then encrypted using the contents of passwrd.txt as the key.
- What encryption algorithm is used?
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.
- What key is used?
The contents of passwrd.txt, i.e. the text SikoMode.
- What is the significance of
houdini?
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

