Transcript
Page 1: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

GPU-Assisted Password Cracking

Page 2: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Who may needPassword Recovery?

Ordinary users (own passwords)

IT Departments (employee’s passwords)

Security auditors, consultants and penetration testers

Law enforcement & government

Hackers usually don’t!

Page 3: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Why speed counts?

Users and IT Departments:«We needed those passwords yesterday»

Auditors, consultants and pentesters:

«Time is Money»

Page 4: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

How to increase speed?

Traditional way is to network together many computers to form a cluster

• Communication overhead

• Difficult to manage

• Not power-efficient

Page 5: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)
Page 6: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)
Page 7: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Any other options?

Page 8: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

For many HPC applications GPUsare many times fasterthan CPUs

Yes!

But they’re not only faster, they are

greener!

Page 9: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Why?

Page 10: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

CPUs are designed to be efficient at serialcomputing…

…while GPU’s main concern is

parallel computing

Page 11: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Intel® Core™ i7-965

“The highest performing desktop processor on the

planet.”

4 cores3,2 GHz

731 million transistors263 mm2

Page 12: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

L3 cache8 Мb

>384 million transistors

QPI

QPI

IO IOQueue

Core Core

Memory Controller

CoreCore

Page 13: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

L3 cache8 Мb

>384 million transistors

QPI

QPI

IO IOQueue

Core Core

Memory Controller

CoreCore

L2

Pagi

ng

Bran

ch P

redi

ctio

n

Inst

Fet

ch &

L1

L1 Data

Execution Units

Mem

ory

Orde

ring

&

Exec

utio

n

Out-of-Order

Scheduling &

Retirement

Instruction Decode & Microcode

Page 14: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

L3 cache8 Мb

>384 million transistors

QPI

QPI

IO IOQueue

Core Core

Memory Controller

CoreCore

Page 15: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

CPU dedicates only about 10% to the

execution units!

1/10

Page 16: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

CPU dedicates only about 10% to the

execution units!

Page 17: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

NVIDIA®GeForce® GTX 285

240 cores1.476 GHz1.4 billion transistors470 mm2

Page 18: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

TPC TPC TPC TPC TPC

TPC TPC TPC TPCTPC

ROP Setup ROP

Memory Controller

PCIe & Memory

Controller

Thread Dispatch

Page 19: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

TPC TPC TPC TPC TPC

TPC TPC TPC TPCTPC

ROP Setup ROP

Memory Controller

PCIe & Memory

Controller

Thread Dispatch

Mul

tipro

cess

or

Mul

tipro

cess

or

Mul

tipro

cess

orTexture Fetch &

Other

Page 20: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

TPC TPC TPC TPC TPC

TPC TPC TPC TPCTPC

ROP Setup ROP

Memory Controller

PCIe & Memory

Controller

Thread Dispatch

Page 21: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

GPU dedicates about 30% to the execution units!

1/3

Page 22: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

GPU dedicates 6 times as manyresources to the execution units

as CPU!

183 Watts full load

6x130=780 Watts full load

Page 23: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Performance

70

87

32

570

795

195

920

1 330

250

1 920

2 600

680

0 1 000 2 000 3 000

MD5

NTLM

LM

Millions passwords per second

S1070

GTX 295

GTX 285

Q6600

Page 24: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Performance per $

389

483

178

1 629

2 271

557

1 917

2 771

521

240

325

85

0 500 1 000 1 500 2 000 2 500 3 000

MD5

NTLM

LM

Thousands passwords per $ per second

S1070

GTX 295

GTX 285

Q6600

Page 25: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Performance per Watt

667

829

305

3 115

4 344

1 066

3 183

4 602

865

2 400

3 250

850

0 1 000 2 000 3 000 4 000 5 000

MD5

NTLM

LM

Thousands passwords per watt per second

S1070

GTX 295

GTX 285

Q6600

Page 26: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Bad News:Not every algorithm is worth offloading to GPU

MD4 / MD5 SHA-1 / SHA-2

RIPEMD MD2 AES DES RC4

GPU is good at computing

but

GPU is bad at accessing random memory locations

Page 27: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Good News:

Humans love repetition

Page 28: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)
Page 29: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

WPA-PSK

3100

11800

12500

15750

21700

31500

52400

0 10000 20000 30000 40000 50000 60000

Core 2 Quad Q6600

GTX 280

GTX 285

HD4870

GTX 295

HD4870x2

Tesla S1070

Page 30: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Other Accelerators?

Based on FPGA (Xilinx)FireWireProprietary SDK

US $3’995

Page 31: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Single Unit Performance

27000

13500

3050

40000

16000

5050

0

5000

10000

15000

20000

25000

30000

35000

40000

45000

PGPdisk 128 PGPdisk 256 Office 2007

TACC1441

GTX 285

Page 32: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

US $3’995

Page 33: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

US $3’995

Page 34: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Performance for $4K

2700013500 3050

440000

176000

55550

0

50000

100000

150000

200000

250000

300000

350000

400000

450000

500000

PGPdisk 128 PGPdisk 256 Office 2007

TACC1441

11x GTX 285

Page 35: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Greener Computing

• Consider a cluster of 25 dual-CPU quad-core computers

• 400 watts full load each

• 10’000 watts total

Page 36: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Greener Computing

• Two Tesla S1070 provide same performance

• 800 watts full load each

• One computer for management

• 2’000 watts total

Page 37: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)
Page 38: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)
Page 39: GPU Assisted Password Cracking (Andrey Belenko, Elcomsoft)

Greener Computing

• 8’000 watts saved

• 49’090 kWh a year (at 70% utilization)

• € 5’890 savings on electricity a year (at 0.12€ per kWh average rate)

• Prevents 27’500 kg CO2 emission

• Takes 5 cars off the roads

• Saves 2’300 trees/year


Top Related