implementing-api-key-security-controls

implementing-api-key-security-controls is a skill for Claude Code from balsm-health/Balsm-AI. It costs 98 tokens per session (3,613 once invoked), scanned B, original, no licence file.

A coding workflow for securing API keys through generation, storage, rotation, and revocation controls. API keys are credentials that applications use to authenticate with services.

In plain words
What is it for?
Use it to design or implement API-key formats, protected storage, per-key permissions, rate limits, monitoring, rotation, and revocation.
Why use it?
It addresses risks such as leaked credentials, guessing attacks, and uncontrolled API use.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the balsm-ai plugin — 66 skills, 1 command, 1 agent, 2 hooks, 3 MCP servers shipped together

Good fit Use it to design or implement API-key formats, protected storage, per-key permissions, rate limits, monitoring, rotation, and revocation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/balsm-health/balsm-ai/implementing-api-key-security-controls
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 balsm-health/Balsm-AI --skill implementing-api-key-security-controls
Clone the repo
git clone --depth 1 https://github.com/balsm-health/Balsm-AI

Made for: Claude Code.

Or install balsm-ai, the plugin that ships this one along with the rest of its 66 skills, 1 command, 1 agent, 2 hooks, 3 MCP servers.

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 implementing-api-key-security-controls

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/balsm-health/balsm-ai/implementing-api-key-security-controls"><img src="https://agentmods.dev/badge/skills/balsm-health/balsm-ai/implementing-api-key-security-controls.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,613 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00098 $0.03613
Opus 5 $0.00049 $0.01806
Sonnet 5 $0.00020 $0.00723
Haiku 4.5 $0.00010 $0.00361

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

Security

Grade B, and why

implementing-api-key-security-controls scanned grade B 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/agent.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Harvests environment variablesmediumData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

# Extract API key from header

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

plugin/skills/implementing-api-key-security-controls/SKILL.md · 418 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 418 lines · 98 tokens per session scan B 41e0fa83a302

Subscribe to this mod's changes

implementing-api-key-security-controls is a skill published in the GitHub repository balsm-health/Balsm-AI (2 stars, last pushed 28d ago), with no licence file. It adds 98 tokens to every session and 3,613 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

implementing-api-key-security-controls

Implements secure API key generation, storage, rotation, and revocation controls to protect API authentication credentials from leakage, brute force, and abuse. The engineer designs API key formats with sufficient entropy, implements secure hashing for storage, enforces per-key scoping and rate limiting, monitors for…

xalgorix/xalgorix · 98 tokens

implementing-api-key-security-controls

Implements secure API key generation, storage, rotation, and revocation controls to protect API authentication credentials from leakage, brute force, and abuse. The engineer designs API key formats with sufficient entropy, implements secure hashing for storage, enforces per-key scoping and rate limiting, monitors for…

Njones17/AI-agent-master-cyber-skills-list · 98 tokens

implementing-api-rate-limiting-and-throttling

Implements API rate limiting and throttling controls using token bucket, sliding window, and fixed window algorithms to protect against brute force attacks, credential stuffing, resource exhaustion, and API abuse. The engineer configures per-user, per-IP, and per-endpoint rate limits using Redis-backed counters, API…

xalgorix/xalgorix · 114 tokens

detecting-api-enumeration-attacks

Detect and prevent API enumeration attacks including BOLA and IDOR exploitation by monitoring sequential identifier access patterns and authorization failures.

xalgorix/xalgorix · 32 tokens

detecting-broken-object-property-level-authorization

Detect and test for OWASP API3:2023 Broken Object Property Level Authorization vulnerabilities including excessive data exposure and mass assignment attacks.

xalgorix/xalgorix · 36 tokens

detecting-shadow-api-endpoints

Discover and inventory shadow API endpoints that operate outside documented specifications using traffic analysis, code scanning, and API discovery platforms.

xalgorix/xalgorix · 30 tokens