SLIDE 1 #teissamsterdam1 9
The Magecart threat and how you can mitigate the risk to your organisation
Benjamin Sims Founder Tech City Labs
15:20 – 15:40
SLIDE 2
MAGECART: HOW TWO HUGE COMPANIES LOST 450,000
CUSTOMERS’ DETAILS AND HOW YOU CAN STOP IT HAPPENING TO YOU
SLIDE 3 ABOUT ME
- Founder of Tech City Labs
- Background in data engineering and security
- Advise law firms on litigation around hacking,
phishing on fraud cases
DATA DETECTIVE
Benjamin Sims
SLIDE 4 ABOUT THIS TALK
- Based on public information and (a little)
speculation
- No inside knowledge
- Check out riskiq.com
SLIDE 5
TICKETMASTER
SLIDE 6
BRITISH AIRWAYS
SLIDE 7 WHO DID IT?
- ‘Magecart’
- Background in shopping cart hacks
- Actually 6 or 7 groups
- Card numbers sold on to carding
forums in bulk
SLIDE 8 MORE AND MORE SOPHISTICATED
- Deliberate targeting
- SSL certificates
- Infrastructure designed to blend in
- A whole industry: marketplaces, specialist
suppliers
SLIDE 9
- Names
- Addresses
- Credit card numbers
- Phone numbers
- CVC codes
DATA LOST
SLIDE 10
3RD PARTY JAVASCRIPT INJECTION:
SLIDE 11
EVERY WEBSITE AFFECTED
91
SLIDE 12
THE TICKETMASTER HACK HACK
SLIDE 13
WHAT IT WAS SUPPOSED TO DO
SLIDE 14
INCLUDED ON EVERY PAGE ON THE SITE
SLIDE 15
… AND SOMEBODY HACKED IT
SLIDE 16
… TO INCLUDE SKIMMER CODE
SLIDE 17 PEOPLE START TO NOTICE
April 12th (28 days) Text May 10th (46 days)
SLIDE 18 BRITISH AIRWAYS
- Targeted attack, script highly modified to
work only on ba.com
- Hidden in edited version of the open source
Modernizr library
- Hosted on BA’s *own website*
- Most likely the CMS compromised in some way
SLIDE 19
PEOPLE START TO NOTICE
SLIDE 20 PEOPLE START TO NOTICE
Text: 6th June (73 days)
SLIDE 21 THEY REALISE…
130 days, 40,000 sets of user details (in the UK)
SLIDE 22 BRITISH AIRWAYS
14 days... 380,000 customer details taken
SLIDE 23
MANY MORE
SLIDE 24 HOW TO AVOID BEING THE NEXT VICTIM?
- 1. Who can make changes?
- 2. Who have you trusted?
- 3. Listen to your users and partners
- 4. Technical solutions
SLIDE 25
WHO CAN MAKE CHANGES?
MARKETING? DESIGN?
SLIDE 26
WHO HAVE YOU TRUSTED?
SLIDE 27
LISTEN WHEN PEOPLE TELL YOU YOU'VE BEEN HACKED
SLIDE 28 TECHNICAL SOLUTIONS
- iFrame sandboxing
- source code monitoring
- SRI
SLIDE 29 SRI
- Subresource integrity checking
Magecart don't want you to know this one simple trick!
- W3C recommendation from 2016
- Supported by 90% of browsers
SLIDE 30
ALL YOU NEED TO DO
srihash.org
SLIDE 31 Available for questions / consulting
benjamin@techcitylabs.com @techcitylabs