Skip to content
Leaked secrets Write-up Advanced

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.

JustAnother-Engineer Follow

Published on infosecwriteups.com

Hello Everybody! Today i will be conducting an analysis of a .NET information stealer.

JustAnother-Engineer, on infosecwriteups.com

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

  1. Load the .NET binary into a decompiler such as DNSpy to inspect the code.
  2. Examine the main entry point, which starts several threads for persistence, keylogging and password recovery.
  3. Follow the password recovery functions to the obfuscated function and deobfuscate the binary.
  4. Set a breakpoint at the return of the decryption function and dump the decoded bytes from memory.
  5. Observe that the decrypted bytes begin with the Windows executable marker and identify the recovered tool.
  6. 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.

More by JustAnother-Engineer

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.