AWS Builder Center

Security Considerations for AI Coding Assistants — and How Kiro Addresses Them

AI coding assistants come with data protection, governance, and output quality considerations. This post covers how Kiro approaches each one with defaults and configurable controls.

AI coding assistants are becoming a standard part of development workflows. Like any tool that processes source code, they come with considerations around data handling, governance, and output quality. Understanding these considerations helps organizations adopt AI coding assistants with the right controls in place.
This post covers three areas worth thinking about and how  Kiro , an agentic AI IDE from AWS, approaches each one.

1. Data Protection and IP

When developers use AI coding assistants, source code is sent to AI services during completion requests. Organizations reasonably want to understand how that code is handled — whether it's stored, how it's encrypted, and whether it's used for model training.
Different pricing tiers across AI coding tools handle data differently. Free tiers may use content for service improvement, while paid tiers typically do not. The important thing is knowing which policy applies to your tier and verifying it matches your organization's requirements.

How Kiro approaches this

Kiro encrypts all data in transit using TLS 1.2+ and at rest using an AWS managed key — no configuration needed. Organizations that want additional control can configure a customer-managed KMS key. ( Data protection ,  Enterprise settings )
For data sharing, the policy depends on the tier. For Kiro Pro and Enterprise subscribers, content is not used for service improvement or model training. Free tier users should review the  Kiro FAQ  for the current data handling policy applicable to their tier.
Activity dashboards and prompt logs are available for teams that want to review AI interactions and generated code. ( Monitoring and tracking )

2. Governance and Visibility

Development teams naturally adopt tools that make them productive. When multiple AI tools are adopted independently across teams, organizations can end up with fragmented usage and limited visibility into what's being used and how.
This isn't unique to AI tools — it's the same dynamic that happens with any developer tooling adoption. The practical question is: how do you maintain visibility and consistent policies as adoption scales?

How Kiro approaches this

Kiro provides centralized management so organizations can govern AI-assisted development as a platform rather than tracking individual tool installations:
  • A  usage dashboard  provides aggregate metrics and per-user activity reports.  Prompt logs  can be stored in an Amazon S3 bucket in your own account.
This gives security and platform teams the visibility they need without slowing down developers.

3. AI Output Quality and Dependency Risk

AI-generated code is a starting point, not a finished product. It needs the same review as human-written code — checking against organizational standards, validating dependencies, and ensuring it follows established patterns.
One specific area worth noting: AI models can suggest package names that don't exist in public registries. This is a known behavior called "hallucination," and it has led to a technique called "slopsquatting" where those non-existent names get registered with malicious packages. It's a practical consideration for dependency management.

How Kiro approaches this

Kiro provides two mechanisms that help teams maintain code quality and manage dependency risk:
 Steering rules  let teams define guidelines in  .kiro/steering/  files that shape AI behavior across the workspace. For example, a rule that guides dependency selection:
Markdown
# dependency-standards.md

## Dependency Selection
- Only suggest packages that are well-established with active maintenance
- Prefer packages with over 1,000 weekly downloads on npm or PyPI
- Always use exact version pinning in package.json and requirements.txt
- Do not suggest packages you are uncertain about — ask the developer to verify
These rules apply consistently to all AI interactions in the workspace, helping maintain a baseline that aligns with your team's standards.
 Agent hooks  automate checks by triggering external tools when code changes occur. For example, a hook that runs a dependency audit when package files are modified:
JSON
{
"name": "Dependency Audit on Package Change",
"version": "1.0.0",
"when": {
"type": "fileEdited",
"patterns": ["package.json", "package-lock.json", "requirements.txt"]
},
"then": {
"type": "runCommand",
"command": "npm audit --audit-level=high"
}
}
Hooks connect code changes to your existing security toolchain — the scanning tools are yours, hooks provide the automation layer.

Summary

Consideration
Kiro Capability
Default or Configure
Data encryption (transit and rest)
TLS 1.2+ and AWS managed key
Default
Content not used for model training
Pro and Enterprise tiers
Default for Pro/Enterprise
Customer-managed encryption key
KMS key support
Configure
Audit trails
Activity dashboards, prompt logs to S3
Configure
Centralized access control
IAM Identity Center, Okta, Microsoft Entra ID
Configure
Usage monitoring
Dashboard, per-user reports
Configure
Code quality guidance
Steering Rules
Configure
Automated dependency checks
Agent Hooks
Configure
Adopting AI coding assistants is a practical decision. The considerations around data protection, governance, and output quality are straightforward engineering concerns — and they have straightforward solutions. Kiro provides defaults that handle the fundamentals and configurable controls that let you tailor governance to your organization's needs.
To learn more, visit  kiro.dev .
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article