AI Security Scanner
Table of Contents
Purpose
The AI Security scan analyzes the project's source tree to detect security risks on the AI components used by the application (prompts, agents, skills, tools, guardrails, vector stores), classified under the OWASP LLM Top 10 (2025). It is a static scan: it runs in CI/CD or on a local checkout, with no runtime probes and no software required on developer endpoints.
Quick Start
Use the following command to detect AI Security risks in the current directory and upload the results to the Xygeni Platform:
xygeni ai -n MyProject --dir . --uploadRestrict the scan to a given OWASP LLM Top 10 category, and save the report to a local file:
xygeni ai -n MyProject --dir . --owasp LLM01 \
--output MyProject.ai.jsonUsage
The AI Security Scanner is launched using the xygeni ai [options] command.
To view all available options, use the --help flag:
The most important properties are:
Name of the Xygeni Project
-nor--name. When not provided, it is inferred from the directory name.Input source to analyze, specified as a directory with
-dor--dir.Upload results to the service
--upload. By default, results are not uploaded and the report is written to the standard output.Output file (
-oor--output) and format (-for--format). The AI Security scanner currently exports JSON only; other formats are normalised to JSON with a warning.Specify what detectors to run with the
--detectors/--skip-detectorsoptions.Restrict the scan to specific OWASP LLM Top 10 categories with the
--owaspoption.
By default, the command exits with a non-zero code when at least one AI Security finding is raised (useful for build gating). Use --never-fail to always return a success exit code regardless of the findings.
For the details of the scanner configuration file and the optional LLM semantic review stage, see AI Security Scanner Configuration. For the catalogue of detections, see AI Security Detectors.
Last updated

