Developing Secure Web Applications
Elements of this syllabus are subject to change.
This three-day instructor-led course provides students with the knowledge and skills that are needed to build Web applications by using secure coding techniques.. Students will learn how to identify Web application security vulnerabilities and understand the trade-offs between functionality and performance when choosing the appropriate security mechanisms for their Web applications. Throughout this course, students will get hands-on experience in creating secure Web applications.
This course is intended for students who are responsible for the design and development of Web applications. These students typically have three to five years of experience in developing or designing distributed Web applications. Actual job role titles vary throughout the technology industry, and they may include, but are not limited to:
§
Web Developer
The Web developer is responsible for developing the logic,
coding, testing, and debugging of Web applications and Web application
software.
§
Solutions Architect
The Solutions
Architect is responsible for the design of the technical architecture of
Web applications and Web-based software applications
At
Course Completion
After completing this course, students will be able to:
§ Define the basic principals of, and motivations for, Web security.
§ Perform a threat analysis of Web-accessible assets.
§ Use knowledge of authentication, Security Identifiers (SIDs), Access Control Lists (ACLs), impersonation, and the concept of running with least privilege to ensure access to only those system resources that are necessary to accomplish normal request processing.
§ Protect file system data by using the features in Microsoft® Windows® 2000.
§ Use the Microsoft SQL Server™ Security model and Microsoft ADO.NET to protect a Web application against SQL Server injection attacks.
§ Use one of the CryptoService classes of the System.Security.Cryptography namespace to transform a block of data into cyphertext.
§ Protect the portion of a Web application that requires private communications by using Secure Sockets Layer (SSL), .
§ Use general security coding best practices to ensure a secure Web application.
§ Use the Microsoft .NET Framework to build secure Web applications.
§ Employ a structured approach to testing for Web application security.
§
Use a systematic approach and
knowledge of security best practices to secure an existing Web application.
Before attending this course, students must have:
§ Familiarity with n-tier application architecture.
§ Experience in developing or designing Web applications.
§ Experience with one or both of the following programming languages:
o Microsoft Visual Basic®
o C#
o Microsoft Visual Basic® .NET
§ Experience in writing server-side and client-side scripts by using one or both of the following scripting languages:
o Active Server Pages (ASP)
o Microsoft ASP.NET
§ Familiarity with all of the following Microsoft products and technologies is recommended:
o Microsoft SQL Server 2000
o
Microsoft
Internet Information Services (IIS)
In addition, it is recommended, but not required, that students have completed:
§ Course 2310, Developing Web Applications Using Microsoft Visual Studio .NET
§ Course 1017, Developing Web Applications Using Microsoft Visual InterDev®
The student kit includes a comprehensive workbook and other necessary materials for this class.
Module 1: Introduction to Web Security
This module provides an overview of the terms and concepts of, along
with the justification for, Web security.
|
Lessons |
|
§ Why Build Secure Web Applications? § Using the STRIDE Model to Determine Threats § Implementing Security: An Overview |
|
There is no lab for this
module |
|
|
After completing this module, students will be able to:
n
Describe
why security is an essential consideration in Web application development.
n Describe the basic methods of cryptography, hashing, and digital signing.
Module 2: Planning for Web Application Security
This module describes the general process of incorporating security in the Web application planning and design process.
|
Lessons |
|
§
A Design Process for Building
Secure Web Applications |
|
Lab 2: There is no lab
for this module |
|
|
After completing this module, students will be able to:
§ Describe the iterative process of designing security into a Web application and be able to describe how each step relates to the other steps.
§ Categorize and identify the most common types of attacks, the potential threat that those attacks pose to systems, services, and data within the organization, and the relationship between these threats.
Module 3: Validating User Input
This module explains the methods that can be used for checking user input, along with a discussion of the consequences of not performing those checks.
|
Lessons |
|
§ User Input § Types of User Input Attacks § Performing Validation § Revealing as Little Information as Possible to the User |
|
Lab
3: Verifying User Input |
|
§ The student will be given the task of identifying and repairing several unchecked user input fields on the checkout shipping screen. |
After completing this module, students will be able to:
§ Identify the sources of user input in a Web application.
§ Describe the security aspects of the client/server Web paradigm.
§ Implement user input verification.
§ Use communications analysis and coding best practices to avoid providing information to users that can be leveraged for security attacks.
§ Use proper error handling to ensure all fallback paths are expected, wanted, and do not suspend resource allocations.
§ Reduce the impact of enialerviceDenial of Service (DoS) attacks of varying types, such as application crashing, CPU starvation, resource starvation, and bandwidth choking.
Module 4: Internet Information Services Authentication
This module explains the Web client authentication methods that are supported by IIS and Windows 2000 Server.
|
Lessons |
|
§ Introduction to Web Client Authentication § Configuring Access Permission for a Web Server § Selecting a Secure Client Authentication Method § Running Services As an Authenticated User |
|
Lab
4: Authentication and Access Control |
|
§ Students will configure and implement the authentication and process identification for the online store Web application. |
After completing this module, students will be able to:
§ Describe all of the authentication methods that are supported by IIS and Windows 2000 Server and be able to select the best method for a given set of requirements.
§ Use knowledge of Windows 2000 access control mechanisms and process identification to properly configure identities for all of the processes in an ASP/COM+ Web application processing path.
§ Use knowledge of Windows 2000 access control mechanisms and process identification to properly configure resource access for the identities that are defined for a Web application.
Module 5: Securing Web Pages
This module covers security in the context of Web applications that are built by using the .NET framework.
|
Lessons |
|
§
ASP Forms-Based
Authentication §
.NET Code Access and
Role-Based Security §
Overview of ASP.NET
Authentication Methods §
Working with Windows-Based
Authentication in ASP.NET security §
Working with ASP.NET
Forms-Based Authentication |
|
Lab
5: Securing Web Pages |
|
§ Students will be given the task of completing the implementation of an ASP.NET Web application and setting up the authentication and impersonation methods. |
After completing this module, students will be able to:
§ Describe the elements that make up the core security model of the .NET Framework.
§ Use security best practices and a complete understanding of the security model while implementing ASP.NET Web applications.
Module 6: Securing File System Data
This module teaches a Web developer how to protect file system data that is typically part of a Web application.
|
Lessons |
|
§ Overview of Securing Files § Windows Access Control § Creating ACLs Programmatically § Protecting ASP.NET Web Application Files |
|
Lab
6: Securing Files with ACLs |
|
§ The students will secure file system data on an ASP.NET page. |
After completing this module, students will be able to:
§ Describe how the Windows access control mechanisms are used to protect file system data.
§ Use the features of Windows to protect Web application data from tampering.
§ Use ASP.NET Web.config files to restrict access to files that are located in an ASP.NET Web application.
Module 7:
Securing Microsoft SQL Server
This module will teach students how to protect Web applications from SQL Server injection attacks.
|
Lessons |
|
§ SQL Server Connections and Security § SQL Server Role-Based Security § Securing SQL Server Communication § Preventing SQL Injection Attacks |
|
Lab
7: Securing Microsoft SQL Server Data |
|
§ The student will be given the task of repairing the Web application implementation by using stored procedures and Microsoft ActiveX® Data Objects (ADO) command parameters. |
After completing this module, students will be able to:
§
Use the SQL Server Security
model and ADO.NET to protect a Web application against attacks.
Module 8: Protecting Communication Privacy and Data Integrity
This module teaches the mechanisms that can be used to ensure Web communication privacy and message data integrity, along with the guidelines for their proper use. The guidelines are presented as an attempt to avoid the common implementation mistakes that can compromise security and performance.
|
Lessons |
|
§ Introduction to Cryptography § Working with Digital Certificates § Management § Using Secure Sockets Layer/Transport Layer Security Protocols § Using Internet Protocol Security |
|
Lab
8.1: Obtaining a Server Certificate Lab
8.2: Protecting Communication Privacy
and Data Integrity |
|
§ Students will determine what portions of the course Web application require communication privacy and they will then implement SSL protection for those portions. |
After completing this module, students will be able to:
§ Protect the portions of a Web application that require private communications by using SSL.
Module 9: Encrypting, Hashing, and Signing Data
This module explains how to use the cryptographic functionality, supported by Microsoft platforms, to encrypt and sign data.
|
Lessons |
|
§ Encryption and Digital Signing Libraries § Using CAPICOM § Using System.Security.Cryptography Namespace to Hash Data § Using System.Security.Cryptography Namespace to Encrypt and Sign Data |
|
Lab
9: Hashing Data |
|
§ Students will sign the contents of a file when it is stored and verify that signature to ensure data validity when the value is read again. |
After completing this module, students will be able to:
§ Use one of the Cryptographic Services classes of the System.Security.Cryptography namespace to transform a block of data to cyphertext.
Module 10: Testing Web Applications for Security
This module will provide students with the skills and knowledge that areis required to properly test a Web implementation for security.
|
Lessons |
|
§ Testing Security in a Web Application § Creating a Security Test Plan § Performing Security Testing |
|
Lab
10: Test Cases for Security Testing |
|
§ students will perform test cases on the course Web application. |
After completing this module, students will be able to:
§ Differentiate security testing from other types of testing.
§ Create a security test plan.
§ Successfully carry out a security test plan.
© 2002 Microsoft Corporation. All rights reserved.
Some elements of
this course syllabus are subject to change. This syllabus is for informational
purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS
SUMMARY. Microsoft, Windows, ActiveX,
Visual Basic, and Visual InterDev are either registered trademarks or
trademarks of Microsoft Corporation in the