implementing secure coding in your organization · implementing secure coding in your organization...

18
Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert [email protected]

Upload: others

Post on 20-Aug-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

Implementing Secure Coding In Your Organization

Erez Metula (CISSP), Founder

Application Security Expert

[email protected]

Page 2: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

Agenda

SDLC

Security education for developers

Secure Design

Secure Coding

Security testing

Tools

Page 3: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

About Me – Erez Metula

Application security expert

Book author

Managed Code Rootkits (Syngress)

Speaker & Trainer

BlackHat, Defcon, RSA, OWASP, etc..

Founder of AppSec Labs

Page 4: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

AppSec LabsThe leading Application Security Company

A bunch of Application Security Experts

Ninja Pentesters of Web & Mobile Apps

Elite Trainers for Hacking & Secure coding courses

Page 5: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

Development Process Evolution

The iterative waterfall..

Page 6: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

Problem..

No security at all

..or doing security at the last stage of development

Sometimes a security bug can cause design changes

…and sometimes you can’t even fix it!!

Page 7: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

VIDEO

http://cis1.towson.edu/~cssecinj/secure-coding-workshop/workshop-structure/importance-of-secure-coding-15-min/

Page 8: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

Complex Threat Model

Major attack vectors - malicious user / malicious app

Malicious user attacking the client side app

Malicious user using the client app to attack the server side

Malicious user attacking the end user by having physical access to the device

Malicious app attacking the end user

Malicious app attacking other apps on same device

Page 9: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

Example – Mobile App Threat Model

Page 10: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

Cost of Change

Relative cost to fix a vulnerability – based on time of detection

Page 11: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

The Security Development Lifecycle

A process for software development, that defines security requirements and milestones

Page 12: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

Developers don’t know how to write secure code !!!

Those kind of problems are related directly to R&D department

NOT IT dept. and NOT Security dept.

Most developers didn’t have proper secure coding training

Page 13: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

What to do?

We need to educate them !

Page 14: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

AppSec LabsLearning Management System

Page 15: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

Grow your “Security champions”

A security champion is someone from your organization who will be responsible for advancing the application security initiative

Most often, he will be from the DEV team

A strong developer who truly cares about security

You should identify those kind of people and cherish them

Case study – HP and AppSec Labs TTT (“Train The Trainer)

Page 16: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

Summary

Security should be performed at every layer

Never trust the user!

All input should be considered malicious unless proven otherwise

Follow best practices of secure coding and common security principles

SDL should be part of the methodology

Page 17: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com
Page 18: Implementing Secure Coding In Your Organization · Implementing Secure Coding In Your Organization Erez Metula (CISSP), Founder Application Security Expert ErezMetula@AppSec-Labs.com

THANK YOU !

Erez Metula , Application Security Expert

AppSec Labs (Founder)

[email protected]