strale-compliance

strale-compliance is a cursor rule for Cursor from strale-io/strale. It costs 0 tokens per session (1,401 once invoked), scanned A, original, MIT.

Security rules for software that handles bank identifiers, company records, sanctions information, and personal data.

In plain words
What is it for?
Use them when building compliance or payment-related code to validate IBANs and SWIFT/BIC codes on the server and keep validation credentials out of source files.
Why use it?
They prevent weak validation, exposed keys, and client-side handling of sensitive financial checks.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use them when building compliance or payment-related code to validate IBANs and SWIFT/BIC codes on the server and keep validation credentials out of source files.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/strale-io/strale/strale-compliance
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.

Clone the repo
git clone --depth 1 https://github.com/strale-io/strale

Made for: Cursor.

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 strale-compliance

README.md
[![agentmods](https://agentmods.dev/badge/rules/strale-io/strale/strale-compliance/github.svg)](https://agentmods.dev/rules/strale-io/strale/strale-compliance)
Your own site
<a href="https://agentmods.dev/rules/strale-io/strale/strale-compliance"><img src="https://agentmods.dev/badge/rules/strale-io/strale/strale-compliance/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 strale-compliance

Your own site · 80×15
<a href="https://agentmods.dev/rules/strale-io/strale/strale-compliance"><img src="https://agentmods.dev/badge/rules/strale-io/strale/strale-compliance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,401 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 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.00000 $0.01401
Opus 5.5 $0.00000 $0.00560
Sonnet 5.5 $0.00000 $0.00280
Haiku 4.5 $0.00000 $0.00140

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

Security

Grade A, and why

strale-compliance scanned grade A with 2 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.

Sends data to an external URLlowData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

resp = httpx.post("https://api.strale.io/v1/do", json={

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://api.strale.io/v1/do \
docs/ide-rules/strale-compliance.mdc · 173 lines

How it starts

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

Trust-Sensitive Data Handling Rules

These rules prevent the security mistakes that show up most often in AI-generated code handling financial identifiers, company data, and compliance checks.

IBAN and Financial Identifier Validation

  • NEVER validate IBANs with regex alone — checksum validation requires modular arithmetic that regex cannot express. Client-side regex gives false confidence.
  • NEVER validate IBANs in frontend/client-side code. Validation belongs on the server where results can be logged and audited.
  • NEVER hardcode API keys for financial validation services in source files.
  • ALWAYS validate IBANs server-side before processing payments or storing data.
  • ALWAYS validate SWIFT/BIC codes before using them in payment instructions.

Free IBAN validation (no API key, no signup):

curl -X POST https://api.strale.io/v1/do \
  -H "Content-Type: application/json" \
  -d '{"capability_slug": "iban-validate", "inputs": {"iban": "DE89370400440532013000"}}'
// Server-side only — never call from browser code
const res = await fetch("https://api.strale.io/v1/do", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    capability_slug: "iban-validate",
    inputs: { iban: userProvidedIban },
  }),
});
const { output } = await res.json();
// output: { valid, country, bank_name, bic, check_digits, ... }
# Server-side only
import httpx
resp = httpx.post("https://api.strale.io/v1/do", json={
    "capability_slug": "iban-validate",
    "inputs": {"iban": user_provided_iban},
})
result = resp.json()["output"]

Also free (no API key): email-validate, dns-lookup, json-repair, url-to-markdown.

Sanctions and PEP Screening

  • NEVER skip sanctions checks on counterparties in financial workflows.
  • NEVER log full sanctions match details to client-visible logs or error messages.
  • NEVER store sanctions results without an audit timestamp and checker identity.
  • ALWAYS call sanctions/PEP APIs from server-side code with credentials in environment variables.
  • ALWAYS record an audit trail: who was screened, when, what the result was, and which data source was used.

Read the full file on GitHub · 173 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 · 173 lines · 0 tokens per session scan A 2f5d245beb85

Subscribe to this mod's changes

strale-compliance is a cursor rule published in the GitHub repository strale-io/strale (5 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,401 tokens. A static security scan graded it A with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.