39
Prac%cal A)acks against Mobile Device Management (MDM) Daniel Brodie Senior Security Researcher Lacoon Mobile Security March 14, 2013

Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

Prac%cal  A)acks  against  Mobile  Device  Management  (MDM)  

Daniel  Brodie  Senior  Security  Researcher  Lacoon  Mobile  Security  

March  14,  2013  

Page 2: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  Security  researcher  for  almost  a  decade  •  Focus  – VulnerabiliAes  – OS    

•  Mobile  (Android/iOS)  and  PC  (Windows,Linux,OS  X)  

•  Researcher  at  Lacoon  Mobile  Security  – Developing  a  dynamic  analysis  framework  for  analyzing  spyphones  and  mobile  malware  

About:  Daniel  

Page 3: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  Decade  of  experience  researching  and  working  in  the  mobile  security  space  – From  feature-­‐phones  to  smartphones  – Mobile  Security  Research  Team  leader  at  NICE  Systems  

•  CEO  and  co-­‐founder  of  Lacoon  Mobile  Security      

About:  Michael  

Page 4: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

IntroducAon  to  MDM  and  Secure  Containers  

Rise  of  the  Spyphones  

Bypassing  secure  container  encrypAon  capabiliAes  

RecommendaAons  and  summary  

Agenda  

Page 5: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

MDM  AND  SECURE  CONTAINERS  101  

Page 6: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  Policy  and  configuraAon  management  tool  •  Helps  enterprises  manage  BYOD  and  mobile  compuAng  environment  

•  Offerings  include  separaAng  between  business  data  and  personal  data  

Mobile  Device  Management  

Page 7: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

MDM:  Penetra%on  in  the  Market  

“Over  the  next  five  years,  65  percent  of  enterprises  will  adopt  a  mobile  device  management  (MDM)  soluAon  for  their  corporate  liable  users”  

 –  Gartner,  Inc.  October  2012  

Page 8: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  Sobware  management  •  Network  service  management    •  Hardware  management  •  Security  management  – Remote  wipe  – Secure  configuraAon  enforcement  – EncrypAon  

MDM  Key  Capabili%es  

Page 9: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  All  leading  MDM  soluAons  provide  secure  containers  – MobileIron  – AirWatch  – Fiberlink  – Zenprise  – Good  Technologies  

Secure  Containers  

Page 10: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

Behind  the  Scenes:  Secure  Containers  

ApplicaAon  Sandbox  

App  

Encrypted  Storage  

Enterprise  

Secure  CommunicaAon  

(SSL)  

Page 11: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  Runs  in  the  mobile’s  OS  supplied  sandbox  •  Encrypts  all  the  data  locally    •  Communicates  with  the  enterprise  using  standard  encrypAon  (SSL)  

Behind  the  Scenes:  Secure  Containers  

Page 12: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

RISE  OF  THE  

SPYPHONES  

Page 13: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

Business  Impact  

Complexity  

Mobile  Malware  Apps    

Consumer-­‐oriented.  Mass.  Financially  moAvated,  e.g.:  -­‐  Premium  SMS  -­‐  Fraudulent  charges  -­‐  Botnets  

Spyphones  

Targeted:  •  Personal  •  OrganizaAon  •  Cyber  

espionage  

The  Mobile  Threatscape  

Page 14: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

Spyphone  Capabili%es  Eavesdropping  and  Surround  Recording  

ExtracAng  Call  and  Text  Logs  

Tracking  LocaAon  

InfiltraAng  Internal  LAN  

Snooping  on  Emails  and  

ApplicaAon  Data    

CollecAng  Passwords  

Page 15: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

Examples  

More  Than  50  Different  Families  in  the  Wild  

Page 16: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

The  High-­‐End  

•  FinSpy  –  Gamma  Group  

•  DaVinci  RCS  –  Hacking  Team  

•  LuckyCat  –  Chinese  

•  LeoImpact  

Low  End  

High  End  

Page 17: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

The  Low-­‐End  Low  End  

High  End  

•  StarAng  at  $4.99  a  month!  What  a  steal!  – For  iOS,  Android,  Blackberry,  Windows  Mobile/Phone,  Symbian,  …  

•  Professional  worldwide  support  •  Very  simple  and  mainstream  – So  simple  that  even  your  mother  could  use  it  

•  On  your  father  

•  Available  at  a  reseller  near  you!  

Page 18: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  From  high-­‐end  to  low-­‐end  – Difference  is  in  infecAon  vector  -­‐>  price  

•  End-­‐result  is  the  same  – For  $5,  you  get  nearly  all  the  capabiliAes  of  a  $350K  tool  

 

Spyphones:  Varying  Costs,  Similar  Results  

Page 19: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

SPYPHONE  DEMO  

Page 20: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  Partnered  with  worldwide  cellular  network  operators:    – Sampled  250K  subscribers  – Two  separate  sampling  occasions  

•  InfecAon  rates:  – March  2012:  1  in  3000  devices  – October  2012:  1  in  1000  devices  

Spyphones  in  the  Wild  

Page 21: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

