Metadata-Version: 2.5
Name: ai-sec-gate
Version: 0.9.0
Summary: Zero-dependency security posture verifier, semantic crypto/auth analyzer, behavioral KDF test helpers, and active hook prover.
Project-URL: Homepage, https://github.com/rctruta/ai-sec-gate
Project-URL: Repository, https://github.com/rctruta/ai-sec-gate
Project-URL: Issues, https://github.com/rctruta/ai-sec-gate/issues
Project-URL: Changelog, https://github.com/rctruta/ai-sec-gate/releases
Author: Ramona C. Truta
License:                                  Apache License
                                   Version 2.0, January 2004
                                http://www.apache.org/licenses/
        
           TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
        
           1. Definitions.
        
              "License" shall mean the terms and conditions for use, reproduction,
              and distribution as defined by Sections 1 through 9 of this document.
        
              "Licensor" shall mean the copyright owner or entity authorized by
              the copyright owner that is granting the License.
        
              "Legal Entity" shall mean the union of the acting entity and all
              other entities that control, are controlled by, or are under common
              control with that entity. For the purposes of this definition,
              "control" means (i) the power, direct or indirect, to cause the
              direction or management of such entity, whether by contract or
              otherwise, or (ii) ownership of fifty percent (50%) or more of the
              outstanding shares, or (iii) beneficial ownership of such entity.
        
              "You" (or "Your") shall mean an individual or Legal Entity
              exercising permissions granted by this License.
        
              "Source" form shall mean the preferred form for making modifications,
              including but not limited to software source code, documentation
              source, and configuration files.
        
              "Object" form shall mean any form resulting from mechanical
              transformation or translation of a Source form, including but
              not limited to compiled object code, generated documentation,
              and conversions to other media types.
        
              "Work" shall mean the work of authorship, whether in Source or
              Object form, made available under the License, as indicated by a
              copyright notice that is included in or attached to the work
              (an example is provided in the Appendix below).
        
              "Derivative Works" shall mean any work, whether in Source or Object
              form, that is based on (or derived from) the Work and for which the
              editorial revisions, annotations, elaborations, or other modifications
              represent, as a whole, an original work of authorship. For the purposes
              of this License, Derivative Works shall not include works that remain
              separable from, or merely link (or bind by name) to the interfaces of,
              the Work and Derivative Works thereof.
        
              "Contribution" shall mean any work of authorship, including
              the original version of the Work and any modifications or additions
              to that Work or Derivative Works thereof, that is intentionally
              submitted to Licensor for inclusion in the Work by the copyright owner
              or by an individual or Legal Entity authorized to submit on behalf of
              the copyright owner. For the purposes of this definition, "submitted"
              means any form of electronic, verbal, or written communication sent
              to the Licensor or its representatives, including but not limited to
              communication on electronic mailing lists, source code control systems,
              and issue tracking systems that are managed by, or on behalf of, the
              Licensor for the purpose of discussing and improving the Work, but
              excluding communication that is conspicuously marked or otherwise
              designated in writing by the copyright owner as "Not a Contribution."
        
              "Contributor" shall mean Licensor and any individual or Legal Entity
              on behalf of whom a Contribution has been received by Licensor and
              subsequently incorporated within the Work.
        
           2. Grant of Copyright License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              copyright license to reproduce, prepare Derivative Works of,
              publicly display, publicly perform, sublicense, and distribute the
              Work and such Derivative Works in Source or Object form.
        
           3. Grant of Patent License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              (except as stated in this section) patent license to make, have made,
              use, offer to sell, sell, import, and otherwise transfer the Work,
              where such license applies only to those patent claims licensable
              by such Contributor that are necessarily infringed by their
              Contribution(s) alone or by combination of their Contribution(s)
              with the Work to which such Contribution(s) was submitted. If You
              institute patent litigation against any entity (including a
              cross-claim or counterclaim in a lawsuit) alleging that the Work
              or a Contribution incorporated within the Work constitutes direct
              or contributory patent infringement, then any patent licenses
              granted to You under this License for that Work shall terminate
              as of the date such litigation is filed.
        
           4. Redistribution. You may reproduce and distribute copies of the
              Work or Derivative Works thereof in any medium, with or without
              modifications, and in Source or Object form, provided that You
              meet the following conditions:
        
              (a) You must give any other recipients of the Work or
                  Derivative Works a copy of this License; and
        
              (b) You must cause any modified files to carry prominent notices
                  stating that You changed the files; and
        
              (c) You must retain, in the Source form of any Derivative Works
                  that You distribute, all copyright, patent, patent trademark, and
                  attribution notices from the Source form of the Work,
                  excluding those notices that do not pertain to any part of
                  the Work; and
        
              (d) If the Work includes a "NOTICE" file as part of its
                  distribution, then any Derivative Works that You distribute must
                  include a readable copy of the attribution notices contained
                  within such NOTICE file, excluding those notices that do not
                  pertain to any part of the Work, in at least one of the
                  following places: within a NOTICE file distributed as part of
                  the Derivative Works; within the Source form or documentation,
                  if provided along with the Derivative Works; or, within a
                  display generated by the Derivative Works, if and wherever such
                  third-party notices normally appear. The contents of the NOTICE
                  file are for informational purposes only and do not modify the
                  License. You may add Your own NOTICE text within Derivative
                  Works that You distribute, alongside or as an addendum to the
                  NOTICE file from the Work, provided that such additional
                  NOTICE text cannot be construed as modifying the License.
        
              You may add Your own copyright notice to Your modifications and
              may provide additional or different license terms and conditions
              for use, reproduction, or distribution of Your modifications, or
              for any such Derivative Works as a whole, provided that Your use,
              reproduction, and distribution of the Work otherwise complies with
              the conditions stated in this License.
        
           5. Submission of Contributions. Unless You explicitly state otherwise,
              any Contribution intentionally submitted for inclusion in the Work
              by You to the Licensor shall be under the terms and conditions of
              this License, without any additional terms or conditions.
              Notwithstanding the above, nothing herein shall supersede or modify
              the terms of any separate license agreement that You may have
              executed with Licensor regarding such Contributions.
        
           6. Trademarks. This License does not grant permission to use the trade
              names, trademarks, service marks, or product names of the Licensor,
              except as required for reasonable and fair use in describing the
              origin of the Work and reproducing the content of the License.
        
           7. Disclaimer of Warranty. Unless required by applicable law or
              agreed to in writing, Licensor provides the Work (and each
              Contribution) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
              OF ANY KIND, either express or implied. You are solely responsible for
              determining the appropriateness of using or redistributing the Work
              and assume any risks associated with Your use of permissions under
              this License.
        
           8. Limitation of Liability. In no event and under no legal theory,
              whether in tort (including negligence), contract, or otherwise,
              unless required by applicable law (such as deliberate and grossly
              negligent acts) or agreed to in writing, shall any Contributor be
              liable to You for any damages, including any direct, indirect,
              special, incidental, or consequential damages of any character arising
              as of this License or out of the use or inability to use the Work
              (including but not limited to damages for loss of goodwill, work
              stoppage, computer failure or malfunction, or any and all other
              commercial damages or losses), even if such Contributor has been
              advised of the possibility of such damages.
        
           9. Accepting Warranty or Additional Liability. While redistributing
              the Work or Derivative Works thereof, You may knowingly accept
              support, warranty, indemnity, or other liability obligations and/or
              rights consistent with this License. However, in accepting such
              obligations, You may act only on Your own behalf and on Your own
              responsibility, and not on behalf of any other Contributor, and only
              if You agree to indemnify, defend, and hold Licensor harmless for
              any liability incurred by, or reason of, any liability claimed by
              reason of such Contributor, if any.
        
           END OF TERMS AND CONDITIONS
        
           APPENDIX: How to apply the Apache License to your work.
        
              To apply the Apache License to your work, attach the following
              boilerplate notice, with the fields enclosed by brackets "[]"
              replaced with your own identifying information. (Don't include
              brackets!)  The text should be enclosed in the following
              brackets:
        
           Copyright 2026 Ramona C. Truta
        
           Licensed under the Apache License, Version 2.0 (the "License");
           you may not use this file except in compliance with the License.
           You may obtain a copy of the License at
        
               http://www.apache.org/licenses/LICENSE-2.0
        
           Unless required by applicable law or agreed to in writing, software
           distributed under the License is distributed on an "AS IS" BASIS,
           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
           See the License for the specific language governing permissions and
           limitations under the License.
