• No results found

How To Protect Your Data From Attack

N/A
N/A
Protected

Academic year: 2021

Share "How To Protect Your Data From Attack"

Copied!
28
0
0

Loading.... (view fulltext now)

Full text

(1)

1

Copyright © 2015 − Cypress Data Defense, LLC

Integrating  Vulnerability  

Scanning  into  the  SDLC

Eric  Johnson

JavaOne  Conference 10/26/2015

(2)

2

Copyright © 2015 − Cypress Data Defense, LLC

§ Senior  Security  Consultant § Certified  SANS  Instructor § Certifications

§ CISSP,  GWAPT,  GSSP-­‐Java,  GSSP-­‐.NET

§ Contact  Info

§ [email protected]

(3)

3

Copyright © 2015 − Cypress Data Defense, LLC

§ Case  Study

§ Secure  Development  Lifecycle § Continuous  Integration

§ Continuous  Delivery § Demo

§ Questions

(4)

4

Copyright © 2015 − Cypress Data Defense, LLC

§ Company  A  provides  a  video   sharing  service

§ Over  1  billion  users  per   month

(5)

5

Copyright © 2015 − Cypress Data Defense, LLC

§ Client-­‐side  AJAX  request

§ Web  service  endpoint  deletes   any  event  with  a  valid  session   token:

Case  Study  #1

POST https://companyA.com/live_events_edit_status_ajax? action_delete_live_event=1 event_id: ANY_EVENT_ID session_token: SESSION_TOKEN

(6)

6

Copyright © 2015 − Cypress Data Defense, LLC

§ YouTube

§ Bug  bounty  program  paid   $5,000

Case  Study  #1

“I  fought  the  urge  to  clean  up  Justin  Bieber's   channel”  -­‐ Kamil  Hismatullin

(7)

7

Copyright © 2015 − Cypress Data Defense, LLC

§ Company  B

§ Social  media  web  site  with   over  380  million  users

(8)

8

Copyright © 2015 − Cypress Data Defense, LLC

§ Company  B  has  a  request   vulnerable  to  SQL  injection § Example  request:

Case  Study  #2

POST https://companyB.com/search

searchTerm=‘ OR 1=1; UPDATE Users SET IsAdmin = 1 WHERE UserName = ‘Milton’;

(9)

--9

Copyright © 2015 − Cypress Data Defense, LLC

§ An  automated  SQL  injection  

tool  (sqlmap)  is  used  to  extract   the  database

§ User  table  contains  6.5  million   password  hashes

§ Investigation  reveals  SHA1   hashes  are  unsalted

(10)

10

Copyright © 2015 − Cypress Data Defense, LLC

§ LinkedIn

§ 4  million  SHA1  hashes   reversed

Case  Study  #2

“The  enhanced  security  we  just  recently  put  in  place…includes   hashing  and  salting  of  our  current  password  databases.

We  sincerely  apologize  for  the  inconvenience  this  has  caused   our  members.”  – Vincent  Silveira,  LinkedIn

(11)

11

Copyright © 2015 − Cypress Data Defense, LLC

(12)

12

Copyright © 2015 − Cypress Data Defense, LLC

§ Silos  /  politics  between  enterprise  groups § Leaving  security  until  the  very  end

§ Legacy  applications

§ Fear  of  breaking  production  code

§ Slow  deployment  cycles  leave  vulnerability   windows  open

(13)

13

Copyright © 2015 − Cypress Data Defense, LLC

§ Security  is  baked  into  all  phases  of  development

Securing  the  Development  Lifecycle

(14)

14

Copyright © 2015 − Cypress Data Defense, LLC

Meet  Your  Security  Team

§ Security  is  everyone’s  job:

§ Developers § Quality  Assurance § Operations § Security  Team § Management § C-­‐Level  Executives

(15)

15

Copyright © 2015 − Cypress Data Defense, LLC

Iteration  Zero

§ Assign  a  security  expert  to  the  project  team § Define  the  security  requirements

§ Privacy  assessment

§ Attack  surface  analysis § Threat  modeling

(16)

16

Copyright © 2015 − Cypress Data Defense, LLC

§ Percentage  of  development  teams  performing   security  testing:

Security  Testing  in  Development

21.6%  Perform   Security  Testing

78.4%  Not   Security  Testing

(17)

17

Copyright © 2015 − Cypress Data Defense, LLC

The  Sprint

§ Agile  &  DevOps  move  too  fast  for  traditional   security  processes

§ Security  must  adapt  using  incremental  /   automated  testing

§ Continuous  Integration § Continuous  Delivery

(18)

18

Copyright © 2015 − Cypress Data Defense, LLC

Continuous  Integration

§ Check-­‐in  triggers  automated  tests

