NeuralTrust has been recognized by Gartner → Read more
Back

Kiro Security: NeuralTrust Integration

Roger Howroyd December 1, 2026
Share
Kiro Security: NeuralTrust Integration

Last updated: December 1, 2026 · Reviewed by Alessandro Pignati

How do you control what Kiro's agent does on a developer's machine? Kiro is AWS's agentic IDE. Its agent reads repositories, writes files, runs shell commands and calls MCP tools with the developer's own permissions. NeuralTrust's new Kiro integration puts a policy check on those actions: agent hooks send prompts, commands, file writes and tool results to AI Runtime Security (TrustGuard), and the Agent Gateway (TrustGate) becomes the governed MCP endpoint, with one URL per application.

This guide starts with why Kiro security needs more than an allow-list, then covers what the integration checks, how to roll it out and where its limits are. The full setup guide is in the NeuralTrust docs.

Why Kiro security needs a runtime check

An agentic IDE runs next to the most sensitive things a developer has: source code, cloud credentials and a shell. 2026 has already shown how untrusted content can turn that access against the developer.

  • A poisoned web page. In July 2026, Intezer, with Kodem Security, disclosed that hidden text on a web page could make Kiro rewrite its own MCP configuration file, ~/.kiro/settings/mcp.json, and launch an attacker's code. The developer had only approved fetching the page. AWS fixed it and assigned CVE-2026-10591.
  • A malicious workspace. In August 2026, Mindgard showed that opening a malicious workspace file (File, then Open Workspace From File) let attacker-controlled content steer Kiro's agent into sending sensitive workspace data to an attacker's endpoint through Kiro Powers, after any ordinary message. Amazon said it fixed the issue shortly after it was reported.

Both flaws are reported as fixed, and the lesson outlasts them. Intezer's own recommendation is to enforce high-risk protections at the platform level rather than rely on the model's judgment, because prompt injection cannot be fully prevented. A runtime check does not make an IDE immune, and NeuralTrust's docs do not claim the integration would have stopped either attack. What it adds is a decision point outside the model on the actions that matter: commands, file writes, MCP calls and tool results.

What Kiro's own controls cover, and what is still open

Kiro Enterprise gives administrators real controls. By default, "your users can use any MCP server in their Kiro client", but admins can switch MCP off or publish a registry that allow-lists approved servers, set per organization or per account (Kiro docs). Admins can also limit which models developers see, and the Enterprise Management preview adds rules to allow, deny or ask before specific capabilities.

Those controls decide which servers and models are available. Kiro's documentation is also clear about their edges:

  • Client-side enforcement. The MCP toggle and registry are enforced in the client, so a user with local admin rights can work around them.
  • Sign-in scope. MCP governance applies to users who sign in with IAM Identity Center or API keys, not to Builder ID or social sign-in.
  • No content inspection. An allow-listed server can still return a poisoned result, and an approved shell tool can still run a dangerous command.

That last gap is the one the Intezer and Mindgard research exploited: approved capabilities used against the developer through untrusted content.

Security and governance: what the Kiro integration controls

The integration uses two NeuralTrust products, each with its own credential. Hooks authenticate with a collector key, and MCP uses OAuth or a TrustGate API key.

AI Runtime Security (TrustGuard) evaluates Kiro's agent events against your policy through three agent hooks installed on each developer machine:

Kiro eventWhat TrustGuard checksWhat it can do
Prompt submissionJailbreaks and secrets or personal data in the promptLog the event; taint the session if the prompt is blocked
Before a shell commandDangerous or out-of-policy commandsBlock, or rewrite the command with masked values
Before a file write or MCP callSecrets written to files and risky MCP callsBlock, ask the developer, or mask arguments
After a tool runsIndirect prompt injection in MCP or tool outputBlock with a reason and taint the session

Kiro chat showing TrustGuard hooks flagging a hidden prompt injection in notes.md and blocking the next command in the tainted session

The Agent Gateway (TrustGate) handles the MCP side. Kiro connects to one TrustGate URL per application, and TrustGate decides which tools that application exposes, authenticates the connection and applies per-tool rate limits. TrustGate tool calls also pass through the TrustGuard hooks, so the same policy covers them.

Two behaviors are worth knowing. When TrustGuard blocks a prompt or a tool result, it taints the chat, and every later tool call in that chat is denied until the developer starts a new one. And with fail_mode set to closed, every tool call is denied if TrustGuard is unreachable or the configuration is broken, so an outage does not leave tool calls unchecked. The config file defaults to open, so set closed explicitly for MDM rollouts.

Try our AI Gateway today for free

How to roll out the Kiro integration

There are two paths, and most teams use both.

TrustGuard hooks, for every agent action. Create a Kiro collector in the NeuralTrust console (Agent Security, then Collectors, then Catalog, then Coding agents, then Kiro), copy its key and assign a policy. For a pilot, a setup script writes the key to ~/.trustguard/kiro.json, sends a test prompt and installs three hook files into the project's .kiro/hooks/ folder. Trust the workspace, reload the window and check that the hooks appear in Kiro's Agent Hooks panel.

