Security questionnaires

Answering the AI-agent questions in a security review

For the CTO filling in an enterprise customer's questionnaire and the compliance manager collecting evidence. Every answer describes what the code does today, including where it stops.

Read this first.

  • Not independently audited yet. TEVSEC Gate has had an internal security review and an automated attack suite, but no independent audit or penetration test. See the trust center.
  • Not legal advice. Whether a law or standard applies to your system, and what it requires of you, is for you and your counsel to decide.
  • Evidence, not compliance. TEVSEC Gate helps you collect evidence about what your agents did and who decided what. It does not make a system compliant, and nothing here says it is certified against any standard.

Answering the AI-agent section of a security questionnaire

Short answers you can paste and adapt. Text in [brackets] depends on how you set TEVSEC Gate up. Delete any sentence that is not true of your deployment.

How are agent tool calls controlled?

Each tool call an agent is about to make is checked by TEVSEC Gate before it runs, against built-in detectors and a per-workspace policy (allowed and blocked tools, allowed domains, blocked agents). The detectors look for destructive commands, privilege escalation, changes that run again by themselves, access to credential files, secrets or card numbers in outgoing data, and data sent to drop sites or to domains outside the allowlist. The answer is allow, review or deny: a critical finding is refused, and a high finding is refused by default or sent to a person. Refused attempts are recorded. TEVSEC Gate is wired in through [its Python / TypeScript / Go SDK, its LangChain adapter, or a gateway in front of the model API or MCP servers].

Is there human oversight?

Yes, for the actions we choose. A call rated for review can wait for a person instead of being refused: a signed-in member of the workspace approves or refuses it, and no answer before the timeout counts as a refusal. The agent's own API key cannot approve anything. Each decision is kept with who decided, when and their note, appears in the auditor report and is written to the administrative audit log, which is hash-chained. People also triage alerts (resolved, false positive) with notes, and an administrator can block an agent or a tool for the whole workspace.

Are agent actions logged, and is the log tamper-evident?

Yes. Every event an agent reports (tool calls and their results, documents it read, model calls, messages, and refused attempts) is appended to a per-workspace log in which each record carries the SHA-256 hash of the one before it. The head of the chain is signed with the workspace's Ed25519 root key. An administrator can export the log as NDJSON and check it offline with the open-source command line tool, without trusting the server. Changing, removing or reordering an event breaks every hash after it. We keep agent events for [N days]; when old events are pruned, the rest of the log still verifies from a recorded checkpoint.

How is prompt injection handled?

Content from outside (web pages, retrieved documents, the results of tools we mark untrusted, MCP results) is scanned for instructions aimed at the model. If it contains them, the session is marked untrusted, and from then on a risky call in that session is refused, even if it looks harmless on its own. [Borderline outside content gets a second opinion from a language model.] The MCP gateway removes tools whose descriptions give the model orders. [Decoy credentials are planted to catch an agent that goes where it has no reason to.] Detection is not complete: on a set it was never tuned on, the pattern scanner caught 22 of 36 attacks (61%) and wrongly flagged 1 of 34 harmless texts (Models and accuracy). The controls are designed to limit the damage of a miss: least privilege, approvals by a person, and a signed log.

What happens if TEVSEC Gate is unavailable?

The Python SDK and the Claude Code hook decide by risk class when they cannot check an action: reading and ordinary local work go on; anything that touches secrets, raises privileges, makes itself run again, destroys data, sends something out, pays or sends a message is refused until the check works again. The TypeScript and Go SDKs have no local engine and apply the same class rule on its own (tested against the same cases as the Python rule). The gateways keep checking with the last policy they have. Events wait in a bounded buffer and are sent when the service is back. [We fail closed: OSTIVANE_ON_ERROR=closed (or fail_open=False) in Python, onError: "closed" in TypeScript, OnError: "closed" in Go, so an action that cannot be checked is refused.]

Where does the data go, and what is redacted?

Agent events go to our TEVSEC Gate workspace, [on a server we run ourselves / on the hosted service]. Before anything is stored, secrets are replaced with markers in the inputs, outputs and target of each event: private keys, cloud and API keys, GitHub and Slack tokens, JWTs, bearer tokens, password-like assignments and card numbers. [We turned off storing content: only a SHA-256 hash and the length of inputs and outputs are kept.] The auditor report contains no commands or agent text, only names, rule titles and counts. TEVSEC Gate itself sends event text to a language model only if model review is turned on, and then redacted. [The LLM gateway forwards our agents' own model calls to the provider with the agent's key, which it never stores.] Redaction is pattern-based: names, email addresses and other personal data are not removed.

OWASP Top 10 for LLM Applications (2025)

What TEVSEC Gate does for each item, and where it does nothing. Findings in the log and in the auditor report carry the class they belong to (LLM01, LLM02, LLM06 or LLM10).

