broken-auth-detector

broken-auth-detector is a skill for Claude Code from latestaiagents/agent-skills. It costs 71 tokens per session (2,303 once invoked), scanned A, a copy of broken-auth-detector, MIT.

A security guide for finding weaknesses in login, password, session, token, and account-recovery systems. It covers authentication, the process of verifying who a user is, including multi-factor authentication and OAuth sign-in.

In plain words
What is it for?
Use it when reviewing login and signup flows, password resets, session handling, JWTs, OAuth, or MFA.
Why use it?
It helps remove common paths to account takeover, such as weak passwords, stolen sessions, missing rate limits, or unsafe password storage.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the owasp-guardian plugin — 6 skills shipped together , and of security, latestaiagents

Good fit Use it when reviewing login and signup flows, password resets, session handling, JWTs, OAuth, or MFA.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/latestaiagents/agent-skills/broken-auth-detector
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 latestaiagents/agent-skills --skill broken-auth-detector
Clone the repo
git clone --depth 1 https://github.com/latestaiagents/agent-skills

Made for: Claude Code.

Or install owasp-guardian, the plugin that ships this one along with the rest of its 6 skills.

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 broken-auth-detector

README.md
[![agentmods](https://agentmods.dev/badge/skills/latestaiagents/agent-skills/broken-auth-detector/github.svg)](https://agentmods.dev/skills/latestaiagents/agent-skills/broken-auth-detector)
Your own site
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/broken-auth-detector"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/broken-auth-detector/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 broken-auth-detector

Your own site · 80×15
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/broken-auth-detector"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/broken-auth-detector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,303 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 100% copy Near-identical to another mod 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.00071 $0.02303
Opus 5 $0.00036 $0.01151
Sonnet 5 $0.00014 $0.00461
Haiku 4.5 $0.00007 $0.00230

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

Security

Grade A, and why

broken-auth-detector 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 6d 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.

Origin

This is a copy

100% identical to broken-auth-detector — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/security/owasp-guardian/broken-auth-detector/SKILL.md · 372 lines

How it starts

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

Broken Authentication Detector (OWASP A02)

Identify and fix authentication vulnerabilities including weak passwords, session hijacking, and credential stuffing.

When to Use

  • Reviewing login/signup implementations
  • Auditing session management
  • Implementing password reset flows
  • Adding OAuth/SSO integration
  • Setting up JWT authentication
  • Implementing MFA/2FA

Common Vulnerabilities

Vulnerability Risk Impact
Weak password policy HIGH Easy brute force
No rate limiting HIGH Credential stuffing
Session fixation HIGH Account takeover
Insecure password storage CRITICAL Mass credential theft
Missing MFA MEDIUM Single point of failure
Predictable tokens CRITICAL Session hijacking

Detection Patterns

Weak Password Handling

// VULNERABLE - Plain text password storage
user.password = req.body.password;
await user.save();

// VULNERABLE - Weak hashing
const hash = md5(password);
const hash = sha1(password);

// VULNERABLE - No salt
const hash = bcrypt.hashSync(password); // Missing salt rounds

// VULNERABLE - Weak password policy
if (password.length >= 4) { // Too short!
  // accept password
}

Session Vulnerabilities

// VULNERABLE - Predictable session ID
const sessionId = `session_${Date.now()}`;
const sessionId = `user_${userId}`;

// VULNERABLE - Session in URL
res.redirect(`/dashboard?sessionId=${sessionId}`);

// VULNERABLE - No session expiry
req.session.cookie.maxAge = null; // Never expires

// VULNERABLE - Session not invalidated on logout
app.post('/logout', (req, res) => {
  res.redirect('/login'); // Session still valid!
});

JWT Vulnerabilities

// VULNERABLE - No algorithm verification
const decoded = jwt.decode(token); // Doesn't verify!

// VULNERABLE - Weak secret
const token = jwt.sign(payload, 'secret123');

// VULNERABLE - Algorithm confusion
const decoded = jwt.verify(token, secret); // Accepts 'none' algorithm

// VULNERABLE - No expiration
const token = jwt.sign({ userId }, secret); // No exp claim

Read the full file on GitHub · 372 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. 6d ago First seen · 372 lines · 71 tokens per session scan A 80a13fbadccb

Subscribe to this mod's changes

broken-auth-detector is a skill published in the GitHub repository latestaiagents/agent-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 71 tokens to every session and 2,303 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to broken-auth-detector, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

fw-ai-actions-app

Expert-level skill for AI Actions and integrations on Freshworks Platform 3.0. Use when (1) Creating actions.json and SMI functions (flat request, nested response), (2) Request templates and third-party API integration, (3) Pre-build validation (pricing, paywalls, account prerequisites), (4) Failure-case validation…

freshworks-developers/fw-dev-tools · 123 tokens

agent-raft-manager

Agent skill for raft-manager - invoke with $agent-raft-manager.

ruvnet/ruflo · 18 tokens

moai-ref-api-patterns

REST/GraphQL API design patterns, error handling conventions, and input validation reference for backend development. Agent-extending skill that amplifies backend domain work (spawned via Agent(general-purpose) with backend instructions) with production-grade API patterns. Use when designing APIs, implementing…

modu-ai/moai-adk · 85 tokens

multi-app-orchestration

Orchestrate workflows across multiple applications and APIs — inter-app coordination, data handoff, and multi-system task completion.

a5c-ai/babysitter · 30 tokens

api-documenter

Auto-generate API documentation from code and comments. Use when API endpoints change, or user mentions API docs. Creates OpenAPI/Swagger specs from code. Triggers on API file changes, documentation requests, endpoint additions.

alirezarezvani/claude-code-tresor · 48 tokens

sinch-porting-api

Port phone numbers from other carriers into Sinch with the Porting API. Automates port-in order creation, portability checks, order tracking, on-demand activation, and webhook notifications. Use when porting numbers, checking portability, creating port-in orders, tracking port status, activating ported numbers…

sinch/skills · 76 tokens