Secure .Net Web Application Development

Live Classroom
Duration: 3 days
Live Virtual Classroom
Duration: 3 days
Pattern figure


This course is designed to train experienced .Net developers in .Net security to enable them to build secure web applications, incorporating essential security elements into the applications, from the development to deployment stage and beyond. Participants will thoroughly examine best practices for coding .NET web applications effectively. They will be trained to code secure web applications, including on concepts like XML processing, rich interfaces, as well as RESTful and SOAP-based web services. Participants will repeatedly attack and then defend various assets associated with a fully-functional web application.

What You'll Learn

  • Recognize potential and real security vulnerabilities, employ the right defense measures and test the adequacy of those defenses
  • Understand the most common security vulnerabilities encountered in web applications today and enable them to examine each vulnerability from a .Net perspective
  • Describe the threat and attack mechanisms, recognizing associated vulnerabilities, and consequently, design, implement and test effective defenses


  • Module 1: 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
  • Module 2: 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
  • Module 3: 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

  • Module 4: 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
  • Module 5: Broken access control
    • Access control issues
    • Excessive privileges
    • Insufficient flow control
    • Unprotected URL/resource access
    • Examples of shabby access control
    • Sessions and session management
  • Module 6: 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
  • Module 7: Cross site scripting (XSS)
    • XSS patterns
    • Persistent XSS
    • Reflective XSS
    • Best practices for untrusted data
    • Exercise: Defending against XSS
    • Module 8: Injection
    • Injection flaws
    • SQL injection attacks evolve
    • Drill down on stored procedures
    • Other forms of injection
    • Minimizing injection flaws
    • Exercise: Defending against SQL injection

  • Module 9: Error handling and information leakage
    • Fingerprinting a web site
    • Error-handling issues
    • Logging in support of forensics
    • Solving DLP challenges
    • Exercise: Error handling
  • Module 10: Insecure data handling
    • Protecting data can mitigate impact
    • In-memory data handling
    • Secure pipes
    • Failures in TLS/SSL framework
    • Exercise: Defending sensitive data
  • Module 11: Insecure configuration management
    • System hardening: IA mitigation
    • Application whitelisting
    • Least privileges
    • Anti-exploitation
    • Secure baseline
  • Module 12: Direct object access
    • Remote file inclusion
    • Redirects and forwards
    • Direct object references
    • Exercise: Unsafe direct object references
  • Module 13: 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

  • Module 14: .NET issues and best practices
    • Manage code and buffer overflows
    • .Net permissions
    • ActiveX controls
    • Proper exception handling
  • Module 15: 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

  • Module 16: Defending XML
    • XML signature
    • XML encryption
    • XML attacks: structure
    • XML attacks: injection
    • Safe XML processing
    • Exercise: Safe XML processing
  • Module 17: 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
  • Module 18: 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

  • Module 19: Cryptography overview
    • Strong encryption
    • Message digests
    • Encryption/decryption
    • Keys and key management
    • NIST recommendations
  • Module 20: .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)
Ripple wave

Who should attend

This course is highly recommended for:

  • Senior .Net developers
  • Secure web application developers
  • Senior software developers


Participants must have a working knowledge of programming languages such as .Net and C#. They should also have familiarity with tools such as Visual Studio, IIS and SQL server.

Interested in this Course?

    Ready to recode your DNA for GenAI?
    Discover how Cognixia can help.

    Get in Touch
    Pattern figure
    Ripple wave