secure-auth

secure-auth is a skill for Claude Code from Wishmakingfairy/vibecheck. It costs 47 tokens per session (496 once invoked), scanned A, original, MIT.

A set of guidance for building safer user authentication, such as login systems, passwords, sessions, tokens, and OAuth sign-in. OAuth lets users sign in through another service, while JWTs are signed tokens used to represent logged-in users.

In plain words
What is it for?
Use it when adding authentication, rate limiting, password hashing, JWTs, CSRF protection, or OAuth state checks to an application.
Why use it?
It helps avoid common security mistakes in login systems, including unlimited login attempts, unsafe token storage, weak password handling, and missing request protection.

Skill for Claude Code

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

Part of the vibecheck plugin — 4 skills, 1 agent, 1 hook shipped together

Good fit Use it when adding authentication, rate limiting, password hashing, JWTs, CSRF protection, or OAuth state checks to an application.

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

Made for: Claude Code.

Or install vibecheck, the plugin that ships this one along with the rest of its 4 skills, 1 agent, 1 hook.

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 secure-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/wishmakingfairy/vibecheck/secure-auth.svg)](https://agentmods.dev/skills/wishmakingfairy/vibecheck/secure-auth)
Your own site
<a href="https://agentmods.dev/skills/wishmakingfairy/vibecheck/secure-auth"><img src="https://agentmods.dev/badge/skills/wishmakingfairy/vibecheck/secure-auth.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 496 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.00047 $0.00496
Opus 5 $0.00023 $0.00248
Sonnet 5 $0.00009 $0.00099
Haiku 4.5 $0.00005 $0.00050

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

Security

Grade A, and why

secure-auth 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 7d 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/secure-auth/SKILL.md · 70 lines

What it actually says

Secure Auth: Authentication Hardening

Rate Limiting (AUTH-001)

import rateLimit from 'express-rate-limit';

const authLimiter = rateLimit({
  windowMs: 15 * 60 * 1000, // 15 minutes
  max: 5,                    // 5 attempts per window
  message: { error: 'Too many login attempts. Try again in 15 minutes.' },
  standardHeaders: true,
});

app.post('/api/auth/login', authLimiter, loginHandler);

JWT Best Practices (AUTH-007, AUTH-008)

// Sign with expiry and strong algorithm
const token = jwt.sign(payload, process.env.JWT_SECRET, {
  expiresIn: '15m',    // Short-lived access token
  algorithm: 'RS256',   // Asymmetric for production
});

// Store in httpOnly cookie, NOT localStorage
res.cookie('token', token, {
  httpOnly: true,    // No JS access
  secure: true,      // HTTPS only
  sameSite: 'strict', // CSRF protection
  maxAge: 15 * 60 * 1000,
});

Password Hashing (AUTH-017)

import bcrypt from 'bcrypt';
const hash = await bcrypt.hash(password, 12);
const isValid = await bcrypt.compare(password, hash);

CSRF Protection (AUTH-010)

Use SameSite cookies (preferred) or CSRF tokens for forms.

OAuth State Parameter (AUTH-015)

const state = crypto.randomUUID();
req.session.oauthState = state;
const authUrl = `https://provider.com/auth?state=${state}&redirect_uri=...`;

// On callback:
if (req.query.state !== req.session.oauthState) throw new Error('CSRF detected');
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. 7d ago First seen · 70 lines · 47 tokens per session scan A f662b41c6d9b

Subscribe to this mod's changes

secure-auth is a skill published in the GitHub repository Wishmakingfairy/vibecheck (4 stars, last pushed 5mo ago), licensed MIT. It adds 47 tokens to every session and 496 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

create-auth-skill

Scaffold and implement authentication in TypeScript/JavaScript apps using Better Auth. Detect frameworks, configure database adapters, set up route handlers, add OAuth providers, and create auth UI pages. Use when users want to add login, sign-up, or authentication to a new or existing project with Better Auth.

Agent-Threat-Rule/agent-threat-rules · 66 tokens

fhir-developer-skill

FHIR API development guide for building healthcare endpoints. Use when: (1) Creating FHIR REST endpoints (Patient, Observation, Encounter, Condition, MedicationRequest), (2) Validating FHIR resources and returning proper HTTP status codes and error responses, (3) Implementing SMART on FHIR authorization and OAuth…

Agent-Threat-Rule/agent-threat-rules · 132 tokens

api-secure-report

Full security inventory of every HTTP route in a backend project — each route marked clean or carrying findings, with the exploitation path and the mitigation, written in the user's language (pt-BR by default). Use when the user runs /api-secure-report, or asks for a security report, audit or inventory of the…

joaovicdev/claude-owasp-10 · 71 tokens

deserialization-exploitation

Insecure deserialization — RCE via malicious serialized objects in Java (ysoserial), PHP (PHPGGC), .NET (ysoserial.net), and Python (pickle). Covers gadget chain selection, payload generation, and injection into cookies, POST bodies, ViewState, and API endpoints.

MingyiSecLab/Mingyi-Atlas · 65 tokens

ssti-exploitation

Server-Side Template Injection (SSTI) — RCE through template engines. Covers Jinja2 (Python/Flask), Twig (PHP/Symfony), Freemarker (Java), ERB (Ruby), Razor (.NET). Includes engine fingerprinting, MRO chain construction, and filter bypass.

MingyiSecLab/Mingyi-Atlas · 68 tokens

web-app-pentest

../../../pentest/web-app-pentest/SKILL.md.

jaskaranhundal/usap-skills · 0 tokens