Home > Training > SNWA

Securing .NET Web Applications (SNWA)

Course Description Schedule Course Outline
 

Who should attend

Securing .Net Web Applications is a lab-intensive, hands-on .Net security training course, essential for experienced enterprise developers who need to produce secure .Net -based web applications. In addition to teaching basic programming skills, this course digs deep into sound processes and practices that apply to the entire software development life-cycle.

In this course, students thoroughly examine best practices for defensively coding .Net web applications, including XML processing and web services. Students will repeatedly attack and then defend various assets associated with a fully-functional web application. This hands-on approach drives home the mechanics of how to secure .Net web applications in the most practical of terms.

Prerequisites

This is an intermediate-level .Net programming course, designed for developers who wish to get up and running on developing well defended software applications. This course may be customized to suit your team’s unique objectives.

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 application development practical experience.

Course Objectives

Students who attend Securing .Net Web Applications 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 lab-intensive, hands-on programming environment, led by our security experts, students 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 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 web applications
  • Design and develop strong, robust authentication and authorization implementations within the context of .NET
  • 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

This class is “technology-centric”, designed to train attendees in essential secure coding and development skills, coupling the most current, effective techniques with the soundest industry practices. This workshop is about 50% dynamic lab exercises and 50% lecture.

The course provides a solid foundation in basic terminology and concepts, extended and built upon throughout the engagement. Students will examine various recognized attacks against web applications. Processes and best practices are discussed and illustrated through both discussions and group activities.

The second portion of the course steps through a series of vulnerabilities illustrating in very real terms the right way to implement secure .Net applications. The last portion of the course examines several design patterns that can be used to facilitate better application architecture, design, implementation, and deployment.

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
  • Although this training is skills-centric, this course can be delivered using a variety of software versions. The preferred tools for the class are Visual Studio 2008, IIS, SQL Server, and C#.

Our detailed workbooks are complete with software-specific screen shots and step-by-step tutorials for using the software you select. In most cases we can easily port our classes to run in the environment of your choosing.

Detailed Course Outline

Session1: 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 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
  • 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 Life-cycle 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

Duration: 3 days

 
Live chat by BoldChat