cybersecurity-implementation

Implements copy-paste security patterns for Azure, .NET 8, React, Blazor, Cosmos DB, PostgreSQL, and Databricks.

1|Updated Aug 10, 2026
One-click install
npx skills add https://github.com/TheViziusGroup/vibe-engineering-skills --skill cybersecurity-implementation-theviziusgroup
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cybersecurity-implementation
Source: https://github.com/TheViziusGroup/vibe-engineering-skills/tree/main/plugins/security-first-dev/skills/cybersecurity-implementation
Command: npx skills add https://github.com/TheViziusGroup/vibe-engineering-skills --skill cybersecurity-implementation-theviziusgroup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams building on Azure and .NET often ship insecure defaults: wrong Entra ID auth flows, misordered middleware, tokens in localStorage, missing BOLA checks, and secrets in config files. This Skill provides concrete, copy-paste security implementations across six domains so developers apply correct controls instead of reinventing them. ## Core Features & Use Cases - Identity and API Security: Entra ID app registrations, MSAL.js and Microsoft.Identity.Web setup, JWT validation, app roles, rate limiting, BOLA prevention via IAuthorizationHandler, and correct .NET 8 middleware ordering. - Frontend and Data Layer Security: DOMPurify sanitization, CSP headers, Blazor WASM constraints, PostgreSQL Row-Level Security tenant isolation, Cosmos DB hierarchical partition keys, and Databricks Unity Catalog masking. - AI Tool and Infrastructure Security: Claude Code managed-settings.json enterprise policy, PostToolUse Semgrep hooks, Key Vault Bicep with private endpoints, Defender for Cloud, and KQL detection queries. - Use Case: When adding authentication to a new React SPA calling a .NET 8 API, use this Skill to generate the correct Authorization Code + PKCE flow with MSAL.js sessionStorage caching and a matching Microsoft.Identity.Web API configuration. ## Quick Start Ask the AI to implement Entra ID authentication with MSAL.js for a React SPA calling a .NET 8 Web API secured with Microsoft.Identity.Web.

Frequently Asked Questions about cybersecurity-implementation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement Entra ID authentication in a .NET 8 Web API?▼

Use the Microsoft.Identity.Web NuGet package and call AddMicrosoftIdentityWebApi with an AzureAd configuration section containing Instance, TenantId, ClientId, and Audience. Never place client secrets in appsettings.json; use Managed Identities or Key Vault instead.

How do I prevent BOLA vulnerabilities in ASP.NET Core?▼

Implement an IAuthorizationHandler that compares the authenticated user's identity against the resource's owner identifier, such as a DocumentAuthorizationHandler checking AuthorId. Only call context.Succeed when ownership matches; implicit failure is the correct default.

Should I store JWT tokens in localStorage or sessionStorage in React?▼

Use sessionStorage, never localStorage, because any XSS vulnerability enables trivial token theft from localStorage. MSAL.js keeps tokens in memory by default, and sessionStorage provides per-tab isolation that auto-clears when the tab closes.

Does PostgreSQL Row-Level Security work for multi-tenant isolation?▼

Yes, enable RLS with FORCE ROW LEVEL SECURITY and create a policy comparing tenant_id to a session variable set per request from .NET middleware. RLS is deny-by-default, so enabling it without policies blocks all access; always index tenant_id columns.

Why does my .NET API authorization fail silently?▼

The most common cause is reversed middleware ordering: UseAuthentication must precede UseAuthorization, otherwise authentication silently fails and authorization passes for all requests. Also check that CORS origins omit trailing slashes, which cause silent comparison failures.

How do I stop Claude Code from reading secrets files?▼

Deploy an enterprise managed-settings.json with a permissions.deny list covering .env files, secrets directories, and cloud credential folders like ~/.aws and ~/.azure. Add a PostToolUse Semgrep hook in project settings to scan every edited file for secrets and OWASP issues.