Secure .Net Web Application Development Lifecycle
Course Features
Course Details
Overview
The Secure .Net Web Application Development Lifecycle (SDL) course focusses on enabling .Net developers to build secure web applications, incorporating essential security elements into the applications, from the development to deployment stage and beyond. In addition to a basic level of secure programming skills, developers will also learn about the right practices and processes for the entire software development lifecycle.
During this course, developers will initiate attacks and provide defenses, while also learning about the right practices and processes to be able to code secure web applications, including XML processing, rich interfaces, as well as RESTful and SOAP-based web services. At the end of the program, students will be equipped with the ability to recognize both potential as well as real security vulnerabilities and employ the right defense measures to overcome them, and also test the adequacy of those defenses. This course will introduce developers to the most common security vulnerabilities encountered in web applications today, and enable them to examine each vulnerability from a .Net perspective. Further, developers will learn to describe the threat and attack mechanisms, recognize associated vulnerabilities, and consequently, design, implement, and test effective defenses.
Curriculum
Foundation
Who is Safe?
• Assumptions We Make
• Security: The Complete Picture
• Anthem, Sony, Target, Heartland, and TJX Debriefs
• Verizon’s 2017 Data Breach Report
• Attack Patterns and Recommendations
• Tutorial: Working with Visual Studio
• Exercise: Case Study Setup and Review
Security Concepts
• Motivations: Costs and Standards
• Open Web Application Security Project
• Web Application Security Consortium
• CERT Secure Coding Standards
• Microsoft SDL
• Assets and Trust Boundaries
• Threat Modeling
• Exercise: Case Study Asset Analysis
Principles of Information Security
• Security Is a Lifecycle Issue
• Minimize Attack Surface Area
• Layers of Defense: Tenacious D
• Compartmentalize
• Consider All Application States
• Do NOT Trust the Untrusted
Vulnerabilities (Part 1)
Unvalidated Input
• Buffer Overflows
• Integer Arithmetic Vulnerabilities
• Unvalidated Input: From the Web
• Defending Trust Boundaries
• Whitelisting vs Blacklisting
• Exercise: Defending Trust Boundaries
• Exercise: Defending Trust Boundaries With Regular Expressions
Broken Access Control
• Access Control Issues
• Excessive Privileges
• Insufficient Flow Control
• Unprotected URL/Resource Access
• Examples of Shabby Access Control
• Sessions and Session Management
Broken Authentication
• Broken Quality/DoS
• Authentication Data
• Username/Password Protection
• Exploits Magnify Importance
• Handling Passwords on Server Side
• Single Sign-on (SSO)
• Exercise: Defending Authentication
Cross Site Scripting (XSS)
• XSS Patterns
• Persistent XSS
• Reflective XSS
• Best Practices for Untrusted Data
• Exercise: Defending Against XSS
Injection
• Injection Flaws
• SQL Injection Attacks Evolve
• Drill Down on Stored Procedures
• Other Forms of Injection
• Minimizing Injection Flaws
• Exercise: Defending Against SQL Injection
Vulnerabilities (Part 2)
Error Handling and Information Leakage
• Fingerprinting a Web Site
• Error-Handling Issues
• Logging In Support of Forensics
• Solving DLP Challenges
• Exercise: Error Handling
Insecure Data Handling
• Protecting Data Can Mitigate Impact
• In-Memory Data Handling
• Secure Pipes
• Failures in TLS/SSL Framework
• Exercise: Defending Sensitive Data
Insecure Configuration Management
• System Hardening: IA Mitigation
• Application Whitelisting
• Least Privileges
• Anti-Exploitation
• Secure Baseline
Direct Object Access
• Remote File Inclusion
• Redirects and Forwards
• Direct Object References
• Exercise: Unsafe Direct Object References
Spoofing, CSRF, and Redirects
• Name Resolution Vulnerabilities
• Fake Certs and Mobile Apps
• Targeted Spoofing Attacks
• Cross Site Request Forgeries (CSRF)
• CSRF Defenses
• Exercise: Cross-Site Request Forgeries
1
Error Handling and Information Leakage
• Fingerprinting a Web Site
• Error-Handling Issues
• Logging In Support of Forensics
• Solving DLP Challenges
• Exercise: Error Handling
Insecure Data Handling
• Protecting Data Can Mitigate Impact
• In-Memory Data Handling
• Secure Pipes
• Failures in TLS/SSL Framework
• Exercise: Defending Sensitive Data
Insecure Configuration Management
• System Hardening: IA Mitigation
• Application Whitelisting
• Least Privileges
• Anti-Exploitation
• Secure Baseline
Direct Object Access
• Remote File Inclusion
• Redirects and Forwards
• Direct Object References
• Exercise: Unsafe Direct Object References
Spoofing, CSRF, and Redirects
• Name Resolution Vulnerabilities
• Fake Certs and Mobile Apps
• Targeted Spoofing Attacks
• Cross Site Request Forgeries (CSRF)
• CSRF Defenses
• Exercise: Cross-Site Request Forgeries
Best Practices
.NET Issues and Best Practices
• Manage Code and Buffer Overflows
• .Net Permissions
• ActiveX Controls
• Proper Exception Handling
Understanding What’s Important
• Common Vulnerabilities and Exposures
• OWASP 2017 Top Ten
• CWE/SANS Top 25 Most Dangerous SW Errors
• Monster Mitigations
• Strength Training: Project Teams/Developers
• Strength Training: IT Organizations
• Exercise: Recent Incidents
Defending XML, Services, and Rich Interfaces
Defending XML
• XML Signature
• XML Encryption
• XML Attacks: Structure
• XML Attacks: Injection
• Safe XML Processing
• Exercise: Safe XML Processing
Defending Web Services
• Web Service Security Exposures
• When Transport-Level Alone is NOT Enough
• Message-Level Security
• WS-Security Roadmap
• Web Service Attacks
• Web Service Appliance/Gateways
• Exercise: Web Service Attacks
Defending Rich Interfaces and REST
• How Attackers See Rich Interfaces
• Attack Surface Changes When Moving to Rich Interfaces and REST
• Bridging and its Potential Problems
• Three Basic Tenets for Safe Rich Interfaces
• OWASP REST Security Recommendations
• OAuth 2.0 and OpenID
Cryptography
Cryptography Overview
• Strong Encryption
• Message Digests
• Encryption/Decryption
• Keys and Key Management
• NIST Recommendations
.NET Cryptographic Services
• The role of cryptographic services
• Hash algorithms and hash codes
• Encrypting data symmetrically
• Encrypting data asymmetrically
• Exercise: .Net Hashing (Optional)
• Exercise: .Net Symmetric Encryption
• Exercise: .Net Asymmetric Encryption (Optional)
Secure Development Lifecycle (SDL)
SDL Process Overview
• Types of Security Controls
• Phases of Typical Data-Oriented Attack
• Phases: Offensive Actions and Defensive Controls
• Security Lifecycle Activities
Applying Processes and Practices
• Threat Modeling Process
• Modeling Assets and Trust Boundaries
• Modeling Data Flows
• Exercise: Threat Modeling
Risk Analysis
• Identifying Threats
• Relating Threats to Model
• Mitigating Threats
• Reviewing the Application
Security Testing
Testing Tools and Processes
• Security Testing Principles
• Dynamic Analyzers
• Static Code Analyzers
• Criteria for Selecting Static Analyzers
Testing Practices
• OWASP Web App Penetration Testing
• Authentication Testing
• Session Management Testing
• Data Validation Testing
• Denial of Service Testing
• Web Services Testing
• Ajax Testing