The Day Of The Update

   Once upon an Update …

         Itzik Kotler
        Tomer Bitton
Update? I already donated
• Ability to delivery bug fixes or new features
  to existing customers of applications

• Natur...
What’s The Big Update?
• Updates are usually a background tasks,
  thus draw little attention from the user
• Most updates...
Catching an Update
• Feasible over a variety of MITM Attacks:
  – Wi-Fi via Open/Weak Cryptography
  – LAN via ARP Poisoni...
Subverting The Update
            Procedure
• Client asks Server whether it’s up to date
  – Replied with Negative Answer
...
Subverting The Update
               Connection
• Spoofing Server Reply:
  – IP:
     • Invert source and destination addr...
Subverting The Update Agent
• Client accesses a Document (XML/INI/...)
  – Reply w/ 200 OK (Cooked Data)
     • Document c...
Attack Walkthrough:

200 OK w/ Cooked Data
Target Application: Notepad++
Notepad++
Checks For a New Version
Replied w/ 200 OK (Cooked Data)
200 OK w/ Cooked Document
• Update expects:
  – List of Sites for Downloads
    • Upcoming downloads will go to our sites
...
Attack Walkthrough:

302 Found w/ Malicious Site
   Target Application: Skype
Skype Downloads a Newer Version
Replied w/ 302 Found (M. URL)
302 Found w/ Malicious URL
• Update expects:
  – 200 OK on SkypeSetup.exe
• Update receives:
  – 302 Found w/ SkypeSetup.e...
Attack Walkthrough:

   200 OK + 302 Found
Target Application: MalwareBytes
MalwareBytes Update Flow
Replied w/ 200 and 302
Combo Attack (200 + 302)
• Update document don’t contains sites
  – 200 OK only contains a positive update
    answer, no ...
Time for an Update Check!
• Who’s also Vulnerable?
  – Alcohol 120
  – GOM Player
  – iMesh
  – Skype
  – Hex Workshop
  –...
IPPON Targets Maintenance
• IPPON takes it’s targets from an XML file
  that contains triggers and responses

• IPPON Targ...
SSL Can Update Me Better?
• Generally yes, but surprisingly common
  implementations of it in Updaters not.
• SSL is expen...
Update w/ Self Signed Certificate
• For an effective SSL the Server must
  present a valid, verifiable Certificate that
  ...
Update w/ NULL Cipher
• SSL Server gets to pick Cipher Suite
• It’s possible to race condition ServerHello
  or ClientHell...
Update, for a better future
• Digital Signature
  – Update agent holds a public key, and can
    verify the download direc...
Nothing but an Update Party!
• Proprietary Update Attack:
  – Playing w/ Anti Virus Rules
     • Anti Virus Attacks Legiti...
Questions?
IPPON Project:

http://code.google.com/p/ippon-mitm/

 Get your latest version and targets!
Happy Updating! ☺

 ./ippon.py –w –i <INTERFACE>
targets.xml -u <MALWARE SITE>
Upcoming SlideShare
Loading in...5
×

The Day of the Updates

574

Published on

Software updates apply patches or introduce new features to an application. In most cases, the update procedure is conducted in an insecure manner, exposing the updater to execution of malicious code or to manipulation of application data such as anti-virus signatures.

This presentation will describe in detail different application-update procedures. It will then demonstrate several techniques of update-exploitation attacks, and introduce a new tool, which leverages a man-in-the-middle technique, to build and inject a fake update reply or hijack an on-going update session

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
574
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

