security-compliance

security-compliance is a cursor rule for Cursor from Project-VIC-International/Agentic-AI-Development-Course. It costs 3,538 tokens per session, scanned A, original, Apache-2.0.

A security rule requiring code that handles authentication, encryption, evidence, logs, or networks to follow NIST SP 800-53 and the FBI CJIS Security Policy. NIST SP 800-53 is a US government security-control framework, and CJIS is the FBI policy for protecting criminal-justice information.

In plain words
What is it for?
Use it when implementing or changing security-sensitive parts of a forensic or criminal-justice application, while adapting the controls for other countries.
Why use it?
It provides required security checks for sensitive law-enforcement data and helps prevent deployment or legal problems caused by missing controls.

Cursor rule for Cursor

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

Good fit Use it when implementing or changing security-sensitive parts of a forensic or criminal-justice application, while adapting the controls for other countries.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/project-vic-international/agentic-ai-development-course/security-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/Project-VIC-International/Agentic-AI-Development-Course

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/project-vic-international/agentic-ai-development-course/security-compliance.svg)](https://agentmods.dev/rules/project-vic-international/agentic-ai-development-course/security-compliance)
Your own site
<a href="https://agentmods.dev/rules/project-vic-international/agentic-ai-development-course/security-compliance"><img src="https://agentmods.dev/badge/rules/project-vic-international/agentic-ai-development-course/security-compliance.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,538 This file is loaded in full into every session.
When invoked 3,538 The same file — it is already loaded in full.
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.03538 $0.03538
Opus 5 $0.01769 $0.01769
Sonnet 5 $0.00708 $0.00708
Haiku 4.5 $0.00354 $0.00354

Measured 8d ago against content hash 9e1e0e31c66f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

security-compliance 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 8d 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.

part-2-lab/exercises/03-spec-driven-dev/example-cursor-rules/security-compliance.mdc · 182 lines

How it starts

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

Security Compliance: NIST SP 800-53 Rev. 5 and FBI CJIS Security Policy

This project processes Criminal Justice Information (CJI) and law-enforcement-sensitive evidence — potentially including CSAM in ICAC casework. All code MUST comply with NIST SP 800-53 Rev. 5 and the FBI CJIS Security Policy (currently v5.9.x). Non-compliance is not a bug — it is a deployment blocker, and in many jurisdictions a legal liability for the agency operating the tool.

The constitution's "Security and Privacy" section is the high-level statement. This rule is the enforceable detail the agent applies when writing code.

The full mappings should live in your repo at docs/security/nist-800-53-mapping.md and docs/security/cjis-compliance-mapping.md. Update them every time a new feature touches a control family.

These are the normal security control frameworks used within the United States of America. You may need to adjust this to your country or regional security control frameworks. Many security control frameworks have overlaps but they are not the same. If you want to run your software in many countries you may need to apply various security framework profiles to your application.

Reference Documents

Applicable Control Families

When implementing any feature that touches the areas below, map your implementation to the specific controls and document the mapping in the spec's "Security Controls" section (per the speckit-workflow rule).

Access Control (AC)

  • AC-2 — Account management: All multi-user mode users have individual accounts; no shared credentials. Agency identity systems map 1:1 to investigators / examiners. Never ship a default admin/admin account.
  • AC-3 — Access enforcement: Implement Role-Based Access Control (RBAC). Every API endpoint and MCP tool that mutates state MUST check the user's permission, not just their authentication.
  • AC-6 — Least privilege: Each component runs with the minimum permissions it needs. Plugin sandboxing for any third-party / dynamically-loaded code MUST drop privileges before executing untrusted code. Container deployments run as non-root.
  • AC-7 — Unsuccessful login attempts: Lock accounts after a configurable threshold of failed authentications. CJIS requires a maximum of 5 consecutive failures. Lockout state is persisted and auditable.
  • AC-8 — System use notification: GUI and API surfaces MUST display a configurable legal banner before login. The banner text is set per deployment by the operating agency.
  • AC-11 — Session lock: Auto-lock after 30 minutes of inactivity (CJIS). API / MCP sessions enforce token expiry.
  • AC-17 — Remote access: All remote connections (REST API, MCP over network transports, multi-user database connections) MUST use TLS 1.2 or higher.

Read the full file on GitHub · 182 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. 8d ago First seen · 182 lines · 3,538 tokens per session scan A 9e1e0e31c66f

Subscribe to this mod's changes

security-compliance is a cursor rule published in the GitHub repository Project-VIC-International/Agentic-AI-Development-Course (5 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 3,538 tokens to every session, about $0.0177 per session on Opus 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-08-31.