Need a private training for your team? Request a private training
Not ready to book yet? Request an offer
This chapter introduces the fundamental concepts and terminology of web security. It explains why web security is important, how web applications are commonly attacked, and which core principles are used to protect them. The goal is to establish a shared vocabulary and security mindset that will be used throughout the rest of the course, including the risks introduced by AI-powered attacks and AI-assisted development. The OWASP Top 10 provides a reference for the vulnerabilities and mitigations covered throughout the course.
This module introduces the cryptographic concepts developers need to protect application data and communications. You will learn how to apply encryption, hashing and digital signing correctly in .NET, enforce HTTPS and securely store passwords.
This module explains how authentication and authorization are implemented in traditional server-rendered web applications. We focus on browser-based security patterns, showing how users are authenticated, how identity information is stored and propagated, and how access to application functionality is enforced on the server. Emphasis is placed on secure defaults, real-world deployment scenarios, and avoiding common access control pitfalls, including insecure cookie configuration and session hijacking.
Server-rendered forms introduce classic web risks: CSRF, mass assignment / overposting, and validation issues. You'll learn how these attacks work and how to prevent them.
When your application talks to a database, injection becomes a primary risk. We cover how injection happens in .NET, how to avoid it using parameterization, and what ORMs do and don't protect you from. We also look at how database security (accounts, permissions, and configuration) limits the blast radius when something goes wrong, including when applications execute AI-generated queries.
OAuth2 is the standard for delegated authorization. We focus on protecting ASP.NET Core APIs using Entra ID, validating tokens, and implementing authorization using scopes/claims. These principles also apply when AI-powered applications and agents consume APIs. We also cover secure cross-origin access from browser-based clients.
Script injection is one of the most damaging browser-based attacks. This module explains reflected/stored/DOM XSS, and focuses on practical mitigations: encoding, safer templates, and CSP.
Single-Page Applications have a different security profile than traditional server-rendered applications. Since SPAs run entirely in the browser, they cannot safely store secrets and rely on API calls for all backend interaction. This makes secure authentication and token handling essential. Modern SPA security therefore uses OAuth 2.0 with PKCE for public clients to prevent token interception, and often applies the Backend-for-Frontend (BFF) pattern to move token handling and sensitive logic to a trusted server, building on the security concepts already seen in server-rendered and API architectures.
AI coding assistants such as GitHub Copilot can accelerate development, but generated code is not necessarily secure. This module explores how developers can identify common vulnerabilities in AI-generated code and use AI to support security reviews without replacing human judgment.
Applications that integrate large language models and AI agents introduce new attack surfaces. You will explore common AI security risks and learn how to apply existing secure coding and access control principles to protect these applications and their data.
Artificial Intelligence is transforming the way software is developed and the way applications are attacked. Attackers can use AI to identify vulnerabilities and automate cyberattacks, while AI-powered coding assistants can introduce security weaknesses into otherwise functional code. As a modern developer, mastering secure coding practices is more important than ever.
In this hands-on course, you will learn how to protect modern web applications against traditional and AI-powered cyberattacks using ASP.NET Core. You will learn how to authenticate with OpenID Connect and Entra ID, protect your API with OAuth2 and secure your data with proper encryption techniques. Starting with server-rendered websites and progressing to APIs, modern JavaScript and AI-powered applications, you will gain practical experience in secure application development. You will also learn how to review AI-generated code for vulnerabilities, use AI coding assistants responsibly and secure applications that integrate large language models and AI agents.
This course is designed for developers with experience in ASP.NET Core who want to build secure applications and protect them against modern cyber threats, including developers who use AI-powered coding assistants. No prior experience with cybersecurity or AI application development is required.