Security Review of Backend Financial Systems

VerifiedSafe

Analyze the backend architecture and data persistence layer to identify security vulnerabilities in the handling of financial information.

Sby Skills Guide Bot
SecurityAdvanced
7/22/2026
Claude CodeCursorCodex
#security-audit#aspnet-core#fintech#authorization#entity-framework

Recommended for

Automated summary

This skill performs a targeted security audit of a C#/ASP.NET Core backend API that handles financial data, inspecting controllers, handlers and EF Core configurations.

Strengths

  • Targets concrete fintech-relevant vectors: encryption at rest, BOLA, mass assignment and log leakage
  • Grounded in the actual stack (Auth0, EF Core query filters, PostgreSQL, Redis) instead of staying generic
  • Enforces a tabular report format with priority and recommendation, plus a dated and counter-suffixed file naming convention
  • Flags commonly missed issues such as bypassing query filters via IgnoreQueryFilters() or enforcing decimal precision at the domain level

Limitations

  • Restricted to the described .NET/EF Core stack; not usable as-is for other languages or ORMs
  • Pattern-driven static review only, with no execution, dynamic testing or dependency scanning
  • Does not cover frontend, mobile or network infrastructure beyond the application layer
When to use it

Use it when auditing the application and persistence layer of a financial ASP.NET Core API before release or during a recurring security review.

When not to use it

Avoid it if the project does not use C#/ASP.NET Core with EF Core and Auth0, or if the goal is dynamic penetration testing rather than a code review.

Security analysis

Safe
Quality score86/100

The skill is a static code-review checklist for an ASP.NET Core financial backend. It only asks the agent to read source files and produce a Markdown audit report; there are no shell pipelines, network calls, credential handling, obfuscated payloads, or destructive commands. The only side effect is creating a dated Markdown file inside the repo, which is low risk and clearly described.

Findings
  • •No allowed-tools declared, so the host agent decides tool scope; the skill implicitly needs file-read and file-write access to create the audit report.
  • •Instructs writing a report into the repository (docs/security-audits/...), a benign but filesystem-mutating action.
How this analysis is made

Examples

General backend audit
Run a security review of the backend and save the audit report.
Authentication scope
Audit how the Auth0 user_id/sub claim isolates financial records across controllers and handlers, then write the report under docs/security-audits.
Persistence scope
Review EF Core configurations and DbContext query filters for missing encryption of balance and amount columns, and check for IgnoreQueryFilters bypasses.

name: security-review-backend description: Analyze the backend architecture and data persistence layer to identify security vulnerabilities in the handling of financial information.

Stack Context

  • Language / Framework: C# / ASP.NET Core Web API
  • ORM: Entity Framework Core with global query filters for ownership isolation
  • Authentication: Auth0 JWT — user_id / sub claim is the identity anchor
  • Infrastructure: PostgreSQL, Redis, Docker

Where to Look

Focus your search on these file patterns:

  • *Controller.cs — authorization enforcement, model binding, input validation
  • *Handler.cs / *Service.cs — business logic, data access, ownership filters
  • *Configuration.cs / *EntityTypeConfiguration.cs — EF column mappings (field types, encryption)
  • *DbContext.cs — global query filters, ownership constraints
  • appsettings*.json, Program.cs — middleware pipeline, logging sinks, secret handling

Analysis Guidelines

Encryption at Rest

  • Identify numeric or text fields representing monetary values (e.g. balance, amount, salary) and verify they are not stored in plain text in the database.
  • Detect missing symmetric encryption (e.g. AES-256) for sensitive financial columns in EF configurations.

Identity Isolation (Auth0 Integration)

  • Verify that the user_id / sub from the Auth0 token is the sole link to financial records.
  • Ensure no tables directly associate personally identifiable data with balances without an abstraction layer.
  • Check that global EF query filters enforce ownership and cannot be bypassed (e.g. via IgnoreQueryFilters()).

Object-Level Authorization (BOLA)

  • Audit controllers and handlers to confirm every query filters strictly by the authenticated user's ID.
  • Flag any endpoint that accepts a user or resource ID from the request body or URL without re-validating ownership against the token claim.

Mass Assignment

  • Detect model binding that accepts raw domain entities or overly permissive DTOs, allowing callers to set fields like UserId, Balance, or Role directly.

Log and Exception Leakage

  • Verify that error-handling and logging routines do not capture or serialize objects containing financial amounts to server logs.
  • Check that exception middleware does not return stack traces or internal model data to API consumers.

Rate Limiting

  • Flag financial write endpoints (transfers, payments, balance updates) that lack rate limiting or idempotency controls.

Integrity Validation

  • Detect missing business-logic validations (e.g. allowing negative amounts where not permitted, or numeric overflow in financial calculations).
  • Check that decimal precision is enforced at the domain level, not only at the database column level.

Output Instructions

For each risk found, report:

| Field | Detail | |---|---| | File | Path to the affected file | | Line | Line number(s) | | Description | Technical description of the vulnerability | | Priority | Critical / High / Medium | | Recommendation | Suggested fix or mitigation |

Report File

Save the report as a Markdown file under:

docs/security-audits/security-audit-{scope}-YYYY-MM-DD.md
  • Use today's date in the filename.
  • {scope} identifies what was reviewed. Use backend for a general review or a more specific segment when the review is scoped (e.g. backend-authentication, backend-persistence, backend-application-commands, backend-application-queries, backend-domain).
  • If a file for today with the same scope already exists, append a counter (e.g. -2).

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/security-review-of-backend-financial-systems-mrwakeiv/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/security-review-of-backend-financial-systems-mrwakeiv/download' --output '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv/SKILL.md.part' && mv '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv/SKILL.md.part' '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv/SKILL.md' && test -s '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/security-review-backend' && cp -R '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv' '.claude/skills/security-review-backend'

Cursor
test -f '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv/SKILL.md' && test -s '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/security-review-backend' && cp -R '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv' '.cursor/skills/security-review-backend'

Codex
test -f '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv/SKILL.md' && test -s '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/security-review-backend' && cp -R '.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv' '.agents/skills/security-review-backend'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/security-review-of-backend-financial-systems-mrwakeiv'

openskills read 'security-review-of-backend-financial-systems-mrwakeiv'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/security-review-of-backend-financial-systems-mrwakeiv/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills