Modern AI security becomes interesting when an application starts doing more than answering a question. A chatbot may retrieve a policy document, an agent may attempt to use a tool, and a monitoring system may create an alert. At every step, we need to ask different security questions: Which information is trusted? Who is authorized? What was tested—and what is still unknown?
I started Cyranta AI Security Lab to explore those questions through hands-on exercises rather than theory alone. It is a local-first research project with deliberately vulnerable examples, hardened controls, fictional data, synthetic events and documented limitations. The sanitized public edition is available at Cyranta AI Security Lab on GitHub. The illustrations accompanying this article are conceptual diagrams and AI-generated, screenshot-style interface mockups. They are not screenshots captured from the actual repository. In particular, numbers, percentages, “ready” indicators, invented file names and other dashboard labels visible in the mockups are not Cyranta test results.

Image disclosure: The images below are illustrative AI-generated UI mockups and a conceptual architecture illustration—not actual software screenshots or evidence of a live deployment. Figures and statuses shown in the mockups are fictional.
Why I wanted to build an AI security lab
Many conversations about large language model security begin and end with prompt injection: can someone trick an assistant into ignoring its instructions? That is a useful starting point, but it misses important problems around the model. A secure answer is not enough if an unauthorized document has already been retrieved or a tool call has been allowed without checking the user’s permissions.
To understand the broader security principles behind these challenges, explore our guide to [AI Security Best Practices], which covers essential strategies for securing modern AI applications.
I wanted one learning environment where each layer could be studied separately, and then connected to a repeatable testing process. The purpose was not to claim that a model is “unbreakable.” It was to understand where application-side controls belong, how to record credible evidence, and when a test result should stop short of a production claim.
The lab grew into six related tracks: chatbots, retrieval-augmented generation, agents, detection, governance and deterministic validation.
1. Chatbot security: prompt injection and safe handling
The chatbot track compares deliberately vulnerable and more defensive application behavior. Exercises explore suspicious instructions, planted fake-secret markers, input handling and redaction. A malicious prompt might try to override earlier instructions, change the assistant’s role or persuade it to disclose a marker that should not be returned.
For a structured overview of common vulnerabilities in large language model applications, refer to the [OWASP Top 10 for LLM Applications], which provides a useful foundation for understanding risks such as prompt injection and insecure output handling.
The important design lesson is that a system prompt is not an authorization system. It may explain desired behavior, but it should not be the final boundary protecting sensitive information. Controls in application code can restrict what reaches the model, validate a request against scope rules and filter outputs when appropriate.

In a practical review, I would ask whether the application enforces its rules independently of the model’s wording. I would also test both allowed and denied requests, because a control that blocks everything is not necessarily useful. Cyranta provides bounded exercises for discussing those trade-offs—not a guarantee against every possible jailbreak.
2. RAG security: authorization before generation
Retrieval-augmented generation, or RAG, connects an AI assistant with external documents. That expands the trust boundary. A retrieved document may be accurate, outdated, intentionally poisoned or simply not authorized for the requester. If the application retrieves restricted material first and then asks the model not to reveal it, the boundary is already too weak.
The RAG track examines role-aware filtering, document provenance, source trust and data-poisoning scenarios. Provenance helps answer where content came from; authorization determines whether the user should have seen it at all. Those two questions work together, but they are not interchangeable.

A crucial scope limitation matters here: the deterministic Project 6 checks use in-memory retrieval mocks. Their passing results do not establish that a real ChromaDB deployment, a local Ollama model or a production knowledge base has been independently assured. The lab also records the unresolved dependency risk CYRANTA-DEP-001, which remains pending review.
3. Tool-using agents: enforce permissions outside the prompt
AI agents can suggest actions that affect files, systems or external services. Once an assistant can call a tool, a mistake can become a side effect rather than just a bad sentence. That makes authorization, tool arguments and least-privilege access central to agent security.
For additional adversarial AI threat research, [MITRE ATLAS] provides a knowledge base of tactics and techniques used against AI-enabled systems, helping security professionals understand and investigate relevant attack scenarios.
Cyranta uses fictional tools and controlled state to check how a tool gateway handles allowed and denied operations. The gateway is the application-side decision point: it should examine who is requesting an action, what the tool is allowed to do and whether the arguments stay within the approved scope.

