Security: a Many Pronged Word
Security. This word has many meanings, depending on how you look at things. For some people security means that others should
not be able to see the data you are sending or storing. For others this means making sure you know who is using
your system and determining what actions they can perform with it. Sometimes it means ensuring the data cannot be changed
in transit. Here we will look at all the different meanings of security and discuss 10 rules you should always adhere
- Security testing is different
- Applying STRIDE
- The Ten Immutable Laws of Security
How do you keep prying eyes away from your data? Encrypting data ensures that only the intended receiver of the data can understand
it. So how does this work? We will look at symetric keys versus asymtric ones. We will also look at the most used encryption
algorighms, what role certificates play and describe how TLS and HTTPS work.
- What is Encryption?
- Understanding symmetric keys
- And what about asymmetric keys
- Hybrid encryption
- Properly store passwords with hashing and salt
- What are digital signatures?
- Certificates, SSL, TLS and HTTPS
- LAB: Encryption
OWASP Web Security Headers
OWASP defined a couple of special security headers which allow you some control over what the browser will do with your
content. In this chapter we will discuss two of these headers.
- Understanding HTTP headers and their role in security
- Setting headers in IIS and ASP.NET Core
- HTTP Strict Transport Security header
- HSTS options
- HTTP Public Key Pinning
- Understanding TOFU and how to mitigate
Understanding Claims-Based Security
What is a given user allowed to do in your application? This most-likely depends on the role that user has in your organisation.
This role is now represented with claims. In this chapter you will get a better understanding why claims are
better than roles, and how claims are transmitted in a secure way as tokens.
- Representing the user
- Introducing claims based security
- Understanding tokens and their representation on the net
- Using Claims in .NET
- LAB: Authenticating a web site with claims
Modern Web Authentication and Authorization
In the modern web we all want to share stuff. But how do you safely allow one web site to access resources from
another web site? With OpenID Connect you can delegate authentication to an identity provider
(such as Facebook, Azure AD, Identity Server and others).
- The Internet and a way of sharing
- Introducing OAuth and OpenID Connect
- OAuth fundamentals: Authorization Code Grant, Implicit Grant and Client Credential Grant
- Implementing OpenID Connect web sign-in with AzureAD and Identity Server
- LAB: Understanding Azure AD and its configuration
Protecting a Web-API with OAuth
Modern web sites and mobile apps often consume REST services.
You can use OpenID Connect to authenticate users, after
which you can use claims to authorize access to resources stored in a web API.
- Protecting a Web API's resources
- Adding permissions to the server side
- Requesting permissions at the client side
- Using the Microsoft Authentication Library (MSAL)
- User consent
- LAB: Getting an access token and passing it to the server
Web Security Threats and Defences
To better protect yourself against attacks, you should first learn what kind of attacks are common.
Once you understand these attacks we can look at defending against them.
- OWASP - Top 10 security issues
- Broken Access Control
- Cryptographic Failures
- Insecure Design
- Security Misconfiguration
- Vulnerable and Outdated Components
- Indentification and Authentication Failures
- Software and Data Integrity Failures
- Security Logging and Monitoring Failures
- Server-Side Request Forgery
- Extra: Denial of Service
The best defence is a good offence. In this hands-on module, you are going to put on your black hat and try to exploit as many vulnerabilities as you can in a web application made just for that.
- Introducing the OWASP Juice Shop
- LAB: Finding vulnerabilities in a webshop
Cyber security is becoming an increasingly important topic for organizations. The quantity and importance of data entrusted
to web applications is growing, and defenders need to learn how to secure them. Imagine your organization making the
news, not because of some new world-changing product, but because of a data-leak containing all your customer's data,
including personal information and credit card data! As a modern web developer mastering these skills is important because
you cannot afford not to!
This course takes you through the different security threats and defenses and learns you hands-on how to apply them to
ASP.NET Core. Among others, you learn how to authenticate with
OpenID Connect and Azure AD, protect your API with OAuth2 and secure your company data with proper encryption techniques.
This course provides in-depth, hands-on experience securing your web-based applications.
This course is meant for developers that have experience with ASP.NET MVC or ASP.NET Core and want to make the world a safer place through
applied security best practices.