Linux&and&Open&Source&for&(Almost)&...

22
Linux and Open Source for (Almost) Zero Cost PCI Compliance Rafeeq Rehman

Transcript of Linux&and&Open&Source&for&(Almost)&...

Page 1: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Linux  and  Open  Source  for  (Almost)  Zero  Cost  PCI  Compliance  

Rafeeq  Rehman  

Page 2: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Some  Introductory  Notes  ¡  Payment  Card  Industry  (PCI)  standard  is  not  a  government  regulaCon.  ¡  Who  needs  to  comply  with  PCI?  ¡  Twelve  major  requirements  covering  policy,  processes,  and  

technology  to  protect  Credit  Card  Data.  

¡ What  is  Credit  Card  Data?  

¡  Few  ClarificaCons  ¡  Payment  Card  Industry  (PCI)  requires  some  tasks  to  be  performed  

by  external  vendors  depending  upon  merchant  level.  There  is  no  other  way  around,  unfortunately.  

¡  Open  Source  soluCons  do  need  people.  That  is  why  it  is  almost  free  but  not  totally  free.    

9/10/11  

2  

Page 3: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

What  the  Auditors  Look  For?  

¡  Is  PCI  just  a  checklist?  

¡  Are  auditors  genuinely  interested  in  securing  the  PCI  data?  

¡  Does  it  maPer  if  you  use  an  open  source  or  commercial  product  to  meet  PCI  requirements?  

¡ What  if  you  meet  PCI  requirements  while  improving  security  and  spending  less  money?  

9/10/11  

3  

Page 4: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Is  it  viable  to  use  Open  Source  for  PCI  Compliance?  ¡  Is  there  a  real  company  who  uses  Open  Source  soQware  to  achieve  PCI  compliance?  Is  it  even  possible?  

¡  PCI  2.0  focuses  more  on  Risk  based  approach.  

¡  PCI  (or  any  compliance)  is  boring!  Make  it  interesCng  by  using  Open  Source.  

9/10/11  

4  

Page 5: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

PCI  Biggest  Expenses    1.  Log  Management  (Storage  and  archiving,  Monitoring  and  

AlerCng)  

2.  Vulnerability  Scanning  

3.  Network  Firewalls  and  Network  SegmentaCon  

4.  Intrusion  DetecCon  System  

5.  EncrypCon  for  data-­‐at-­‐rest  

6.  File  Integrity  Monitoring  

7.  IdenCty  Management  (Password  controls,  Two  factor  for  remote  access,  Role  based  access)  

9/10/11  

5  

Page 6: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

AddiConal  PCI  Needs  ¡  Using  secure  protocols  for  a  number  of  things  (remote  access,  web  traffic,  etc.)  

¡  Secure  destrucCon  of  Storage  

¡  Use  of  Network  Time  Protocol  

¡  Pen  TesCng  

¡ Web  ApplicaCon  TesCng  

¡ Web  ApplicaCon  Firewalls  

9/10/11  

6  

Page 7: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

PCI  Compliance  is  Expensive  

¡  A  large  number  of  commercial  soluCons  needed  to  meet  specific  requirements  

9/10/11  

7  

Page 8: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Affordable  InformaCon  Security  

9/10/11  

8  

Page 9: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Why  Open  Source  is  Not  Used  Much?  

¡  IntegraCon  

¡  ReporCng  –  Compliance  needs  evidence!  

9/10/11  

9  

Page 10: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Strategy  

¡  Get  rid  of  what  you  don’t  need  

¡  Network  segment    ¡  Reduces  scope  and  a  good  security  pracCce  

¡  Build  processes  and  train  people  ¡  Only  technology  is  not  sufficient  

¡  Focus  on  risk  

9/10/11  

10  

Page 11: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Log  Management  ¡  Requirement  

¡  Keep  logs  for  one  year  minimum  ¡  Ensure  there  is  no  log  tempering  ¡  Control/manage  access  to  logs  

¡  Use  standards  (Syslog)  -­‐  Centralized  Log  Management  using  rSyslog  or  Syslog-­‐NG  

¡  Snare  for  Windows  to  Syslog  

¡  Log  Analysis  using  OSSEC  

¡  Octopussy  –  Open  Source  Log  Management  

¡  OSSEC  for  file  integrity  monitoring  of  log  files  

¡  Logstash  for  searching,  queries  

9/10/11  

11  

Page 12: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Log  Management  Tools  

9/10/11  

12  