This is an important difference from asking the model to “be careful.” Even when a prompt asks for a prohibited operation, the gateway should be able to reject it. The test scenarios do not perform real payment transactions or operate production accounts. They provide a repeatable way to reason about permission boundaries and observable decisions.
4. Synthetic detection and incident correlation
Monitoring is valuable only when the events have clear meaning. Cyranta’s detection exercises use structured synthetic events to test alert conditions and correlation logic. An alert can be grouped with another event to form a candidate incident, but that does not prove that a real compromise occurred.
This distinction prevents overclaiming. Evidence of a matching rule is different from evidence of attacker activity in a live system. A useful pipeline should preserve event identifiers, the basis for a decision and the point at which human confirmation is required.

The screenshot-style artwork here depicts a broader detection console, including image and audio concepts. Those visual features are not verified implementations of deepfake or voice-clone detection in the published lab. What the documented deterministic track supports is synthetic event processing and bounded incident-correlation logic.
5. Governance: findings need decisions, not just dashboards
A technical finding is easier to act on when it connects to an asset, a risk, a control and supporting evidence. I found that governance is where many optimistic security claims need to be challenged. A green test indicator should not automatically turn an open issue into an approved release.
These governance principles align with the broader approach described in the [NIST AI Risk Management Framework (AI RMF)], which provides guidance for managing risks throughout the AI system lifecycle.
Cyranta includes governance records and finding-to-control traceability. Its documented baseline still has one open dependency risk, five unassigned assets, seven unassigned controls and zero approved finding-to-control links. These values matter because they show that the review process is incomplete, even when software tests pass.

The governance illustration has fictional “Ready” and compliance indicators. The actual repository explicitly does not claim independently verified control effectiveness, formal compliance certification or production readiness. Keeping those distinctions visible is part of the value of the project.
6. Deterministic tests and a public-safe security gate
The sixth track connects the preceding work to reproducible validation. Fixed offline scenarios make it possible to run the same input, compare expected results and spot regressions after a code change. GitHub Actions runs the public security-gate workflow on GitHub-hosted infrastructure, separate from the original private experimentation environment.
The sanitized public V3 edition passed 674 local regression tests, alongside successful Ruff and Bandit checks performed during validation. Its matching GitHub Actions security-gate run also completed successfully on release commit 08eed2f532fa6fe7843582b3ac80174ee6b08649. The earlier private Project 6.5 milestone had 667 passing tests; those results were from a different revision and should not be merged into a single historical claim.

What the numbers prove—and what they do not
A passing test is evidence for a defined scenario, not universal assurance. The 674 tests support repeatable behavior for the cases represented in the published code. Secret scanning of the sanitized release directory and fresh Git history reported no findings. The separate release repository intentionally excluded raw local red-team results, the private self-hosted workflow and private environment files.
That is a meaningful engineering milestone, but it does not prove every attack is blocked. It does not certify a dependency, demonstrate live RAG deployment security, or remove the need for risk owners and human decisions. Documentation matters just as much as the pass count when other people are going to rely on the result.
Explore the code, reproduce the learning
The project is available for people who want to inspect the threat models, review the application controls and reproduce the offline checks: Cyranta AI Security Lab — source and documentation. Use only systems you own or have explicit authorization to assess, and keep test data fictional.
My biggest takeaway is that AI application security is a chain of boundaries. A chatbot, retriever, tool gateway, detector and governance process each answer a different question. Good security comes from connecting those answers, being clear about the evidence and acknowledging what still needs verification.
Disclosure: Cyranta is an educational research lab, not a production-certified security product. The visuals in this article are conceptual mockups, not actual Cyranta application screenshots or measured dashboard data.


