Securing .NET 10 applications: authentication with cookies, JWT, OAuth 2.0, OpenID Connect and Microsoft Entra ID; authorisation models; practical cryptography; the OWASP Top 10 in ASP.NET Core; and senior topics such as threat modelling, secrets, PII and supply chain security, with Australian privacy and ACSC context.
-
How do HTTPS, TLS and HSTS fit together in an ASP.NET Core app? Explain UseHttpsRedirection and UseHsts, what HSTS preload means, why APIs are handled differently from browser apps, and what changes when the app runs behind a reverse proxy or Azure Front Door.
HTTPS redirection, HSTS and preload in ASP.NET Core, the API exception, and making them work correctly behind proxies and TLS-terminating load balancers.
Intermediate
Theory
Web Security
Β· π 2 follow-ups
-
Your React SPA on app.example.com.au calls your ASP.NET Core API on api.example.com.au and the browser console shows 'blocked by CORS policy', but the same request works in Postman. How does CORS and the preflight request actually work, how do you diagnose and fix it, why does AllowAnyOrigin with AllowCredentials fail, and why is CORS not a security control for your API?
Diagnosing CORS failures in ASP.NET Core: simple vs preflighted requests, policy configuration and middleware order, the wildcard-with-credentials rule, and why CORS relaxes rather than enforces security.
Mid-Level
Debugging
Web Security
Β· π 2 follow-ups Β· π 1 real-world
-
What is cross-site scripting (XSS)? Explain stored, reflected and DOM-based XSS, how Razor's automatic encoding protects you and where it doesn't (Html.Raw, JavaScript and URL contexts), how React and Blazor compare, and how a Content Security Policy limits the damage.
XSS types, Razor's context-aware encoding and its gaps, rich-text sanitisation, front-end framework escapes, and CSP as defence in depth in ASP.NET Core.
Mid-Level
Security
Web Security
Β· π 2 follow-ups Β· π 1 real-world
-
What is cross-site request forgery (CSRF)? When does using cookies make your app vulnerable, how does antiforgery work in ASP.NET Core MVC, Razor Pages and Minimal APIs, how should an SPA send the token, and how much does SameSite=Lax protect you on its own?
CSRF mechanics, when cookie authentication is exposed, ASP.NET Core antiforgery across MVC, Razor Pages, Minimal APIs and SPAs, and the limits of SameSite cookies.
Mid-Level
Security
Web Security
Β· π 2 follow-ups Β· π 1 real-world
-
How does SQL injection happen in a .NET application, and how do you prevent it in ADO.NET, Dapper and EF Core? Show the vulnerable and fixed code, explain why FromSqlRaw with string interpolation is dangerous, and how you handle things that can't be parameterised, such as a dynamic ORDER BY column.
SQL injection across ADO.NET, Dapper, EF Core and stored procedures: parameterisation, FromSql vs FromSqlRaw, identifiers that can't be parameters, dynamic SQL with sp_executesql, and least privilege.
Intermediate
Security
Web Security
Β· π 2 follow-ups Β· π 1 real-world
-
Your API lets customers register a webhook URL and also fetches profile images from URLs they supply. What is server-side request forgery (SSRF), why is the cloud metadata endpoint such a big target, and how do you defend against it in .NET, including redirects and DNS rebinding?
SSRF in features that fetch user-supplied URLs: the metadata and internal-service targets, why naive URL validation fails, connect-time IP checks with SocketsHttpHandler, redirects, DNS rebinding and network-level egress controls.
Senior
Security
Web Security
Β· π 2 follow-ups Β· π 1 real-world
-
What are open redirect and clickjacking vulnerabilities? Show how an open redirect happens with a returnUrl in ASP.NET Core and how LocalRedirect and Url.IsLocalUrl fix it, then explain how clickjacking works and how X-Frame-Options and CSP frame-ancestors prevent it.
Open redirects via returnUrl and how LocalRedirect/Url.IsLocalUrl prevent them, plus clickjacking and the X-Frame-Options and CSP frame-ancestors defences in ASP.NET Core.
Mid-Level
Security
Web Security
Β· π 2 follow-ups Β· π 1 real-world
-
What is insecure deserialisation, and why is it dangerous in .NET? Explain why BinaryFormatter was removed, why Newtonsoft.Json's TypeNameHandling is risky, how to do polymorphic JSON safely with System.Text.Json, and what other deserialisation risks remain (XML external entities, oversized payloads).
Insecure deserialisation in .NET: type-controlled formatters and gadget chains, BinaryFormatter's removal in .NET 9, Newtonsoft TypeNameHandling, safe polymorphism with System.Text.Json, XXE and denial-of-service limits.
Mid-Level
Security
Web Security
Β· π 2 follow-ups Β· π 1 real-world
-
Explain SameSite cookies. What do Strict, Lax and None actually do, what counts as the 'same site', why does an OpenID Connect sign-in break if the correlation cookie is Lax, and how have browser changes (Lax by default, third-party cookie blocking) affected ASP.NET Core apps?
SameSite=Strict, Lax and None semantics, the site vs origin distinction, cross-site flows such as the OIDC form_post callback, ASP.NET Core cookie settings, and the browser changes that broke older apps.
Mid-Level
Theory
Web Security
Β· π 2 follow-ups Β· π 1 real-world
-
Code review: an ASP.NET Core invoices controller has a search action that concatenates the customer name and sort column into a SQL string, a Void action that loads any invoice by id with no ownership check and then redirects to a returnUrl from the query string, and a catch block that returns ex.ToString() to the client. What do you flag, in what order, and what does the fixed version look like?
A security-focused code review of an ASP.NET Core endpoint with SQL injection, broken object-level authorisation, an open redirect and verbose error disclosure, ranked by severity with a full rewrite.
Senior
CodeReview
Web Security
Β· π 3 follow-ups Β· π 1 real-world
-
How would you run a privacy impact assessment alongside a threat model for a feature that collects new personal information, and what does LINDDUN add to STRIDE?
Mid-Level
Theory
Senior Security Topics
-
What evidence would you need to show the OAIC that a leaked credential did not result in an eligible data breach, and what would you change if your logs couldn't provide it?
Senior
RealWorldScenario
Senior Security Topics
-
Why is running EF Core migrations with Database.Migrate() at application start-up a least-privilege problem, and how do you run them instead?
Mid-Level
Theory
Senior Security Topics
-
A critical NuGet advisory affects a transitive package and no fixed version of the parent package exists yet. What do you do?
Mid-Level
Coding
Senior Security Topics
-
What is threat modelling? Walk me through STRIDE and data flow diagrams, explain when in the delivery cycle you would do it, and how you would run a lightweight version inside a normal sprint for a new feature.
Threat modelling for .NET teams: the four questions, data flow diagrams and trust boundaries, STRIDE per element, ranking and tracking threats, and a 60-minute in-sprint version.
Mid-Level
Theory
Senior Security Topics
Β· π 3 follow-ups Β· π 1 real-world
-
How do you manage secrets in a .NET 10 application? What counts as a secret, how do Azure Key Vault and managed identity fit together, and how do developers work locally without any secrets in the repository?
Secrets management fundamentals: what is and isn't a secret, Key Vault with managed identity and DefaultAzureCredential, the configuration provider, user secrets locally, removing secrets entirely with identity-based access, and rotation basics.
Intermediate
Theory
Senior Security Topics
Β· π 3 follow-ups
-
A developer pushed a commit containing a production Azure SQL connection string with a password, and an Azure Storage account key, to the team's GitHub repository. Walk me through what you do, in what order: containment, cleaning history, deciding whether it is a notifiable data breach, and making sure it can't happen again.
Incident response for a leaked secret: rotate first, assess access through logs, purge history correctly, decide on NDB notification under the Privacy Act, and prevent recurrence with push protection, managed identity and rotation runbooks.
Senior
RealWorldScenario
Senior Security Topics
Β· π 3 follow-ups Β· π 1 real-world
-
How do you apply least privilege to a .NET service running in Azure with an Azure SQL database? Cover managed identities and RBAC scopes, database roles and permissions, just-in-time admin access with PIM, and what the ACSC Essential Eight expects for administrative privileges.
Least privilege end to end: one managed identity per workload, narrow RBAC roles at the smallest scope, contained database users with only the grants they need, separate migration identities, PIM for humans, and the Essential Eight 'restrict administrative privileges' strategy.
Mid-Level
Theory
Senior Security Topics
Β· π 3 follow-ups Β· π 1 real-world
-
Your .NET system stores customers' names, dates of birth, addresses, driver's licence numbers and Medicare numbers. How do you handle this personal information securely? Cover data classification, minimisation, encryption at rest and in transit, masking, data residency in Australia, and retention.
PII handling in a .NET and Azure system: classifying data, collecting less, TDE plus Always Encrypted or application-level encryption for identifiers, masking and redaction, access logging, keeping data in Australia East/Southeast, and retention and deletion under APP 11.
Mid-Level
Security
Senior Security Topics
Β· π 3 follow-ups Β· π 1 real-world
-
As a senior engineer in Australia, what do you need to know about privacy law? Explain the Privacy Act 1988 and the Australian Privacy Principles, the Notifiable Data Breaches scheme, the recent reforms, when GDPR also applies, and what actually changes in the way you design and build systems.
Privacy law for engineers in Australia: who the Privacy Act covers, the APPs that shape design (APP 1, 3, 5, 6, 8, 11, 12, 13), the NDB scheme, the 2024 amendments and the 2026 Tranche 2 draft, GDPR for EU users, and the engineering practices that follow.
Senior
Theory
Senior Security Topics
Β· π 3 follow-ups Β· π 1 real-world