Логотип Backend Security

Backend Security

Спільнота
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".

Огляд

ВидавецьMiladJoodi
Репозиторійskills
Назва навичкиbackend-security
Зірки
24
Форки
1
Файли в пакеті
11
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 11

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем MiladJoodi. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Backend Security у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/MiladJoodi/skills/tree/main/skills/backend-security
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Backend Security в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Backend Security, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Backend Security не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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 condit...

Навіщо використовувати Backend Security у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Backend Security — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Backend Security у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/MiladJoodi/skills/tree/main/skills/backend-security. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Backend Security?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Backend Security?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Backend Security — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Backend Security?

Так. Навичку опубліковано на GitHub: MiladJoodi, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