Security defaults that belong in every ASP.NET Core application from day one.
87
83%
Does it follow best practices?
Impact
94%
1.91xAverage score across 5 eval scenarios
Passed
No known issues
{
"instruction": "Enforce HTTPS with UseHttpsRedirection and UseHsts",
"relevant_when": "Agent creates or modifies an ASP.NET Core application or sets up the middleware pipeline",
"context": "Every ASP.NET Core app must enforce HTTPS. UseHttpsRedirection() redirects HTTP requests to HTTPS. UseHsts() sends the Strict-Transport-Security header telling browsers to only use HTTPS. HSTS should only be enabled in non-development environments to avoid localhost issues.",
"sources": [
{
"type": "file",
"filename": "skills/aspnet-security-basics/SKILL.md",
"tile": "tessl-labs/aspnet-security-basics@0.2.0"
}
],
"checklist": [
{
"name": "https-redirection",
"rule": "Agent calls app.UseHttpsRedirection() in the middleware pipeline",
"relevant_when": "Agent creates or modifies an ASP.NET Core application"
},
{
"name": "hsts-configured",
"rule": "Agent calls app.UseHsts() for non-development environments with appropriate MaxAge",
"relevant_when": "Agent creates or modifies an ASP.NET Core application"
}
]
}evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
skills
aspnet-security-basics
verifiers