42
Zeus By Nick Bilogorskiy @belogor [email protected]

Zeus Dissected

  • Upload
    cyphort

  • View
    262

  • Download
    0

Embed Size (px)

DESCRIPTION

Zeus Dissected Rochester Security Summit October 7, 2014 Nick Bilogorskiy

Citation preview

Page 1: Zeus Dissected

ZeusBy Nick Bilogorskiy

@[email protected]

Page 2: Zeus Dissected

Nick BilogorskiyDirector of Security Research

Page 3: Zeus Dissected

3

Agenda

o What is Zeuso Dissecting the malwareo Attributiono Zeus advanced trickso Recommendations

Page 4: Zeus Dissected

4

Quick poll

Have you heard of Zeus?

Page 5: Zeus Dissected

5

o Zeus is the most successful banking malware to date.

o Trojan horse targeted at Windows operating systems

o Tens of millions of computers worldwide infected

ZEUS What is it

Page 6: Zeus Dissected

6

ZEUS 7 years old

Page 7: Zeus Dissected

7

ZEUS Prevalence

Page 8: Zeus Dissected

8

2007 2008Apr

2010April

2011October

2011March

2012December

2013

Peer to Peer version – Zeus Gameover - removes the centralized CnC infrastructure

Microsoft legal action through a civil lawsuit dubbed Operation b71

64-bit version of Zeus appears

ZeuS source code of version 2.0.8.9 leaked

Version 2.0Zeus version 1.0

ZEUS History

Page 9: Zeus Dissected

9

ZEUS how does it work

DROPPERrandom.exe

C&C SERVERcontrol communication

and updates

DELETE SCRIPTRandom.bat

ZBOTRandom2.exe

CONFIGURATIONrandom.ofu

drop Zbotfiles

delete dropper

Page 10: Zeus Dissected

10

•Used to build the exe file

•Unique to each owner

•URL and encryption key different for each owner

The Builder•Entry,

Static and Dynamic sections

•Download URL and exfiltration URL

The Configuration File

•Unique executable file built by the bot owner

The Exe File

•PHP scripts for monitoring and managing bots

The Server

ZEUS Architecture

Page 11: Zeus Dissected

11

ZEUS Builder

Page 12: Zeus Dissected

12

ZEUS Config

• url_config • url_loader • url_server • AdvancedConfigs • webFilters • WebFakes

Page 13: Zeus Dissected

o Google for “inurl: "cp.php?m=login“

ZEUS PHP backend

Image: Aditya Sood

Page 14: Zeus Dissected

ZEUS PHP backend

Image: Aditya Sood

Page 15: Zeus Dissected
Page 16: Zeus Dissected

ZEUS why is detection hard

Page 17: Zeus Dissected

ZEUS why is detection hard%APP%\Uwirpa 10.12.2013 23:50%APP%\Woyxhi 10.12.2013 23:50%APP%\Hibyo 19.12.2013 00:10%APP%\Nezah 19.12.2013 00:10%APP%\Afqag 19.12.2013 23:29%APP%\Zasi 19.12.2013 23:29%APP%\Eqzauf 20.12.2013 22:23%APP%\Ubapo 20.12.2013 22:23%APP%\Ydgowa 20.12.2013 22:23%APP%\Olosu 20.12.2013 23:03%APP%\Taal 20.12.2013 23:03%APP%\Taosep 20.12.2013 23:03%APP%\Wokyco 16.01.2014 13:22%APP%\Semi 17.01.2014 16:34%APP%\Uheh 17.01.2014 16:34

Page 18: Zeus Dissected

18

Quick poll

What is the name of Zeus author?

Page 19: Zeus Dissected

19

ZEUS Gameover Attribution

According to the FBI, losses are “more than $100 million.”

Image source: FBI

Page 20: Zeus Dissected

20

Evgeniy Mikhailovich Bogachev, 30, of Anapa, Russia.nickname “Slavik” , indicted for conspiracy, computer hacking, wire fraud, bank fraud, and money laundering .

Bogachev is identified as a leader of a cyber gang of criminals based in Russia and Ukraine that is responsible both GameOver Zeus and Cryptolocker.

ZEUS Gameover Attribution

Page 21: Zeus Dissected

ZEUS JabberZeus

Page 22: Zeus Dissected

22

ZEUS JabberZeus Attribution

Page 23: Zeus Dissected

23

Stole more than $70 million from banks worldwide

Ringleader, 32-year-old Ukrainian property developer Yevhen Kulibaba

Kulibaba’s right-hand man, 28-year-old Yuriy Konovalenko

Karina Kostromina, wife of Kulibaba, 33-year-old Latvian woman jailed for money laundering

Photos from krebsonsecurity.com

ZEUS JabberZeus Attribution

Page 24: Zeus Dissected

24

Source: Brian Krebs

ZEUS Business workflow

Page 25: Zeus Dissected

o Steganography o Rootkito Anti-Debuggingo Digital signatureso New Hooking implementation

ZEUS Advanced tricks

Page 26: Zeus Dissected

ZEUS Steganographic config

Page 27: Zeus Dissected

ZEUS Steganographic config

Page 28: Zeus Dissected

28

ZEUS Necurs rootkit

Access is denied when deleting the malware files.

Page 29: Zeus Dissected

29

Zeus advanced tricks – Anti-Debugging

o Fake Jumps

Page 30: Zeus Dissected

30

Zeus Advanced Tricks – Digital Certificates

Page 31: Zeus Dissected

31

It also employs DGA – Domain Generation Algorithm. DGA is a way for malware to prevent blacklisting of its CnC site, where an infected machine creates thousands of domain names such as: www.<gibberish>.com and would attempt to contact a portion of these with the purpose of receiving an update or commands. The technique was popularized by Conficker worm, which generated 50,000 domains a day.

Zeus Advanced Tricks - DGA

Page 32: Zeus Dissected

„Man-in-the-browser“

Page 33: Zeus Dissected

Modularity.

Flexibility.

Persistence.

ZEUS why so successful

Page 34: Zeus Dissected

ZEUS why is removal hard

Registry Key

Infector

Decrypt & load DLL

Inject DLL

Page 35: Zeus Dissected

ZEUS tell tale signs

POST /grace/gate.php HTTP/1.1GET /grace/cfg.bin HTTP/1.

Page 36: Zeus Dissected

ZEUS tell tale signs

o Zeus version 2 saves encrypted config in registry

o HKCU\Software\Microsoft\{Random}

Page 37: Zeus Dissected

https://www.youtube.com/watch?v=E0TQW82o8cc

Demo

ZEUS MALWARE KIT DEMO

Page 38: Zeus Dissected
Page 39: Zeus Dissected

39

Every platform affected by malware

o Windows : Zeus, Cryptolocker, 100+ million malwareo Android : Code4HKo Linux: Shellshock

o Mac: iWorm Reddit worm

http://www.securelist.com/en/analysis/204792318/Kaspersky_Security_Bulletin_2013_Overall_statistics_for_2013http://www.sophos.com/en-us/medialibrary/PDFs/other/sophos-security-threat-report-2014.pdf

All platforms

are at risk!

Page 40: Zeus Dissected

Malware Kill Chain

o Awarenesso Behavioro Correlationo Encryptiono Intelligence

LUREEXPLOIT

INFECTCALL

HOMESTEAL

DATA

BREAK THE

CHAIN

Page 41: Zeus Dissected

Anti-Sandbox Malware Techniques

October 30: info.cyphort.com/mmwoctober

Page 42: Zeus Dissected

Thank [email protected]

@belogorinfo.cyphort.com/mmwoctober