Get in Touch

Course Outline

Day 1

IT Security and Secure Coding

  • The nature of security
  • Key IT security terminology
  • Defining risk
  • Various dimensions of IT security
  • Requirements across different application domains
  • Distinguishing IT security from secure coding
  • The progression from vulnerabilities to botnets and cybercrime
    • The character of security flaws
    • Factors contributing to difficulty
    • From compromised computers to targeted attacks
  • Categorizing security flaws
    • Landwehr’s taxonomy
    • The Seven Pernicious Kingdoms
    • OWASP Top Ten 2013
    • Comparison of OWASP Top Ten (2003 – 2013)

Introduction to the Microsoft® Security Development Lifecycle (SDL)

  • Agenda
  • Applications under threat...
    • The evolution of cybercrime
    • The focus of attacks on applications
    • The prevalence of vulnerabilities in smaller ISV applications
  • The origins of the Microsoft SDL...
    • Security timeline at Microsoft...
    • Applications required to adhere to SDL
  • Microsoft Security Development Lifecycle (SDL)
    • Overview of the Microsoft Security Development Lifecycle (SDL)
    • Pre-SDL Requirement: Security Training
    • Phase One: Requirements
    • Phase Two: Design
    • Phase Three: Implementation
    • Phase Four: Verification
    • Phase Five: Release – Response Plan
    • Phase Five: Release – Final Security Review
    • Phase Five: Release – Archiving
    • Post-SDL Requirement: Incident Response
    • SDL Process Guidance for Line of Business (LOB) Applications
    • SDL Guidance for Agile Methodologies
    • The necessity of process improvement for secure software development

Secure Design Principles

  • Attack surface
    • Reducing the attack surface
    • Attack surface – case study
    • Analyzing the attack surface
    • Examples of attack surface reduction
  • Privacy
    • Concept of privacy
    • Understanding application behaviors and privacy concerns
  • Defense in depth
    • SDL Core Principle: Defense in Depth
    • Defense in depth – example
  • Principle of least privilege
    • Least privilege – example
  • Secure defaults
    • Secure defaults – examples

Secure Implementation Principles

  • Agenda
  • Microsoft Security Development Lifecycle (SDL)
  • Fundamentals of buffer overflows
    • Intel 80x86 Processors – primary registers
    • Memory address layout
    • Function calling mechanisms in C/C++ on x86
    • Local variables and stack frames
    • Stack overflow
      • Buffer overflow on the stack
      • Exercises – introduction
      • Exercise BOFIntro
      • Exercise BOFIntro – determining stack layout
      • Exercise BOFIntro – simple exploitation
  • Input validation
    • Concepts in input validation
    • Integer issues
      • Representation of negative integers
      • Integer overflow
      • Arithmetic overflow – predict the output!
      • Exercise IntOverflow
      • Determining the value of Math.Abs(int.MinValue)?
    • Mitigating integer issues
      • Strategies for mitigating integer problems
      • Preventing arithmetic overflow – addition
      • Preventing arithmetic overflow – multiplication
      • Detecting overflow using the checked keyword in C#
      • Exercise – Utilizing the checked keyword in C#
      • Exceptions triggered by overflows in C#
    • Case study – Integer overflow in .NET
      • A real-world integer overflow vulnerability
      • Exploiting the integer overflow vulnerability
    • Path traversal vulnerability
      • Mitigation of path traversal

Day 2

Secure Implementation Principles

  • Injection
    • Common SQL Injection attack methods
    • Blind and time-based SQL injection
    • Methods for preventing SQL Injection
    • Command injection
  • Broken authentication - password management
    • Exercise – Weaknesses in hashed passwords
    • Password management and storage
    • Specialized hash algorithms for password storage
  • Cross-Site Scripting (XSS)
    • Overview of Cross-Site Scripting (XSS)
    • CSS injection
    • Exploitation: injection via other HTML tags
    • Preventing XSS
  • Missing function level access control
    • Filtering file uploads
  • Practical cryptography
    • Ensuring confidentiality with symmetric cryptography
    • Symmetric encryption algorithms
    • Block ciphers – modes of operation
    • Hashing or message digests
    • Hash algorithms
    • Message Authentication Code (MAC)
    • Ensuring integrity and authenticity with symmetric keys
    • Ensuring confidentiality with public-key encryption
    • Best practice – possession of private keys
    • Common errors in password management
    • Exercise – Hard-coded passwords
    • Summary

Secure Verification Principles

  • Functional testing vs. security testing
  • Security vulnerabilities
  • Prioritization
  • Security testing within the SDLC
  • Steps in test planning (risk analysis)
  • Scoping and information gathering
    • Stakeholders
    • Assets
    • The attack surface
    • Security objectives for testing
  • Threat modeling
    • Concepts in threat modeling
    • Attacker profiles
    • Threat modeling using attack trees
    • Threat modeling using misuse/abuse cases
    • Misuse/abuse cases – simple web shop example
    • STRIDE per element approach to threat modeling – MS SDL
    • Identifying security objectives
    • Diagramming – examples of DFD elements
    • Data flow diagram – example
    • Threat enumeration – MS SDL’s STRIDE and DFD elements
    • Risk analysis – classifying threats
    • The DREAD threat/risk ranking model
  • Security testing techniques and tools
    • General testing approaches
    • Techniques for various SDLC stages
  • Code review
    • Code review for software security
    • Taint analysis
    • Heuristics
  • Static code analysis
    • Overview of static code analysis
    • Exercise – Utilizing static code analysis tools
  • Testing the implementation
    • Manual run-time verification
    • Manual vs. automated security testing
    • Penetration testing
    • Stress testing
  • Fuzzing
    • Automated security testing via fuzzing
    • Challenges associated with fuzzing
  • Web vulnerability scanners
    • Exercise – Utilizing a vulnerability scanner
  • Environment checking and hardening
    • Common Vulnerability Scoring System – CVSS
    • Vulnerability scanners
    • Public databases
  • Case study – Forms Authentication Bypass
    • NULL byte termination vulnerability
    • Forms Authentication Bypass vulnerability in code
    • Exploiting the Forms Authentication Bypass

Knowledge Resources

  • Secure coding resources – starter kit
  • Vulnerability databases
  • .NET secure coding guidelines on MSDN
  • .NET secure coding cheat sheets
  • Recommended books – .NET and ASP.NET
 14 Hours

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories