A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.
{
"context": "Tests whether agent implements specific session management practices (SameSite=Strict, idle/absolute timeouts, session regeneration) and nonce-based CSP.",
"type": "weighted_checklist",
"checklist": [
{
"name": "SameSite Strict",
"description": "Session cookie is set with SameSite=Strict (not Lax, not None, not omitted)",
"max_score": 20
},
{
"name": "Idle timeout configured",
"description": "An idle/inactivity session timeout is configured (not just absolute timeout) — value should be short (under 30 minutes)",
"max_score": 20
},
{
"name": "Session regeneration on login",
"description": "Session ID is regenerated after successful authentication (new session created, old one invalidated)",
"max_score": 20
},
{
"name": "Nonce-based CSP",
"description": "Content-Security-Policy header uses nonces (nonce-xxx) rather than 'unsafe-inline' or no CSP at all",
"max_score": 25
},
{
"name": "HttpOnly and Secure flags",
"description": "Session cookie includes both HttpOnly and Secure flags",
"max_score": 15
}
]
}tessl i cisco/software-security@1.2.2evals
scenario-11
scenario-12
scenario-13
scenario-14
scenario-15
rules