License-File: LICENSE
Keywords: ai-agents,ast,cryptography,kdf,pre-commit,sast,security
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Security
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# ai-sec-gate

[![CI](https://github.com/rctruta/ai-sec-gate/actions/workflows/ci.yml/badge.svg)](https://github.com/rctruta/ai-sec-gate/actions/workflows/ci.yml)
[![Security Posture](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/rctruta/ai-sec-gate/badges/sec-posture.json)](https://github.com/rctruta/ai-sec-gate/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/ai-sec-gate?color=blue&cacheSeconds=300)](https://pypi.org/project/ai-sec-gate/)
[![GitHub Marketplace](https://img.shields.io/github/v/release/rctruta/ai-sec-gate?label=Marketplace&logo=githubactions&logoColor=white&color=2088FF)](https://github.com/marketplace/actions/ai-sec-gate)
[![Release](https://img.shields.io/github/v/tag/rctruta/ai-sec-gate?label=release&color=blue)](https://github.com/rctruta/ai-sec-gate/releases)
[![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-green.svg)](https://github.com/rctruta/ai-sec-gate/blob/main/LICENSE)
[![Docs: CC BY 4.0](https://img.shields.io/badge/Docs-CC_BY_4.0-8b5cf6.svg)](https://creativecommons.org/licenses/by/4.0/)

Zero-dependency security posture verifier, semantic crypto/auth analyzer, behavioral KDF test helper library, and active hook prover for repositories written with AI coding agents.

General-purpose linters (`ruff --select S`, Bandit, ESLint, Clippy) catch broken primitives like `md5` or `eval`, yet miss AI-era failure modes: invisible Unicode prompt-injection tags in `AGENTS.md` / `.cursorrules`, unpinned MCP server runners (`npx -y`), plain `sha256` on user passwords, catastrophic ReDoS regexes (`CWE-1333`), JWT/CORS verification bypasses, unpinned `trust_remote_code=True` model loads, `os.path.join` traversal traps, and undocumented Rust `unsafe` blocks. `ai-sec-gate` pairs semantic source and AI-surface checks across Python, JS/TS, and Rust with repository posture verification and isolated red-team hook probes.

## Quickstart (Run Anywhere with `uvx` — No Install Required)

```bash
# Scan the current repository or any local directory
uvx ai-sec-gate check .
uvx ai-sec-gate check /path/to/any-repo

# Scan any public Git repository directly (safe shallow clone, hooks disabled)
uvx ai-sec-gate check https://github.com/owner/repo
uvx ai-sec-gate check github:owner/repo@main

# Scan any PyPI package directly (safe sdist/wheel extraction, no code execution)
uvx ai-sec-gate check pypi:some-package
uvx ai-sec-gate check pypi:some-package==1.2.3

# Generate an owner-ready Markdown audit report (code snippets, crate/file hotspots, & copy-paste fixes)
uvx ai-sec-gate check https://github.com/owner/repo --report audit-report.md

# Explain any rule or posture check (CWE, OWASP mapping, real-world impact, & remediation)
uvx ai-sec-gate explain PY-CRYPTO-002
uvx ai-sec-gate explain --all
```

> Remote targets (`https://...`, `github:...`, `pypi:...`) are scanned statically in an isolated temporary directory with git hooks and symlinks disabled; `--prove` is refused on remote targets so untrusted repository hooks are never executed.

## The 4-Level Maturity Scale

| Level | Label | Meaning |
| --- | --- | --- |
| **1** | `LEVEL_1_BROKEN` | Invisible Unicode / Trojan Source backdoor, hardcoded MCP secret, broken crypto/JWT bypass, unpinned `trust_remote_code=True` / `torch.load` pickle RCE, unsafe `eval`/`Math.random()` token/TLS bypass, or leaked `.env`. |
| **2** | `LEVEL_2_NAIVE` | Fast-hash password trap (`sha256(password)`), ReDoS regex (`CWE-1333`), credentialed wildcard CORS, `os.path.join` traversal, unpinned MCP runner, timing-unsafe `==`, undocumented Rust `unsafe`, or missing SAST / secret scanning / SHA-pinned CI. |
| **3** | `LEVEL_3_HARDENED` | Clean semantic + SAST scan, salted slow KDFs (`scrypt`/`bcrypt`/`argon2`), secret scanning (`gitleaks`), and 40-char SHA-pinned GitHub Actions. |
| **4** | `LEVEL_4_VERIFIED` | All Level 3 controls **plus** CI dependency vulnerability auditing (`pip-audit` / `npm|pnpm|yarn audit` / `cargo audit`) and active red-team hook verification (`--prove`). |

> **Note on Level 3 vs. Level 4 locally:** Running `ai-sec-gate check .` executes fast static checks only, which cap at Level 3 (`LEVEL_3_HARDENED`). Pass `--prove` (`ai-sec-gate check . --prove`) to clone the repository into a temporary workspace, verify that `git commit` hooks actively block planted violations, and reach Level 4 (`LEVEL_4_VERIFIED`).

## Install & Integration (`pre-commit` & `uvx`)

### 1. Commit-time gate via `.pre-commit-config.yaml`

Pin `ai-sec-gate` to an immutable 40-char commit SHA (or release tag) alongside `ruff` and `gitleaks`:

```yaml
repos:
  - repo: https://github.com/rctruta/ai-sec-gate
    rev: v0.9.0  # or 40-char commit SHA
    hooks:
      - id: ai-sec-gate
        # Use args: [--min-level=2] for local-only repos without .github/workflows/ yet
        # (while CI enforces --prove --with-deps-audit --min-level 4).
```

### 2. GitHub Action & Code Scanning (SARIF v2.1.0)

Drop `ai-sec-gate` into any GitHub Actions workflow in one step, optionally uploading SARIF v2.1.0 findings directly to the GitHub **Security → Code scanning** tab:

```yaml
- name: Run ai-sec-gate
  uses: rctruta/ai-sec-gate@<40-char-commit-sha>
  with:
    min-level: "3"            # set to "4" with prove: "true" and with-deps-audit: "true"
    sarif-file: ai-sec-gate.sarif

- name: Upload SARIF to GitHub Code Scanning
  if: always()
  uses: github/codeql-action/upload-sarif@<40-char-commit-sha>
  with:
    sarif_file: ai-sec-gate.sarif
```

### 3. CI Level-4 verification & live Shields badge via `uvx`

```bash
# Run directly from PyPI and emit Shields.io badge JSON + SARIF v2.1.0
uvx ai-sec-gate check . --prove --with-deps-audit --min-level 4 \
  --badge /tmp/sec-posture.json --sarif /tmp/ai-sec-gate.sarif

# Or pin to an immutable git tag / 40-char commit SHA
uvx --from git+https://github.com/rctruta/ai-sec-gate@v0.9.0 ai-sec-gate check . --prove --with-deps-audit --min-level 4
```

### 4. Developing `ai-sec-gate` from Source

Run these commands inside a local clone of `ai-sec-gate` (outside this repo, use `uvx ai-sec-gate ...` or `uv tool install ai-sec-gate`):

```bash
uv sync

# Fast static evaluation (caps at Level 3; prints tip when ready for --prove)
uv run ai-sec-gate check .
uv run python3 -m ai_sec_gate check . --with-clippy

# Full Level 4 verification (runs isolated red-team hook probes + JSON or Shields output)
uv run ai-sec-gate check /path/to/repo --prove --min-level 4 --format json
uv run ai-sec-gate check /path/to/repo --prove --format shields

# Run only the isolated hook prover against a local repository
uv run ai-sec-gate prove /path/to/repo
```

## Continuous Posture, Live Badges, & Honest Scope Boundaries

A static badge pasted once into a README creates a false sense of security if posture later degrades. Production-grade enforcement for solo and multi-agent repositories relies on three operational habits:

1. **Scheduled CVE Drift Checks (`schedule: cron`)**: While branch protection prevents code and hook regressions between commits, locked third-party dependencies can drop from Level 4 to Level 2 overnight when a new CVE is disclosed. Pairing `pull_request` gates with a weekly GitHub Actions `schedule` trigger re-runs `--with-deps-audit` automatically against fresh advisory databases.
2. **Truth-Backed Endpoint Badges (`--badge FILE`)**: `--badge` writes a Shields.io Endpoint JSON payload (`Level 4 · verified` green down to `Level 1 · broken` red) *before* exiting non-zero. Publishing that JSON from `main` and scheduled CI runs (for example to an unprotected `badges` branch) ensures the README shield reflects live repository health and automatically downgrades when a scheduled audit fails.
3. **Defense-in-Depth Boundaries**:
   - *Covered by automated gates*: `.env` & secret hygiene (`gitleaks`), broken and context-naive crypto/auth primitives, Rust `// SAFETY:` invariants, lockfile & 40-char GitHub Action SHA pinning, ecosystem CVE audits, and active pre-commit hook verification.
   - *Outside static analysis (requires explicit setup & tests)*: Remote GitHub branch protection (`Require PR` + required status checks + `Include administrators`) must be enabled via GitHub repository settings or API, and application-specific authorization logic (such as cross-tenant IDOR boundaries) requires dedicated integration tests.

## Behavioral KDF & Verifier Test Helpers (`ai_sec_gate.testing`)

Verify in `pytest` that password KDFs apply fresh per-call random salts (catching deterministic `sha256` or static-salt bugs), CSPRNG token generators have high entropy, and constant-time verifiers safely reject mutated or mismatched-length inputs:

```python
import hashlib
import hmac
import os
import secrets
from ai_sec_gate.testing import (
    assert_constant_time_verifier,
    assert_salted_kdf,
    assert_token_entropy,
)

def hash_pw(pw: bytes) -> tuple[bytes, bytes]:
    salt = os.urandom(16)
    return salt, hashlib.scrypt(pw, salt=salt, n=2**14, r=8, p=1)

def verify_pw(pw: bytes, stored: tuple[bytes, bytes]) -> bool:
    salt, expected = stored
    candidate = hashlib.scrypt(pw, salt=salt, n=2**14, r=8, p=1)
    return hmac.compare_digest(expected, candidate)

assert_salted_kdf(hash_pw, verify_pw)
assert_token_entropy(lambda: secrets.token_urlsafe(24))
assert_constant_time_verifier(hmac.compare_digest, expected=b"mac-tag-bytes")
```

## Semantic Rules & Language Adapters

Declarative defaults live in `src/ai_sec_gate/rules.toml` and can be overridden per target repository under `[tool.ai_sec_gate]` in `pyproject.toml` or `.ai-sec-gate.toml`.

| Rule / Adapter | Language | What it checks |
| --- | --- | --- |
| `SEC-UNICODE-001` | AI Surface | Trojan Source bidi overrides (`CVE-2021-42574`), invisible Unicode tag smugglers (`U+E0000`..`U+E007F`), and zero-width characters in `AGENTS.md`, `CLAUDE.md`, `.cursorrules`, `SKILL.md`, and code. |
| `MCP-SUPPLY-001` / `MCP-SECRET-001` | AI Surface | Unpinned `npx`/`bunx`/`uvx`/`pipx` packages, non-HTTPS remote URLs, and hardcoded literal credentials in `.mcp.json` / `.cursor/mcp.json` / `.vscode/mcp.json`. |
| `PY-CRYPTO-001` | Python | Broken hash (`md4`, `md5`, `sha1`) used without `usedforsecurity=False`. |
| `PY-CRYPTO-002` | Python | Fast hash (`sha256`, `sha512`, `blake2b`, etc.) applied to password material instead of `scrypt` / `bcrypt` / `argon2`. |
| `PY-CRYPTO-003` | Python | Toy character-shift / XOR cipher (`caesar`, `rot13`, modular `ord()`) on secret or cipher functions. |
| `PY-AUTH-004` / `PY-AUTH-005` / `PY-CRED-001` | Python | Timing-unsafe `==` on digests/tokens, disabled JWT signature verification (`verify_signature=False` / `algorithms=['none']`), hardcoded secret fallbacks in `os.getenv`/`os.environ.get`, and positional literal credentials. |
| `PY-NET-001` / `PY-PATH-001` | Python | Credentialed wildcard CORS (`allow_origins=['*']` + `allow_credentials=True`) and unguarded `os.path.join()` on untrusted path inputs. |
| `PY-AI-001` / `PY-AI-002` | Python | Unpinned HuggingFace `trust_remote_code=True` (missing 40-char `revision` SHA) and `torch.load()` without `weights_only=True`. |
| `PY-DOS-001` | Python | Catastrophic ReDoS regex backtracking (`CWE-1333`: nested or overlapping unbounded quantifiers in `re.*`). |
| `RUFF-S*` / `PY-DEP-*` | Python | Delegates general SAST to `ruff check --select S` (skipped automatically when `ruff-check` + `S` is already in `pre-commit`) and `pip-audit` (`--with-deps-audit`). |
| `JS-SUPPLY-001` / `JS-DEP-*` | JS / TS | Verifies lockfile presence (`package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`, `bun.lock`) and runs `npm` / `pnpm` / `yarn` audit. |
| `JS-CRYPTO-001` / `JS-CRYPTO-002` | JS / TS | Catches broken hashes (`md5`/`sha1`) and fast hashes (`createHash('sha256')` / `subtle.digest`) applied to passwords. |
| `JS-RAND-001` / `JS-AUTH-004` / `JS-AUTH-005` / `JS-CRED-001` | JS / TS | Flags `Math.random()` on tokens/nonces, timing-unsafe `===` on digests, unverified `jwt.decode()` / `algorithms: ['none']`, and hardcoded secret fallbacks on `process.env.*`. |
| `JS-EXEC-001` / `JS-TLS-001` / `JS-NET-001` / `JS-DOS-001` | JS / TS | Flags `eval()`, `new Function()`, `shell: true`, `rejectUnauthorized: false`, credentialed wildcard/`origin: true` CORS, and ReDoS (`CWE-1333`). |
| `RS-SUPPLY-001` / `RS-DEP-*` | Rust | Checks workspace `Cargo.toml` manifests for `*` versions or unpinned `git` deps (missing `rev`) and integrates `cargo audit`. |
| `RS-UNSAFE-001` / `RS-CLIPPY-*` | Rust | Requires preceding `// SAFETY:` comments on production `unsafe` blocks and `unsafe impl`s and integrates `cargo clippy` (`--with-clippy`). |
| `RS-CRYPTO-001` / `RS-CRYPTO-002` / `RS-AUTH-004` / `RS-DOS-001` | Rust | Catches MD5/SHA-1 calls, fast SHA-2/BLAKE hashes on passwords, non-constant-time `==`, and ReDoS in backtracking `fancy_regex`/`pcre2` crates (exempting linear-time `regex::Regex`). |

## Repository Scaffolding

Seeded with `init-agent-project` from [ai-agent-utils](https://github.com/rctruta/ai-agent-utils), enforcing stdlib claim/hygiene gates (`.gates/`), `ruff` (`E9`, `F`, `B`, `S`), `gitleaks`, external `scratch/` symlink, and SHA-pinned CI.

```bash
uv run pytest
sh .gates/tests/prove_gates.sh
```

## License

Copyright 2026 Ramona C. Truta. Code is licensed under the [Apache License 2.0](https://github.com/rctruta/ai-sec-gate/blob/main/LICENSE). Documentation is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
