security-patterns

security-patterns is a skill for Claude Code, Codex from thapaliyabikendra/ai-artifacts. It costs 63 tokens per session (2,929 once invoked), scanned A, original, Apache-2.0.

A set of web-application security patterns covering threat modeling, access control, authentication, input validation, and common OWASP risks.

In plain words
What is it for?
Use it for security audits, STRIDE threat models, authentication and authorization work, permission design, and vulnerability reviews.
Why use it?
It helps developers identify how attackers could impersonate users, alter data, access information, disrupt services, or gain unauthorized privileges.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/thapaliyabikendra/ai-artifacts/security-patterns
Any agent
npx skills add thapaliyabikendra/ai-artifacts --skill security-patterns
Clone the repo
git clone --depth 1 https://github.com/thapaliyabikendra/ai-artifacts

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-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/security-patterns.svg)](https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/security-patterns)
Your own site
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/security-patterns"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/security-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,929 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00063 $0.02929
Opus 5 $0.00032 $0.01465
Sonnet 5 $0.00013 $0.00586
Haiku 4.5 $0.00006 $0.00293

Measured yesterday against content hash 4bf7845ede85, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-patterns 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 yesterday.

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/skills/security-patterns/SKILL.md · 418 lines

How it starts

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

Security Patterns for Web Applications

Security patterns and practices for building secure ABP Framework applications.

When to Use

  • Conducting security audits
  • Implementing authentication/authorization
  • Creating threat models (STRIDE)
  • Reviewing code for OWASP Top 10 vulnerabilities
  • Designing permission systems
  • Validating input and sanitizing output

STRIDE Threat Model

Framework

Category Threat Question Mitigation
Spoofing Identity theft Can attacker impersonate user? Authentication, tokens
Tampering Data modification Can attacker modify data? Integrity checks, signing
Repudiation Denial of actions Can user deny their actions? Audit logging
Information Disclosure Data exposure Can attacker access sensitive data? Encryption, access control
Denial of Service Availability attack Can attacker disrupt service? Rate limiting, scaling
Elevation of Privilege Unauthorized access Can attacker gain higher privileges? Authorization, least privilege

Threat Model Template

## Threat Model: [Feature Name]

**Date**: YYYY-MM-DD
**Reviewer**: [Name]

### Assets
| Asset | Sensitivity | Description |
|-------|-------------|-------------|
| Patient Data | HIGH | PII including medical records |
| User Credentials | CRITICAL | Passwords, tokens |
| Appointment Data | MEDIUM | Scheduling information |

### Threat Analysis
| ID | Category | Threat | Likelihood | Impact | Risk | Mitigation |
|----|----------|--------|------------|--------|------|------------|
| T1 | Spoofing | Attacker impersonates patient | Medium | High | HIGH | OAuth 2.0, MFA |
| T2 | Tampering | Attacker modifies appointment | Low | Medium | LOW | Authorization checks |
| T3 | Info Disclosure | Unauthorized patient data access | Medium | Critical | CRITICAL | Row-level security |
| T4 | Elevation | Receptionist gains admin access | Low | Critical | HIGH | Permission validation |

### Mitigations
| ID | Threat | Control | Status |
|----|--------|---------|--------|
| M1 | T1 | Implement OAuth 2.0 with OpenIddict | Implemented |
| M2 | T3 | Add row-level authorization in AppService | Pending |

Read the full file on GitHub · 418 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. yesterday First seen · 418 lines · 63 tokens per session scan A 4bf7845ede85

Subscribe to this mod's changes

security-patterns is a skill published in the GitHub repository thapaliyabikendra/ai-artifacts (24 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 63 tokens to every session and 2,929 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-09-03.

Related

Other skills, from other repositories

security-best-practices

Implement security best practices for web applications and infrastructure. Use when securing APIs, preventing common vulnerabilities, or implementing security policies. Handles HTTPS, CORS, XSS, SQL Injection, CSRF, rate limiting, and OWASP Top 10.

conversionfactory/agent-config · 55 tokens

security-practices

OWASP Top 10, authentication, and secure coding practices.

miles990/claude-software-skills · 17 tokens

performing-threat-modeling-with-owasp-threat-dragon

Use OWASP Threat Dragon to create data flow diagrams, identify threats using STRIDE and LINDDUN methodologies, and generate threat model reports for secure design review.

xalgorix/xalgorix · 46 tokens

Web Application Security Testing

OWASP Top 10 testing, injection vulnerability detection, API security assessment, authentication testing, and web vulnerability reporting for authorized assessments.

Masriyan/Claude-Code-CyberSecurity-Skill · 30 tokens

security-hardening

Use when writing code that handles user input, auth, sessions, or external data. Covers OWASP prevention patterns. Do NOT use for general code quality or performance — see dedicated skills.

juanmhidalgo/claude-plugins · 41 tokens

mk:cso

Chief Security Officer mode. Infrastructure-first security audit: secrets archaeology, dependency supply chain, CI/CD pipeline security, LLM/AI security, skill supply chain scanning, plus OWASP Top 10, STRIDE threat modeling, and active verification. Two modes: daily (zero-noise, 8/10 confidence gate) and…

ngocsangyem/MeowKit · 117 tokens