§ Provides  fast  feedback  to  developers  (minutes) § Security  has  a  limited  role:

§ Security-­‐specific  unit  testing

§ Authentication,  user  management,  password,  access   control,  validation

§ Developer  driven  static  /  dynamic  analysis

§ Dangerous  function  calls,  OWASP  Top  10

(19)

19

Copyright © 2015 − Cypress Data Defense, LLC

Continuous  Integration  Tools

§ Jenkins  Static  Analysis  Plugins

§ Find  Security  Bugs,  Checkstlye,  OWASP  Dependency   Check

§ Find  Security  Bugs

(20)

20

Copyright © 2015 − Cypress Data Defense, LLC

§ Written  by  Philippe  Arteau (@h3xstream)

§ FindBugs  plug-­‐in  with  67  security-­‐specific   rules

§ OWASP  TOP  10,  SANS  CWE  Top  25

§ http://h3xstream.github.io/find-­‐sec-­‐bugs/

§ WebGoat  Scan

§ 15  security  issues  found  out  of  the  box

§ 101  security  issues  found  with  FSB  installed

(21)

21

Copyright © 2015 − Cypress Data Defense, LLC

§ Written  by  Gregory  Leonard  (@appsecgreg)

§ [CON5653]  Managing  3rd Party  Security  Risks § Wednesday  @  3:00  PM

§ Integrates  dynamic  scanning  into  the  IDE § Currently  supports:

§ ZED  Attack  Proxy  (ZAP)  spider  and  active  scan

(22)

22

Copyright © 2015 − Cypress Data Defense, LLC

Continuous  Delivery

§ Code  changes  are  pushed  into  the  automated   deployment  pipeline  (test,  staging,  prod)

§ Required  security  checkpoints:

§ Automated  dynamic  testing § Deep  static  analysis

(23)

23

Copyright © 2015 − Cypress Data Defense, LLC

§ Security-­‐specific  testing: § Yahoo  Gryffin § https://github.com/yahoo/gryffin § http://bit.ly/1LQqlGj § Mozilla  Minion § https://wiki.mozilla.org/Security/Projects/Minion § Gauntlt § http://gauntlt.org/

(24)

24

Copyright © 2015 − Cypress Data Defense, LLC

The  Sprint  Retrospective

§ Security  issues

§ #  of  security  issues  identified  vs.  #  remediated?

§ Schedule  external  assessments

§ Security-­‐specific  source  code  reviews § Penetration  testing

§ Feed  security  issues  to  the  backlog  /  defect   tracking  systems

(25)

25

Copyright © 2015 − Cypress Data Defense, LLC

§ Scans  occurs  as  code  is  written

§ Consistent  and  repeatable  process § Incremental  security  testing

§ Release  more  secure  code  to  production

The  Benefits

(26)

26

Copyright © 2015 − Cypress Data Defense, LLC

Demo!  Demo!  Demo!

(27)

27

Copyright © 2015 − Cypress Data Defense, LLC

§ Future  enhancements:

§ Add  to  Eclipse  Marketplace § Additional  IDE  /  build  support

§ Visual  Studio,  Maven,  Ant,  TFS

§ Provide  additional  scanner  support

§ Burp  Suite,  w3af,  Arachni

§ Limitations

§ ZAP  REST  API  (session  state  not  enabled)

Eclipse  Dynamic  Security  

Testing

(28)

28

Copyright © 2015 − Cypress Data Defense, LLC

§ Questions? § Contact  Info

§ Twitter:  @emjohn20

§ Email:  [email protected]

References

Related documents

The purpose of this quality improvement project was to im- plement an evidence-based standardized feeding approach, as recommended by the JCCHD-NPCQIC, for infants with single

Data Protection Program Compliance Monitoring and Reporting Risk, Threat, & Vulnerability Assessments Data Protection Strategy Technology Specifications People &

”Amazon Web Services Cloud Compliance enables customers to understand the robust controls in place at AWS to maintain security and data protection in the cloud. As you build

Did You Know?: Financial Service Centers offer a wide array of financial products and services, including check cashing, small dollar, short-term loans, money transfers, money

Figure 2: Juniper Unified Access Control (UAC) and Guest User Access Infranet Controller EX-serie s 2 1 Apps Internet Firewall Guest Guest allowed bandwidth- limited,

The authors designed the improved carrying structure of a flat wagon to ensure the required stability of a container within combined trains transported by train ferries.. The

McAfee helps you optimize security practices and cut operational costs through enhanced situational awareness, multilayered threat protection, automated compliance,

report on the submissions to the draft Regional Freight Plan and make recommendations to the Committee in accordance with the Terms of Reference in Attachment 2. Appoints …, …, …