C/C++ Secure Coding

Course#: BSSEC1026

About this Course

Course Type Course Code Duration
Software Security BSSEC1026 2 Days

This course explains in details the mechanisms underlying typical C/C++ security relevant programming bugs – the common security vulnerabilities. The root causes of the problems are explained through a number of easy-to-understand source code examples, which at the same time make clear how to find and correct these problems in practice. The real strength of the course lays in numerous hands-on exercises, which help the participants understand how easy it is to exploit these vulnerabilities by the attackers.

Why Attend this Course?

The course also gives an overview of practical protection methods that can be applied at different levels (hardware components, the operating system, programming languages, the compiler, the source code or in production) to prevent the occurrence of the various bugs, to detect them during development and before market launch, or to prevent their exploitation during system operation. Through exercises specially tailored to these mitigation techniques participants can learn how simple – and moreover cheap – it is to get rid of various security problems.

What Makes this Course Stand Apart?

This is a highly interactive Hands on courses with the options of the Accelerator Plus1 Workshop.

Lot of demos, practical exercises and samples. Very strong presentation skill of the trainer. Good balance between theory and practice application.

What you will Learn?

Upon completion of this course, you will be able to:

* Understand basic concepts of security, IT security and secure coding
* Realize the severe consequences of non-secure buffer handling
* Understand the architectural protection techniques and their weaknesses
* Learn about typical coding mistakes and how to avoid them
* Be informed about recent vulnerabilities in various platforms, frameworks and libraries
* Get sources and further reading on secure coding practices

Audience

C/C++ developers, software architects and testers

Prerequisites

There are no formal prerequisites for this course.

Course Outline

IT security and secure coding

* Nature of security
* IT security related terms
* Definition of risk
* IT security vs. secure coding
* From vulnerabilities to botnets and cyber crime
* Classification of security flaws

Security relevant C/C++ programming bugs and flaws

* Exploitable security flaws
* Protection principles
* x86 machine code, memory layout, stack operations

Buffer overflow

* Buffer overflow
* Stack overflow
* Protection against stack overflow
* Stack smashing protection
* Address Space Layout Randomization (ASLR)
* Non executable memory areas – the NX bit
* Return-to-libc attack – Circumventing the NX bit
* Return oriented programming (ROP)
* Heap overflow

Common coding errors and vulnerabilities

* Input validation
* Improper use of security features
* Improper error and exception handling
* Time and state problems
* Code quality problems

Advices and principles

* Matt Bishop’s principles of robust programming
* The security principles of Saltzer and Schroeder

Knowledge sources

* Secure coding sources – a starter kit
* Vulnerability databases

0

Start typing and press Enter to search