API Penetration Testing and Security

API Penetration Testing and Security is a skill for Claude Code, Codex from GktuOktay/ai-skills. It costs 62 tokens per session (769 once invoked), scanned A, original, MIT.

A guide for checking whether API endpoints can be abused or accessed by the wrong users. An API is a way for software to exchange data, and the guide covers common weaknesses such as injection, unsafe field updates, weak login tokens, and missing request limits.

In plain words
What is it for?
Use it to review ownership checks, permissions, JWT tokens, rate limits, SQL and NoSQL injection defenses, and protection against mass assignment.
Why use it?
It helps find security gaps that could expose another user's data, allow unauthorized changes, or let attackers overload an API. It also describes checks for OWASP API Security Top 10 risks, a widely used list of API threats.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to review ownership checks, permissions, JWT tokens, rate limits, SQL and NoSQL injection defenses, and protection against mass assignment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gktuoktay/ai-skills/api-pentest
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 GktuOktay/ai-skills --skill api-pentest
Clone the repo
git clone --depth 1 https://github.com/GktuOktay/ai-skills

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 API Penetration Testing and Security

README.md
[![agentmods](https://agentmods.dev/badge/skills/gktuoktay/ai-skills/api-pentest/github.svg)](https://agentmods.dev/skills/gktuoktay/ai-skills/api-pentest)
Your own site
<a href="https://agentmods.dev/skills/gktuoktay/ai-skills/api-pentest"><img src="https://agentmods.dev/badge/skills/gktuoktay/ai-skills/api-pentest/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 API Penetration Testing and Security

Your own site · 80×15
<a href="https://agentmods.dev/skills/gktuoktay/ai-skills/api-pentest"><img src="https://agentmods.dev/badge/skills/gktuoktay/ai-skills/api-pentest.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 769 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.00062 $0.00769
Opus 5 $0.00031 $0.00385
Sonnet 5 $0.00012 $0.00154
Haiku 4.5 $0.00006 $0.00077

Measured 10d ago against content hash 8119c0651f81, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

API Penetration Testing and Security 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 10d 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.

.agents/skills/api-pentest/SKILL.md · 73 lines

How it starts

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

API Penetration Testing & Security

Overview

This skill focuses on ensuring robust API security by preventing common vulnerabilities such as those listed in the OWASP API Security Top 10. It covers Broken Object Level Authorization (BOLA), Mass Assignment, rate limiting, JWT weaknesses, and injection attacks.

Core Principles

1. Authorization and BOLA (Broken Object Level Authorization)

Ensure that users can only access data they own.

  • Always validate ownership: When an endpoint accesses a resource by ID, verify that the authenticated user is authorized to access that specific ID.
  • Use indirect references: Where possible, use non-sequential or random IDs (UUIDs) to prevent enumeration.

2. Mass Assignment

Prevent attackers from updating fields they shouldn't have access to (e.g., isAdmin, balance).

  • Explicit binding: Only allow specific properties to be bound from the request payload to the object.
  • Use DTOs (Data Transfer Objects): Map incoming requests to DTOs rather than directly to domain models.

3. Rate Limiting and DoS Prevention

Protect endpoints from abuse by implementing rate limits.

  • IP & User-based limiting: Limit requests per IP and per authenticated user.
  • Complex endpoints: Apply stricter limits to computationally expensive endpoints (e.g., login, search).

4. JWT Token Validation Weaknesses

Ensure JWTs are generated and validated securely.

  • Use strong algorithms: Enforce strong algorithms like RS256. Do not allow 'none' algorithm.
  • Validate claims: Always validate exp, iss, aud, and nbf claims.
  • Store secrets securely: Never hardcode secrets. Use key management services.

5. Input Sanitization & Injection Prevention (SQL/NoSQL)

Never trust user input.

  • Parameterized queries: Always use parameterized queries or ORMs to prevent SQL injection.
  • Sanitize NoSQL inputs: Ensure NoSQL queries do not accept objects containing operators (e.g., $gt, $ne) from user input directly.

Read the full file on GitHub · 73 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. 10d ago First seen · 73 lines · 62 tokens per session scan A 8119c0651f81

Subscribe to this mod's changes

API Penetration Testing and Security is a skill published in the GitHub repository GktuOktay/ai-skills (2 stars, last pushed 8d ago), licensed MIT. It adds 62 tokens to every session and 769 once invoked, about $0.0003 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.