Home > Training > SNWAD

Secure .NET Web Application Development (SNWAD)

Course Description Schedule Course Outline
 

Who should attend

The Secure .Net Web Application Development Seminar is an intense .Net security training workshop/seminar essential for web developers who need to produce secure web applications, integrating security measures into the development process from requirements to deployment and maintenance. This course explores well beyond basic programming skills, teaching developers sound processes and practices to apply to the entire software development life-cycle. Perhaps just as significantly, students learn about current, real examples that illustrate the potential consequences of not following these best practices. This course is short on theory and long on application, providing students with in-depth, code-level demonstrations and walkthroughs.

In this course, students are shown best practices for defensively coding .Net web applications, including XML processing and web services. Demonstrations repeatedly attack and then defend various assets associated with a fully-functional web application. This approach illustrates the mechanics of how to secure .Net web applications in the most practical of terms.

Prerequisites

This is an intermediate-level and beyond .Net programming course designed for developers who wish to get up and running on developing well defended web applications. Familiarity with C# is required and real world programming experience is highly recommended. Ideally students should have approximately 6 months to a year of .net web application development working knowledge.

Course Objectives

Students who attend Secure .NET Web Application Development will leave the course armed with the skills required to recognize actual and potential software vulnerabilities, implement defenses for those vulnerabilities, and test those defenses for sufficiency.
This course quickly introduces developers to the most common security vulnerabilities faced by web applications today. Each vulnerability is examined from a .NET perspective through a process of describing the threat and attack mechanisms, recognizing associated vulnerabilities, and, finally, designing, implementing, and testing effective defenses. In many cases, there are labs that reinforce these concepts with real vulnerabilities and attacks. Students are then challenged to design and implement the layered defenses they will need in defending their own applications.

Working in a dynamic learning environment, attendees will learn to:

  • Understand potential sources for untrusted data
  • Understand the consequences for not properly handling untrusted data such as denial of service, cross-site scripting, and injections
  • Be able to test web applications with various attack techniques to determine the existence of and effectiveness of layered defenses
  • Prevent and defend the many potential vulnerabilities associated with untrusted data
  • Understand the vulnerabilities of associated with authentication and authorization
  • Be able to detect, attack, and implement defenses for authentication and authorization functionality and services
  • Understand the dangers and mechanisms behind Cross-Site Scripting (XSS) and Injection attacks
  • Be able to detect, attack, and implement defenses against XSS and Injection attacks
  • Understand the concepts and terminology behind defensive, secure, coding
  • Understand the use of Threat Modeling as a tool in identifying software vulnerabilities based on realistic threats against meaningful assets
  • Perform both static code reviews and dynamic application testing to uncover vulnerabilities in Java-based web applications
  • Design and develop strong, robust authentication and authorization implementations within the context of .NET
  • Understand the fundamentals of Cryptography and Encryption and where they fit in the overall security picture
  • Understand the fundamentals of XML Digital Signature and XML Encryption as well as how they are used within the web services arena
  • Be able to detect, attack, and implement defenses for XML-based services and functionality
  • Understand techniques and measures that can used to harden web and application servers as well as other components in your infrastructure
  • Understand and implement the processes and measures associated with the Secure Software Development (SSD)
  • Acquire the skills, tools, and best practices for design and code reviews as well as testing initiatives
  • Understand the basics of security testing and planning
  • Work through a comprehensive testing plan for recognized vulnerabilities and weaknesses

Comments

What’s included?
Our robust course materials include much more than a simple slideshow presentation handout. Student materials include a comprehensive hard-copy course manual, complete with detailed course notes, code samples, diagrams and current reference materials, all directly related to the course at hand, indexed for ease of use. Step-by-step lab instructions and project descriptions are clearly illustrated and commented for maximum learning and ease of use. This course also includes:

  • Basic course pre-testing and/or post-course assessments
  • Ability to customize the courseware, adapting it to your companies policies, procedures and plans

Detailed Course Outline

Session 1: Foundation

Misconceptions

  • Thriving Industry of Identify Theft
  • Dishonor Roll of Data Breaches
  • TJX: Anatomy of a Disaster
  • Heartland: What? Again?

Security Concepts

  • Terminology and Players
  • Assets, Threats, and Attacks
  • OWASP
  • CWE/SANS Top 25 Programming Errors
  • Categories
  • What they mean to your web applications

Defensive Coding Principles