Page 13: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Event  Management/CorrelaCon  ¡  Pandora  –  (hPp://pandorafms.org/)  

¡  SEC  –  Simple  Event  Correlator  (hPp://simple-­‐evcorr.sourceforge.net/)  

¡  ZENOS  –  Open  Source  system  monitoring  and  management  (hPp://community.zenoss.org/)  

¡  ZABIX  –  Open  source  monitoring  (hPp://www.zabbix.com/)  

¡  Nagios  –  System  monitoring  (hPp://www.nagios.org/)  

9/10/11  

13  

Page 14: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

AnCvirus  ¡  For  non-­‐commercial  home  use,  Avast  is  a  free  soQware  and  available  at  hPp://www.avast.com/  

¡  ClamAV  is  free  and  available  on  mulCple  plakorms  (hPp://www.clamav.net/)  

¡  Integrate  AV  into  other  soluCons  like  web  servers  

9/10/11  

14  

Page 15: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

IdenCty  Management  ¡  OpenLDAP  is  open  source  and  free  LDAP  system  available  on  mulCple  plakorms  (hPp://www.openldap.org/)  

¡  389  Server  

¡  SourceID  supports  mulCple  protocols  including  SAML,  Cardspace,  Liberty,  WS-­‐FederaCon  etc  (hPp://www.sourceid.org/)  

¡  OpenSAML  libraries  (hPp://www.opensaml.org)  

9/10/11  

15  

Page 16: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Firewalls  ¡  Network    ¡  Smoothwall  (hPp://www.smoothwall.org/)  ¡  Nekilter/iptables  (hPp://www.nekilter.org/).  Included  in  Linux  distribuCons  as  well.  

¡  IPCop  (www.ipcop.org)  

¡  Hostbased    ¡  Nekilter/iptables  (hPp://www.nekilter.org/).  Included  in  Linux  distribuCons  as  well.  

¡ Web  applicaCon  firewalls    ¡  Mod  security  (hPp://www.modsecurity.org/)  

9/10/11  

16  

Page 17: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

IDS/IPS  ¡  Snort  IDS  (hPp://www.snort.org)  

¡  OSSEC  –  Host  Based  IDS  (hPp://www.ossec.net)  

¡  SAMHAIN  –  Host  Based  IDS  (hPp://www.la-­‐samhna.de/samhain/)  

¡  Snort  Rules  –  Emerging  Threats  (hPp://rules.emergingthreats.net/open-­‐nogpl/)  

9/10/11  

17  

Page 18: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

EncrypCon  and  PKI  ¡  Full  Disk  Encryp:on  and  USB  Drive  Encryp:on  ¡  TrueCrypt  (hPp://www.truecrypt.org/)  

¡  PKI  and  Cer:ficate  Server  ¡  Fedora  Linux  Dogtag  (hPp://pki.fedoraproject.org/)  ¡  OpenSSL  (hPp://www.openssl.org/)  

¡  Email  and  File  Encryp:on  ¡  GnuPG  (hPp://gnupg.org/)  ¡  GPG4Win  (hPp://www.gpg4win.org/)  

9/10/11  

18  

Page 19: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Vulnerability  Management  ¡  Nessus  (hPp://www.nessus.org)  

¡  Nmap  (hPp://www.nmap.org)  

¡  Kismet  Wireless  detecCon  and  sniffing  (hPp://www.kismetwireless.net/)  

¡  Backtrack  (hPp://www.remote-­‐exploit.org/backtrack.html)  

¡ Web  ApplicaCon  TesCng  with  w3af  

¡  OpenVAS  Vulnerability  Scanner  (hPp://www.openvas.org/)  is  like  Nessus  –  client/Server  

¡  SSL  crypto  verificaCon  and  cerCficate  checking  –  SSLscan,  available  on  Linux.  Use  yum  to  download  

9/10/11  

19  

Page 20: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Pen  TesCng  ¡ Metasploit    (hPp://www.metasploit.com/)  

¡  Backtrack    (hPp://www.remote-­‐exploit.org/backtrack.html)  

¡ Wireshark  packet  capture  and  analysis    (hPp://www.wireshark.org/)  

9/10/11  

20  

Page 21: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

Conclusions  ¡  PCI  Compliance  is  a  result  of  good  security  ¡  It  is  an  end  result,  not  a  mean  

¡  Focus  on  Good  Security  PracCces  –  You  will  achieve  both  security  and  compliance  

¡ More  money  ≠  bePer  security  ¡  Auditors  are  really  interested  in  security!  

¡  For  each  requirement  in  PCI,  open  source  soQware  is  available  (except  where  PCI  requires  third  party  involvement)  

9/10/11  

21  

Page 22: Linux&and&Open&Source&for&(Almost)& …rafeeqrehman.com/wp-content/uploads/2011/09/ohio-linux-fest.pdf · Linux&and&Open&Source&for&(Almost)& Zero&CostPCICompliance& Rafeeq&Rehman&

QuesCons  and  Contact  Info  

[email protected]  

 

Affordable  InformaCon  Security  at  

hPp://www.rafeeqrehman.com  

9/10/11  

22