backend-security

backend-security is a skill for Claude Code from makigjuro/cloudstack-ai-plugins. It costs 47 tokens per session (780 once invoked), scanned A, original, MIT.

A set of security rules for C# backend code and web API endpoints. It covers safe database queries, secret handling, authentication, input checks, and error responses.

In plain words
What is it for?
It helps secure API endpoints, validate incoming data, use JWT or OIDC authentication, protect SQL and shell operations, and handle secrets safely.
Why use it?
It reduces risks such as injection attacks, leaked credentials, unauthorised access, and sensitive data appearing in logs.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the dotnet-architect plugin — 14 skills, 1 agent shipped together

Good fit It helps secure API endpoints, validate incoming data, use JWT or OIDC authentication, protect SQL and shell operations, and handle secrets safely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makigjuro/cloudstack-ai-plugins/backend-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add makigjuro/cloudstack-ai-plugins --skill backend-security
Clone the repo
git clone --depth 1 https://github.com/makigjuro/cloudstack-ai-plugins

Made for: Claude Code.

Or install dotnet-architect, the plugin that ships this one along with the rest of its 14 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for backend-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/backend-security/github.svg)](https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/backend-security)
Your own site
<a href="https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/backend-security"><img src="https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/backend-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for backend-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/backend-security"><img src="https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/backend-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 780 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.00780
Opus 5.5 $0.00019 $0.00312
Sonnet 5.5 $0.00009 $0.00156
Haiku 4.5 $0.00005 $0.00078

Measured 1mo ago against content hash 936718800681, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

backend-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dotnet-architect/skills/backend-security/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Backend Security Rules

Apply these rules while writing code, not just during review.

Injection Prevention

  • SQL: Never concatenate user input into queries. Use parameterized queries only.
    • Forbidden: FromSqlRaw($"SELECT ... WHERE id = '{id}'"), string interpolation in SQL
    • Required: FromSqlInterpolated, FromSqlRaw with parameters, or LINQ/EF Core queries
  • Command: Never pass unsanitized input to Process.Start, ProcessStartInfo, or shell commands
  • Message subjects: Never interpolate user input into message broker subject strings without validation

Secrets & Credentials

  • Never hardcode secrets, API keys, connection strings, or tokens in source code
  • Use configuration (IConfiguration, IOptions<T>) or environment variables
  • Never log secrets, tokens, passwords, or PII -- use structured logging with explicit fields
  • Connection strings go in appsettings.json (dev) or Kubernetes Secrets (deployed)
  • Check: no password=, apikey=, secret=, bearer literals in committed code

Endpoint Authentication

Rules:

  • Every new endpoint requires auth unless it is a health check, metrics, or explicitly public endpoint
  • If an endpoint must be public, annotate with .AllowAnonymous() and add a code comment explaining why
  • Service-to-service endpoints that use .AllowAnonymous() must validate the caller via other means (internal network, service token)
  • Never add a new service without authentication middleware
  • Path exclusions in middleware (health, metrics) must use exact prefix matching, not contains

When adding a new microservice:

  1. Add JWT Bearer authentication (AddAuthentication + AddJwtBearer) in Program.cs
  2. Add the appropriate API key middleware if applicable
  3. Call UseAuthentication() and UseAuthorization() in the pipeline
  4. Add .RequireAuthorization() to endpoint groups or individual endpoints

JWT / OIDC Configuration

  • Always validate: issuer, audience, lifetime, and signing key (ValidateIssuer, ValidateAudience, ValidateLifetime, ValidateIssuerSigningKey)
  • ClockSkew maximum: 5 minutes
  • RequireHttpsMetadata must be true in production -- only false for local dev
  • Never set ValidateAudience = false in new services

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 73 lines · 47 tokens per session scan A 936718800681

Subscribe to this mod's changes

backend-security is a skill published in the GitHub repository makigjuro/cloudstack-ai-plugins (1 stars, last pushed 29d ago), licensed MIT. It adds 47 tokens to every session and 780 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.

Related

backend-security compared with skills from other repositories

backend-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
backend-securitymakigjuro/cloudstack-ai-pluginsSkill129d agoMITA47Claude Code
rider-searchJSungMin/rider-mcp-enforcerSkill41mo agoMITA60Claude Code
generate-code-csAzure/azure-sdk-for-netSkill6.1ktodayMITA26Claude Code, Codex
translate-a-sampleAzure/azure-sdk-for-netSkill6.1ktodayMITA90Claude Code, Codex
author-testAzure/azure-sdk-for-netSkill6.1ktodayMITA68Claude Code, Codex
azure-maps-search-dotnetmicrosoft/skillsSkill3.3ktodayMITA91Claude Code
azure-resource-manager-postgresql-dotnetmicrosoft/skillsSkill3.3ktodayMITA97Claude Code