Your agents are code. Find the weakness before it runs.

klyvra-sast is a static analyser for the AI paths in your application code: the prompts, the data flowing into and out of the model, the tools and permissions an agent holds, the MCP servers it connects to, the models and packages it loads, and the retrieval behind it. It runs on your own CI runner, makes no LLM call, uses no network during the scan, and produces an AI-SBOM with every run.

Static analysis. No model in the loop.

A red-team scan tells you what a deployed model will do when pushed. AI-SAST tells you where the code let it happen: the untrusted input that reached the system prompt, the model output that reached a shell, the MCP server nobody pinned. It is deterministic by design, tree-sitter and curated detectors rather than a model reading your repository, so the same commit always gives the same findings and every finding comes with the file, the line and the trace that produced it. 36 rules in six categories, each tagged with its OWASP LLM Top 10 2025 and NIST AI RMF reference, with cross-file data flow in Python (notebooks included), TypeScript and JavaScript, Java, C# and Go. Scope is the AI application code paths, not a replacement for your general SAST.

Six categories, one pass over the repository.

36 rules, AI-001 to AI-052, severities from info to critical, each tagged with its OWASP LLM Top 10 2025 and NIST AI RMF reference. Per-language coverage, and its gaps, is documented rule by rule for customers in the console; five languages, not every language.

Model output into dangerous places.

Follow LLM output across files into shell commands, SQL, HTML, URLs, package installs and file paths, and untrusted input into the system prompt. Seven data-flow rules, plus three retrieval rules for exposed vector databases and unfiltered retrieval.

klyvra-sast · data flow
AI-001 to AI-007 · AI-050 to AI-052
AI-002critical
agent/tools.py:48
LLM output flows into code or command execution
Every finding carries
filelinetracefingerprintOWASP LLM Top 10NIST AI RMF
sample finding · same commit, same resultno LLM · no network during the scan

Secrets and hidden instructions.

Keys, personal data and internal hosts inside prompts, attack phrasing, user input without delimiters or merged into the system role, hidden instructions in agent instruction files such as CLAUDE.md, AGENTS.md and SKILL.md, and, when you turn it on, hard-coded secrets in code and configuration. Eight rules for the text your agents trust most.

klyvra-sast · hygiene
AI-010 to AI-017
AI-010high
prompts/system.md:12
Secret in a prompt
Every finding carries
filelinetracefingerprintOWASP LLM Top 10NIST AI RMF
sample finding · same commit, same resultno LLM · no network during the scan

Agent tools and permissions.

Destructive tools with no approval step, wildcard scopes, and the lethal trifecta, private data plus untrusted content plus an outbound channel, evaluated per agent. Six rules that read the permissions you actually granted.

klyvra-sast · agents
AI-020 to AI-024 · AI-035
AI-035high
agents/support.py
Agent combines private-data access, untrusted content and an outbound channel
Every finding carries
filelinetracefingerprintOWASP LLM Top 10NIST AI RMF
sample finding · same commit, same resultno LLM · no network during the scan

MCP servers in code and config.

Unpinned servers, broad secrets passed to servers, hidden instructions in tool descriptions, plaintext or unauthenticated remote MCP, DNS-rebinding exposure, token passthrough, and any server not on your approved list. Approval pins to a version or digest, so a moved pin is flagged again. Seven rules.

klyvra-sast · mcp
AI-030 to AI-034 · AI-036 · AI-037
AI-030high
.mcp.json
Unpinned MCP server source
Every finding carries
filelinetracefingerprintOWASP LLM Top 10NIST AI RMF
sample finding · same commit, same resultno LLM · no network during the scan

Models, packages and loaders.

Unpinned model revisions, trust_remote_code, unsafe pickle loads, and vulnerable or known-malicious AI packages. Five rules across the OpenAI, Anthropic, Google, Bedrock, Azure and MCP SDKs and frameworks from LangChain and Spring AI to Semantic Kernel, Genkit and ADK.

klyvra-sast · supply chain
AI-040 to AI-044
AI-041high
models/load.py:7
trust_remote_code=True
Every finding carries
filelinetracefingerprintOWASP LLM Top 10NIST AI RMF
sample finding · same commit, same resultno LLM · no network during the scan

An AI-SBOM with every code scan.

Models, datasets, SDKs and providers, MCP servers, agents, skills, prompts and knowledge bases, one component per package with every location. Export as CycloneDX 1.6, SPDX 2.3, SPDX 3.0.1 with the AI and Dataset profiles, or CSV. The tenant-wide AI inventory folds every repository together and names the shadow AI: repositories that use AI but are linked to no red-team target.

klyvra-sast · inventory
CycloneDX 1.6 · SPDX 2.3 · SPDX 3.0.1 · CSV
model
pkg:huggingface/meta-llama/Llama-3.1-8B
revision unpinned · 2 locations · shadow AI: no red-team target
Every component carries
purlversionevery locationCycloneDXSPDXCSV
sample finding · same commit, same resultno LLM · no network during the scan

Built for the teams who own the AI application code.

AI Code Security is for the AppSec and platform teams who review what ships, and the engineers shipping agents who would rather hear about a wildcard scope from CI than from an incident. It runs where your tests run, on the runner you already trust, and sends findings to your Klyvra platform, never source code. One issue record per repository and weakness tracks new, open, fixed and reopened, so a finding has a history, not just a timestamp.

Outcomes you can defend in a review.

Findings and an AI-SBOM leave the runner. Never source code.

By default the upload is rule id, file path, line, message, trace, fingerprint, scan statistics and the AI-SBOM. Never source code. Snippets travel only with an explicit opt-in, and the binary is downloaded from your own platform, not a public registry.

Gate the build by exit code.

0 pass, 1 gate failed, 2 error. Set the failing severity, carry a baseline, scan only the diff on pull requests, post findings as PR review comments, emit SARIF for the GitHub Security tab. A GitHub Actions composite action copied into your repository, a GitLab CI template and a shell wrapper for everything else. Gate, scope, rules and approved MCP servers are a policy per tenant, overridable per pipeline, and a run that deviates is recorded as a deviation.

Signed, verified, countersigned.

Each pipeline holds its own Ed25519 signing key, separate from its API key. The binary signs the findings, the SBOM, the config snapshot, the repository, the commit, the CI run, the gate result and its own checksum; the platform verifies and countersigns; klyvra-sast verify checks an exported bundle offline. This proves which pipeline sent a result and that nobody altered it. It does not prove the scan was honest; reproducibility does.

Code findings seed the red team.

Link the repository to a red-team target and, with the feature licensed and switched on by an admin, code findings steer the next red-team scan: predicted by code, confirmed at runtime. A fix in code is re-tested against the live model and marked holds or not effective.

Review one repository on your own runner.

Bring a repository with an agent or an LLM call in it. We will run klyvra-sast against it on the call, read the findings and the AI-SBOM together, and show the gate pass and fail in a real CI job.