offensive-oauth

offensive-oauth is a skill for Claude Code, Codex from Miosa-osa/OSA. It costs 62 tokens per session (3,788 once invoked), scanned C, a copy of offensive-oauth, Apache-2.0.

A checklist for testing OAuth 2.0, a standard that lets applications grant limited access to accounts or services. It covers common weaknesses in login, redirect, token, and permission flows.

In plain words
What is it for?
Use it in authorised web application assessments to review OAuth redirects, request protections, PKCE, token handling, and permission scopes.
Why use it?
It helps find flaws that could expose login tokens, let attackers interfere with authentication, or grant excessive access.

Skill for Claude CodeCodex

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

Good fit Use it in authorised web application assessments to review OAuth redirects, request protections, PKCE, token handling, and permission scopes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miosa-osa/osa/offensive-oauth
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 Miosa-osa/OSA --skill offensive-oauth
Clone the repo
git clone --depth 1 https://github.com/Miosa-osa/OSA

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 offensive-oauth

README.md
[![agentmods](https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-oauth/github.svg)](https://agentmods.dev/skills/miosa-osa/osa/offensive-oauth)
Your own site
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-oauth"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-oauth/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 offensive-oauth

Your own site · 80×15
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-oauth"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-oauth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,788 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% 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.00062 $0.03788
Opus 5.5 $0.00025 $0.01515
Sonnet 5.5 $0.00012 $0.00758
Haiku 4.5 $0.00006 $0.00379

Measured 1mo ago against content hash 00b0d02282cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

offensive-oauth scanned grade C with 1 finding 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 1mo 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.

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

- Set redirect_uri to internal service (http://169.254.169.254)
Origin

This is a copy

94% identical to offensive-oauth — 53 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.

priv/skills/offensive-oauth/SKILL.md · 398 lines

How it starts

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

SKILL: OAuth Security Testing

Metadata

Description

OAuth 2.0 attack checklist: authorization code interception, redirect_uri bypass, CSRF on OAuth flow, state parameter abuse, open redirector chaining, token leakage via Referer, PKCE bypass, and scope escalation. Use when testing OAuth implementations in web apps or bug bounty.

Trigger Phrases

Use this skill when the conversation involves any of: OAuth, OAuth 2.0, authorization code, redirect_uri bypass, OAuth CSRF, state parameter, PKCE bypass, scope escalation, token leakage, open redirector, OAuth attack

Full Methodology

OAuth Security Testing

Shortcut

  • Check for improper redirect validation (open redirects)
  • Test state parameter manipulation/absence
  • Manipulate OAuth flows to bypass authentication
  • Try URL path traversal in redirect_uri
  • Hunt for client secret leakage in source code/repos
  • Look for improper scope validation

Mechanisms

  • OAuth 2.0 authorizes limited access to resources via tokens; pair with OIDC for identity.
  • Core Flows:
    • Authorization Code (with PKCE for public clients)
    • Client Credentials (service-to-service)
    • Avoid Implicit and ROPC where possible
  • Key Components:
    • Resource Owner (user)
    • Client (third-party app)
    • Authorization Server (issues tokens)
    • Resource Server (hosts protected resources)
    • Tokens (access and refresh)
  • Hardening Extensions:
    • PAR (Pushed Authorization Requests), JAR (Request Objects), JARM (JWT-secured responses)
    • Sender‑constrained tokens (DPoP, mTLS)
    • private_key_jwt or mTLS client authentication for confidential clients

OAuth/OIDC Considerations

  • PKCE everywhere: Even with confidential clients/native apps; code_verifier must be required and validated.
  • Nonce/state binding: For OIDC, ensure nonce is present and matched; state should be unguessable and tied to session.
  • redirect_uri exact match: Enforce exact string match against pre-registered allowlist; no wildcards/path traversal.
  • aud/azp/iss enforcement: Validate tokens strictly, including clock skew and JWKS kid rotation behavior.
  • Front-channel logout/login CSRF: Validate logout CSRF; defend forced login to attacker accounts.
  • ID Token vs Access Token: APIs must not accept ID tokens; check token_type and audience.
  • Device Code & CIBA: Validate polling rate limits, code expiry, and binding of device/user codes.
  • Refresh Token Rotation: Enforce reuse detection and global invalidation chains.
  • PAR/JAR/JARM: Use to pin exact redirect_uri and inputs and to protect front-channel parameters.

Read the full file on GitHub · 398 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. 1mo ago First seen · 398 lines · 62 tokens per session scan C 00b0d02282cf

Subscribe to this mod's changes

offensive-oauth is a skill published in the GitHub repository Miosa-osa/OSA (78 stars, last pushed 11d ago), licensed Apache-2.0. It adds 62 tokens to every session and 3,788 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (cloud metadata endpoint). It is 94% identical to offensive-oauth, differing in 53 lines, and is treated as a copy.

Related

Other skills, from other repositories

n8n-mcp-workflows

MCP-first patterns for designing, validating, and operating n8n automations with explicit retries, failure paths, and audit trails.

MRWillisT/PullNexus · 35 tokens

fastapi-patterns

FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

affaan-m/ECC · 35 tokens

status

Show whether Mem0 memory is working in this repository, covering configuration, capture state, pending flushes, and whether the Mem0 API key is valid. Use when the user asks whether memory is on, why a memory is missing, or anything looks broken.

mem0ai/mem0 · 54 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

stripe-docs

Use when the user or agent needs to read, search, or look up Stripe documentation or API reference. Prefer this over curl or WebFetch for any docs.stripe.com content. Use to fetch gated documentation.

stripe/ai · 46 tokens