1 731
– وقتی حتی دیسک هم نمیفهمه چی شد!
📎 بدافزاری که هیچوقت نشد – هنر Doppelganging
📌 این تکنیک چیه؟
برخلاف Process Hollowing که توش یه پردازش موجود رو دستکاری میکردی
اینجا یه پردازش فیک میسازی که حتی روی دیسک هم چیزی ازش دیده نمیشه 😮💨
دیسکش پاکه ولی پروسسش زندهست!
🔥 چطوری کار میکنه؟
مراحل خلاصهش اینه:
1 یه فایل مشروع رو با NtCreateSection باز میکنی
2 یه تراکنش NTFS باز میکنی (Transactional File)
3 داخل اون تراکنش فایل اجرایی رو تغییر میدی (یعنی بدافزارتو میریزی توش)
4 با استفاده از اون فایل در تراکنش یه پروسس جدید میسازی
5 بدون اینکه تراکنش commit بشه!
📌 یعنی چی؟ یعنی ویندوز هیچوقت نمیفهمه همچین فایلی وجود داشته،
ولی پروسسش هنوز توی حافظه داره اجرا میشه 😶
🧪 چرا خیلی خفنه؟
✅ آنتیویروسها نمیتونن از دیسک شناساییاش کنن
✅ لاگ فایل نداره
✅ EDRها برای شناسایی باید خیلی عمیق باشن (و خیلیها نیستن)
⚒️ ابزار واقعی برای اجراش:
ابزار معروف Process Doppelganging PoC از hasherezade
یا خودت با C / C++ و ntdll بنویسش
👁️🗨️ چطوری بفهمیم چنین چیزی توی سیستم اجرا شده؟
خیلی سخته ولی:
ابزارهایی مثل Sysmon با event های مشکوک میتونن کمک کنن
حافظهبرداری با Volatility و بررسی PEهای بدون مسیر فایل
بررسی پروسسهایی که PE header دارن ولی فایل فیزیکی ندارن
volatility -f mem.raw --profile=Win10x64_19041 malfind
🧠 جمعبندی:
Process Doppelganging یعنی:
> «بدافزاری که اجرا شده… بدون اینکه هیچ جا نوشته بشه!»
When Even the Disk Has No Clue!
📎 The Malware That Never Existed – The Art of Process Doppelgänging
📌 What’s the Idea?
Unlike Process Hollowing, where you hijack an existing process,
Process Doppelganging creates a fake process that doesn’t even exist on disk! 😮💨
✅ The disk is clean
✅ But the process is alive in memory
🔥 How Does It Work?
Here’s a simplified breakdown:
1 Open a legit executable using NtCreateSection.
2 Create a transactional NTFS file (TxF).
3 Modify the file inside the transaction – inject your malicious payload.
4 Use the modified transactional file to spawn a new process.
5 Don’t commit the transaction!
📌 What Does That Mean?
It means Windows never sees the modified file.
No file ever appears on disk — yet the process is running in memory. 😶
🧪 Why Is This So Powerful?
✅ AVs can’t scan the disk – there’s nothing there.
✅ No file logs to trace.
✅ Most EDRs won’t detect it unless they go very deep (and many don’t).
⚒️ Real-World Tools:
Public PoC: Process Doppelgänging by hasherezade
Or roll your own in C/C++ using ntdll.dll and native APIs
👁️🗨️ How to Detect It?
It’s very tricky, but possible:
Tools like Sysmon may catch suspicious events
Memory forensics with Volatility
Look for processes with a PE header but no file path
Example command:
volatility -f mem.raw --profile=Win10x64_19041 malfind
🧠 Summary:
Process Doppelganging is:
>"Malware that runs… without ever being written to disk"
17 лип 2025, 16:52

