Backend Security logo

Backend Security

Community
MiladJoodi
backend-security

Secure-by-default guidance for writing, reviewing, and fixing backend application code - HTTP/REST/GraphQL APIs, authentication, authorization (BOLA/IDOR), sessions and JWT, OAuth/OIDC, password hashing, injection (SQL, NoSQL, command, template), SSRF, mass assignment, rate limiting, file uploads, secrets and crypto, webhooks, race conditions, business-logic abuse, logging, background jobs, and dependency hygiene. Use whenever the user mentions SQL injection, SSRF, IDOR, BOLA, JWT, sessions, OAuth, password hashing, rate limiting, mass assignment, file upload, secrets, webhooks, race conditions, API security, security review, or audit. Also use when implementing login, signup, password reset, roles and permissions, multi-tenant data access, database queries, outbound HTTP fetches, webhooks, queue workers, or payment endpoints, even if the user never says "security".

Overview

PublisherMiladJoodi
Repositoryskills
Skill namebackend-security
Stars
24
Forks
1
Bundled files
11
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by MiladJoodi on GitHub. Read the source before you install it.

Installation

Install the Backend Security AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/MiladJoodi/skills/tree/main/skills/backend-security
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiladJoodi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/backend-security .claude/skills/backend-security
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Backend Security in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Backend Security on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Backend Security is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Backend Security (Application Layer)

Rules for writing, reviewing, and fixing backend code so it is secure by default. Prefer small, targeted changes that preserve existing behavior. Concrete fixes over theory.

Standards baseline: OWASP Top 10:2025 (SSRF now sits under A01 Broken Access Control), OWASP API Security Top 10:2023, OWASP ASVS 5.0.0. These are baselines, not a substitute for threat modeling or version-specific documentation.

Scope: application-level backend security. Out of scope: infrastructure and OS hardening, network security, penetration testing. Browser-side topics (XSS, CSP, browser cookie handling, token storage in the browser) belong to the frontend-security skill; this skill covers only the server-side half.

Examples are TypeScript (Node.js). The rules are language-neutral; each reference notes where Python, PHP, Go, or Java differ.

Last reviewed: October 2026.

How to work

  1. Inspect first. Identify language and framework versions, the auth model (session, JWT, OAuth), the data layer (ORM, raw SQL, NoSQL), multi-tenancy, where authorization is enforced (middleware, service, query), and existing security controls. Do not duplicate or conflict with them.
  2. Trace untrusted data from every source (body, query, path, headers, cookies, files, webhooks, queue messages, third-party responses, database values you do not control) to every sink (query, command, template, file path, outbound URL, log line, response).
  3. Pick the mode: implement, fix, or audit. For audits, report each finding with severity, location, evidence, fix, and how it was verified.
  4. Make the smallest secure change. Do not rewrite an auth or deployment architecture when a targeted check or a parameterized query fixes the problem.
  5. Test the attack path. Add or run a test for the exploit, the expected denial, and boundary cases (other user, other tenant, replay, concurrent request).
  6. Verify, then report. Say what you checked and what you could not. Never claim "fixed" because a config line exists.

Ask the user only what changes the answer: auth model, tenancy key, database engine, whether GraphQL, webhooks, or background jobs exist. Never ask for real secrets or production data.

Non-negotiable rules

  1. Authenticate, then authorize every action on every object. Never trust a client-supplied user ID, role, tenant, price, or ownership flag.
  2. Authorization lives in the query. Scope reads, updates, and deletes by owner or tenant, and treat zero affected rows as denial.
  3. Parameterize everything. Never build SQL, NoSQL filters, shell commands, LDAP filters, or templates from untrusted strings.
  4. Validate input with a schema at every trust boundary: types, ranges, enums, sizes, depth. Reject unknown fields on writes.
  5. Allowlist writable and returnable fields. No raw request bodies into models; no raw models into responses.
  6. Block SSRF. Allowlist destinations, deny private and metadata addresses at connection time, limit redirects, time, and bytes.
  7. Hash passwords with Argon2id (or scrypt/bcrypt where it is unavailable). Never use fast hashes or reversible encryption.
  8. Treat tokens as bearer credentials. Pin JWT algorithms, validate iss/aud/exp, keep lifetimes short, rotate refresh tokens, make revocation possible.
  9. Make money, quota, and redeem operations atomic and idempotent. Conditional updates, unique constraints, idempotency keys.
  10. Recompute prices, totals, permissions, and eligibility on the server. Client values are hints.
  11. Verify inbound webhooks over the raw body with a constant-time compare and a freshness check, and deduplicate event IDs.
  12. Treat uploads, queue messages, and third-party responses as hostile. Server-generated keys, content validation, private storage, re-authorization in workers.
  13. Secrets never appear in source, logs, errors, or responses. Use a secret manager, separate environments, and rotate.
  14. Fail closed. Generic client errors, detailed server logs with a request ID; authorization or crypto failures never degrade to "allow".
  15. Rate-limit authentication and expensive or abusable flows, and bound pagination, body size, and query cost.

Where to read next

Read only what the task needs. For a full audit, read the checklist first, then the references for each area found in the code.

Task touchesRead
Passwords, login, sessions, JWT, refresh tokens, MFA, OAuth/OIDC, reset linksreferences/authentication.md
BOLA/IDOR, roles, tenants, mass assignment, admin routes, step-up authreferences/authorization.md
SQL/NoSQL/command/template injection, validation, deserialization, paths, XXE, ReDoSreferences/injection-and-input.md
Outbound fetch, URL previews, webhook senders, SSRFreferences/ssrf-and-outbound.md
Rate limits, GraphQL, business-flow abuse, CORS/CSRF (server side), API errors and inventoryreferences/api-security.md
Secrets, encryption, randomness, keys, PII, database privileges, backupsreferences/secrets-crypto-data.md
Races, transactions, idempotency, state machines, price tamperingreferences/concurrency-and-business-logic.md
Uploads, object storage, inbound webhooks, queues and workersreferences/files-webhooks-jobs.md
Logging, audit trails, error handling, dependencies, supply chainreferences/logging-errors-deps.md
Finishing a change or running an auditreferences/review-checklist.md

Verify before asserting

  • Never invent library APIs, option names, defaults, or config keys. Check the installed version and the official docs.
  • Examples marked "illustrative" or using helper names that are not real library functions must be adapted to the project's actual libraries.
  • Never ship placeholder secrets, keys, or hashes as working values. Use clearly marked placeholders.
  • Password-hashing parameters, JWT library behavior, framework raw-body handling, and database isolation semantics are version-specific: confirm them.
  • If something could not be verified in this session, say so explicitly in the final message.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Backend Security AI skill do?

Secure-by-default guidance for writing, reviewing, and fixing backend application code - HTTP/REST/GraphQL APIs, authentication, authorization (BOLA/IDOR), sessions and JWT, OAuth/OIDC, password hashing, injection (SQL, NoSQL, command, template), SSRF, mass assignment, rate limiting, file uploads, secrets and crypto, webhooks, race conditions, business-logic abuse, logging, background jobs, and dependency hygiene. Use whenever the user mentions SQL injection, SSRF, IDOR, BOLA, JWT, sessions, OAuth, password hashing, rate limiting, mass assignment, file upload, secrets, webhooks, race condit...

Why use Backend Security on TypingMind?

Because you install it once and use it with any model. Backend Security is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Backend Security in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/MiladJoodi/skills/tree/main/skills/backend-security. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Backend Security?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Backend Security?

As many as you like. As long as a model supports skills, you can use Backend Security with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Backend Security AI skill free?

Yes. It is published on GitHub by MiladJoodi under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