Articles
Secure does not mean correct: what no security layer checks in an AI answer
By Leandro Oliveira, Founder of BeryxTech
Published · 7 min read
- Topic
- AI agents
- For
- CDO
- Data engineering
AI security frameworks sort risk into layers, from the people who use AI to the model and the data. Each layer has its controls, and they all answer the same question: does the system hold up against someone trying to misuse it? There is another question, which no layer asks: is the answer right? An agent under no attack, within its permissions, can answer with a wrong number, because the table stopped updating, a rule broke or the definition of "active customer" changed. Accuracy is proven against the data, at the moment the answer was given.
Two different properties
NIST's AI risk management framework, AI RMF 1.0 (NIST AI 100-1), from January 2023, lists in section 3 the characteristics of trustworthy AI. "Valid and reliable" is one, in section 3.1, and "secure and resilient" is another, in section 3.3. In figure 4, validity and reliability sit at the base of the others, as a necessary condition. The text adds a warning: an inaccurate system is undesirable, even if it is secure, privacy-enhanced and transparent.
The OWASP 2025 list for LLM applications puts misinformation, LLM09:2025, next to prompt injection and sensitive information disclosure. OWASP describes it as false or misleading information that looks credible, and adds to it the overreliance of people who use the answer without checking it. In one of the example scenarios there is no attacker at all: an assistant put into production without enough accuracy is enough to cause the harm. Among the mitigations are cross-checking answers against trusted sources and validating the ones that matter most automatically.
What the security layers protect
An agent's security controls answer who it is, what it can read and do, and how to stop it. A per-agent identity, least privilege, guards against prompt injection, inspection of what goes out and a switch that cuts the tokens deal with attacks and abuse. An agent that reads a table it is entitled to and answers with the number it found there gets past all of them.
In BeryX, that part is in production. Each agent has a record and its own token, and the API applies the record on every request. The rights matrix says, per tool, whether it reaches classified data, and each tool has an hourly request cap. A classified dataset only opens with a complete go-live checklist, and the agent's kill switch revokes its tokens. See per-agent identity and governance. The article The four questions before giving data to an agent follows each of these questions.
A wrong number with no attack at all
There are three common ways for this to happen. The table stopped: the nightly job finished without an error and loaded nothing, and the agent answers with the sales from the day before yesterday as if they were yesterday's. A rule broke: the country column started arriving empty in part of the rows, and the total per country comes out short. The definition changed: the sales team started counting as an "active customer" anyone who bought in the last ninety days, and the agent uses a query written with the old definition.
In none of the three cases was there an attack, and the agent only used what it was allowed to. The security controls have nothing to stop. The error shows in the data: in the table's freshness, in the result of the rules and in the approved definition of the metric.
Before: does the SQL go to trusted tables?
Before running a query, the agent can ask whether the tables it reads are fit for what it is about to do. The answer depends on the purpose: what is fine for an internal dashboard may not be fine for an agent that answers customers.
In BeryX, the MCP server's check_sql_trust tool reads the tables of a SQL query (joins, CTEs, subqueries, quoted names) and returns, for the purpose, the trust decision for each table and the worst one in the summary, with the reasons. A table that does not match a dataset the agent can see is unknown, never trusted, and the SQL never runs. The decision for a single dataset by purpose (agent, RAG, training or BI) is the one from the get_trust_decision tool. See the MCP tools and the agent register.
During: does this number match the source?
The query ran and returned a number. Before the agent tells anyone, the number can be recomputed on the source, by a path that is not the agent's, and compared within a tolerance. If it does not match, whoever asked gets the source value and the evidence, instead of a fluent, wrong answer.
In BeryX, the verify_claim tool takes the number and how it was measured (the dataset, aggregation, column, filters and period) or the SQL that produced it. BeryX recomputes it on the source, read-only, and returns verified, divergent, with the source value and the evidence, or unverifiable, with the reason. A number that matches an untrusted source, or one with no scan, is unverifiable. On sensitive columns, the metric can only count. Each check goes into the agent's output log. The check runs when the agent asks for it, and a number it does not send for checking does not go through it. See the agent register and the MCP tools.
In BeryX, the metric registry keeps one definition per metric, with an owner, a definition authority and approved versions. Each implementation is compared with the approved definition, and a divergence opens a metric_drift issue with the evidence. With a definition's id, verify_claim recomputes the number with the formula and filters of the approved version, instead of the aggregation the agent sends. See the metric definition registry and the MCP tools.
After: what did the agent see?
Weeks later, someone asks why the agent gave that number. The data has changed, the issues have been resolved and the definition has another version. Without a record of what was known at the moment of the answer, the question has no proof.
In BeryX, the decision-time dossier keeps, for each recorded consumption, what was known at the moment it was recorded: the decision the agent saw, the verdict and policy status of the last evaluation, data freshness, the unresolved issues and the approved version of the dataset's metric definitions. Each section says whether it was captured in the record, reconstructed from history or is unavailable. An admin exports it as JSON, PDF or HTML, metadata only and signed with Ed25519. In the app, on plans with compliance, the "Verify dossier" page says whether the signature and the content match. See the agent register.
The two questions side by side
The chart puts the two questions side by side: the controls that answer the first and the proofs against the source that answer the second.
Secure?
Who the agent is, what it can read and do, and how to stop it.
- One token per agent, with its record applied on every request
- Rights matrix per tool, with an hourly cap
- Classified data only with a complete go-live
- The agent proposes, a person decides
- Per-agent and global kill switch
Correct?
The number against the data, at the moment of the answer.
- Before: the SQL's tables, each with its trust decision
- During: the number recomputed on the source, read-only
- After: the dossier of what was known, signed and verifiable
- The approved definition of each metric, with the implementations' drift
Only what is already in production.
What is still missing
In BeryX, an agent's go-live does not yet record the evaluations of the customer's model, such as accuracy ones, tied to the model version and the prompt fingerprint and with an expiry. The go-live failure drills run against BeryX's own guards, with synthetic values and without calling an LLM. See the agent register.
In BeryX, the usage log says what each agent requested, but BeryX does not yet receive the model's accuracy metrics in production, per agent and per period, nor open an issue when they drop. See the agent register.
Where to start
Pick the three numbers your agents answer most: the month's sales, the active customers, a margin. For each one, write down the approved definition and who answers for it, and decide how the number is checked on the source before it reaches whoever asked. At an agent's next review, ask whether anyone has ever seen one of its answers recomputed.
The page for those who govern AI gathers what is already in production, from the agent register to the go-live. To measure on your sources, the Data diagnostic connects to some of them, read-only.
Transparency: BeryxTech, which publishes this article, builds BeryX, and we have an interest in you using it. The sections about the product describe what is in production, with a link to the documentation. The OWASP content is licensed under CC BY-SA 4.0, and we cite it, like NIST, in our own words, with a link to each source.
Sources read on 19 November 2026
- NIST, “Artificial Intelligence Risk Management Framework (AI RMF 1.0)”, NIST AI 100-1, January 2023, section 3 and figure 4
- OWASP GenAI Security Project, “2025 Top 10 Risk & Mitigations for LLMs and Gen AI Apps”, the list from LLM01:2025 to LLM10:2025
- OWASP GenAI Security Project, Top 10 for LLM Applications 2025, “LLM09:2025 Misinformation”, page updated on 2025-04-17