api-security-design

api-security-design is a skill for Claude Code, Codex from vinayaklatthe/microsoft-security-skills. It costs 131 tokens per session (2,048 once invoked), scanned A, original, MIT.

Guidance for designing secure APIs on Azure, including how callers prove their identity, what they may access, how inputs are checked, and how traffic, secrets, and threats are controlled.

In plain words
What is it for?
Use it when designing or reviewing public, partner, or sensitive-data APIs with Azure API Management, Entra ID, a web application firewall, Key Vault, and related security services.
Why use it?
It helps prevent common API security failures, such as users accessing another user's records, weak login protection, excessive requests, or unsafe server-side requests, using the OWASP API Security Top 10 as a reference.

Skill for Claude CodeCodex

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

Good fit Use it when designing or reviewing public, partner, or sensitive-data APIs with Azure API Management, Entra ID, a web application firewall, Key Vault, and related security services.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/api-security-design/github.svg)](https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/api-security-design)
Your own site
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/api-security-design"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/api-security-design/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-security-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/api-security-design"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/api-security-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,048 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.00131 $0.02048
Opus 5 $0.00066 $0.01024
Sonnet 5 $0.00026 $0.00410
Haiku 4.5 $0.00013 $0.00205

Measured 9d ago against content hash 0e36523a7d55, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

api-security-design 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 9d 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.

skills/api-security-design/SKILL.md · 131 lines

How it starts

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

API Security Design

Secure API design protects backend services and data from abuse and the OWASP API Security Top 10 risks - broken object-level authorization (BOLA), broken authentication, broken function-level authorization (BFLA), unrestricted resource consumption, server-side request forgery, and more. On Azure, Azure API Management (APIM) is the primary policy enforcement point, paired with WAF, Entra ID, Key Vault, and Defender for APIs.

When to use

Designing or reviewing the security of APIs - especially external-facing, partner-facing, or sensitive-data APIs - before they go live or as part of a recurring design review.

Do not use this skill for:

  • General application or web app security (use security-architecture, threat-modelling)
  • API runtime detection and posture only (use defender-for-apis)
  • Front-end / SPA design (use web app security guidance)

Pick the right control per OWASP API risk

OWASP API Top 10 risk Primary control Where it lives
API1 - BOLA (object-level auth) Per-object authorization check Backend code (gateway cannot fully cover)
API2 - Broken authentication OAuth 2.0 / OIDC with Entra ID, validate-jwt Gateway + Entra
API3 - Broken object property auth Schema validation + response filtering Backend + gateway
API4 - Unrestricted resource consumption Rate limit, quota, payload size, timeout Gateway (APIM)
API5 - BFLA (function-level auth) Role/scope check on each operation Backend code
API6 - Unrestricted access to sensitive flows Step-up auth, anti-abuse rules Entra + gateway
API7 - SSRF Outbound URL allow-list + egress controls Backend + network
API8 - Security misconfiguration IaC + APIM policy templates DevOps + gateway
API9 - Improper inventory management API catalog + lifecycle in APIM APIM + governance
API10 - Unsafe consumption of third-party APIs Validate upstream responses, timeouts Backend

Read the full file on GitHub · 131 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. 9d ago First seen · 131 lines · 131 tokens per session scan A 0e36523a7d55

Subscribe to this mod's changes

api-security-design is a skill published in the GitHub repository vinayaklatthe/microsoft-security-skills (171 stars, last pushed 2mo ago), licensed MIT. It adds 131 tokens to every session and 2,048 once invoked, about $0.0007 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-30.

Related

Other skills, from other repositories

cosmos-design-struct

Enforce consistent struct design conventions across sdk/cosmos crates. Validates visibility modifiers, field privacy, #[nonexhaustive] usage, and construction API patterns (Default/new with with setters, or optional separate builders with builder()/build()), and construction correctness on public structs. Can auto-fix…

Azure/azure-sdk-for-rust · 83 tokens

bf-to-agents-sdk-typescript-migration

Assess and migrate JavaScript or TypeScript bots from BotBuilder/Bot Framework SDK to Microsoft 365 Agents SDK with AgentApplication. Use to produce a migration report and plan before editing code, map BotBuilder packages and APIs, identify unsupported features, and implement only the supported plan items selected by…

microsoft/Agents · 71 tokens

octopus-architecture

Review system architecture, simplify boundaries, or compare interface designs from repository evidence.

nyldn/claude-octopus · 19 tokens

bfl-api

BFL FLUX API integration guide covering endpoints, async polling patterns, rate limiting, error handling, webhooks, and regional endpoints with Python and TypeScript code examples.

calesthio/OpenMontage · 38 tokens

api-doc-generator

Generate API documentation from source code, supporting REST APIs, GraphQL, and various documentation formats.

JackyST0/awesome-agent-skills · 23 tokens

aspire

Build, upgrade, and operate Aspire 13.5.x C# or TypeScript application hosts with the current CLI, AppHost, ServiceDefaults, integrations, dashboard, testing, MCP, and deployment patterns for distributed apps. USE FOR: Aspire.AppHost.Sdk, Aspire.Hosting., DistributedApplication.CreateBuilder, apphost.mts…

managedcode/dotnet-skills · 145 tokens