
Security News
Open VSX Unblocks Extension IDs Used in Malware Campaign
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.
regula-ai
Advanced tools
AI governance risk indication for code — EU AI Act, South Korea, Colorado. Multi-jurisdiction compliance at the point of creation
AI governance risk indication for code — EU AI Act, South Korea AI Basic Act, Colorado SB 26-189. Combines code scanning with governance questionnaires.
If you ship an AI product to EU users, the EU AI Act applies to you -- regardless of where you are based or how small your team is. Regula combines code scanning with governance questionnaires: it scans your codebase for risk indicators, classifies your system into one of the Act's four risk tiers, and tells you which obligations apply. Multi-jurisdiction support covers the EU AI Act, South Korea's AI Basic Act (Act No. 20676), and Colorado SB 26-189 -- pattern-based risk indication across 3 jurisdictions, each with its own YAML config and tailored questionnaire. For the obligations code can't verify (risk management systems, quality management, fundamental rights impact assessments), it provides structured self-assessment questionnaires. It runs in your terminal, in CI/CD, or as a pre-commit hook. No external dependencies, no API calls, no data leaves your machine. Unlike cloud-based scanners, Regula makes zero network calls during scanning — no DPA required, no vendor data breach risk, no GDPR processor relationship.
pipx install regula-ai # or: pip install regula-ai / uv pip install regula-ai
Not sure if the AI Act applies? No code needed:
regula assess # 5 yes/no questions → your risk tier
Want to scan your code?
regula check . # 419 patterns, 8 languages, 30 seconds
regula check . --jurisdictions eu,korea,colorado # all 3 jurisdictions
Need documentation for auditors?
regula evidence-pack --project . # Annex IV docs + evidence pack
regula conform --sign --timestamp # signed + timestamped (requires regula[signing])
Just want to see it work? (requires the cloned repo — examples/ is not bundled in the pip package)
git clone https://github.com/kuzivaai/getregula && cd getregula
regula demo # scan a bundled example project
The recommended install is pipx — it isolates Regula from your system Python and avoids the externally-managed-environment error on Ubuntu 22.04+, Debian 12+, Fedora, Arch, and Homebrew Python.
If you don't have pipx yet, install it first (one-time):
| Platform | Install pipx |
|---|---|
| macOS | brew install pipx && pipx ensurepath |
| Debian / Ubuntu | sudo apt install pipx && pipx ensurepath |
| Fedora | sudo dnf install pipx && pipx ensurepath |
| Arch | sudo pacman -S python-pipx && pipx ensurepath |
| Windows | python -m pip install --user pipx && python -m pipx ensurepath |
Already using uv? uvx --from regula-ai regula runs it with no install step (the --from flag is required because the PyPI package name regula-ai differs from the CLI name regula). Or install it permanently with uv tool install regula-ai.
Running inside a venv or conda env? pip install regula-ai works fine there — the PEP 668 restriction only applies to system Python.
See docs/installation.md for troubleshooting (externally-managed-environment, command not found: regula after install, PATH setup per shell).
regula check examples/cv-screening-app --scope all
The --scope all flag is needed because Regula's default scope (production) skips example directories. This fixture intentionally triggers an Annex III Category 4 (Employment) high-risk classification.
See examples/ for runnable reference projects covering each EU AI Act risk tier, or walk through the full 10-minute evaluation journey in examples/cv-screening-app/ — install, scan, plan, gap, conform, verify, handoff to red-team tooling.
For a deeper first-time-user walk-through (policy tuning, CI integration, baselining) see docs/QUICKSTART.md. The full documentation is indexed by type (tutorials / how-to / reference / explanation) in docs/README.md.
# .github/workflows/regula.yaml
name: AI Governance Check
on: [push, pull_request]
jobs:
regula:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: kuzivaai/getregula@v1
with:
path: '.'
upload-sarif: 'true'
fail-on-prohibited: 'true'
The EU AI Act defines four risk tiers. Regula maps code patterns to each:
| Tier | Action | What it means |
|---|---|---|
| Prohibited (Article 5) | Block | Social scoring, subliminal manipulation, real-time biometric ID, emotion detection in workplaces. Regula blocks these patterns and explains the specific prohibition. |
| High-risk (Annex III) | Warn + requirements | CV screening, credit scoring, healthcare services, biometrics, education assessment. Regula lists the Articles 9-15 obligations that apply if the system is confirmed high-risk. |
| Limited-risk (Article 50) | Transparency note | Chatbots, deepfakes, emotion recognition. Regula flags the transparency disclosure required. |
| Minimal-risk | Log only | Spam filters, recommendations, code completion. Logged for awareness, no action required. |
Every finding includes the relevant Article reference and explains when exceptions may apply. Regula flags patterns -- it does not make legal determinations.
Multi-jurisdiction support. Beyond the EU AI Act, Regula maps risk patterns to South Korea's AI Basic Act (Act No. 20676, in force 22 January 2026) and Colorado SB 26-189 (disclosure-focused, plus consumer correction and human-review rights, duties from 1 January 2027). Use --jurisdictions eu,korea,colorado on regula check or --jurisdiction korea on regula assess to apply the relevant framework. Each jurisdiction has its own YAML config (references/jurisdictions/) and tailored web questionnaire.
Developer guides on getregula.com: Python | JavaScript | Healthcare | Recruitment | Article 5 | Article 9 | Article 14 | Article 50
| Command | What it does |
|---|---|
regula | Scan current directory, show compliance score and next steps |
regula check . | Detailed risk scan with per-file findings |
regula comply | EU AI Act obligation checklist with completion status |
regula gap --project . | Compliance gap assessment against Articles 9-15 |
regula plan --project . | Prioritised remediation plan based on gap results |
regula fix --project . | Generate compliance fix scaffolds for findings |
regula evidence-pack --project . | Auditor-ready evidence package |
regula conform --project . | Article 43 conformity assessment evidence pack |
regula dpv --project . | Export the risk indication as DPV-AIAct JSON-LD (aligned to the DPVCG EU-AIAct vocabulary) for RDF/GRC tooling |
regula check --ci . | CI mode -- exit code 1 on any WARN or BLOCK finding, SARIF output |
regula assess | Interactive applicability check -- does the EU AI Act apply to you? |
regula demo | Scan a bundled example project -- zero-commitment trial |
regula api-server | Start the REST API (localhost:8487) with web dashboard |
regula conform --organisational | Governance self-assessment for Articles 9/17/27/72 |
regula questionnaire | Context-driven risk assessment questionnaire (also via REST API) |
regula exempt | Article 6(3) high-risk exemption decision tree |
regula oversight . | Article 14 human oversight analysis (cross-file flow tracing) |
regula guardrails . | Article 15 guardrail implementation coverage detection |
regula owasp-agentic | OWASP Top 10 for Agentic Applications assessment |
regula monitor | Runtime monitoring for AI applications (Article 12) |
regula gdpr | GDPR dual-compliance scan (14 patterns, 4 AI Act/GDPR hotspots) |
regula bias | CrowS-Pairs bias evaluation (1,508 sentence pairs) with optional BBQ benchmark. Aligned with Digital Omnibus bias-testing safeguards (Article 4a, COM(2025)836). |
regula mcp-server | MCP server (JSON-RPC stdio) exposing three tools — regula_check, regula_classify, regula_gap — for Claude Code, Cursor, and other MCP clients |
regula install <platform> | Set up pre-commit hooks, git hooks, or Claude Code/Copilot/Windsurf integration |
Regula has 62 commands in total. Run regula --help-all for the full list, or see docs/cli-reference.md.
For GRC integration or non-terminal users:
python3 scripts/api_server.py --port 8487
# Open http://localhost:8487/v1/dashboard
Seven endpoints: /health, /v1/check, /v1/classify, /v1/gap, /v1/questionnaire, /v1/questionnaire/evaluate, /v1/dashboard. All return the same JSON envelope as the CLI. No auth -- run behind a reverse proxy for remote access.
engagement: policy section or --client/--prepared-by/--engagement-ref flags. See the consultant guide for the full engagement workflow.Regula is:
Regula is not:
regula bias runs benchmark probes against a local model as a starting point, but does not replace runtime fairness monitoring)Regula helps development teams understand their EU AI Act exposure early. It does not replace the organisational, procedural, and legal work required for full compliance. For a detailed account of what falls outside Regula's scope, see docs/what-regula-does-not-do.md, and for Regula's own model card (intended use, training data, evaluation, known failure modes) see docs/MODEL_CARD.md.
regula bias runs two social-bias benchmarks against a locally-hosted
language model (Ollama, llama3.2/mistral/qwen variants supported)
as evidence for EU AI Act Article 10 data-governance documentation.
| Benchmark | Paper | Method | What it measures |
|---|---|---|---|
| CrowS-Pairs | Nangia et al., 2020 | Log-probability difference between stereotypical and anti-stereotypical sentence pairs | Intrinsic bias in masked/causal LM output |
| BBQ | Parrish et al., 2022 | Question-answering on ambiguous-context prompts | Bias surfacing in downstream QA behaviour |
Both include Wilson confidence intervals for small-sample reliability and
bootstrap CIs for distribution estimates. Full methodology lives in
scripts/bias_eval.py and
docs/benchmarks/PRECISION_RECALL_2026_04.md.
Ethics statement. CrowS-Pairs and BBQ stereotype pairs are used
solely for scientific evaluation of model behaviour under controlled
conditions. Regula does not display individual stereotype pairs in
terminal output or reports — only aggregated scores, confidence
intervals, and benchmark-level verdicts. The pairs are distributed under
the dataset's own licence (CC BY-SA 4.0 for CrowS-Pairs) and are not
redistributed or modified by Regula. Opinions encoded in the stereotype
pairs do not reflect the views of the maintainer, Regula contributors,
or any user running the tool; their presence is instrumental, not
endorsing. regula bias is a development-time starting point for bias
documentation, not a production fairness monitor — see "What Regula is
(and isn't)" above.
Regula performs pattern-based risk indication, not legal risk classification.
ai_security (85%), agent_autonomy (83%), limited_risk (88%), minimal_risk (100%). The high_risk tier (33%, N=6) is statistically unmeasurable at this sample size. Full methodology, corpus selection, and reproduction steps: benchmarks/README.md.| What | Count |
|---|---|
| CLI commands | 62 |
| Risk detection patterns (regexes) | 419 |
| Language families scanned | 8 (Python, JS, TS, Java, Go, Rust, C/C++, Jupyter) |
| Compliance frameworks mapped | 13 |
| Tests (pytest --collect-only, all passing) | 2,821 |
| Required production dependencies | 0 |
For buyer-facing trust evidence (every number above paired with a reproducible command, plus precision/recall benchmark, security posture, and audit trail), see docs/TRUST.md. What version numbers promise, the public API they cover, and the deprecation policy: docs/VERSIONING.md.
Regula runs entirely on your machine. No code, findings, or metadata are transmitted to any external service. There is no account system, no API key, no telemetry by default (crash reporting requires both regula telemetry enable and an endpoint you configure yourself via REGULA_SENTRY_DSN; published builds ship none, and DO_NOT_TRACK suppresses it regardless). The tool reads your source files, analyses them locally, and writes output to your local filesystem. Network access is only used when you explicitly request it (RFC 3161 timestamps via --timestamp). See SECURITY.md for the full security posture.
Bug reports and pull requests are welcome.
pytest tests/ -q before opening a PR.scripts/risk_patterns.py. Each pattern should have a corresponding test.CONTRIBUTING.md for the full contributor guide and CHANGELOG.md for version history.Regula is maintained by Kuziva Muzondo (solo). Commits include a Co-Authored-By: Claude Opus 4.6 trailer where the work was paired with Anthropic's Claude. This is standard pair-programming attribution — the maintainer is accountable for every merged change, and every commit was reviewed and reasoned about by a human before landing. Said plainly so you know how the sausage is made.
Engine and CLI: Apache License 2.0 OR European Union Public Licence v. 1.2 — at your option. Pick the one that fits your context:
You may choose either licence for any use. You do not need to state which one you picked, but attribution (keep the copyright notice and NOTICE file) is required under both.
Risk patterns and regulatory data: Detection Rule License (DRL) 1.1. You may use, modify, and redistribute the patterns freely. Attribution is required if you redistribute the patterns or use them in a product. If your tool generates match output from these patterns, the output must credit the source.
The SPDX expression for the full package is (Apache-2.0 OR EUPL-1.2) AND LicenseRef-DRL-1.1.
FAQs
AI governance risk indication for code — EU AI Act, South Korea, Colorado. Multi-jurisdiction compliance at the point of creation
The pypi package regula-ai receives a total of 45 weekly downloads. As such, regula-ai popularity was classified as not popular.
We found that regula-ai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.