Secure Web Application Development
Course Features
Course Details
Overview
The Secure Web Application Development course is an immersive training seminar-like course focused on providing web developers training in web application security to enable them 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 programming skills, developers will also learn about the right practices and processes for the entire software development lifecycle. Further, participants will also be introduced to examples for better understanding the consequences of not following them.
At the end of the program, participants 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 also introduce developers to the most common security vulnerabilities encountered in web applications today, and enable them to examine each from a coding perspective. Developers will learn to describe the threat and attack mechanisms, recognize associated vulnerabilities, and consequently, design, implement, and test effective defenses.
Curriculum
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
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
• Potential Demonstration: 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
• Potential Demonstration: Defending Trust Boundaries
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)
• Potential Demonstration: Defending Authentication
Cross Site Scripting (XSS)
• XSS Patterns
• Persistent XSS
• Reflective XSS
• Best Practices for Untrusted Data
• Potential Demonstration: Defending Against XSS
Injection
• Injection Flaws
• SQL Injection Attacks Evolve
• Drill Down on Stored Procedures
• Other Forms of Injection
• Minimizing Injection Flaws
• Potential Demonstration: 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
Insecure Data Handling
• Protecting Data Can Mitigate Impact
• In-Memory Data Handling
• Secure Pipes
• Failures in TLS/SSL Framework
• Potential Demonstration: 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
• Potential Demonstration: 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
• Potential Demonstration: Cross-Site Request Forgeries
Best Practices
Cryptography Overview
• Strong Encryption
• Message Digests
• Encryption/Decryption
• Keys and Key Management
• NIST Recommendations
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
Defending XML, Services, and Rich Interfaces
Defending XML
• XML Signature
• XML Encryption
• XML Attacks: Structure
• XML Attacks: Injection
• Safe XML Processing
• Potential Demonstration: 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
• Potential Demonstration: 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
• Potential Demonstration: Working with OAuth
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
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