AI Audit Trail

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).

The AI Audit Trail tab listing Protector and Secure60 agent sessions with application, user, steps, tokens, decision and risk

What is recorded

Calls through a Secure60 AI Protector

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.

Browser use

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.

Identity Control

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 agent sessions

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.

Network and vendor records

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.

Capture modes

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.

Outcomes

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:

Both carry product_version, which identifies the build that produced the event.

These appear on AI → AI Activity, alongside your Secure60 agents.


Sessions

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.

A session in the session view: header facts, system prompt, timeline, step list, and a model call with PII found in a tool result, the match highlighted, the masked text as sent on, and the response

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.


Search and investigation


Retention

AI audit events follow the project’s retention like every other event:


Integration


Event reference

Secure60 AI Protector emits [s60_audit] JSON for every guardrail evaluation and ships it to stdout and the configured ingestion endpoint.

Event structure

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:

Guardrail metadata:

Risk — independent of enforcement, and therefore populated in monitor mode:

Identity and usage (evaluation row):

Conversation context (evaluation row, by capture mode):

Content (evaluation row, by capture mode):

Violation row:

Also: 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.

Response headers

Guardrail metadata is also exposed via HTTP response headers:

Downstream systems can act on these headers.

Back to top