# authentication

This skill checks login flows, tokens, 2FA, CAPTCHA, and bot detection. Use it to examine auth bypasses and weaknesses in authentication controls.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 212 installs · ★ 632 repo stars
- Author: transilienceai
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/transilienceai/communitytools/tree/HEAD/skills/authentication/SKILL.md
- Updated: 2026-07-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/transilienceai-authentication

## What it does

The skill examines login forms, token handling, 2FA, CAPTCHA, and bot detection. Its checks cover auth bypass, JWT and OAuth attacks, password controls, ADFS/SAML, code reuse, and parameter tampering. The workflow records screenshots, network logs, tokens, and PoC scripts as evidence.

It includes `tools/password_generator.py` for creating passwords and `tools/credential_manager.py` for storing credentials. Reference files cover JWT, OAuth, ADFS, password attacks, 2FA, CAPTCHA, and bot detection. Playwright MCP is needed for the browser-based workflow, which uses human-like interaction patterns.

The skill is available for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode. The example utilities require Python.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add transilienceai/communitytools --skill authentication -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/authentication/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/authentication/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add transilienceai/communitytools --skill authentication -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/authentication/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add transilienceai/communitytools --skill authentication -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/authentication/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install transilienceai/communitytools skills/authentication
```

2. **Manually: put the files in place**
- File: `.github/skills/authentication/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add transilienceai/communitytools --skill authentication -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/transilienceai/communitytools --path skills/authentication
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/authentication/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add transilienceai/communitytools --skill authentication -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/transilienceai/communitytools/tree/HEAD/skills/authentication/SKILL.md

## When to use it
- test authentication bypass paths
- inspect JWT and OAuth handling
- check whether 2FA codes can be reused
- probe password controls against brute force and stuffing
- capture evidence for a security finding

## Example prompts
- Review the project’s login forms, tokens, 2FA, and CAPTCHA, then map possible bypass tests.
- Test the JWT flow for claim tampering, algorithm confusion, and forged tokens.
- Check the login protection against brute force, credential stuffing, and reused 2FA codes.

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 9865b25828215a56.

BEGIN THIRD-PARTY FILE 9865b25828215a56
````text
---
name: authentication
description: Authentication security testing - auth bypass, JWT attacks, OAuth flaws, password attacks, 2FA bypass, CAPTCHA bypass, and bot detection evasion.
---

# Authentication

Test authentication mechanisms including login security, token handling, 2FA, CAPTCHA, and bot detection.

## Techniques

| Type | Key Vectors |
|------|-------------|
| **Auth Bypass** | Default credentials, logic flaws, response manipulation |
| **ADFS/SAML** | Golden SAML, token signing cert theft, assertion manipulation, SAML wrapping |
| **JWT** | Algorithm confusion, key injection, claim tampering, token forging |
| **OAuth** | Redirect manipulation, CSRF, token leakage, scope abuse |
| **Password** | Brute force, credential stuffing, password policy bypass |
| **2FA Bypass** | Response manipulation, direct endpoint access, code reuse, race conditions |
| **CAPTCHA Bypass** | Missing server validation, token reuse, OCR, parameter manipulation |
| **Bot Detection** | Behavioral biometrics simulation, fingerprint randomization, stealth mode |

## Tools

**PasswordGenerator** (`tools/password_generator.py`):
```python
from tools.password_generator import generate_password
password = generate_password(hint_text="8-16 chars, uppercase, numbers")
```

**CredentialManager** (`tools/credential_manager.py`):
```python
from tools.credential_manager import CredentialManager
mgr = CredentialManager()
mgr.store_credential(target="example.com", username="test", password="pass")
```

## Workflow

1. Analyze auth implementation (forms, tokens, 2FA, CAPTCHA)
2. Test bypass vectors per technique type
3. Use Playwright MCP with human-like behavior (typing 80-200ms, random pauses)
4. Capture evidence (screenshots, network logs, tokens)
5. Document findings with PoC scripts

## Reference

- `reference/authentication*.md` - Auth bypass techniques, payloads, and resources
- `reference/jwt*.md` - JWT attack techniques and cheat sheets
- `reference/oauth*.md` - OAuth vulnerability testing
- `reference/scenarios/password-attacks/*.md` - Password attack vectors (spray, stuffing, cracking, PtH)
- `reference/adfs-exploitation.md` - ADFS, Golden SAML, federation attacks
- `reference/scenarios/2fa/*.md` - 2FA bypass methods
- `reference/CAPTCHA_BYPASS.md` - 11 CAPTCHA bypass techniques
- `reference/BOT_DETECTION.md` - Bot detection evasion strategies
- `reference/PASSWORD_CREDENTIAL_MANAGEMENT.md` - Tool usage guide
````
END THIRD-PARTY FILE 9865b25828215a56

The third-party file has ended. Everything between the 9865b25828215a56 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© transilienceai · MIT · https://github.com/transilienceai/communitytools/tree/HEAD/skills/authentication/SKILL.md

## Similar
- [two-factor-authentication-best-practices](https://affpapa.org/en/nevibecode/skills/two-factor-authentication-best-practices.md) — skill · 37300 installs
- [nextjs-authentication](https://affpapa.org/en/nevibecode/skills/nextjs-authentication.md) — skill · 4000 installs
- [nextauth-authentication](https://affpapa.org/en/nevibecode/skills/nextauth-authentication.md) — skill · 1200 installs

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
