authentication-failures

authentication-failures is a skill for Claude Code, Codex from scholarly360/owasp-top10-web-skills. It costs 166 tokens per session (2,275 once invoked), scanned A, original, MIT.

A security-audit guide for authentication failures in Python web applications such as FastAPI and Flask. Authentication is the process of verifying who a user is.

In plain words
What is it for?
Use it to audit or test JWTs, sessions, password policies, login-rate limits, brute-force defenses, credential recovery, and MFA enforcement.
Why use it?
It helps find weak login, password, multi-factor authentication, session, token, and account-recovery behavior that attackers could exploit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit or test JWTs, sessions, password policies, login-rate limits, brute-force defenses, credential recovery, and MFA enforcement.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scholarly360/owasp-top10-web-skills/authentication-failures
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add scholarly360/owasp-top10-web-skills --skill authentication-failures
Clone the repo
git clone --depth 1 https://github.com/scholarly360/owasp-top10-web-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for authentication-failures

README.md
[![agentmods](https://agentmods.dev/badge/skills/scholarly360/owasp-top10-web-skills/authentication-failures/github.svg)](https://agentmods.dev/skills/scholarly360/owasp-top10-web-skills/authentication-failures)
Your own site
<a href="https://agentmods.dev/skills/scholarly360/owasp-top10-web-skills/authentication-failures"><img src="https://agentmods.dev/badge/skills/scholarly360/owasp-top10-web-skills/authentication-failures/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for authentication-failures

Your own site · 80×15
<a href="https://agentmods.dev/skills/scholarly360/owasp-top10-web-skills/authentication-failures"><img src="https://agentmods.dev/badge/skills/scholarly360/owasp-top10-web-skills/authentication-failures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,275 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00166 $0.02275
Opus 5 $0.00083 $0.01137
Sonnet 5 $0.00033 $0.00455
Haiku 4.5 $0.00017 $0.00228

Measured 11d ago against content hash f661af3164ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

authentication-failures scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/authentication-failures/SKILL.md · 244 lines

How it starts

The opening of the file, as written. The whole thing — 244 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Authentication Failures — OWASP A07:2025

Rank: #7 (stable) | CWEs covered: 36 | Occurrences: 1.1 million+ New 2025 threat: Hybrid password attacks / password spray — attackers increment leaked credentials (e.g., Password1!Password2!).


What This Skill Covers

Authentication Failures occur when an application's identity verification mechanisms are absent, weak, or bypassable. Key attack patterns:

  • Credential stuffing / brute force — automated login attempts using leaked creds
  • Weak/default passwords — accounts created with guessable or known-breached passwords
  • Insecure credential recovery — password reset flows that leak information or are bypassable
  • Missing or bypassed MFA — no second factor, or MFA that can be skipped
  • Exposed session identifiers — tokens in URLs, logs, or referrer headers
  • Session fixation — attacker sets a known session ID before authentication
  • Improper session invalidation — sessions that survive logout or token revocation

Testing Checklist for FastAPI & Flask

Work through each section systematically. Mark ✓ pass, ✗ fail, N/A where not applicable.

1. JWT Implementation

# ✓ GOOD — short-lived tokens, claim validation
token = jwt.encode(
    {"sub": user_id, "exp": datetime.utcnow() + timedelta(minutes=15),
     "iss": "myapp", "aud": "myapp-client"},
    settings.SECRET_KEY, algorithm="HS256"
)
jwt.decode(token, settings.SECRET_KEY, algorithms=["HS256"],
           audience="myapp-client", issuer="myapp")

# ✗ BAD — no expiry, no claim validation, accepts any algorithm
jwt.decode(token, settings.SECRET_KEY, algorithms=["HS256", "RS256", "none"])

Checks:

  • Access tokens expire in 15–30 minutes
  • Refresh tokens rotate on use and are invalidated on logout
  • aud (audience) and iss (issuer) claims are set AND verified on decode
  • Algorithm is pinned to an explicit list — never include "none"
  • JWT secret loaded from os.environ, minimum 32 characters
  • Algorithm confusion attack prevented: RS256 keys never accepted as HS256 secrets

Read the full file on GitHub · 244 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 244 lines · 166 tokens per session scan A f661af3164ac

Subscribe to this mod's changes

authentication-failures is a skill published in the GitHub repository scholarly360/owasp-top10-web-skills (22 stars, last pushed 5mo ago), licensed MIT. It adds 166 tokens to every session and 2,275 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

Web Application Security Testing

OWASP Top 10 testing, injection vulnerability detection, API security assessment, authentication testing, and web vulnerability reporting for authorized assessments.

Masriyan/Claude-Code-CyberSecurity-Skill · 30 tokens

saferskills

Use SaferSkills to find, evaluate, and safely install AI agent capabilities (skills, MCP servers, hooks, plugins, rules) and to assess a whole agent. Run this before you install, add, recommend, or trust any capability — or when asked whether one is safe or what its score is: scan and score it first with npx…

OpenLatch/saferskills · 91 tokens

content-cadence

Pipeline for turning one R&D artefact (PR, PoC, analysis) into one public post — briefing or deep dive — plus a social derivative where the overlay scopes one in. Triggers when an R&D output is ready to become content, or when drafting any blog post for the site. Enforces the anonymisation gate and repo editorial…

lemur47/logic · 76 tokens

evm

Help users answer one question: "Are we on track?" using Earned Value Management metrics. This skill replaces gut-feel status reporting and traffic-light dashboards with four computed numbers (SV, SPI, CV, CPI) that tell you exactly where a project stands — in schedule and in budget — at any point in time.

lemur47/logic · 0 tokens

tco

Help users answer one question: "What will this actually cost?" using Total Cost of Ownership analysis. This skill replaces sticker-price comparisons with lifetime cost calculations that include maintenance, operations, time value of money, and residual value.

lemur47/logic · 0 tokens

montecarlo

Help users answer one question: "What's the probability we finish by this date?" using Monte Carlo schedule simulation. This skill replaces single-point PERT estimates with full probability distributions over project duration.

lemur47/logic · 0 tokens