ItemWhat TEVSEC Gate doesCoverage
LLM01 Prompt InjectionScans outside content for instructions aimed at the model and marks the session untrusted, so later risky calls are refused. Optional second opinion from a model. The MCP gateway removes tools whose descriptions give orders. It does not catch every injection (see the held-out result above) and does not judge the model's own words.Partly
LLM02 Sensitive Information DisclosureDetects secrets and card numbers in agent data and outgoing requests, reads of credential files, data sent to drop sites or domains outside the allowlist, and use of planted decoy credentials. Redacts secrets before storing anything. It does not detect personal data such as names or email addresses, or what the model says in plain text.Partly
LLM03 Supply ChainOnly one case: the MCP gateway removes tools whose descriptions try to instruct the model (tool poisoning). The provenance of models, datasets, packages and plugins is not checked. For our own supply chain see the trust center.Narrow
LLM04 Data and Model PoisoningNot covered. Training, fine-tuning and embedding data are outside what TEVSEC Gate sees. Retrieved documents are scanned when the agent reads them (see LLM08).Not covered
LLM05 Improper Output HandlingThe tool calls a model proposes are checked before they run (the SDK guard, or the LLM gateway, which removes a refused call from the model's response). Model text that your application passes on to a browser, a database or a shell outside a tool call is not checked.Partly
LLM06 Excessive AgencyThe main focus: tool, domain and agent allow and block lists; destructive commands, privilege escalation and persistence caught before they run; approvals by a person; least-privilege policy suggestions learned only from clean sessions. A model can still misuse a tool the policy allows when nothing in the call looks dangerous.Main focus
LLM07 System Prompt LeakageNot covered. Secret redaction keeps secrets out of what TEVSEC Gate stores; it does not stop a model from revealing its prompt.Not covered
LLM08 Vector and Embedding WeaknessesRetrieved text is treated as outside content and scanned (retrieval events, the LangChain retriever callback). Access control in the vector store, embedding inversion and leaks between tenants are not covered.Partly
LLM09 MisinformationNot covered. TEVSEC Gate does not judge whether a model's answer is true.Not covered
LLM10 Unbounded ConsumptionAlerts when a session repeats the same call many times or bursts with activity. These alerts do not refuse anything, and there are no token, cost or rate limits on the model.Narrow

How the signed log helps with record-keeping and human oversight

EU AI Act. Article 12 (record-keeping) asks that high-risk AI systems allow events to be logged automatically over their lifetime, and Article 14 (human oversight) asks that people can oversee them effectively while they are in use. For agents, the signed log, its offline check, the approvals and the ability to block an agent or a tool help you collect evidence for those articles. They are one input to your assessment, not a conformity assessment, and whether the Act applies to your system at all is a legal question.

A sample auditor report

The cabinet produces an auditor report for a period of up to a year: one self-contained HTML file (or JSON) with the integrity check and signed head, a summary, the alerts and who reviewed them, the decisions people made, the policy in force and the administrative actions. On the hosted service it is part of the Business plan; self-hosted installs have it with no plan. The excerpt below was generated by that same report code when this site was built.

Sample · synthetic data

SAMPLE. Made from a scripted demo day of synthetic agent activity in a throwaway workspace. Nothing here is real; the agents, people, keys and hashes belong to no customer.

Agent activity report · Support agents (sample)

2026-11-02 07:33 UTC to 2026-12-02 07:33 UTC · generated by TEVSEC Gate 0.24.7

1. Integrity of the log

CheckValue
Chain of hashesintact
Events checked76
Head sequence76
Head hash5d52765858873007…
Signing key (workspace root)bd91e729cd6ad57e…
Signature (Ed25519)5f1c1264e9e0446f…
ostivane verify-agent-log p7-agent-log-3f64dee80cc4.ndjson --anchor bd91e729cd6ad57e540e8578cb55428dc2444a79b3208c81c4890f2dbae0f464

2. Summary

76 events in 6 sessions from 5 agents; 11 needed attention (medium or worse).

RuleOWASP classCount
exfiltrationLLM02 Sensitive Information Disclosure4
tainted_actionLLM06 Excessive Agency3
secret_exposureLLM02 Sensitive Information Disclosure2
runaway_loopLLM10 Unbounded Consumption2
destructive_commandLLM06 Excessive Agency2

3. Alerts (first rows)

SeqAgentRiskFindingStatusReviewer's note
75ops-agenthighRaises its own privilegesresolvedConfirmed: part of the staged injection test
58research-agenthighA secret appears in the agent's datafalse_positiveExpected: the release script
55research-agentmediumContacts a domain outside the allowlistopen
48finance-agentmediumThe same call keeps repeatingopen

4. Decisions by people

AgentActionRatedAnswerDecided byNote
release-botbashmediumapprovedauditor-sample@example.comRelease window agreed

The full report also lists the agents, the policy in force and the administrative actions. Commands and text the agents handled are not in it.