![[Report] I Learned About the Incident Response Agent That AWS CIRT Runs on Kiro Crew and Its Investigation Phases #AWSreInvent #SEC347](https://devio2024-media.developers.io/image/upload/f_auto,q_auto/c_limit,w_1200/v1796065673/eyecatch/xw5jr5b9agc6qjxlknmg.png)
[Report] I Learned About the Incident Response Agent That AWS CIRT Runs on Kiro Crew and Its Investigation Phases #AWSreInvent #SEC347
This page has been translated by machine translation. View original
Introduction
Hello everyone, this is Akaike.
I'm attending AWS re:Invent 2026, and I listened to a Lightning talk session titled "Agentic AI for Security: How AWS CIRT reduced triage time to minutes".
When investigating security events, you need to cross-reference logs such as CloudTrail and GuardDuty to confirm what happened, but as the number of target accounts grows, it becomes impossible to keep up with humans alone...
In this session, the incident response agent that the AWS Customer Incident Response Team (CIRT) uses in its investigations was introduced, mainly through a demo, so I've summarized the content.
Session Overview
Title
Agentic AI for Security: How AWS CIRT reduced triage time to minutes (SEC347)
Abstract
When a security event hits a customer account, every minute counts. Learn how AWS CIRT built an agentic AI system using Amazon Kiro that performs investigation workflows autonomously: ingesting case data, baselining environments, analyzing indicators, and producing triage assessments. We cover architecture decisions for AI agents with live AWS API access, evaluation frameworks measuring accuracy against expert answer keys, and guardrails keeping humans in the loop. Leave with patterns for applying agentic AI to operational workflows where accuracy is non-negotiable.
When a security incident occurs in a customer account, every minute counts. We introduce how AWS CIRT used Amazon Kiro to build an agentic AI system that autonomously executes investigation workflows (ingesting case data, baselining the environment, analyzing indicators, and producing triage assessments). The session covers the architecture design of an AI agent with live AWS API access, a framework for measuring accuracy by comparing against expert answer keys, and guardrails that keep humans involved. You will learn patterns for applying agentic AI to operational workflows where accuracy is an absolute requirement.
Speakers
- Joshua McKiddy (AWS Customer Incident Response Team (CIRT))
- Brian Poole (AWS Customer Incident Response Team (CIRT))
Session Information
- Level: 300 - Advanced
- Session type: Lightning talk
- Topic: Security & Identity
- Related services: Kiro

Session Content
It was a 20-minute Lightning talk, and most of the time was spent on the demo.
Joshua McKiddy ran the demo, and Brian Poole supplemented it with the investigation phases and design thinking.
The First Response Can Make the Difference

CIRT is a team that helps customers respond to security events that occur on the customer's side of the shared responsibility model.
At the beginning of the session, the importance of the initial response was explained using a medical setting as an example.
- In emergency care, the first response, such as using a tourniquet or performing chest compressions, greatly affects the patient's prognosis
- The same is true for security incident response: the response needs to be both accurate and fast
- However, the more complex an incident becomes, the more logs, security events, and other information sources there are to analyze
Two Agents Running on Kiro Crew
The demo was performed on Kiro Crew.

Kiro Crew is an open-source development workspace that remembers the context of your work and what it has learned, and combines that with connected tools to move work forward.
The following two agents were used in the demo.
| Agent | Location on screen | How it's used |
|---|---|---|
| security-investigator | Sessions | A traditional agent with which the investigator proceeds with the investigation together, entering prompts |
| Incident Response Agent | Bots | A bot that launches a worker for each task and proceeds with the investigation automatically |

The security-investigator session screen displayed candidate next actions based on the investigation so far.
- Continue ci-deploy-svc triage to Phase 3
- Is the 2026-11-17 burst in scope for the case?
- Review the unsent analyst assessment draft
- Tighten the stakeholder message draft
- Rule out a sanctioned test for ci-deploy-svc
- List next steps to contain the leaked key
Requesting the Incident Response Agent

The Incident Response Agent was asked to investigate with the following prompt.
The scenario is that the CI/CD service account ci-deploy-svc is suspected of having been compromised.
The prompt summarizes the following premises of the investigation:
- The target account and the time window in which the compromise is suspected
- Similar activity also occurred on 2026-11-17, so it should be tracked separately as a different time window
- Neither time window is an authorized test
- The activity of
operator-Exampledetected by GuardDuty is suspicious, but its relationship toci-deploy-svcis not yet known - Parts where logs are missing should be recorded as gaps, and the investigation should proceed without stopping
Having received the request, the agent replied that it would track the two time windows separately, and started the investigation from Phase 1, Case Intake.
Workers Are Launched for Each Phase

The Incident Response Agent launches a separate worker for each required task.
The photo shows the task handed to the worker in charge of Phase 1 (Case Intake).
- YOUR TASK
- Confirm what
ci-deploy-svcis (IAM user or role, creation date, attached policies, access keys, last used date and time) - Confirm the log sources available for each time window and for about 30 days before it (CloudTrail, GuardDuty, VPC Flow Logs, S3 and CloudWatch logs, Config), and record each one as "available", "partial", or "visibility gap"
- List the GuardDuty findings related to
ci-deploy-svcandoperator-Examplewithout drawing conclusions - Record other identities that appear in the findings
- Confirm what
- REPORT
- Report briefly and in a structured form
- Separate confirmed facts from speculation, and do not include secrets or key information
Incident Response Agent – Six Phases

The agent proceeds with the investigation along the six phases of incident response.
| Phase | Description |
|---|---|
| Phase 1 - Case Intake | Receiving the case |
| Phase 2 - Environment Baseline | Understanding the environment baseline (its normal state) |
| Phase 3 - Indicator Analysis | Analyzing indicators of compromise |
| Phase 4 - Scope Determination | Determining the scope of impact |
| Phase 5 - Triage Assessment | Triage evaluation |
| Phase 6 - Documentation and Handoff | Creating documentation and handing off |
Brian Poole explained this with a medical example as well.
If a patient only says "my foot hurts," a doctor can't make a judgment either, but by asking about the situation at intake and comparing it with the normal state, they can finally begin a systematic examination.
The same goes for security investigations: first gather the case information and the environment baseline, and then move into the investigation.
Also, the phases do not only move in one direction.
For example, if it becomes clear partway through the investigation that the damage has spread to another account, the environment baseline needs to be retaken including that account.
The phases are traversed back and forth like this, but they give the agent a systematic way to proceed with the investigation.
Phase 2 Results

The security-investigator session displayed the results of Phase 2 (Environment Baseline).
- CRITICAL DATA MISSING
- The number of access keys and roles found with
query_statewas 0, but this is not treated as evidence that they "do not exist"; it is treated as a gap, meaning they are simply not included in the data at hand
- The number of access keys and roles found with
- Phase summary
- The earliest
ci-deploy-svcactivity that can be confirmed in the available data is the incident itself, so there is no normal activity to compare against - Two IAM users were created within the time window, and GuardDuty also detected DNS communication toward a C2 from the build runner
- The earliest
- Phase sign-off
- It organizes what could be confirmed (Verified), what could not be confirmed (Skipped), and the IOCs (indicators of compromise) that were added
- Finally, it asks the human whether to proceed to Phase 3 or whether there is anything they want to adjust
On the left side, the Incident Response Agent's workers were running the Phase 2 baseline in parallel.
Some customers have hundreds or thousands of accounts, and it is hard for humans to investigate them one by one.
The bot carries out a phase-based investigation for each item it finds, so the scope of the investigation can be extended to the entire environment.
The title of each chat shows which phase's work is being done, and it sometimes goes back to an earlier phase to re-examine something found in a later phase.
Phase 3 Splits Workers by Perspective

In Phase 3 (Indicator Analysis), workers were split by perspective.
- Phase 3, EC2 instance and Bedrock activity
- Phase 3, IAM persistence and privilege
- Phase 3, S3 data impact
- Phase 3, source IPs and attribution
For example, the worker in charge of S3 was given a task to build a timeline of S3 events for each time window and to examine what was deleted, what may have been read, and which protection settings (policy, replication, lifecycle, logging, versioning) were removed.
It was also instructed to record visibility gaps, such as S3 server access logging being disabled, and to report within 600 words with timestamps and event IDs attached.
The reason for having both a bot and a traditional agent was also explained.
Within Kiro Crew, the two can see each other's work, so the bot can act while understanding that "an investigator is investigating together" and what that investigator is doing.
The bot in the demo kept running with just a single initial prompt and no additional input.
Don't Make the Prompt Big; Split Into Tools
Brian Poole also introduced the design tweaks made for the agent.
- The prompt in the published sample is not large, and this is intentional
- At first they built a huge prompt, and it kept growing as they added to it
- They split part of the functionality out as a separate tool and made the agent use that tool every time it accesses data
- As a result, the speed and quality of the investigation improved greatly
When using it, he recommended adding tools to suit your own environment.
For information the agent doesn't inherently know, such as a change management database or an inventory, adding a tool so it can be queried improves the accuracy of the investigation.
By the way, query_state, evidence_aggregate, evidence_search, and list_findings, which also appear on the screen in the photo, are read-only tools provided by the sample MCP server.
The README lists eight tools in total, including dns_search, network_search, s3_access_search, and catalog_lookup.
Phase 4 and the Final Output

The Phase 4 (Scope Determination) worker was given the instruction "You are a read-only worker on an AWS security investigation. Use only your investigation tools.", which made it explicit that it investigates in read-only mode.
In the output, confirmed facts and gaps were written separately.
For example, the fact that an operation to delete an Amazon Bedrock guardrail failed with AccessDenied all three times is recorded as "confirmed", while the fact that which guardrails exist in the account cannot be confirmed from CloudTrail is recorded as a "Gap".
The final output summarizes what happened, what evidence exists, the required remediation, and visibility gaps.
Gaps are the parts where no evidence could be obtained, and they are treated as things that could add further context to the investigation if that information became available.
The reason S3 and IAM were investigated this time is that those are the only things the agent has access to; it doesn't mean the agent can only investigate that far.
If you give it context, it will investigate other resources as well.
In the final Phase 6 (Documentation and Handoff), it creates a report that can be handed to stakeholders such as executives and technical teams.
It is summarized in the same framework of "what happened," "what was visible," "what was not visible," and "what should be done."
The following features were also introduced in the demo.
- There are modes such as Normal and Trust, and you can answer questions from the agent or provide additional context
- At the bottom of the screen, candidate next actions inferred from the evidence found are displayed, and selecting one makes it the target of the next investigation
- The output includes a timeline, related findings, and open questions
Try it out!

The introduced agent is published in aws-samples as an open-source sample.
It also includes a sample scenario, so you can run it in your own environment.
The README shows that it is read-only and built on the premise that an analyst is involved in decision-making.
The sample incident included in evidence/sample-incident/ can be investigated locally without connecting to AWS.
Also, the evaluation mechanism mentioned in the session abstract, "measuring accuracy by comparing against answers created by experts," was not touched on in the session, but the repository's evaluation/ contains the answers and a scoring mechanism.
Q&A
At the end, the speakers answered questions from the audience.
Why they published the sample
When customers face a security problem, the goal should not be to contact CIRT but to contain it.
They said they want customers to use this agent as one of the tools for that.
Even when contacting CIRT, if you've already moved the investigation forward yourselves, response can begin that much sooner.
Permissions given to the agent
- Since you can investigate as long as you can read the logs, there is also a way to use it without giving it any permissions to the AWS environment. The logs can be local, and if they are in an S3 bucket, it is enough to be able to read that bucket
- If you also want to check configurations, read-only permissions are needed. No permissions to create anything are required
- In a large environment, investigating only one account is meaningless, so you need to make sure the remaining 99 accounts can also be investigated
Brian Poole added that since logs are originally in the cloud, in terms of ease of use and speed, giving it a read-only role that can run queries is ideal.
As a future improvement, they plan to incorporate the newly added STS feature that issues scoped-down credentials.
It was not yet released when this sample was created, so it is not included.
With this feature, even if you hand the agent administrator credentials, the agent itself can narrow them down to only the permissions needed for reading.
That means you can add one more layer of security for reducing permissions.
Note:
This is speculation, but it is probably GetScopedCredentials, announced on 2026/11/19.
This is an API that can issue credentials with narrowed permissions and session duration from existing temporary credentials.
Conclusion
That was the report on the session "Agentic AI for Security: How AWS CIRT reduced triage time to minutes".
Being able to see on screen how AWS CIRT actually runs the agent in real investigations made this an easy session to picture.
Personally, the following points were particularly impressive.
- Explicitly marking missing data as a "gap"
- Even when a search returned 0 results, it distinguished that from the data simply not being at hand
- I think this is an important behavior for judging whether the investigation results can be trusted
- Splitting into tools instead of enlarging the prompt improved speed and quality
- It's easy to keep adding instructions to a prompt, so the idea of extracting them into tools that can be used with a fixed procedure seems like something I could try right away when building my own agent
- The bot and humans can see each other's work in the same workspace
- Rather than leaving everything to an automatically running bot, the setup had the bot understand what the investigator was doing and work in parallel
- I think this is a realistic form for keeping humans involved in decision-making
- If it can read logs, it can be used without granting permissions to the AWS environment
- When using an agent for security investigations, permissions are a concern, but being able to start by having it read only logs seems like a point that makes adoption easier
First, I'm going to run the sample scenario locally and try out how the six phases proceed.
