Guide · Agent skill
How to use the OAuth Security Testing agent skill (offensive-oauth)
Updated · written with AI from the project's own documentation and checked against our catalogue data
The offensive-oauth skill gives an AI agent a structured OAuth security testing checklist. It is aimed at security testers, bug bounty hunters, developers reviewing their own login code, and students learning how OAuth flows fail. After this guide you will know what the skill changes about the agent's behaviour, how to install it from the ZIP, how to trigger it with natural requests, and what limits to respect.
Quick start
- 1Download the ZIP. Download the offensive-oauth ZIP from this page.
- 2Unzip into a skills folder. Unzip into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder.
- 3Or upload in the Claude apps. Go to Settings → Capabilities → Skills and upload the ZIP.
- 4Ask an OAuth question. Describe your OAuth flow or name a weakness such as redirect_uri bypass or PKCE bypass in plain language.
- 5State your authorization. Confirm the target is one you own or have explicit written permission to test.
- 6Work through the checklist. Ask the agent to go through the items in order, track what is complete, and suggest next steps.
What is an agent skill, and what does this one do?
An agent skill is a folder containing a SKILL.md file of instructions that an AI agent loads when a conversation matches the skill's topic. This skill's folder is offensive-oauth, and its file is SKILL.md.
Once installed, when you ask the agent about OAuth, it follows a structured checklist of known weaknesses and checks how a given implementation handles each one. The checklist covers authorization code interception, redirect_uri bypass, CSRF on the OAuth flow, state parameter abuse, open redirector chaining, token leakage via Referer, PKCE bypass, and scope escalation. The skill also explains OAuth best practices and flow mechanics, including OAuth 2.1 and FAPI guidance.
The file is a text methodology, not an automated scanner. The agent reasons over the checklist; it does not run tests against a system for you.
Install the offensive-oauth skill
Download the ZIP from this page and unzip it. You can install the skill in one of two ways:
For a personal setup, unzip it into ~/.claude/skills/ so the offensive-oauth folder sits there. For a single project, unzip it into that project's .claude/skills/ folder.
Alternatively, upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
- Personal: ~/.claude/skills/offensive-oauth/
- Project only: .claude/skills/offensive-oauth/
- Claude apps: Settings → Capabilities → Skills, then upload the ZIP
Trigger the skill with natural requests
You do not need a special command. The skill is meant to activate when the conversation involves OAuth terms such as OAuth 2.0, authorization code, redirect_uri bypass, OAuth CSRF, state parameter, PKCE bypass, scope escalation, token leakage, open redirector, or OAuth attack.
Describe the context in plain language and name the flow or parameter you are interested in. Mention that you are authorized to test the target, because the checklist is written for attacking live targets.
- Ask which redirect_uri checks a login implementation should enforce, and how to test them on an app you are authorized to test.
- Ask whether a missing or reused state parameter is exploitable in a specific OAuth callback.
- Ask for a review of your own app's PKCE handling before release.
- Ask the agent to explain the difference between the Authorization Code and Implicit flows and why Implicit is risky.
Use the checklist on an authorized target
The skill's methodology lists the items to work through. The agent is instructed to follow steps in order unless you say otherwise, consider each technique against your target, track which items are complete, and suggest next steps based on findings.
The hunt list includes intercepting OAuth flows with a proxy such as Burp or ZAP, manipulating redirect_uri parameters, removing or tampering with the state parameter, testing PKCE implementations, inspecting token handling in browsers, checking for client secret leakage, analysing scope handling, testing account linking, reviewing token validation, and examining refresh token security.
- Intercept the flow with Burp or ZAP and note each redirect and parameter.
- Test redirect_uri handling, including path traversal and exact-match behaviour.
- Check whether state is present, unguessable and tied to the session.
- Review PKCE, token validation (aud, azp, iss) and refresh token rotation.
Use it as a developer checklist
If you build a login with Google or GitHub, the skill's OAuth Considerations and OAuth 2.1 Updates sections work well as a review list. They describe PKCE everywhere, exact redirect_uri matching with no wildcards or path traversal, validating aud, azp and iss, ensuring APIs do not accept ID tokens, and refresh token reuse detection.
The mobile and SPA notes add guidance such as using Authorization Code with PKCE in single-page apps, storing tokens in memory, and not shipping client secrets in mobile binaries.
- Confirm PKCE is required by your authorization server and validated on token exchange.
- Confirm redirect_uri matches a pre-registered allowlist exactly.
- Confirm state is unguessable and matched on callback.
- Confirm APIs reject ID tokens and check token audience.
Safety, requirements and limits
The skill lists no requirements. It does not run scripts and does not use the network. It is a set of instructions only, so it cannot scan a target by itself.
The skill is an offensive reference. Use it only on systems you own or have explicit written permission to test. The checklist is written for attacking live targets and could facilitate unauthorized access if misused. It is not a setup guide, so if you only want a simple way to secure a login, pick a guide aimed at that task instead.
- Requires: nothing listed
- Runs scripts: no
- Uses network: no
- Only test systems you own or have explicit written permission to test
What people use it for
- Reviewing a login implementation during an authorized penetration test, such as checking redirect_uri handling and state use.
- Bug bounty research on an in-scope target that uses OAuth or OIDC login.
- Developers checking their own app for common OAuth mistakes before release.
- Students learning how Authorization Code and Implicit flows can fail.
Frequently asked questions
How do I install the offensive-oauth skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder. You can also upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
Does offensive-oauth require anything else to run?
The skill lists no requirements. It does not run scripts and does not use the network, so it is a set of instructions the agent follows.
Is offensive-oauth free, and what is its licence?
The skill is listed under the MIT licence. This page does not list any price, so check the source repository for current terms.
Is this an automated OAuth scanner?
No. The file is a text methodology. The agent uses the checklist to reason about a given implementation, but it does not scan systems automatically.
Can I use this skill to test a site I do not own?
Only with explicit written permission. The checklist is written for attacking live targets and could facilitate unauthorized access if used against systems you are not authorized to test.
What is the difference between this skill and an OAuth setup guide?
This skill is an offensive reference that lists weaknesses to test for. It is not a setup guide, so if you want to secure a login from scratch, a developer guide for your identity provider will be more useful.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Choose offensive-oauth if you are an authorized security tester, bug bounty hunter, developer wanting a review checklist, or student learning OAuth failure modes. Pick something else if you need a simple way to set up a secure login or you want an automated scanner, since this skill is a text methodology that does neither.
Download the skill