Back to course catalog

Security testing

CL-STS
3 days
C/C++, Java, C#/.NET/ASP.NET, Web
Course page in PDF Inquiry

Course information

Preparedness

General QA and testing

Exercises

Hands-on

Delivery methods

Classroom

Course Reviews

A lot of new and interesting things to watch out for when coding.

November 2015 Bucharest

View all reviews

Examples were perfectly matching my current line of work.

November 2015 Bucharest

View all reviews

It was great that the VM was already set up and all needed files and scripts were available. We got a good overview about security topics. Practical presentation about known bugs was very helpful.

November 2015 Neckartenzlingen

View all reviews

The teaching aspect and the way of making us understand each topic was quite effective.

November 2015 Gurgaon

View all reviews

It was excellent. Eye opening experience.

December 2015 Bakersfield, CA

View all reviews

Good material and references to case studies and issues encountered by companies.

December 2015 Bakersfield, CA

View all reviews

Description

After getting familiar with the vulnerabilities and the attack methods, participants learn about the general approach and the methodology for security testing, and the techniques that can be applied to reveal specific vulnerabilities. Security testing should start with information gathering about the system (ToC, i.e. Target of Evaluation), then a thorough threat modeling should reveal and rate all threats, arriving to the most appropriate risk analysis-driven test plan.

Security evaluations can happen at various steps of the SDLC, and so we discuss design review, code review, reconnaissance and information gathering about the system, testing the implementation and the testing and hardening the environment for secure deployment. Many different security testing techniques are introduced in details, like taint analysis and heuristics-based code review, static code analysis, dynamic web vulnerability testing or fuzzing. Various types of tools are introduced that can be applied in order to automate security evaluation of software products, which is also supported by a number of exercises, where we execute these tools to analyze the already discussed vulnerable code. Many real life case studies support better understanding of various vulnerabilities.

This course prepares testers and QA staff to adequately plan and precisely execute security tests, select and use the most appropriate tools and techniques to find even hidden security flaws, and thus gives essential practical skills that can be applied on the next day working day.

Participants attending this course will

  • Understand basic concepts of security, IT security and secure coding
  • Learn Web vulnerabilities beyond OWASP Top Ten and know how to avoid them
  • Learn about XML security
  • Learn client-side vulnerabilities and secure coding practices
  • Understand security testing approaches and methodologies
  • Get practical knowledge in using security testing techniques and tools
  • Learn how to set up and operate the deployment environment securely
  • Get sources and further readings on secure coding practices

Outline

  • IT security and secure coding
  • Web application security
  • Client-side security
  • Security testing
  • Security testing techniques and tools
  • Source code review
  • Input validation
  • Improper use of security features
  • Testing the implementation
  • Deployment environment
  • Principles of security and secure coding
  • Knowledge sources

