Skip to content
Agentmart
Submit a tool
This entry duplicates security-review, which is the one we list in search.

security-review

Security review for full-stack applications (.NET 10 DDD/CQRS/ES back-end + Angular 22 front-end).

Skill by fmflurry

IndexedMIT★ 171
Write a review

Chalk Labs

Need help deploying security-review?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/fmflurry-security-review-848462

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Security review for full-stack applications (.NET 10 DDD/CQRS/ES back-end + Angular 22 front-end). Gate-driven checklist ensuring secrets, input validation, SQL injection prevention, tenant isolation, XSS protection, and dependency CVEs are enforced at build/CI time, not by manual review.

Use cases: frontend, backend, devops, security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
security-review
Description
Security review for full-stack applications (.NET 10 DDD/CQRS/ES back-end + Angular 22 front-end). Gate-driven checklist ensuring secrets, input validation, SQL injection prevention, tenant isolation, XSS protection, and dependency CVEs are enforced at build/CI time, not by manual review.
License
MIT
Instructions
482 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • cloud-infrastructure-security.md

SKILL.md (first lines)

# Security Review Skill

Gate-dominant security checklist for .NET 10 DDD/CQRS/ES back-end + Angular 22 front-end stack. Every clause is backed by an executable gate (build-blocking rule, CI scan, or unit test) or explicitly marked as manual-review-only.

## When to Activate

- Implementing authentication or authorization in back-end commands/queries
- Adding command/query handlers with user input
- Creating database projections or aggregates handling sensitive data
- Implementing Angular components or services with form inputs
- Adding third-party NuGet or npm dependencies
- Writing new domain value objects with invariants

---

## Part A: .NET 10 Back-End Security

### 1. Secrets Management

**Gate**: `gitleaks` pre-commit + full-history CI scan  
**Status**: `GATE TO WIRE`

**Rule**: No API keys, connection strings, passwords, or tokens hardcoded in source. All secrets must be read via `IConfiguration` (appsettings.json / environment variables), user-secrets (dev), or Azure KeyVault (prod).

```csharp
// ❌ WRONG
private const string ApiKey = "sk-proj-xxxxx";
private const string DbPassword = "password123";

// ✅ CORRECT
private readonly IConfiguration _config;

public MyService(IConfiguration config) => _config = config;

var apiKey = _config["External:ApiKey"]
  ?? throw new InvalidOperationException("External:ApiKey not configured");
```

**Verification**: Before committing, run `gitleaks detect --verbose` on staged files. CI must run full-history scan on every PR.

---

### 2. Input Validation at Command Boundary

**Gate**: FluentValidation + domain value-object invariants + unit/property tests  
**Status**: `GATE TO ADD` (property-based tests via CsCheck)

**Rule**: All command inputs validated synchronously at the handler boundary via FluentValidation validators. Domain value objects enforce invariants via constructor throws. Property-based tests (CsCheck) confirm validators reject invalid inputs.

```csharp
// FluentValidation at command boundary
public class CreateUserCommandValidator : AbstractValidator<CreateUserCommand>
{
    public CreateUserCommandValidator()
    {
        RuleFor(x => x.Email)
            .NotEmpty()
            .EmailAddress()
            .WithErrorCode("INVALID_EMAIL");

        RuleFor(x => x.Age)
            .InclusiveBetween(0, 150)
            .WithErrorCode("INVALID_AGE");
    }
}

// Domain invariant (value object constructor)
public class Email
{
    public string Value { get; }

    public Email(string value)
    {
        if (string.IsNullOrWhiteSpace(value) || !value.Contains("@"))
            throw new ArgumentException("Invalid email format", nameof(value));
        Value = value;
    }
}
```

**Verification**: Unit tests confirm validator rejects each invalid case; property-based tests (CsCheck) generate random invalid inputs and confirm rejection.

---

### 3. SQL Injection Prevention

**Gate**: Roslyn CA2100 (build-blocking) + SAST rule for interpolated `*SqlRaw` calls  
**Status**: `GATE TO WIRE` (Roslyn CA2100 enabled; SAST rule for raw SQL patterns)

**Rule**: EF Core parameterizes by default. **Forbidden**: `FromSqlRaw()` and `ExecuteSqlRaw()` with string interpolation or concatenation. Use only `FromSqlInterpolated()` or parameterized `*Async` with explicit parameter arrays.

```csharp
// ❌ DANGEROUS
var query = $"SELECT * FROM users WHERE email = '{userEmail}'";
context.Users.FromSqlRaw(query).ToList();

// ✅ CORRECT
var results = context.Users
    .FromSqlInterpolated($"SELECT * FROM users WHERE email = {userEmail}")
    .ToList();

// ✅ ALSO CORRECT (explicit parameters)
var results = await context.Users
    .FromSqlAsync(
        "SELECT * FROM users WHERE email = @email",
        new SqlParameter("@email", userEmail)
    )
    .ToListAsync();
```

**Verification**: Build fails if CA2100 triggered. SAST scan flags interpolated `*SqlRaw` calls.

---

### 4. Tenant Isolation & Row-Level Security (RLS)

**Gate**: `DbConnectionInterceptor` + `FORCE ROW LEVEL SECURITY` + RLS coverage test  
**Status**: `GATE TO ADD` (coverage test; choke point exists in `backend/src/GcPlatform.Api/Infrastructure/Persistence/TenantSessionInterceptor.cs`)

From fmflurry/settings-opencode, MIT.

More from fmflurry/settings-opencode

Signals

Stars
171
Forks
9
Open issues
0
Last commit (this folder)
Oct 18, 2026 (18 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from fmflurry

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get security-review running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying security-review?

CallGet help
Cite this page

security-review skill. Agent Mart. https://agentmart.dev/skills/fmflurry-security-review-848462 (last updated 2026-10-24)