Skip to content
Software development
ASD ISMISM-2159

ASD ISM 2159 Centrally log agentic AI tool invocations, external requests and outputs

What it says

All tool invocations, external requests and outputs generated by agentic AI applications are centrally logged with sufficient detail to support cyber security incident investigations.

Quoted as published. Everything else on this page is written by Control Stack.

What it means

In plain English

Agentic AI applications must send a detailed record of every tool call, outbound request and generated output to central logging so incident responders can reconstruct what the agent did.

An agentic AI application does not just answer questions. It takes actions: it calls tools (running code, reading files, sending emails, querying databases), it reaches out to external services and websites, and it produces outputs that people or other systems act on. This control requires that all three of those things, every tool invocation, every external request and every output, are logged to a central location, and that the logs carry enough detail to be useful in a cyber security incident investigation. Why it matters: an agent can be manipulated through prompt injection, a compromised tool, a poisoned data source or a stolen credential, and it can then take harmful actions quickly and at scale. When that happens, investigators need to answer concrete questions. Which tools did the agent call, with what parameters, and when? What did it send to which external endpoints? What did it generate and where did that output go? If those records only exist on the agent host itself, or exist only as a vague summary, the trail is incomplete or can be destroyed by the same attacker. Central, detailed logging turns an agent's behaviour into evidence that can be searched, correlated with other security telemetry and preserved for the investigation.

Why it matters

Without central, detailed logs of agent tool calls, external requests and outputs, an organisation cannot reliably determine what a compromised or misbehaving agentic AI application actually did. Scoping a cyber security incident becomes guesswork: data may have been exfiltrated through an external request, destructive tool actions may have been taken, or harmful outputs may have been delivered to users, and none of it can be proven or ruled out. Investigation and containment are delayed, evidence may be lost or tampered with on the agent host, and the organisation may be unable to meet its reporting and accountability obligations after an incident.

How to implement

  1. The AI platform owner should inventory every agentic AI application in use and, for each one, enumerate the tools it can invoke, the external endpoints it can reach and the channels its outputs are delivered through, so that the full logging scope is known before configuration begins.

  2. Engineering teams should configure each agent framework or orchestration layer to emit a structured log event for every tool invocation, capturing the timestamp, session and user identity, tool name, input parameters and returned result, rather than relying on the model's own summary of what it did.

  3. Engineering and network teams should capture every external request made by an agent, including the destination, method, request content and response status, by logging at the agent's HTTP client or connector layer and, where possible, corroborating it with egress proxy or gateway logs.

  4. The AI platform owner should log the outputs the agent generates, including the content and where it was delivered (a user, a file, another system), and link each output to the session and the tool calls that produced it so investigators can trace cause and effect.

  5. Security operations should forward all of these agent events to the central logging or SIEM platform over an authenticated channel, apply retention that meets investigation needs, and periodically replay a sample session from the central logs alone to confirm the detail is sufficient for an incident investigation.

Keep it running

Day to day, this control lives in the integration between each agentic AI application and the organisation's central logging platform. Every agent deployment should be registered as a log source, with the three event families (tool invocations, external requests, generated outputs) mapped to a consistent schema that captures at least the timestamp, agent or session identifier, the acting user or service principal, the tool or endpoint called, the parameters or request content, and the result or output produced.

Operational teams should check regularly that each agent is still shipping all three event types, since a change to the agent framework, a new tool being added, or a new external connector can silently introduce a gap. Log volume from agents can be high, so retention, storage and any truncation rules need to be set with investigation needs in mind: a record that has been trimmed of the tool parameters or the request body may no longer be sufficient to support an investigation. Incident responders should periodically exercise the logs by reconstructing a sample agent session end to end, which is the most direct way to confirm the detail is sufficient.

Evidence and audit

  1. Check 1 of 5What an auditor asks for

    Ask for

    Ask for the list of agentic AI applications in use and the logging configuration for each one.

    Look at

    Check that every agent on the list is a registered source in the central logging platform and that the configuration covers tool invocations, external requests and outputs, not just one or two of them.

    Good evidence

    Every agent in production is sending all three event types to the central platform, and there are no agents that log only locally or not at all.

  2. Check 2 of 5What an auditor asks for

    Ask for

    Ask for a sample of raw tool invocation log entries from the central logging platform for a recent period.

    Look at

    Look at whether each entry records when the call happened, which session and user it belonged to, which tool was called, what parameters were passed and what came back.

    Good evidence

    The entries are structured and detailed enough that an investigator could tell exactly what action the agent took and on whose behalf, without needing access to the agent host.

  3. Check 3 of 5What an auditor asks for

    Ask for

    Ask for central log entries showing the external requests made by an agent, alongside any corresponding proxy or gateway records.

    Look at

    Check that destinations, request content and outcomes are captured, and compare the agent-side records with the network-side records to see whether they agree.

    Good evidence

    All outbound requests appear in the central logs with enough detail to identify what was sent where, and network records corroborate them with no unexplained gaps.

  4. Check 4 of 5What an auditor asks for

    Ask for

    Ask for central log entries showing outputs generated by an agent and where they were delivered.

    Look at

    Look at whether the output content and its destination are recorded and whether each output can be linked back to the session and tool calls that produced it.

    Good evidence

    An investigator can follow a chain from a generated output back through the tool calls and requests that led to it, all from the central platform.

  5. Check 5 of 5What an auditor asks for

    Ask for

    Ask for evidence of a recent exercise or real investigation in which an agent session was reconstructed from the central logs.

    Look at

    Check whether the reconstruction succeeded using only the central logs and whether any gaps or insufficient detail were identified and remediated.

    Good evidence

    The organisation has demonstrated that the logs are actually sufficient to investigate agent activity, and any shortfalls found have been fixed rather than left open.

Mappings

Closest match in ISO/IEC 27001: A.8.15, Logging of activities and events, which this control partially meets.

ISO 27001

ISO/IEC 27001: 2 mappings

ISO 42001

ISO/IEC 42001: 1 mapping

  • A.6.2.8AI system recording of event logsPartially meets
Essential Eight

ASD Essential Eight: 1 mapping

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.