Logo di Backend Security

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".

Panoramica

AutoreMiladJoodi
Repositoryskills
Nome della skillbackend-security
Stelle
24
Fork
1
File inclusi
11
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 11 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da MiladJoodi su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Backend Security in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/MiladJoodi/skills/tree/main/skills/backend-security
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Backend Security in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Backend Security non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Backend Security non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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...

Perché usare Backend Security su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Backend Security è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Backend Security in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/MiladJoodi/skills/tree/main/skills/backend-security. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Backend Security?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Backend Security?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Backend Security: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Backend Security è gratuita?

Sì. È pubblicata su GitHub da MiladJoodi con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