Reality

  • Recent, Relevant Incidents
  • Find Security Defects In Web Application
Session 2: Top Security Vulnerabilities

Unvalidated Input

  • Description with working example
  • Defenses
  • Identifying trust boundaries
  • Qualifying untrusted data
  • Implementing a layered defense that effectively protects quality of service as well as data integrity
  • Designing an appropriate response to a recognized attack
  • Testing defenses and responses for weaknesses

Overview of Regular Expressions

  • Description with working example

Broken Access Control

  • Description with working example
  • Defenses
  • .Net authorization security overview
  • ServletFilter turning off cache
  • Defending special privileges such as administrative functions
  • Application authorization best practices

Broken Authentication and Session Management

  • Description with working example
  • Defenses
  • Multi-layered defenses of authentication services
  • Password management strategies
  • Password handling with hashing
  • Mitigating password caching
  • Testing defenses and responses for weaknesses
  • Alternative authentication mechanisms
  • Best practices for session management
  • Defending session hijacking attacks
  • Best practices for Single Sign-On (SSO)

Cross Site Scripting (XSS) Flaws

  • Description with working example
  • Defenses
  • Character encoding complications
  • Blacklisting
  • Whitelisting
  • HTML/XML entity encoding
  • Understanding the implications of trust boundary definition
  • Implementing a layered defense that effectively protects quality of service as well as XSS vulnerabilities
  • Designing an appropriate response to a recognized attack
  • Cross-Site Request Forgeries (CSRF)
  • Understanding CSRF
  • Defending Against CSRF
  • Output Encoding – Why
  • Output Encoding – How
  • Output Encoding – Best Practices

Injection Flaws

  • Description with working example
  • Defenses
  • Qualifying untrusted data
  • Hibernate best practices
  • XML best practices
  • Third party API’s
  • Implementing a layered defense that effectively protects quality of service as well as injection vulnerabilities
  • Designing an appropriate response to a recognized attack

Error Handling and Information Leakage

  • Description with working example
  • Defenses
  • .Net web application exception handling framework
  • Error response best practices
  • Error, auditing, and logging content management
  • Error, auditing, and logging service management
  • Best practices for supporting web attack forensics

Insecure Storage

  • Description with working example
  • Defenses
  • Data leakage
  • Risk minimization
  • Cryptography Overview
  • Data encryption
  • Partial/Complete
  • Property/Deployment/Configuration files

Insecure Management of Configuration

  • Description with working example
  • Defenses
  • System hardening
  • .Net application server configuration “Gotchas!”
  • Hardening software installation

Direct Object Access

  • Description with working example
  • Defenses
  • XML/DTD/Schema/XSLT best practices

Spoofing

  • Description with working example
  • Defenses
  • Protecting your clients
  • Defending against Cross Site Request Forgeries
  • Phishing Defenses
Session 3: Best Practices

Best Practices and Principles

  • Security Is A Lifecycle Issue
  • Minimize Attack Surface
  • Manage Resources
  • Application States
  • Compartmentalize
  • Defense In Depth - Layered Defense
  • Consider All Application States
  • Not Trusting The Untrusted
  • Security Defect Mitigation
  • Leverage Experience

Session 4: Defending XML Processing
Defending XML

  • Understanding common attacks and how to defend
  • Operating in safe mode
  • Using standards-based security
  • XML-aware security infrastructure

Defending Web Services

  • Security exposures
  • Transport-level security
  • Message-level security
  • WS-Security
  • Attacks and defenses

Defending Ajax

  • Ajax Security exposures
  • Attack surface changes
  • Injection threats and concerns
  • Effective defenses and practices
Session 5: Secure Software Development (SSD)

SSD Process Overview

  • CLASP Defined
  • CLASP Applied

Asset, Boundary, and Vulnerability Identification

Vulnerability Response

Design and Code Reviews

Applying Processes and Practices

Risk Analysis

Session 6: Security Testing

Testing as Lifecycle Process
Testing Planning and Documentation

Testing Tools And Processes

  • Principles
  • Reviews
  • Testing
  • Tools
Session7: Appendix: Security Design Patterns

Design patterns introduction
.Net Web Application Security Design Patterns

  • Authentication Enforcer
  • Authorization Enforcer
  • Intercepting Validator
  • Secure Base Action
  • Secure Logger
  • Secure Pipe
  • Secure Service Proxy
  • Intercepting Web Agent

Duration: 2 days

 
Live chat by BoldChat