Reading Between The Lines Of Code Ziraat Stealer
A .NET binary disguised as a data recovery tool was analysed and found to be a stealer that logs keystrokes, captures the clipboard and recovers saved passwords from browsers and email clients. It sends the collected data to a command-and-control domain over POST requests.
Published on infosecwriteups.com
Hello Everybody! Today i will be conducting an analysis of a .NET information stealer.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the malware hides its real behaviour by disguising itself as a legitimate tool, obfuscating its code and encrypting Windows API names and an embedded payload so static detection fails.
Impact
An infected machine could have keystrokes, clipboard contents and saved passwords from many browsers and email clients stolen and sent to the attacker's server.
What the attacker needed
Victim runs the malicious binary; Windows machine with .NET
How it was found
- Load the .NET binary into a decompiler such as DNSpy to inspect the code.
- Examine the main entry point, which starts several threads for persistence, keylogging and password recovery.
- Follow the password recovery functions to the obfuscated function and deobfuscate the binary.
- Set a breakpoint at the return of the decryption function and dump the decoded bytes from memory.
- Observe that the decrypted bytes begin with the Windows executable marker and identify the recovered tool.
- Replicate the decryption routine to reveal the encrypted Windows API names.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a write-up of someone taking apart a malicious program (malware) to see what it does. The program pretends to be a useful recovery tool, but secretly records what you type and copies saved passwords from your browser and email apps, then sends them to a server the attacker controls. The analyst used a decompiler, a tool that turns a compiled .NET program back into readable code, to inspect it.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.