Skip to content
Back to skills

Application Security

ASecurity

Apply secure-by-design principles and threat-model application features across technology stacks. Use when designing features, reviewing code or architecture, handling input, or exposing application functionality.

  • 200 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added November 29, 2026
ai-agentsrustapidatabasebackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add sivaprasadreddy/sivalabs-agent-skills --skill application-security --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Application Security?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Application Security
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sivaprasadreddy-application-security/badge)](https://www.skillsdirectory.com/skills/sivaprasadreddy-application-security)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: application-security
description: Apply secure-by-design principles and threat-model application features across technology stacks. Use when designing features, reviewing code or architecture, handling input, or exposing application functionality.
---

# Application Security

## Purpose
Establish practical, risk-based security expectations throughout application design and implementation.

## When to use
Use for new features, trust-boundary changes, file handling, user-generated content, administrative functions, integrations, and security reviews.

## Core principles
1. **Threat-model meaningful changes.** Identify assets, actors, trust boundaries, entry points, abuse cases, and likely impact.
2. **Use least privilege.** Give users, services, processes, and credentials only the permissions they need.
3. **Deny by default.** Access must be explicitly granted; missing or invalid authorization context must not result in access.
4. **Validate at boundaries.** Treat all external input as untrusted, including headers, files, URLs, webhooks, messages, and data from other services.
5. **Prefer allowlists and safe APIs.** Avoid constructing executable queries, commands, paths, or markup from untrusted strings.
6. **Separate authentication from authorization.** Establish identity and independently verify permission for each protected operation and resource.
7. **Protect data throughout its lifecycle.** Minimize collection, restrict access, encrypt sensitive data in transit and at rest where appropriate, and define retention/deletion behavior.
8. **Fail securely.** Errors must not reveal secrets, internal topology, stack traces, or sensitive records.
9. **Keep dependencies and runtime components maintained.** Track vulnerabilities, update deliberately, and remove unused components.
10. **Make security observable.** Record security-relevant events without logging credentials, tokens, or unnecessary personal data.

## Threat-model prompts
For a meaningful feature, consider:
- What assets are valuable (accounts, personal data, business data, credentials, money, service availability)?
- Who can interact with it (anonymous users, authenticated users, tenants, administrators, service identities)?
- What are the trust boundaries?
- Can a user access another user's or tenant's resources by changing an identifier?
- Can input cause injection, path traversal, SSRF, unsafe deserialization, or resource exhaustion?
- Can workflows be replayed, raced, automated, or abused?
- What happens when a dependency or identity provider is compromised?

## Implementation expectations
- Enforce authorization on the server or trusted backend, not only in the user interface.
- Validate type, length, format, range, and business constraints.
- Use parameterized database operations and context-appropriate output encoding.
- Apply request size, upload size, rate, and resource limits.
- Restrict outbound network destinations when user input can influence requests.
- Store passwords using a modern password-hashing scheme; never reversible encryption or plain hashing.
- Use secure session/token handling, transport security, and appropriate cookie protections.
- Protect state-changing browser requests against CSRF where applicable.
- Set appropriate security headers and content policies for browser-facing applications.
- Use safe file storage, generated filenames, content validation, and non-executable storage locations.
- Keep secrets out of source control, client bundles, logs, and error responses.
- Use generic external error messages while retaining safe diagnostic detail internally.

## Review checklist
- Are all entry points identified and validated?
- Is authorization checked for the specific action and resource?
- Are tenant and ownership boundaries enforced?
- Are injection and unsafe output risks addressed?
- Are secrets and sensitive data protected?
- Are abuse limits and resource limits appropriate?
- Are security events logged safely?
- Are dependencies, configuration, and deployment defaults secure?

Use applicable current standards (such as OWASP guidance) as references, but adapt controls to the application's actual threat model. Do not claim a system is secure merely because a checklist passed.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.