Spyphone  Distribu%on  by  OS  

51%  

1%  35%  

7%   6%  

iPhone  

iPod  Touch  3g  

Android  

Nokia  

Unknown  

Page 22: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

51%  

1%  

35%  

7%   6%  

iPhone  

iPod  Touch  3g  

Android  

Nokia  

Unknown  

51%  

12.39%  

30.79%   1.40%  

3.90%   Android  

Blackberry  

iOS  

Symbian  

Windows  Phone  7  and  Windows  Mobile  

Mobile  OS    Market  Share  Spyphone  DistribuAon  by  OS  

Comscore,  March  2012  

Page 23: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

IT’S  ALRIGHT,  IT’S  OK,  

“SECURE  CONTAINER”    IS  THE  WAY?  

Page 24: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  Secure  Containers:  – Detect  JailBreak/Root  – Prevent  malicious  applicaAon  installaAon  – Encrypt  data  – Part  of  the  OS  sandbox  

Secure  Container  Re-­‐Cap  

Page 25: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  JailBreaking  (iOS)/  RooAng  (Android)  detecAon  mechanism  – “Let  Me  Google  That  For  You”  – Usually  just  check  features  of  JB/  Root  devices  (e.g.  is  Cydia/  SU  installed)  

•  Cannot  detect  exploitaAon  

Opening  the  Secure  Container  (1)  

Page 26: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  PrevenAon  of  malicious  app  installaAon  (Android)  – Targeted  towards  mass  malware  

•  Third-­‐Party  App  restricAons  – Should  protect  against  malware  

•  Has  been  bypassed  – Wait  a  few  slides…  

Opening  the  Secure  Container  (2)  

Page 27: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

ANDROID  DEMO  

Page 28: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  Publish  an  app  through  the  market  – Use  “Two-­‐Stage”:  Download  the  rest  of  the  dex  later-­‐    and  only  for  the  targets  we  want  

•  Get  the  target  to  install  the  app  – Through  spearphishing  or  physical  access  to  the  device  

Android  Demo:  Technical  Details  (1)  

Page 29: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  Privilege  EscalaAon  – We  used  the  Exynos  exploit.  (Released  Dec.,  2012)    

•  Create  a  hidden  ‘suid’  binary  and  use  it  for  specific  acAons  – Place  in  a  folder  with  -­‐-­‐x-­‐-­‐x-­‐-­‐x  permissions  

•  Undetected  by  generic  root-­‐detectors  

Android  Demo:  Technical  Details  (2)  

Page 30: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  We  listen  to  events  in  the  logs  – For  <=2.3  we  can  just  use  the  logging  permissions    – For  >4.0  we  use  access  the  logs  as  root  

•  When  an  email  is  read….  

Android  Demo:  Technical  Details  (3)  

Page 31: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  We  dump  the  heap  using  /proc/<pid>/maps  and  /mem  – Then  search  for  the  email  structure,  extract  it,  and  send  it  home  

Android  Demo:  Technical  Details  (3)  

Page 32: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

IOS  DEMO  

Page 33: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  Install  signed  applicaAon    – Using  Enterprise/Developer  cerAficate  

•  Use  the  JailBreak    – To  complete  the  hooking  

•  Remove  any  trace  of  the  JailBreak  

iOS  Demo:  Technical  Details  (1)  

Page 34: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

Load  malicious  dylib  into  

memory  (it’s  signed!)  

Hook  using  standard  

ObjecAve-­‐C  hooking  

mechanisms  

Get  noAfied  when  an  

email  is  read  

Pull  the  email  from  the  UI  classes  

Send  every  email  loaded  

home  

iOS  Demo:  Technical  Details  (2)  

Page 35: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

CONCLUSIONS  

Page 36: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  “Secure”  Containers  depend  on  the  integrity  of  the  host  system  1.  If  the  host  system  is  uncompromised:  what  is  the  

added  value?  2.  If  the  host  system  is  compromised:  what  is  the  

added  value?  

•  We’ve  been  through  this  movie  before!  

Secure  Containers…Secure?  

Page 37: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  MDM  provides  Management,  not  absolute  Security  •  Beneficial  to  separate  between  business  and  personal  data  

•  Main  use-­‐case  –  Remote  wipe  of  enterprise  content  only  –  Copy  &  Paste  DLP  

Infec%on  is  Inevitable  

Page 38: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

•  Use  MDM  as  a  baseline  defense  for  a  mulA-­‐layer  approach  

•  Needs  rethinking  outside  the  box  (mobile)  •  SoluAons  on  the  network  layer:  – C&C  communicaAons  – HeurisAc  behavioral  analysis  – Sequences  of  events  – Data  intrusion  detecAon    

Mi%ga%ng  Spyphone  Threats  

Page 39: Prac%cal’Aacks’against’Mobile’ …...Android’ Nokia Unknown’ 51% 12.39% 30.79% 1.40% 3.90% Android’ Blackberry’ iOS Symbian’ Windows’Phone7 and’Windows’ Mobile’

THANK  YOU!  QUESTIONS?