For a fleet, IT deploys three parts by MDM: the hook runtime in a fixed folder, a managed kiro.json and the workspace hook files. When the managed file contains the key, developers cannot override the data URL, the key or the fail mode (this locks the configuration, not the machine: the hooks run client-side, like Kiro's own controls). Developers do not need NeuralTrust accounts for this path.

TrustGate, for MCP. Add TrustGate as a remote server in Kiro's workspace or user mcp.json. With OAuth, the entry only needs the application URL, and Kiro runs a browser sign-in on first connect:

Copied!

API keys are also supported, sent as a header that reads from an environment variable. Confirm that TrustGate shows as connected in Kiro's MCP servers view, call a tool and check the call in TrustGate Activity.

Start the TrustGuard policy in Observe mode, which records decisions in Activity without enforcing them. Review a week of real events, then switch to Enforce. Set a consumer_id per developer if you want per-person attribution, since Kiro does not expose the account email to hooks.

TrustGuard Activity entry showing an MCP tool output blocked by Indirect Prompt Injection for a hidden instruction to exfiltrate AWS credentials

What the integration does not cover

The coverage is strongest where the risk is highest, on tool calls, and thinner elsewhere. Here is the honest picture from the docs:

SurfaceMonitorBlockRedact
Prompt to the modelYesPartialNo
Model responseNot evaluatedNot evaluatedNot evaluated
Tool callYesYesYes
Tool resultYesYesNo
  • Prompts cannot be stopped yet. According to NeuralTrust's docs (Kiro issue #11050), Kiro currently ignores the exit code of prompt-submission hooks, so a blocked prompt still reaches the model. The integration taints the session instead, so no tool can run afterward in that chat.
  • Only agent actions are covered. Commands a developer types into Kiro's own terminal do not go through hooks.
  • Hooks are per workspace. They run only in trusted workspaces that have the hook files installed, which is why MDM rollout matters. Untrusted workspaces get no hook coverage.
  • Output already produced stays produced. A post-tool block cannot erase what the tool returned. The agent is told to treat it as untrusted and the session is tainted.
  • Tested scope. The hooks are verified on Kiro IDE 1.5.49. The docs do not cover Kiro CLI, autopilot, specs or plans.

Use TrustGate to control which tools exist, since hooks do not evaluate tool declarations or model responses.

Which Kiro setup fits your team?

Your situationRecommended setup
Pilot with a few developersPilot install of TrustGuard hooks in Observe, plus TrustGate for one MCP application
Company-wide Kiro Enterprise rolloutMDM-managed hooks with fail_mode closed, Kiro MCP registry pointing to TrustGate, Enforce after review
Teams with production cloud credentials on their laptopsBlock rules on shell commands and file writes, masking for secrets
Agents that browse the web or read third-party reposPost-tool injection checks on every result, with session taint left on

Conclusion

Kiro security starts with Kiro's own controls: an MCP allow-list, model governance and identity through IAM Identity Center. They decide what the agent can reach, not what it does with untrusted content. The integration adds that missing layer, checking each command, file write, MCP call and tool result before it lands. Roll it out by MDM, start in Observe, and treat the prompt gap as a known limit until Kiro honors prompt-hook exit codes.

Secure Kiro in Production with NeuralTrust

See the integration running on your developers' machines, with TrustGuard hooks and TrustGate MCP configured for your policies.

Book a demo with NeuralTrust

Related Comparisons

FAQs about Kiro Security

1. Is Kiro safe to use in an enterprise?

Kiro Enterprise adds IAM Identity Center sign-in, model governance and an MCP allow-list, and AWS patched the 2026 prompt injection flaws once they were reported. The remaining risk is untrusted content steering an approved agent. Add a runtime check on commands, file writes and tool results, keep Kiro updated and roll out controls centrally rather than per developer.

2. Can Kiro's MCP allow-list stop prompt injection?

No. The allow-list decides which MCP servers developers can connect to, and Kiro enforces it on the client. It does not inspect what an approved server returns, so a poisoned tool result from an allowed server still reaches the agent. Inspection of tool results, such as TrustGuard's post-tool hook, covers that gap.

3. What are Kiro agent hooks?

Agent hooks are scripts or prompts that Kiro runs on events such as prompt submission, before a tool runs and after a tool runs. Pre-tool hooks can block a tool call. The integration uses these three events to send each action to TrustGuard for a policy decision.

4. Does the integration block prompts sent to Kiro's model?

Not yet. According to NeuralTrust's docs, Kiro currently ignores the exit code of prompt-submission hooks, so a prompt that TrustGuard flags still reaches the model. The integration taints that chat instead, so every later tool call in it is denied until the developer starts a new chat.

5. How do you deploy TrustGuard hooks to every developer?

Use MDM. Deploy the hook runtime to a fixed folder, a managed kiro.json with the collector key and the workspace hook files. When the managed file holds the key, developers cannot override it. Hooks run per workspace, so install them in every project that needs protection.

About the Author

Roger Howroyd is Head of Global SEO and AI at NeuralTrust, where he leads the company's search strategy across SEO, AEO, GEO, and LLM optimization. He specializes in AI-powered search, content strategy, and SEM. Connect on LinkedIn.

Reviewed by Alessandro Pignati, Lead AI Security Researcher at NeuralTrust.

NeuralTrust is the leading platform for securing and scaling AI agents. Named a Pioneer in the Gartner Emerging Market Quadrant for AI Application Security 2026, recognized across four Gartner Hype Cycle reports in 2026, and featured in the Gartner Market Guide for Guardian Agents 2026, the Gartner Market Guide for AI Gateways 2025 and the KuppingerCole Leadership Compass for Generative AI Defense 2025. Headquartered in Barcelona with offices in London and New York. ISO 27001 certified.

Sources

  1. NeuralTrust, Kiro integration, NeuralTrust docs, checked December 1, 2026.
  2. Kiro, MCP governance, Kiro Enterprise docs, checked December 1, 2026.
  3. Kiro, Hook triggers, Kiro docs, checked December 1, 2026.
  4. Intezer, When the AI Edits Its Own Trust Boundary: Remote Code Execution Vulnerability in AWS's Agentic IDE, July 20, 2026.
  5. The Hacker News, Amazon Kiro Prompt Injection Can Exfiltrate Sensitive Data Through Kiro Powers, August 27, 2026.

Subscribe to our newsletter

Share

Join the leaders securing the agent ecosystem

Get a Demo