Skip to main content
skill CX Codex

auth-sec — Claude Code skill: what it does, how to install

Entry P1 category router for authentication and authorization testing. Helps choose the right audit path before digging into specific attacks.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add yaklang/hack-skills --skill auth-sec -a claude-code
Open on GitHub

What auth-sec does

The skill serves as a P1 routing entry point for login flows, sessions, and authorization boundaries. It decides whether to prioritize authentication mechanics, object-level checks, or identity protocols. That keeps the audit focused.

The recommended sequence follows four clear stages. First, the agent confirms the authentication model and session boundaries. Next, it validates object-level and function-level access permissions. It then examines tokens, CORS, and CSRF before moving to federation mechanisms like OAuth, OIDC, or SAML.

This skill only routes between specialized topics from the repository and does not run exploits directly. Skipping this triage step causes agents to jump straight into protocol attacks while missing fundamental permission flaws.

What it helps with

  • prioritize testing between authentication logic and object authorization
  • route security audits to specific subtopics like JWT, OAuth, or SAML
  • structure assessments covering login bypass, IDOR, CORS, and CSRF

Example prompts for the agent

  • Check our login and session flows and decide what to test first
  • We have OAuth and JWT tokens in use, run auth-sec to route the security check
  • Plan an assessment for broken object authorization and session boundaries

How to install auth-sec

1Skills CLI (Vercel)

npx skills add yaklang/hack-skills --skill auth-sec -a claude-code

2Manually: put the files in place

~/.claude/skills/auth-sec/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/auth-sec/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about auth-sec

How to install auth-sec in Claude Code?

Run npx skills add yaklang/hack-skills --skill auth-sec -a claude-code in your terminal. The file will be placed at ~/.claude/skills/auth-sec/SKILL.md.

What does the auth-sec skill do?

It acts as a P1 entry router for authentication and authorization assessments. It helps pick the right testing path before invoking deeper topic-specific skills.

What is the recommended testing flow in auth-sec?

Confirm the authentication model and session boundaries first. Then verify object and function permissions, check tokens and cross-origin settings, and finish with federation protocols.

Source text

SKILL.md · MIT
---
name: auth-sec
description: >-
  Entry P1 category router for authentication and authorization. Use when
  testing login flows, sessions, object authorization, JWT, OAuth, CORS, CSRF,
  and enterprise SSO weaknesses before any deeper auth topic skill.
---

# Authentication and Authorization Router

This is the routing entry point for authentication, sessions, and authorization boundaries.

Use it to decide whether the issue is mainly login mechanics, object-level authorization, browser trust boundaries, or identity protocols such as OAuth/JWT/SAML before going deeper.

## When to Use

- The target includes login, registration, password reset, 2FA, sessions, JWT, OAuth, or SSO
- You suspect object authorization flaws, cross-tenant access, cross-origin reads, CSRF, or protocol misconfiguration
- You need to decide whether to test authentication or authorization first

## Skill Map

- [Authentication Bypass](../authbypass-authentication-flaws/SKILL.md): login bypass, password reset, 2FA, enumeration, brute-force protections
- [IDOR Broken Object Authorization](../idor-broken-object-authorization/SKILL.md): IDOR, BOLA, BFLA, missing object permissions
- [JWT OAuth Token Attacks](../jwt-oauth-token-attacks/SKILL.md): algorithm confusion, key trust issues, claim abuse, token forgery
- [OAuth OIDC Misconfiguration](../oauth-oidc-misconfiguration/SKILL.md): redirect URI, state, nonce, PKCE, account binding
- [CSRF Cross Site Request Forgery](../csrf-cross-site-request-forgery/SKILL.md): CSRF tokens, SameSite, JSON CSRF, login CSRF
- [CORS Cross Origin Misconfiguration](../cors-cross-origin-misconfiguration/SKILL.md): reflected Origin, credentialed cross-origin reads, allowlist bypass
- [SAML SSO Assertion Attacks](../saml-sso-assertion-attacks/SKILL.md): assertion wrapping, signature validation, audience, ACS boundaries

## Recommended Flow

1. First confirm the authentication model and session boundaries
2. Then confirm object-level and function-level authorization
3. Then move to token, cross-origin, and protocol details
4. If enterprise federation exists, continue with OAuth, OIDC, or SAML topics

## Related Categories

- [api-sec](../api-sec/SKILL.md)
- Default credentials, username variants, wordlist sizing, and port focus are consolidated in [authbypass-authentication-flaws](../authbypass-authentication-flaws/SKILL.md)

© yaklang · MIT · yaklang/hack-skills

Similar skills

Everything for Security →

From the same set93

ios-pentesting-tricks A playbook for iOS app testing: keychain extraction, URL scheme hijacking, Universal Links abuse and runtime hooks. CX Codex +1 3,700installs cors-cross-origin-misconfiguration Guides testing of CORS misconfigurations, origin reflection, and credentialed API access. Useful when auditing cross-origin boundaries and cache policies. CX Codex +1 3,700installs injection-checking A router skill for injection testing: pick the right workflow based on where attacker-controlled input ends up. CX Codex +1 3,700installs kubernetes-pentesting A Kubernetes pentesting playbook: API server access, RBAC enumeration, service account token abuse, etcd, the Kubelet API and pod escape. CX Codex +1 3,700installs api-authorization-and-bola A playbook for testing API authorization: reaching other users' objects, calling functions your role should not have, and writing hidden fields. CX Codex +1 3,700installs vm-and-bytecode-reverse A playbook for reversing hand-rolled virtual machines and bytecode: find the dispatcher, map opcodes, write a disassembler. CX Codex +1 3,700installs websocket-security Helps analyze WebSocket security, detect CSWSH vulnerabilities, and review handshake headers. Useful when auditing real-time messaging, notifications, or WS-backed APIs. CX Codex +1 3,800installs dangling-markup-injection A playbook for dangling markup injection: when HTML injection works but JavaScript is blocked, it shows how to pull CSRF tokens and page data through unclosed tags. CX Codex +1 3,600installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor