audiobash: Command for Claude Code

.claude/commands/security-audit.md

security-audit is a command for Claude Code from jamditis/audiobash. It costs 0 tokens per session (1,199 once invoked), scanned A, original, MIT.

A security-audit command for AudioBash, an Electron voice-controlled terminal application.

In plain words
What is it for?
Use it to inspect API-key storage, environment files, IPC handlers, WebSocket authentication, Electron security settings, input validation, and dependency risks.
Why use it?
It checks common places where credentials, commands, or communication between app processes can become unsafe before release.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is jamditis/audiobash's own configuration. It tells Claude Code how to work on audiobash itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything audiobash configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/user/audiobash/electron/main.cjs.

Reuse

Borrowing it

Nothing to install: this file belongs to jamditis/audiobash. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jamditis/audiobash/master/.claude/commands/security-audit.md
Clone the repo
git clone --depth 1 https://github.com/jamditis/audiobash

Made for: Claude Code.

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 security-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/jamditis/audiobash/security-audit/github.svg)](https://agentmods.dev/commands/jamditis/audiobash/security-audit)
Your own site
<a href="https://agentmods.dev/commands/jamditis/audiobash/security-audit"><img src="https://agentmods.dev/badge/commands/jamditis/audiobash/security-audit/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 security-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/jamditis/audiobash/security-audit"><img src="https://agentmods.dev/badge/commands/jamditis/audiobash/security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,199 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.00000 $0.01199
Opus 5.5 $0.00000 $0.00480
Sonnet 5.5 $0.00000 $0.00240
Haiku 4.5 $0.00000 $0.00120

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

Security

Grade A, and why

security-audit 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 2mo 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.

.claude/commands/security-audit.md · 177 lines

How it starts

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

Security Audit

Perform a comprehensive security audit of AudioBash, focusing on API keys, IPC security, WebSocket authentication, and Electron security configuration.

Your Role

You are a security auditor reviewing AudioBash for common vulnerabilities and security best practices.

Audit Categories

1. API Key Security

Check for exposed API keys in code:

# Search for potential API keys in source
grep -rn "sk-" src/ electron/ --include="*.ts" --include="*.tsx" --include="*.js"
grep -rn "AIza" src/ electron/ --include="*.ts" --include="*.tsx" --include="*.js"
grep -rn "key.*:" src/ electron/ --include="*.ts" --include="*.tsx" --include="*.js"

# Check for .env files in repo
git ls-files | grep -E "\.env$|\.env\."

Expected behavior:

  • ✓ API keys stored in Electron's safeStorage
  • ✓ Keys never hardcoded in source files
  • ✓ .env files in .gitignore
  • ✗ Any hardcoded keys or credentials

2. IPC Security Patterns

Review IPC handlers in electron/main.cjs and electron/preload.cjs:

Check for:

  • Context isolation enabled
  • Node integration disabled in renderer
  • Proper IPC whitelisting (no arbitrary channel names)
  • Input validation on all IPC handlers
  • No shell execution with unsanitized input

Files to review:

  • /home/user/audiobash/electron/main.cjs - IPC handlers
  • /home/user/audiobash/electron/preload.cjs - Context bridge
  • /home/user/audiobash/vite.config.ts - Renderer config

Example secure pattern:

// GOOD: Validated IPC handler
ipcMain.handle('get-api-key', async () => {
  return safeStorage.getPassword('gemini-api-key');
});

// BAD: Arbitrary command execution
ipcMain.handle('run-command', async (event, cmd) => {
  exec(cmd); // ⚠️ DANGEROUS - no validation
});

3. WebSocket Authentication

Check WebSocket security in agent mode:

Files to review:

  • Search for WebSocket client code
  • Check for authentication headers
  • Verify TLS/SSL usage (wss:// not ws://)
  • Check for session token validation

Read the full file on GitHub · 177 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. 2mo ago First seen · 177 lines · 0 tokens per session scan A 87b64efdfcd4

Subscribe to this mod's changes

security-audit is a command published in the GitHub repository jamditis/audiobash (6 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,199 tokens. 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.