The AI audit trail is the record of every AI call in a project. It is stored as ordinary events in the project, searchable in Search and presented session by session on AI → AI Activity → AI Audit Trail (AI Activity).
Each call produces one evaluation event (operation = app-guardrail-eval) and one violation event per finding (operation = app-guardrail-violation), joined by event_guardrail_request_id.
| Recorded | Fields |
|---|---|
| Application and provider | app_name, ai_provider, backend |
| Who | user_name, and user_source: which identity step named the user (header, body, token, api_key, default) |
| Session | event_guardrail_session_id, and session_source: header when the caller sent a session id, derived when the Protector derived one from the conversation |
| The new messages of the call | message_new: the messages added since the last assistant turn, tool results included, with their roles in message_roles |
| Prompt and reply | message_text (the latest user message), response_text |
| System prompt | system_prompt_hash on every call; system_prompt text the first time a backend sees it |
| Model and usage | model_used, tokens_in (uncached input), tokens_out, tokens_cached, tool_names |
| Guardrail result | event_guardrail_decision (allowed, modified, blocked), event_guardrail_mode, data_risk_score, outcome |
| Each finding | violation type, direction, the segment it was found in, the rule that matched, and where the match sits in the recorded text |
What the prompt and reply fields carry depends on the policy’s capture mode: full records the text as sent, masked replaces personal data with placeholders such as <EMAIL_ADDRESS>, and summary records no text, only the findings. The Protector’s own capture ceiling can lower it further. Record token usage in a policy’s Audit settings turns the token counts off; the model and tool names are still recorded. Capture modes and the full field list are below.
The Secure60 Browser records prompts and responses typed into ChatGPT, Claude and Gemini on the web (operation = ai-browser-exchange), and visits to other AI sites on its site lists without content (operation = ai-browser-visit). The trail shows them as sessions with the source Secure60 Browser, including the AI-site account and whether it is a corporate or a personal one. What is recorded for each site follows the action the browser’s group gives it, through the first attached site list that names the site (the key of that list is site_list on the event): Record full keeps the text, Metadata only keeps sizes, a hash and the file count, and Visit only keeps the visit. Sites the group warns on or blocks are recorded as browser-site-warned and browser-site-blocked, and appear in the AI Activity Calls view.
Each tool call an AI agent makes through Identity Control is one agent-tool-call event, whatever its outcome: run, held, denied, blocked or failed. It records the AI app (agent_host), the agent (agent_name, agent_trust), the system and account (connection_name, account_name), the tool and its state (tool_name, tool_tier), the decision and its reason, the arguments with secrets and long bodies masked, and the name of any vault entry used (never its value). Each approval is an agent-approval event when it is created and again when it resolves, joined to the tool call by approval_id. See Identity Control.
Secure60 agents record each session and each step: tool calls, decisions and the outcome. Model names and token counts of Secure60 agents are not shown in customer projects.
Vendor records sent with operation = ai-usage are counted as calls without content. Proxy, DNS and firewall events tagged by the AI Traffic Detection parser template are not grouped into sessions: opening a network-detected application’s trail lists its events, newest first, with time, user, host and destination, marked Detected on the network · no content.
Every policy has a capture mode, and the Protector itself has a ceiling that caps every policy behind it. The ceiling applies where prompts must not leave the customer’s network under any policy.
| Mode | message_text (prompt) |
response_text |
Violations |
|---|---|---|---|
full (default) |
as sent, truncated at 4,000 chars | excerpt | yes |
masked |
PII anonymised before capture (<EMAIL_ADDRESS>) |
anonymised excerpt | yes |
summary |
not sent | not sent | yes — type, direction and rule only |
The guardrails run identically in every mode; capture mode changes only what the audit event carries. Every event records the mode it was captured under, so the portal can say why a prompt is absent.
A separate policy switch, Record token usage in the Audit panel
(audit.capture_tokens), controls only the token-count fields. On by default: the
evaluation row carries tokens_in, tokens_out and tokens_cached. Switched off,
those three fields are dropped from that policy’s rows; model_used and
tool_names keep recording either way.
Every event carries outcome, the same field every other Secure60 data source uses.
It describes whether the call succeeded, not whether a guardrail found something:
outcome |
Meaning |
|---|---|
success |
The call completed. Includes monitor mode finding a violation — the policy reported what it would have done and the request still went through. |
blocked |
Enforcement mode was protect and the guardrail refused the call. |
failure |
The gateway or the upstream model service returned an error, or could not be reached. This includes a refusal by the model service itself, such as a bad API key, no credit or a rate limit. |
A blocked call is not a failure, so an enforced guardrail is not reported as an error.
Two operations are emitted:
app-guardrail-eval — one per call, with the decision, the profile, the
destination and the latency.app-guardrail-violation — one per policy hit, with the violation type, the rail
it fired on and the rule that matched.Both carry product_version, which identifies the build that produced the event.
These appear on AI → AI Activity, alongside your Secure60 agents.
The trail groups calls into sessions by session id. A caller that sends X-S60-Session-Id (or the header set on the backend) controls the grouping; without it, the Protector derives an id so a conversation still groups together.
The session view shows the header facts, the system prompt, a timeline of model calls, tool calls and guardrail steps, and each step in detail: the new messages of the call with the matched text highlighted, the text the model received after masking (Sent on as), and the response. See AI Activity — Session view.
AI audit events follow the project’s retention like every other event:
Secure60 AI Protector emits [s60_audit] JSON for every guardrail evaluation and ships it to stdout and the configured ingestion endpoint.
Two rows per guarded request — the evaluation (app-guardrail-eval, one per
call) and one app-guardrail-violation row per finding, correlated by
event_guardrail_request_id. The fields used most for filtering are Secure60
columns rather than map lookups.
Columns — fast to filter and group on:
type: "agent" — the entity being targeted is an AI model or agentoperation: "app-guardrail-eval" or "app-guardrail-violation"outcome: "success", "blocked" (protect mode refused the call) or "failure" (a gateway or upstream error)app_name: the protected application (the backend’s application name in the portal)user_name: the end user, from the backend’s identity header or body field, when presentsource_name: the Protector group; source_type: "s60-protector"host_name: the Protector container; ip_src_address: the callerhttp_domain: the host the client addressed; http_status_codemessage_text: the prompt, subject to capture mode (evaluation row only)Guardrail metadata:
event_guardrail_decision: "allowed", "blocked" or "modified" — in monitor mode, what protect mode would have doneevent_guardrail_mode: "protect" or "monitor"event_guardrail_profile: the policy nameevent_guardrail_request_id, event_guardrail_session_id (from the session header, groups a conversation)event_guardrail_backend_type, http_upstream_host (the backend host the call was forwarded to)event_guardrail_violations: the findings, flattenedRisk — independent of enforcement, and therefore populated in monitor mode:
data_risk_score: the worst finding — secrets 90, prompt injection 80, PII in the response 60, PII in the prompt 40, none 0event_guardrail_severity: none / low (<50) / medium (50–79) / high (80–94) / critical (≥95)event_guardrail_violation_countevent_result: what the Protector did — guardrail_blocked, guardrail_modified, guardrail_monitor_only, guardrail_allowedviolation_types, violation_rule_ids, violation_rails: comma-separated lists on the evaluation row ("EMAIL_ADDRESS, JAILBREAK")data_sensitive_information: summary of detected entitiesIdentity and usage (evaluation row):
user_name, user_source: the resolved end user and which identity step named them (header / body / token / api_key / default) — see Identity under Backendssession_source: "header" when event_guardrail_session_id came from the session header, "derived" when the Protector computed itai_provider: the model provider, from the backend’s ai_provider field or resolved from the upstream host. Absent when neither identifies it (test, synthetic and blackhole backends)model_used: the model named in the reply, else in the requesttokens_in: uncached input tokens — OpenAI’s prompt_tokens minus cached tokens; Anthropic’s input_tokens (cache reads already excluded, and Anthropic cache-creation tokens are never counted here). Not billable input on its owntokens_out, tokens_cached: output tokens and cache-read tokenstool_names: the tools the model called in its reply, comma-separated and de-duplicated. Absent when it called none0, when the reply carried no usage information, or when the policy’s capture_tokens is off (see Capture mode above)Conversation context (evaluation row, by capture mode):
message_new: the new messages of this call — the tail of the conversation after the last assistant turn, tool results includedmessage_roles: the roles of those entries in order, e.g. "tool, tool, user" — recorded at every capture modesystem_prompt_hash: a short hash of the system prompt, recorded on every call that has one, at every capture modesystem_prompt: the system prompt text, recorded only the first time it is seen for that backend — repeats after a restart, so consumers de-duplicate by system_prompt_hashContent (evaluation row, by capture mode):
capture_mode: full, masked or summarymessage_text, response_text, modified_prompt (only when a mask filter rewrote the prompt)Violation row:
violation_type (a PII entity name, JAILBREAK or secret_leak), violation_message, violation_source, violation_rail (inbound / outbound), violation_rule_id, violation_score (detector confidence, PII only). Never carries content.violation_start, violation_end: where the match sits, as character offsets into the parent evaluation row’s stored text. Present only for detectors that report a position (PII, secrets, the jailbreak phrase list) and only when the match lies inside what was capturedviolation_segment_index: for a finding in the new messages, the index into message_roles identifying which entry it was found inuser_source: as on the evaluation row, when user_name is setAlso: vendor (Secure60), product (secure60-protector), schema_version, environment, protector_version, timestamp (UTC), backend, guardrail_latency_ms, latency_ms, the remaining http_* request fields, and any fields mapped via logging.field_mapping.
The managed rule group Secure60 – Managed Rules – AI Protector is written against these fields: findings in monitor mode and PII in prompts score the user; prompt injection, secrets on either rail, PII in responses and a burst of violations by one user raise threats.
Guardrail metadata is also exposed via HTTP response headers:
X-S60-Decision: Guardrail decision (allowed, blocked, modified)X-S60-Profile: Profile name usedX-S60-Enforcement-Mode: Enforcement mode (protect or monitor)X-S60-Violations: JSON array of violation objectsDownstream systems can act on these headers.