Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Malware Analysis as a Hobby - 44CON 2012

44CON
September 06, 2012

Malware Analysis as a Hobby - 44CON 2012

Michael Boman and Siavosh Zarrasvand present Malware Analysis as a Hobby at 44CON 2012 in London, September 2012.

44CON

September 06, 2012
Tweet

More Decks by 44CON

Other Decks in Technology

Transcript

  1. Malware  Analysis  as  a  Hobby   Michael  Boman  -­‐  Security

     Consultant/Researcher,  Father  of  5   Siavosh  Zarrasvand  –  Security  Consultant/Researcher,  Searching  
  2. Drawbacks   Time  consuming   Boring  in  the  long  run

     (not  all  malware  are  created  equal)  
  3. Choose  any  two?  Why   not  all  of  them?  

    l  I  can  do  it  cheaply  (hardware  and   license  cost-­‐wise).  Human  Pme  not   included.   l  I  can  do  it  quickly  (I  spend  up  to  3   hours  a  day  doing  this,  at  average  even   less).   l  I  get  preRy  good  results  (quality).   Where  the  system  lacks  I  can   compensate  for  its  shortcomings.   Cheap Fast Good
  4. Sample  AcquisiPon   •  Public  &  Private  CollecPons   • 

    Exchange  with  other  malware  analysts   •  Finding  and  collecPng  malware   yourself   •  Download  files  from  the  web   •  Grab  aRachments  from  email   •  Feed  BrowserSpider  with  links  from  your   SPAM-­‐folder  
  5. BrowserSpider   l  WriRen  in  Python   l  Using  the

     Selenium  framework  to  control  REAL  browsers   l  Flash,  PDFs,  Java  applets  etc.  executes  as  per  normal   l  All  the  browser  bugs  exists  for  real   l  Spiders  and  follows  all  links  seen  
  6. A  days  work  for  a  Cuckoo   Fetch  a  task

      Prepare  the   analysis   Lunch  analyzer  in   virtual  machine   Execute  an   analysis  package   Complete  the   analysis   Store  the  result   Process  and   create  reports  
  7. Sample  ReporPng   •  Results  are  stored  in  MongoDB  

    (opPonal,  highly  recommended)   •  Accessed  using  a  analyst  GUI  
  8. Problems   l  VM  or  Sandbox  detecPon   l  The

     guest  OS  might  not  be  sufficient  enough   l  Any  mulPstage  aRack  
  9. IteraPng  automaPaPon   Sort  out  clearly   non-­‐malicious  and  

    obviosly  malicious   samples   Devide  the   samples  into   categories   Do  brief  staPc   analysis   Known   Good   Known  Bad   Unknown  
  10. IteraPng  automaPaPon   Sort  out  clearly   non-­‐malicious  and  

    obviosly  malicious   samples   Devide  the   samples  into   categories   Do  brief  staPc   analysis   •  Does not do anything •  Detects environment •  Encrypted segments •  Failed execution
  11. IteraPng  automaPaPon   Sort  out  clearly   non-­‐malicious  and  

    obviosly  malicious   samples   Devide  the   samples  into   categories   Do  brief  staPc   analysis   •  Run longer •  Envirnoment customization
  12. Budget   l  Computer:  €520   l  MSDN  License:  €800

     (€590  renewal)   l  Year  1:  €1320   l  Year  N:  €590   l  Money  saved  from  stopped  smoking  (yearly):  €2040  
  13. Next  steps   •  Barebone  on-­‐the-­‐iron  malware   analysis  

    •  Android  planorm  support   •  OSX  planorm  support   •  iOS  panorm  support