CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/aspnet-security-basics

Security defaults that belong in every ASP.NET Core application from day one.

87

1.91x
Quality

83%

Does it follow best practices?

Impact

94%

1.91x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

https-enforced.jsonverifiers/

{
  "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"
    }
  ]
}

tile.json