The Day of the Updates

  1. 1. The Day Of The Update Once upon an Update … Itzik Kotler Tomer Bitton
  2. 2. Update? I already donated • Ability to delivery bug fixes or new features to existing customers of applications • Natural inhibitors: – Punch Cards – BBS/Modem – Floppies/CD’s – Internet
  3. 3. What’s The Big Update? • Updates are usually a background tasks, thus draw little attention from the user • Most updates are binaries that gets executed on the updater machine • An update can be used to manipulate sensitive data such as anti-virus rules • Update can be silently tampered with it, leaving almost no trace behind
  4. 4. Catching an Update • Feasible over a variety of MITM Attacks: – Wi-Fi via Open/Weak Cryptography – LAN via ARP Poisoning – WAN via DNS Cache Attack (Thanks Dan!) • Wi-Fi is our favorite choice, common in Airports/McDonalds/Café shops and etc.
  5. 5. Subverting The Update Procedure • Client asks Server whether it’s up to date – Replied with Negative Answer • Client asks Server for Download Sites – Replied with Malicious Sites OR • Client downloads from a Known Site – Redirected into a Malicious Site
  6. 6. Subverting The Update Connection • Spoofing Server Reply: – IP: • Invert source and destination addresses – TCP: • Invert source and destination ports • SEQ is received ACK • ACK SEQ is received DATA + SEQ • One Shot, One Kill Flags: PUSH + ACK + FIN • FIN flag is muting the Server, and possibly causing the Client to disconnect afterward
  7. 7. Subverting The Update Agent • Client accesses a Document (XML/INI/...) – Reply w/ 200 OK (Cooked Data) • Document contains Malicious Binary Sites • Client downloads a File – Reply w/ 302 (Redirection) • Redirection to Malicious Binary Site • Server – Will be Ignored (muted at Connection Level)
  8. 8. Attack Walkthrough: 200 OK w/ Cooked Data Target Application: Notepad++
  9. 9. Notepad++ Checks For a New Version
  10. 10. Replied w/ 200 OK (Cooked Data)
  11. 11. 200 OK w/ Cooked Document • Update expects: – List of Sites for Downloads • Upcoming downloads will go to our sites – Is There A Newer Version Available? • There’s always a “newer” version for you • Summary: – Update will take place on our provided sites – One Shot, One Kill!
  12. 12. Attack Walkthrough: 302 Found w/ Malicious Site Target Application: Skype
  13. 13. Skype Downloads a Newer Version
  14. 14. Replied w/ 302 Found (M. URL)
  15. 15. 302 Found w/ Malicious URL • Update expects: – 200 OK on SkypeSetup.exe • Update receives: – 302 Found w/ SkypeSetup.exe • This download will go to our site • Summary: – Pre-programmed URLs bypassed – One Shot, One Kill!
  16. 16. Attack Walkthrough: 200 OK + 302 Found Target Application: MalwareBytes
  17. 17. MalwareBytes Update Flow
  18. 18. Replied w/ 200 and 302
  19. 19. Combo Attack (200 + 302) • Update document don’t contains sites – 200 OK only contains a positive update answer, no sites or other parameters defined • Update has a pre-defined URL – 302 Found redirects the upcoming download to our own site
  20. 20. Time for an Update Check! • Who’s also Vulnerable? – Alcohol 120 – GOM Player – iMesh – Skype – Hex Workshop – Adobe PDF Reader –… • Let’s see IPPON taking them down!
  21. 21. IPPON Targets Maintenance • IPPON takes it’s targets from an XML file that contains triggers and responses • IPPON Target specifics: – Response which is either static, dynamic (on the fly) or a redirection attempt – Trigger which is made of a given HOST, URL and can be equal to ANY
  22. 22. SSL Can Update Me Better? • Generally yes, but surprisingly common implementations of it in Updaters not. • SSL is expensive resource-wise, thus it’s not fit for an entire download session • Update takes place in the background, there’s no little golden lock so not everybody puts the efforts
  23. 23. Update w/ Self Signed Certificate • For an effective SSL the Server must present a valid, verifiable Certificate that costs money. • Cheap SSL Solutions: – Update w/ Self Signed Certificate – Update w/ Third-Party Certificate (certificate validity not verified) • Result: – Vulnerable, only provides looks ‘n feel!
  24. 24. Update w/ NULL Cipher • SSL Server gets to pick Cipher Suite • It’s possible to race condition ServerHello or ClientHello messages to gain visibility • If Cipher is set to NULL, there’s little benefit for SSL • Minimum Cipher Suite Strength should be set in advance to avoid such tampering
  25. 25. Update, for a better future • Digital Signature – Update agent holds a public key, and can verify the download directly, or indirectly throughout a file that contains an md5/sha1 • SSL (The Right Way): – Must be Valid/Verifiable Certificate – Only needs to exchange an MD5/SHA1 of the upcoming download
  26. 26. Nothing but an Update Party! • Proprietary Update Attack: – Playing w/ Anti Virus Rules • Anti Virus Attacks Legitimate Applications • Anti Virus Attacks Itself • Anti Virus Protects Virus • Hit ‘n Run Mode: – If application saves, or maintains a list of latest download sites and you’ve managed to slip one – you’ve got an returning customer ☺ • Contagious Mode: – Embedding IPPON and run it on updater, so they could in turn infect their insecure environment wherever they go
  27. 27. Questions?
  28. 28. IPPON Project: http://code.google.com/p/ippon-mitm/ Get your latest version and targets!
  29. 29. Happy Updating! ☺ ./ippon.py –w –i <INTERFACE> targets.xml -u <MALWARE SITE>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×