Table of Contents

  • Day 1
    • IT security and secure coding
      • Nature of security
      • What is risk?
      • IT security vs. secure coding
      • From vulnerabilities to botnets and cybercrime
        • Nature of security flaws
        • Reasons of difficulty
        • From an infected computer to targeted attacks
        • The Seven Pernicious Kingdoms
        • OWASP Top Ten 2017
    • Web application security
      • Injection
        • Injection principles
        • SQL injection
          • Exercise – SQL injection
          • Typical SQL Injection attack methods
          • Blind and time-based SQL injection
          • SQL injection protection methods
          • Effect of data storage frameworks on SQL injection in Java
          • Detecting SQL Injection
          • Detecting SQL Injection – Typical tests
          • Detecting SQL Injection – Bypass defenses
        • Other injection flaws
          • Command injection
          • Detecting command injection
          • Case study – ImageMagick
      • Broken authentication
        • Session handling threats
        • Session handling best practices
        • Session handling in Java
        • Setting cookie attributes – best practices
      • Sensitive data exposure
        • Sensitive data exposure
        • Transport layer security
          • Enforcing HTTPS
      • XML external entity (XXE)
        • XML Entity introduction
        • XML external entity attack (XXE) – resource inclusion
        • XML external entity attack – URL invocation
        • XML external entity attack – parameter entities
        • Exercise – XXE attack
        • Preventing entity-related attacks
        • Case study – XXE in Google Toolbar
      • Broken access control
        • Typical access control weaknesses
        • Insecure direct object reference (IDOR)
        • Exercise – Insecure direct object reference
        • Protection against IDOR
        • Testing for insecure direct object reference
        • Testing for insecure direct object references
        • Case study – Facebook Notes
      • Security misconfiguration
        • Security misconfiguration
        • Configuring the environment
        • Insecure file uploads
        • Exercise – Uploading executable files
        • Filtering file uploads – validation and configuration
      • Cross-Site Scripting (XSS)
        • Persistent XSS
        • Reflected XSS
        • DOM-based XSS
        • Exercise – Cross Site Scripting
        • XSS prevention
        • Detecting XSS vulnerabilities
        • Bypassing XSS filters
  • Day 2
    • Web application security
      • Insecure deserialization
        • Deserialization basics
        • Security challenges of deserialization
        • Deserialization in Java
        • From deserialization to code execution
        • POP payload targeting the Apache Commons gadget (Java)
        • Real-world Java examples of deserialization vulnerabilities
        • Issues with deserialization – JSON
        • Best practices against deserialization vulnerabilities
      • Using components with known vulnerabilities
      • Insufficient logging and monitoring
        • Detection and response
        • Logging and log analysis
        • Intrusion detection systems and Web application firewalls
    • Client-side security
      • JavaScript security
      • Same Origin Policy
      • Cross Origin Resource Sharing (CORS)
      • Clickjacking
        • Clickjacking
        • Exercise – Do you Like me?
        • Protection against Clickjacking
        • Anti frame-busting – dismissing protection scripts
        • Protection against busting frame busting
      • AJAX security
        • XSS in AJAX
        • Script injection attack in AJAX
        • Exercise – XSS in AJAX
        • XSS protection in Ajax
        • Exercise CSRF in AJAX – JavaScript hijacking
        • CSRF protection in AJAX
    • Security testing
      • Functional testing vs. security testing
      • Security vulnerabilities
      • Prioritization – risk analysis
      • Security in the SDLC
      • Security assessments in various SDLC phases
      • Security testing methodology
        • Steps of test planning (risk analysis)
        • Scoping and information gathering
          • Stakeholders
          • Assets
          • Exercise – Identifying assets
          • Security objectives for testing
          • Exercise – Defining security objectives
          • Exercise – Defining attacker profiles
        • Threat modeling
          • Attacker profiles
          • Threat modeling
          • Threat modeling based on attack trees
          • Exercise – Craft an attack tree
          • Threat modeling based on misuse/abuse cases
          • Misuse/abuse cases – a simple example
          • Exercise – Craft a misuse case
          • SDL threat modeling
          • The STRIDE threat categories
          • Diagramming – elements of a DFD
          • Data flow diagram – example
          • Threat enumeration – mapping STRIDE to DFD elements
          • Exercise – Identify threats based on DFD
          • Risk analysis – classification of threats
          • The DREAD risk assessment model
          • Exercise – Risk analysis
        • Testing steps
          • Deriving test cases
          • Accomplishing the tests
          • Processing test results
          • Mitigation concepts
          • Standard mitigation techniques of MS SDL
          • Review phase
    • Security testing techniques and tools
      • General testing approaches
      • Design review
        • Assessment of security requirements
        • Identifying security-critical aspects – hotspots
  • Day 3
    • Source code review
      • Code review for software security
      • Taint analysis
      • Heuristic-based
    • Input validation
      • Input validation concepts
      • Integer problems
        • Representation of negative integers
        • Integer overflow
        • Exercise IntOverflow
        • What is the value of Math.abs(Integer.MIN_VALUE)?
        • Integer problem – best practices
          • Integer problem – best practices
          • Avoiding arithmetic overflow – addition
          • Avoiding arithmetic overflow – multiplication
          • Detecting arithmetic overflow in Java 8
          • Exercise – Using addExact() in Java
          • Testing for integer problems
    • Improper use of security features
      • Typical problems related to the use of security features
      • Insecure randomness
        • Weak PRNGs in Java
        • Exercise RandomTest
        • Using random numbers in Java – spot the bug!
      • Password management
        • Exercise – Weakness of hashed passwords
        • Password management and storage
        • Special purpose hash algorithms for password storage
        • Argon2 and PBKDF2 implementations in Java
        • bcrypt and scrypt implementations in Java
        • Case study – the Ashley Madison data breach
          • The loginkey token
          • Revealing the passwords with brute forcing
        • Typical mistakes in password management
        • Exercise – Hard coded passwords
      • Static code analysis
        • Static code analysis
        • Exercise – Using static code analysis tools
    • Testing the implementation
      • Dynamic security testing
      • Manual vs. automated security testing
      • Penetration testing
      • Stress tests
      • Proxy servers and sniffers
        • Testing with proxies and sniffers
        • Packet analyzers and proxies
        • Exercise – Testing with proxy
      • Web vulnerability scanners
        • Exercise – Using a vulnerability scanner
        • SQL injection tools
        • Exercise – Using SQL injection tools
    • Deployment environment
      • Configuration management
      • Hardening
      • Patch management
      • Assessing the environment
        • Assessing the environment
      • Vulnerability management
        • Vulnerability repositories
        • Vulnerability attributes
        • Common Vulnerability Scoring System – CVSS
        • Vulnerability scanners
    • Principles of security and secure coding
      • Matt Bishop’s principles of robust programming
      • The security principles of Saltzer and Schroeder
    • Knowledge sources
      • Secure coding sources – a starter kit
      • Vulnerability databases
      • Java secure coding sources
      • Recommended books – Java
Show full table of contents

Get more information