All integrations

    Integration: Kiro

    How do I secure Kiro's agent?

    Updated

    Short answer

    Use supervised mode for sensitive repos, set deny and ask rules in Kiro's enterprise permission policy, vet MCP servers, and check every action before it runs. Kiro's permissions are glob patterns and its hook matchers can match more than you meant. Harden AIF connects to Kiro's main-agent hooks and a proxy for subagent MCP calls, and checks each action on the developer's machine before it executes.

    What Kiro's agent can do on a developer's machine#

    Kiro's permissions docs list what the agent can reach: file reads and writes, shell, web fetch and search, MCP tools and subagents. In practice:

    • in autopilot, Kiro "creates, edits, and deletes files without asking";
    • it runs shell commands once a permission rule allows them;
    • it calls MCP servers, and Kiro's MCP docs leave the trust call to you: "Only install MCP servers from sources you trust";
    • it hands work to subagents, which take actions of their own.

    What Kiro's own controls do, and what they miss#

    • Autopilot and supervised mode set when Kiro stops for approval. Supervised mode pauses after each turn that edits files; a person still reviews every change.
    • Capability-based permissions allow, ask or deny by capability and pattern, and Kiro splits chained commands to check each part. Shell, web and MCP patterns are globs, and richer patterns "are not supported".
    • Enterprise permission policies in managed settings can set deny and ask rules that users can't loosen.
    • Untrusted workspaces ask before every MCP tool call.
    • Pre Tool Use hooks trigger when the agent is about to invoke a tool and "Can validate and block tool usage". A plain matcher name "can therefore match any tool ID containing that text", so a check can fire on the wrong tools, or miss the right one.

    What Harden AIF checks before each Kiro action#

    AIF is a separate service on the developer's machine. Kiro calls it through its main-agent hooks, and a proxy for subagent MCP calls, before each action runs, so the check sits outside the agent and its context window. For each pending action, it:

    • parses the command into a syntax tree and follows each value from its source to where it ends up, so a secret headed for a network call gets blocked however the command is written;
    • judges secrets by their content, not their file name;
    • checks destructive commands (recursive deletes, force-pushes to the default branch, piping curl into a shell, disk wipes) against where they actually run;
    • decodes base64 and hex before it decides, and sends dynamic code it can't resolve to a human;
    • fails closed: if the check can't run, the action doesn't run.

    When it blocks, the agent gets the reason and can retry a safe way. Every decision is recorded, and you can export the records to your SIEM.

    One limit, from the Harden docs: Kiro subagent shell and file operations are a documented coverage exclusion. Plan your subagent use with that in mind.

    How to set up Harden for Kiro#

    These steps come from the Harden docs.

    1. Install AIF with curl -fsSL https://aif.harden.run/install.sh | sh, then open a new shell.
    2. Connect Kiro with aif configure --agent kiro --validate.
    3. Run aif status to check protection, the local model and activity history.
    4. Run aif demo for a safe demo, and aif show to open the local decision history.

    For a fleet, follow the enterprise setup guide: create the organization, make an enrollment profile, push the package through your MDM and verify a pilot device. Start in shadow mode, so your team sees what agents do before anything gets blocked.

    FAQ

    Questions about Kiro

    What's the difference between Kiro's autopilot and supervised mode?

    In autopilot, now called Accept file changes, Kiro creates, edits and deletes files without asking and asks before commands unless a permission rule allows them. In supervised mode it pauses for approval after each turn that edits files.

    Does Harden cover Kiro subagents?

    Partly, and the docs say so. Harden checks the main agent's actions through hooks and subagent MCP calls through a proxy. Subagent shell and file operations are a documented exclusion.

    Can Kiro hooks block a tool call?

    Yes. Kiro's Pre Tool Use hook triggers when the agent is about to invoke a tool and can validate and block it. A loose matcher can catch more tools than you meant, so test it.

    Sources

    1. Kiro docs: Permissions
    2. Kiro docs: Autopilot
    3. Kiro docs: Hook types
    4. Kiro docs: MCP
    5. Harden docs: Supported coding agents
    6. Harden docs: Configure an agent

    Start free at harden.run

    Full Enterprise access, free for 60 days, when you sign up by Dec 1: unlimited developers, custom policies, centralized visibility, no commitment.

    Other agents: see every integration.