security

security is a skill for Claude Code, Codex from dineshdb/pie. It costs 10 tokens per session (884 once invoked), scanned A, original, MIT.

A guide to secure coding practices and security scans for common software vulnerabilities. It covers issues such as SQL injection, cross-site scripting, leaked secrets, unsafe file paths, and weak encryption.

In plain words
What is it for?
Use it while writing or reviewing code, and to audit dependencies with tools for JavaScript, Python, Rust, and other supported languages.
Why use it?
It helps identify and prevent code that could let attackers read data, run commands, bypass protections, or misuse the application.

Skill for Claude CodeCodex

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

Good fit Use it while writing or reviewing code, and to audit dependencies with tools for JavaScript, Python, Rust, and other supported languages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dineshdb/pie/security
View source ↗ dineshdb/pie
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 dineshdb/pie --skill security
Clone the repo
git clone --depth 1 https://github.com/dineshdb/pie

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 security

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dineshdb/pie/security"><img src="https://agentmods.dev/badge/skills/dineshdb/pie/security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 884 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00010 $0.00884
Opus 5.5 $0.00004 $0.00354
Sonnet 5.5 $0.00002 $0.00177
Haiku 4.5 $0.00001 $0.00088

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

Security

Grade A, and why

security scanned grade A 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -I https://example.com | grep -i "x-\|strict-\|content-\|referrer"
.pie/skills/security/SKILL.md · 129 lines

How it starts

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

Security

Two modes: proactive (check while writing/reviewing) and reactive (scan on demand).

OWASP Top 10 — Quick Prevention

Vulnerability Prevention
SQL Injection Parameterized queries, never concat
XSS Output encoding, CSP headers
Command Injection Avoid shell, use language APIs
Path Traversal Validate and sanitize file paths
SSRF URL allowlists, no raw user URLs
Hardcoded Secrets Env vars or secret managers only
Insecure Crypto SHA-256+, AES-256, no MD5/DES
Insecure Transport HTTPS everywhere, verify certs
XXE Disable external entities in XML
CSRF Tokens on state-changing requests

Language Priority Rules

Language Check First
Python SQL injection, command injection, path traversal
JS/TS XSS, prototype pollution, code injection
Rust Memory safety, unsafe blocks, command injection
Go SQL injection, command injection, path traversal

Dependency Audit

npm audit                    # Node.js
npm audit fix                # Auto-fix
bun pm audit                 # Bun
cargo audit                  # Rust
pip-audit                    # Python
govulncheck ./...            # Go

Secrets Detection

# Gitleaks
gitleaks detect --source . --report-path report.json

# TruffleHog
trufflehog filesystem ./

# Quick ripgrep scan
rg -i "AKIA[0-9A-Z]{16}" .              # AWS keys
rg "ghp_[a-zA-Z0-9]{36}" .              # GitHub tokens
rg "xox[pbar]-[a-zA-Z0-9-]{14,255}" .   # Slack tokens
rg -i "api[_-]?key['\"]?\s*[:=]" .      # API keys
rg -i "(mongo|mysql|postgres|redis)://[^ ]+:[^ ]+@" .  # DB URLs

Read the full file on GitHub · 129 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. 1mo ago First seen · 129 lines · 10 tokens per session scan A 3654af080d7f

Subscribe to this mod's changes

security is a skill published in the GitHub repository dineshdb/pie (2 stars, last pushed 21d ago), licensed MIT. It adds 10 tokens to every session and 884 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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

ai-fleet-project-execution

AI fleet project execution (orchestrator=PM, marketing agent, backend dev agent, video agent). Fast-iteration architecture pivots and inter-agent task delegation across multi-hour sessions. Use when a user assigns a multi-agent project with "take it as a team" instruction.

Szotasz/marveen · 63 tokens

memoria-heartbeat

Minden körben átnézi az ELŐZŐ KÖR ÓTA történteket, menti a fontosat, és skill-eket generál ha volt komplex munka.

Szotasz/marveen · 44 tokens

fleet-helper

Shared, dependency-free Python helpers for the agent fleet - dashboard API (memory, messages, kanban), Telegram MarkdownV2 escaping, and rule-based Mail.app triage. Use to do deterministic work (fetch/filter/SQL/format/escape) in Python instead of burning model tokens doing it in the LLM turn. The dashboard token is…

Szotasz/marveen · 86 tokens

github-pr-rebase-merge

Merge a stack of GitHub PRs sequentially when they share files and will cause cascading conflicts. Triggers when user says "merge the PRs sorban" or similar, and the PRs come from external forks (cannot push back to PR branch).

Szotasz/marveen · 59 tokens

handoff

Generate a HANDOFF.md context transfer document for session continuity. Use when switching sessions, handing off to another agent, or preserving complex task context before a context window reset. Trigger on "/handoff" command or "handoff:" prefix in inter-agent messages.

Szotasz/marveen · 55 tokens

approval-request-handling

A fő-ágens eljárása, amikor egy sub-ágens jóváhagyást kér az approval API-n keresztül ([APPROVALREQUEST] inter-agent üzenet). Kiküldi a kérést a tulajdonosnak, feldolgozza a szöveges válaszát, és lezárja az approvalt. Akkor használd, ha [APPROVALREQUEST] kezdetű inter-agent üzenetet kapsz.

Szotasz/marveen · 105 tokens