Download - Bosses love excel, hackers too

Transcript
Page 1: Bosses love excel, hackers too

Bosses love Excel …

hackers too!Juan Garrido “Silverhack”

Chema Alonso (@chemaalonso)

INFORMATICA64.COM

Page 2: Bosses love excel, hackers too

Who?

Page 3: Bosses love excel, hackers too

About

• Working at INFORMATICA64.COM• http://www.informatica64.com

Page 4: Bosses love excel, hackers too

What?

Page 5: Bosses love excel, hackers too

Terminal Applications

Page 6: Bosses love excel, hackers too

Why?

Page 7: Bosses love excel, hackers too

RDP

Page 8: Bosses love excel, hackers too

Citrix

Page 9: Bosses love excel, hackers too

Using Bing

Page 10: Bosses love excel, hackers too

Goverment Sites

Page 11: Bosses love excel, hackers too

Goverment Sites

Page 12: Bosses love excel, hackers too

Secure?

Page 13: Bosses love excel, hackers too
Page 14: Bosses love excel, hackers too

Verbosity• Conf -files are too verbosity–Internal IP Address–Users & encrypted passwords–Internal Software–Perfect for APTs• 0-day exploits• Evilgrade attacks

Page 15: Bosses love excel, hackers too

Verbosity

Page 16: Bosses love excel, hackers too

Verbosity• Attacker can:–modify conf files–Generate error messages–Fingerprinting all software• Example: C.A.C.A.

Page 17: Bosses love excel, hackers too

Terminal Services• Remoteapplicationmode–0 -> Desktop–1 -> Only App

• What app?–Alternate Shell (RDP < v 6.0)–RempoteApplicationProgram (RDP v 6.0++)

Page 18: Bosses love excel, hackers too

Terminal ServicesError Messages

Page 19: Bosses love excel, hackers too

Computer Assited Citrix Apps

Page 20: Bosses love excel, hackers too

Playing the Piano

Page 21: Bosses love excel, hackers too

Playing the Piano• Too many links

–Specially running on Windows 2008

• Too many environment variables–%SystemRoot%–%ProgramFiles%–%SystemDrive%

Page 22: Bosses love excel, hackers too

Window Server 2008 wants to help you!! (anytime!)

Page 23: Bosses love excel, hackers too

Playing the Piano• Too many shortcuts

– Ctrl + h – Web History– Ctrl + n – New Web Browser– Shift + Left Click – New Web Browser– Ctrl + o – Internet Addres– Ctrl + p – Print– Right Click (Shift + F10)– Save Image As– View Source– F1 – Jump to URL…

Page 24: Bosses love excel, hackers too

Playing the Piano

• Too , Too , Too many shorcuts:–ALT GR+SUPR = CTRL + ALT + SUP–CTRL + F1 = CTRL + ALT + SUP–CTRL + F3 = TASK MANAGER

• Sticky Keys

Page 25: Bosses love excel, hackers too

Easy?

Page 26: Bosses love excel, hackers too

Demo Servers

Page 27: Bosses love excel, hackers too

Paths?

Page 28: Bosses love excel, hackers too

Minimun Exposure Paths

• There are as many paths as pulbished apps• Every app is a path that could drive to elevate privileges• Complex tools are better candidates

• Excel is a complex tool

Page 29: Bosses love excel, hackers too

Bosses love

EXCEL

Page 30: Bosses love excel, hackers too

VBA

Page 31: Bosses love excel, hackers too

Excel 1:

The power of VBA

Page 32: Bosses love excel, hackers too

Software Restriction Policies

• Too many consoles–Cmd.exe–Windows Management Instrumentation–PowerShell–Jscript–Cscript..–….

Page 33: Bosses love excel, hackers too

Software Restriction Policies

• Forbidden apps–Via hash–Via path

• App Locker–Using Digital Certificates

• ACLs

Page 34: Bosses love excel, hackers too

Software Restriction Policies

• Too many consoles,–(Even frOm other OS)–Reactos….

Page 35: Bosses love excel, hackers too

Excel 2

forbidden Consoles

Page 36: Bosses love excel, hackers too

Security Policesfor Excel Macros

1) Disable VBA- Secure but it´s not REAL

Excel2) Security for macros

- No macros- signed macros- Case by case - All macros

Page 37: Bosses love excel, hackers too

Excel 3No

macros!

Page 38: Bosses love excel, hackers too
Page 39: Bosses love excel, hackers too

Excel 4

Only Signed-macros

Page 40: Bosses love excel, hackers too

Risky?

Page 41: Bosses love excel, hackers too

Start the III World War

• Find a bug in a DHS Computer• Trust in your Rogue CA• Generate an attacking URL in the

CRL (attacking China, for example)• Sign an excel file with your rogue

CA• Send a digital ly-signed excel file

to someone relevant!

Page 42: Bosses love excel, hackers too

Something like…

Page 43: Bosses love excel, hackers too

Just kiddin

g

Page 44: Bosses love excel, hackers too

Solutions• Re-evaluate your Remote App

connections• No alerts at all in Excel (and all the

rest of apps you publish)• No trusted locations in user-

profiles• No shared remote users• Trust in nobodoy…• Sorry, not even in nobody

Page 45: Bosses love excel, hackers too

How may paths do you have?

• TS Web Access–Hidden means not-removed

Page 46: Bosses love excel, hackers too

Contact information

• Juan Garrido “Silverhack”– [email protected]–http://windowstips.wordpress.com

• Chema Alonso–[email protected]–http://www.elladodelmal.com –@chemaalonso

• http://www.informatica64.com

Page 48: Bosses love excel, hackers too

?