Security questionnaires
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.
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.
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].
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.
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.
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.
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.]
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.
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).
| Item | What TEVSEC Gate does | Coverage |
|---|---|---|
| LLM01 Prompt Injection | Scans 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 Disclosure | Detects 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 Chain | Only 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 Poisoning | Not 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 Handling | The 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 Agency | The 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 Leakage | Not 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 Weaknesses | Retrieved 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 Misinformation | Not covered. TEVSEC Gate does not judge whether a model's answer is true. | Not covered |
| LLM10 Unbounded Consumption | Alerts 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 |
ostivane verify-agent-log FILE --anchor KEY_ID. It checks every link and the signature on the head, and exits with an error if anything is wrong. Take the anchor (the root key id) from a place you trust, such as an earlier report, not from the file being checked.ostivane cloud verify-audit on a self-hosted server). They are not part of the signed agent log itself.P7_SOC_RETENTION_DAYS. Hosted plans keep agent events from 7 days (Free) to 1 year (Business). Export the log to keep it longer.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.
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
2026-11-02 07:33 UTC to 2026-12-02 07:33 UTC · generated by TEVSEC Gate 0.24.7
| Check | Value |
|---|---|
| Chain of hashes | intact |
| Events checked | 76 |
| Head sequence | 76 |
| Head hash | 5d52765858873007… |
| Signing key (workspace root) | bd91e729cd6ad57e… |
| Signature (Ed25519) | 5f1c1264e9e0446f… |
ostivane verify-agent-log p7-agent-log-3f64dee80cc4.ndjson --anchor bd91e729cd6ad57e540e8578cb55428dc2444a79b3208c81c4890f2dbae0f464
76 events in 6 sessions from 5 agents; 11 needed attention (medium or worse).
| Rule | OWASP class | Count |
|---|---|---|
| exfiltration | LLM02 Sensitive Information Disclosure | 4 |
| tainted_action | LLM06 Excessive Agency | 3 |
| secret_exposure | LLM02 Sensitive Information Disclosure | 2 |
| runaway_loop | LLM10 Unbounded Consumption | 2 |
| destructive_command | LLM06 Excessive Agency | 2 |
| Seq | Agent | Risk | Finding | Status | Reviewer's note |
|---|---|---|---|---|---|
| 75 | ops-agent | high | Raises its own privileges | resolved | Confirmed: part of the staged injection test |
| 58 | research-agent | high | A secret appears in the agent's data | false_positive | Expected: the release script |
| 55 | research-agent | medium | Contacts a domain outside the allowlist | open | |
| 48 | finance-agent | medium | The same call keeps repeating | open |
| Agent | Action | Rated | Answer | Decided by | Note |
|---|---|---|---|---|---|
| release-bot | bash | medium | approved | auditor-sample@example.com | Release 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.