Designing a security baseline for a regulated Australian .NET service: the Essential Eight, ISM and IRAP (or APRA CPS 234 and CPG 234), landing zones and network isolation, Entra identity and PIM, data classification and residency, centralised logging with Sentinel, a secure pipeline, and assurance through IRAP assessments and pen testing.
I start from obligations and data classification, not technology. For an agency that means the PSPF, ISM controls tailored to the classification (often OFFICIAL: Sensitive or PROTECTED), an Essential Eight target maturity (commonly Maturity Level Two), the Hosting Certification Framework, and an IRAP assessment before go-live. For a bank, APRA CPS 234 (72-hour notification of material incidents, control testing, third-party assurance) and CPS 230. Then the baseline: an Azure landing zone with policy guardrails in Australian regions using IRAP-assessed services; private endpoints, a WAF at the edge and controlled egress; Entra ID with phishing-resistant MFA, Conditional Access, PIM and managed identities; encryption with customer-managed keys where required; centralised logging into Microsoft Sentinel; a pipeline with scanning, signed artefacts and approvals; and pen tests before go-live, annually and after major change. The trade-off is delivery speed, so I make the baseline a reusable platform, not a per-team checklist.
"I'd start by establishing what we're obliged to do and what we're protecting, because that drives everything else. For a Commonwealth agency: the Protective Security Policy Framework, the ISM with controls selected for the data's classification - say OFFICIAL: Sensitive, or PROTECTED for more sensitive systems - the Essential Eight at the maturity the agency has committed to, typically Maturity Level Two, and hosting with a certified provider under the Hosting Certification Framework. The system will need an IRAP assessment and an authorisation to operate. For a bank, the anchor is APRA's CPS 234: information security capability proportional to threats, controls tested by people with the right skills, and notifying APRA within 72 hours of a material incident. CPS 230 adds operational resilience and service provider management.
For example, at [organisation] I [designed the baseline for a citizen-facing benefits service handling OFFICIAL: Sensitive data]. Rather than writing a document, we built it as a platform: an Azure landing zone in Australia East and Southeast with Azure Policy denying public endpoints, enforcing private endpoints, diagnostic settings and allowed regions; hub-and-spoke networking with Front Door WAF in front and Azure Firewall controlling egress; Entra ID with phishing-resistant MFA, Conditional Access and PIM for every privileged role; managed identities so the .NET services had no secrets; customer-managed keys in Key Vault for the database; and everything logging into Sentinel. Teams consumed it through Bicep modules and a pipeline template. [The IRAP assessment found N findings, none high, and new services onboarded in days instead of weeks.]
The mistake I see is treating the Essential Eight as the whole baseline. It's a prioritised set of mitigations aimed mainly at Windows endpoints and servers - application control, patching, Office macros, admin privileges, MFA, backups. A cloud-native .NET service also needs network isolation, data protection, secure delivery and detection, which is where the ISM and the cloud security guidance come in. The architect's job is to turn those frameworks into defaults that are easier to follow than to avoid, and to plan the assurance - threat models, IRAP, pen tests - into the delivery timeline rather than discovering them at the end."
| Framework | Applies to | What it drives in the design |
|---|---|---|
| PSPF | Commonwealth entities | Classification, accountable authority, security governance |
| ISM | Government (and widely adopted elsewhere) | Detailed controls: identity, network, crypto (ASD-approved algorithms), logging, system hardening |
| Essential Eight | Recommended baseline; mandatory for many Commonwealth entities (PSPF) | Application control, patching, macros, user application hardening, admin privileges, MFA, backups |
| IRAP | Assessment of systems and cloud services against the ISM | Evidence, documentation, assessor engagement before authorisation |
| Hosting Certification Framework | Government data hosting | Certified providers and data centres |
| APRA CPS 234 / CPG 234 | APRA-regulated entities | Capability, control testing, 72-hour incident notification, third-party assurance |
| APRA CPS 230 | APRA-regulated entities (from July 2025) | Operational risk, business continuity, material service providers |
| Privacy Act / APPs | Most organisations | Data minimisation, APP 11 security, NDB breach response |
| Domain | Decision | Azure / .NET implementation |
|---|---|---|
| Platform | Landing zone with guardrails | Management groups, Azure Policy (allowed regions, deny public IPs, require private endpoints, require diagnostics) |
| Network | Private by default | Hub-spoke, private endpoints, public access disabled, Front Door Premium WAF, Azure Firewall egress allow-list, DDoS Protection |
| Identity | Entra-only, phishing-resistant | Conditional Access, FIDO2/passkeys, PIM, managed identities, workload identity federation, Entra-only SQL auth |
| Application | Secure by default | ASP.NET Core auth on every endpoint (fallback policy), security headers, rate limiting, input validation, ProblemDetails without internals |
| Data | Classified, encrypted, resident | Purview labels, TDE with CMK, Always Encrypted for identifiers, Australian regions for data, backups and logs, retention jobs |
| Detection | Centralised, actionable | Log Analytics, Sentinel analytics rules, Defender for Cloud plans (Servers, Containers, SQL, Storage, Key Vault), immutable audit storage |
| Delivery | Trusted pipeline | Protected branches, required reviews, CodeQL, NuGetAudit gate, secret scanning, IaC scanning, signed images + provenance, environment approvals |
| Resilience | Recoverable | Backups per Essential Eight (tested restores, protected from modification), multi-region DR plan, runbooks |
| Assurance | Continuous | Threat models per feature, IRAP at go-live and significant change, annual pen test and after major change, Essential Eight self-assessment |
The platform approach meant [five] product teams shared one IRAP-assessed baseline. Azure Policy blocked [~40] non-compliant deployments in the first quarter (mostly public endpoints and missing diagnostics) before they reached production, and the time to stand up a compliant new service dropped from [~6 weeks] to [~4 days].
Checks whether the candidate can turn Australian regulatory frameworks into a coherent, enforceable security architecture and assurance plan for a regulated service.
Green flags
Red flags
Legislation / policy PSPF, Privacy Act, APRA prudential standards, SOCI Act
|
v
Data classification OFFICIAL / OFFICIAL: Sensitive / PROTECTED; bank data tiers
|
v
Control frameworks ISM (selected by classification), Essential Eight ML target,
CPS 234 / CPG 234, cloud security guidance
|
v
Security architecture landing zone, network, identity, data, detection, pipeline
|
v
Evidence + assurance system security plan, threat model, IRAP report, pen tests,
authorisation to operate / board attestation
The architect owns the middle: turning frameworks into concrete, testable design decisions and the evidence an assessor needs.
| Strategy | How it shows up for a .NET service on Azure |
|---|---|
| Application control | Container images only from your registry, signed and verified at admission; locked-down build agents; App Service/Container Apps run only your artefacts |
| Patch applications | NuGetAudit gates, Dependabot, rebuilt base images, managed PaaS patching |
| Configure Office macro settings | Mostly endpoint scope (staff devices), not the service |
| User application hardening | Endpoint scope; for the service, browser-side controls like CSP help users |
| Restrict administrative privileges | PIM, separate admin accounts, no standing access, privileged access workstations |
| Patch operating systems | PaaS and managed node images; AKS node image auto-upgrade |
| Multi-factor authentication | Phishing-resistant MFA for admins and, at higher levels, for users of important data repositories and online services |
| Regular backups | Automated backups, restore tests, backups protected from deletion and modification (immutable storage, soft delete, separate admin) |
Maturity levels describe how thoroughly each is implemented against increasingly capable adversaries. Commonwealth entities report maturity annually; check the current ACSC publication for exact requirements, as they're updated periodically.
Internet
|
[Azure Front Door Premium + WAF (OWASP rules, bot protection, geo filtering)]
| Private Link origin
v
Spoke VNet (app) ---- peered ---- Hub VNet
Container Apps (internal env) Azure Firewall (egress allow-list, TLS inspection where allowed)
private endpoints: Bastion for admin access
Azure SQL, Key Vault, DNS private resolver
Storage, Service Bus VPN/ExpressRoute to agency network
NSGs: deny by default
Principles: no public endpoints on data services, egress only to approved destinations (stops data exfiltration and SSRF pivots), admin access through Bastion or PIM-gated paths, and DNS designed for private endpoints from the start.
The ISM expects event logging for security-relevant events, centralised collection, protection from modification, and analysis. In Azure:
| Activity | When |
|---|---|
| Threat model | At design and for any change crossing a trust boundary |
| Security architecture review | Before build, and for significant change |
| IRAP assessment | Before go-live and after significant change; reassessment periodically per the authorising officer |
| Penetration test | Before go-live, at least annually, after major change |
| Essential Eight assessment | At least annually (Commonwealth reporting), continuous self-assessment |
| Vulnerability scanning | Continuous (dependencies, images, cloud posture) |
| DR and backup restore tests | At least annually; restore tests more often |
A baseline that lives in a PDF decays. A baseline that lives in Bicep modules, Azure Policy initiatives and a pipeline template is enforced on every deployment, produces evidence automatically (policy compliance reports, Defender secure score), and lets product teams move fast inside guardrails.
Azure Policy as code: guardrails that make the baseline the default (Bicep, assigned at the landing zone management group):
targetScope = 'managementGroup'
// Allowed locations: Australian regions only (data, backups and logs stay onshore).
resource allowedLocations 'Microsoft.Authorization/policyAssignments@2024-04-01' = {
name: 'allowed-locations-au'
properties: {
policyDefinitionId: '/providers/Microsoft.Authorization/policyDefinitions/e56962a6-4747-49cd-b67b-bf8b01975c4c'
parameters: {
listOfAllowedLocations: { value: [ 'australiaeast', 'australiasoutheast', 'australiacentral' ] }
}
}
}
// Deny Azure SQL servers with public network access.
resource sqlNoPublic 'Microsoft.Authorization/policyDefinitions@2023-04-01' = {
name: 'deny-sql-public-network'
properties: {
policyType: 'Custom'
mode: 'Indexed'
policyRule: {
if: {
allOf: [
{ field: 'type', equals: 'Microsoft.Sql/servers' }
{ field: 'Microsoft.Sql/servers/publicNetworkAccess', notEquals: 'Disabled' }
]
}
then: { effect: 'deny' }
}
}
}
The application's share of the baseline: secure defaults every service gets from a shared extension method:
namespace Agency.Platform;
public static class SecurityBaseline
{
public static WebApplicationBuilder AddSecurityBaseline(this WebApplicationBuilder builder)
{
builder.Services.AddAuthentication().AddMicrosoftIdentityWebApi(builder.Configuration.GetSection("Entra"));
// Deny by default: every endpoint needs an authenticated user unless explicitly anonymous.
builder.Services.AddAuthorizationBuilder()
.SetFallbackPolicy(new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build());
builder.Services.AddRateLimiter(o =>
{
o.RejectionStatusCode = StatusCodes.Status429TooManyRequests;
o.GlobalLimiter = PartitionedRateLimiter.Create<HttpContext, string>(ctx =>
RateLimitPartition.GetTokenBucketLimiter(
ctx.User.FindFirst("oid")?.Value ?? ctx.Connection.RemoteIpAddress?.ToString() ?? "anon",
_ => new TokenBucketRateLimiterOptions
{
TokenLimit = 100, TokensPerPeriod = 50,
ReplenishmentPeriod = TimeSpan.FromSeconds(10), QueueLimit = 0
}));
});
builder.Services.AddProblemDetails(); // no stack traces or internals to callers
builder.Services.AddHsts(o => { o.MaxAge = TimeSpan.FromDays(365); o.IncludeSubDomains = true; });
builder.Services.AddOpenTelemetry().UseAzureMonitor(); // to the central, Australian-region workspace
return builder;
}
public static WebApplication UseSecurityBaseline(this WebApplication app)
{
app.UseExceptionHandler();
app.UseHsts();
app.Use(async (ctx, next) =>
{
var h = ctx.Response.Headers;
h.XContentTypeOptions = "nosniff";
h.XFrameOptions = "DENY";
h["Referrer-Policy"] = "no-referrer";
h.ContentSecurityPolicy = "default-src 'none'; frame-ancestors 'none'"; // API: nothing renders
await next();
});
app.UseAuthentication();
app.UseRateLimiter();
app.UseAuthorization();
return app;
}
}
Program.cs in each service:
var builder = WebApplication.CreateBuilder(args);
builder.AddSecurityBaseline();
var app = builder.Build();
app.UseSecurityBaseline();
app.MapHealthChecks("/health").AllowAnonymous(); // explicit, reviewed exception
app.Run();
At staff level the deliverable isn't a list of controls; it's a security platform and an assurance plan that let many teams ship safely. The hard parts are prioritisation and sequencing: which controls are non-negotiable for go-live (identity, private networking, logging, backups), which can mature over releases (higher Essential Eight levels, SLSA build levels), and how to produce evidence continuously so assessments confirm rather than discover. A staff architect also manages risk acceptance honestly: some ISM controls won't fit, and the right outcome is a documented, owned, time-boxed exception, not a quiet gap.
Measure: policy compliance percentage and secure score, number of high findings per assessment, mean time to detect and respond in exercises, time to onboard a new compliant service, and Essential Eight maturity per strategy.
| Approach | When it fits | Cost | When not to |
|---|---|---|---|
| Shared landing zone + platform modules | Several teams or services | Platform team investment | A single small app with a short life |
| Bespoke per-system controls | Unusual, isolated systems | High per-system effort, inconsistent evidence | As the default in an organisation |
| Customer-managed keys / Managed HSM | PROTECTED data, contractual or APRA expectations | Key operations, availability risk if keys are mismanaged | OFFICIAL data with no requirement (service-managed keys suffice) |
| Sentinel with 24x7 SOC | Government and banks | Licensing and staffing | Without people to act on alerts, it's just cost |
Least privilege means every identity gets only the permissions it needs, at the smallest scope, for the shortest time. For a .NET service in Azure I give each workload its own managed identity and assign data-plane roles at resource scope: Storage Blob Data Reader on one container, Key Vault Secrets User on one vault, never Contributor on the subscription. In Azure SQL the app is a contained user with read/write or object-level grants, not db_owner; migrations run under a separate identity in the pipeline. Humans have no standing admin rights: they elevate through Entra PIM, time-bound and audited. That maps to the Essential Eight's restrict administrative privileges strategy. The trade-off is operational friction: narrow scopes mean more role assignments and more "access denied" during development, so you codify them in Bicep or Terraform rather than clicking in the portal.
Layered from outside in:
Plus observability at every hop (flow logs, edge logs, traces with traceparent), and automated certificates and network rules as code.
Threat modelling is a structured way to find design-level security flaws before you write the code. I answer four questions: what are we building, what can go wrong, what will we do about it, and did we do a good job? I draw a data flow diagram (processes, data stores, external entities and flows) and mark the trust boundaries, because that is where most threats live. Then I walk each element with STRIDE: spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege. Each threat becomes a decision (mitigate, accept, transfer or eliminate) and mitigations become backlog items with acceptance criteria. I do it at design time and whenever a change adds or crosses a trust boundary. The trade-off is depth against cadence: a 60-minute session every feature beats a two-day workshop nobody repeats.
How to tell it (STAR)
**S:** [Five] teams were building a citizen-facing service on Azure that needed IRAP and an authorisation to operate within [nine months], and each team was designing its own security. **T:** As [lead architect], I had to define one baseline that met the ISM and the agency's Essential Eight target without stalling delivery. **A:** I mapped the obligations with the security team and the assessor, then built the baseline as a platform: a landing zone with policy guardrails, shared Bicep modules, a hardened pipeline template, Sentinel, and a shared ASP.NET Core security package. We engaged the assessor at milestones and pen tested early. **R:** Secure score rose from [~45% to over 85%], the IRAP assessment had [no high findings], we went live [on schedule], and new services now onboard in [days rather than weeks].
Last updated 23 Nov 2026.