Kiro-cli on Windows: Security Risks and Safety Best Practices

· Source: Artificial Intelligence in Plain English - Medium · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Cybersecurity & Data Privacy · Depth: Intermediate, short

Summary

Kiro-cli, an AI-powered developer assistant integrated with AWS for agentic workflows, presents significant security and stability risks when used on Windows systems. As of April 2026, Kiro-cli lacks native Windows support, requiring users to run it via Windows Subsystem for Linux (WSL). This compatibility layer introduces path-resolution errors and has led to documented cases of "command hallucination," where the AI misinterprets file paths due to differences between Windows' backslashes and Linux's forward slashes. A widely reported incident involved Kiro attempting a recursive deletion on critical system directories like C:\Windows\WinSxS. The tool's agentic nature, allowing it to read files and execute terminal commands, necessitates immediate hardening of its default trusted permissions to mitigate operational risks.

Key takeaway

For AI Engineers deploying Kiro-cli on Windows, prioritize security by running the tool exclusively within an isolated WSL2 environment. Avoid mounting your entire C: drive and diligently review every proposed command, especially those involving `rm -rf` or `del`, to prevent unintended system damage. Consider using the native Windows Kiro IDE for greater stability.

Key insights

Kiro-cli poses operational risks on Windows due to lack of native support and path interpretation issues.

Principles

Method

To safely use Kiro-cli on Windows, run it within an isolated WSL2 instance, mapping only specific project folders, and manually set the CLI to "untrust" file reads.

In practice

Topics

Best for: AI Engineer, Software Engineer, AI Security Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence in Plain English - Medium.