Thank you for sending your enquiry! One of our team members will contact you shortly.
Thank you for sending your booking! One of our team members will contact you shortly.
Duration 14 hours
Course Outline
Day 1
IT Security and Secure Coding
- The nature of security
- Key terminology in IT security
- Defining risk
- Various dimensions of IT security
- Requirements across different application domains
- Distinguishing IT security from secure coding
-
From vulnerabilities to botnets and cybercrime
- The nature of security flaws
- Sources of complexity and difficulty
- From infected machines to targeted attacks
-
Categorization of security flaws
- Landwehr’s taxonomy
- The Seven Pernicious Kingdoms
- OWASP Top Ten 2013
- Comparison of OWASP Top Ten from 2003 to 2013
Introduction to the Microsoft® Security Development Lifecycle (SDL)
- Agenda
-
Applications under attack...
- The evolution of cybercrime
- Shift in attack focus toward applications
- The prevalence of vulnerabilities in smaller ISV applications
-
The origins of the Microsoft SDL...
- Microsoft’s security timeline...
- Which applications are mandated to follow 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 – Archive
- Post-SDL Requirement: Response
- SDL Process Guidance for Line of Business (LOB) Apps
- 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 – illustrative example
- Conducting attack surface analysis
- Examples of attack surface reduction
-
Privacy
- Privacy considerations
- Understanding application behaviors and concerns
-
Defense in depth
- SDL Core Principle: Defense in Depth
- Defense in depth – example
-
Least privilege principle
- 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 the stack frame
-
Stack overflow
- Buffer overflow on the stack
- Introduction to exercises
- Exercise BOFIntro
- Exercise BOFIntro – determining stack layout
- Exercise BOFIntro – creating a simple exploit
-
Input validation
- Core concepts of input validation
-
Integer-related issues
- Representation of negative integers
- Integer overflow
- Arithmetic overflow – predicting the output
- Exercise IntOverflow
- Evaluating 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 – Applying 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
- Mitigating path traversal risks
Day 2
Secure Implementation Principles
-
Injection
- Common SQL Injection attack vectors
- Blind and time-based SQL injection
- Protection methods against SQL Injection
- Command injection
-
Broken authentication - password management
- Exercise – Analyzing the weaknesses of hashed passwords
- Password management and storage best practices
- Hash algorithms designed for password storage
-
Cross-Site Scripting (XSS)
- Overview of Cross-Site Scripting (XSS)
- CSS injection
- Exploitation: injection via other HTML tags
- Preventing XSS attacks
-
Missing function-level access control
- Filtering file uploads
-
Practical cryptography
- Achieving confidentiality with symmetric cryptography
- Symmetric encryption algorithms
- Block ciphers – modes of operation
- Hashes or message digests
- Hash algorithms
- Message Authentication Code (MAC)
- Ensuring integrity and authenticity with symmetric keys
- Achieving confidentiality with public-key encryption
- Guideline – managing private key possession
- Common errors in password management
- Exercise – Identifying hard-coded passwords
- Conclusion
Secure Verification Principles
- Distinguishing functional testing from security testing
- Identifying security vulnerabilities
- Prioritization strategies
- Integrating security testing into the SDLC
- Steps in test planning (risk analysis)
-
Scoping and information gathering
- Stakeholders
- Assets
- The attack surface
- Security objectives for testing
-
Threat modeling
- Fundamentals of threat modeling
- Profiling attackers
- Threat modeling using attack trees
- Threat modeling based on misuse/abuse cases
- Misuse/abuse cases – a simple web shop scenario
- The STRIDE per element approach in threat modeling – MS SDL
- Defining 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 different 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
- Comparing manual and automated security testing
- Penetration testing
- Stress tests
-
Fuzzing
- Automated security testing – fuzzing
- Challenges associated with fuzzing
-
Web vulnerability scanners
- Exercise – Using a vulnerability scanner
-
Checking and hardening the environment
- Common Vulnerability Scoring System – CVSS
- Vulnerability scanners
- Public databases
-
Case study – Forms Authentication Bypass
- NULL byte termination vulnerability
- The Forms Authentication Bypass vulnerability in code
- Exploiting the Forms Authentication Bypass
Knowledge Sources
- Secure coding resources – a starter kit
- Vulnerability databases
- .NET secure coding guidelines on MSDN
- .NET secure coding cheat sheets
- Recommended books – .NET and ASP.NET
Testimonials (3)
The passion with which the trainer disseminates knowledge.
Christoph Weiland - Regionalverband Saarbrucken
Course - .NET, C# and ASP.NET Security Development
Machine Translated
Experience sharing, it's teacher's know-how and valuable.
Carey Fan - Logitech
Course - C/C++ Secure Coding
the knowledge of the trainer was very high - he knew what he was talking about, and knew the answers to our questions