security-guidance
БесплатноБез исполняемых скриптовНе проверенSecurity-first development guidance based on OWASP ASVS (Application Security Verification Standard). Use this skill automatically when planning or…
от OWASP★ 248 звёзд на GitHubОб этом скилле
Security Guidance
Core Principle
Security is a first-class requirement. Before completing any plan or producing any code that touches security-sensitive operations, consult the ASVS reference index below and apply all relevant guidance.
All generated code and plans must demonstrably adhere to the selected guidance, with safe defaults and explicit inline citations.
Workflow
- Identify relevant sections — Match the current task against the
When to use:triggers in the index below. A task may match multiple sections; apply all of them. - Read the reference file — For each matched section, read the full reference file listed at the end of its index entry to get the complete verification requirements.
- Apply the guidance — Implement the requirements. Default to the most secure option when the requirements allow choice. Apply all Level 1 requirements as a minimum baseline; note any Level 2 or Level 3 requirements that are relevant but not yet implemented.
- Cite applied requirements inline — In code comments or plan notes, reference each requirement you satisfy:
// ASVS 6.2.4: password checked against top-3000 list.
Escalation
If no section in the index matches a task that involves security-sensitive operations, or if guidance is conflicting or unclear, stop and flag the gap before proceeding. Do not guess or paraphrase guidance — escalate instead.
If the index below is empty, report that the reference index failed to load and list which ASVS chapters are likely relevant based on the task description.
Reference Index
V1.1 Encoding and Sanitization Architecture
Architectural requirements for the order and placement of encoding, escaping, and decoding operations.
When to use:
- designing a data processing pipeline that handles untrusted input
- deciding where in the request/response lifecycle to encode or escape data
- storing data that will later be rendered in different output contexts
See data/asvs/V1.1.md for detailed guidance.
V1.2 Injection Prevention
Output encoding and escaping requirements to prevent injection into interpreters (SQL, HTML, JS, OS, LDAP, etc.).
When to use:
- building database queries (SQL, NoSQL, HQL, Cypher, XPath, LDAP)
- constructing OS commands or shell scripts with dynamic data
- building URLs or redirects with user-supplied values
- rendering user input inside HTML, CSS, or JavaScript
- processing LaTeX input
- evaluating regular expressions containing user-supplied patterns
- generating CSV, XLS, or spreadsheet exports with user data
See data/asvs/V1.2.md for detailed guidance.
V1.3 Sanitization
Requirements for sanitizing untrusted HTML and dynamic content when encoding is not applicable.
When to use:
- accepting rich text or HTML input from users (e.g., WYSIWYG editors)
- using eval() or dynamic code execution with user-supplied content
- rendering user-submitted markup where encoding alone is insufficient
See data/asvs/V1.3.md for detailed guidance.
V1.4 Memory, String, and Unmanaged Code
Requirements for safe memory handling and string operations in unmanaged or low-level code.
When to use:
- writing or integrating unmanaged code (C, C++, assembly)
- using unsafe memory operations, pointer arithmetic, or raw buffers
- calling native libraries or FFI from a managed language
- handling string operations in low-level or performance-critical code
See data/asvs/V1.4.md for detailed guidance.
V1.5 Safe Deserialization
Requirements for safely deserializing data from untrusted or external sources.
When to use:
- deserializing objects or data structures from untrusted sources
- accepting serialized data via network, file upload, or API payloads
- using Java serialization, Python pickle, PHP unserialize, or similar mechanisms
- processing binary or text-based serialization formats (XML, JSON, YAML, MessagePack)
See data/asvs/V1.5.md for detailed guidance.
V2.1 Validation and Business Logic Documentation
Requirements for documenting expected inputs and business logic rules.
When to use:
- documenting what inputs an application accepts and their expected formats
- defining business rules and workflow constraints for a feature
See data/asvs/V2.1.md for detailed guidance.
V2.2 Input Validation
Requirements for validating input data at application boundaries.
When to use:
- processing any user-supplied input at an application boundary
- validating that inputs match expected types, formats, lengths, or value ranges
- checking data received from external systems or APIs
See data/asvs/V2.2.md for detailed guidance.
V2.3 Business Logic Security
Requirements for securing business workflows against manipulation, skipping steps, or race conditions.
When to use:
- implementing multi-step workflows or transaction sequences
- enforcing ordering or timing constraints between operations
- handling financial transactions, inventory updates, or state machines
- impleme
Установить security-guidance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл security-guidance?
Security-first development guidance based on OWASP ASVS (Application Security Verification Standard). Use this skill automatically when planning or implementing any code that touches user input, authentication, data persistence, network communication, file I/O, cryptography, or access control. This skill ensures all generated code adheres to industry-standard security practices with explicit references to applied guidance.
Как установить скилл security-guidance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл security-guidance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic