Based on the provided information, here are the three security principles for managing access for agents and AI coding assistants:
Principle 1: Assume All Granted Permissions Are Abused
Explanation: Given that ML models can generate malicious code or requests, assume any permission granted to an agent could be misused. This principle emphasizes the need for strict least-privilege policies.
Implementation:
- Least Privilege Roles: Use roles with minimal permissions necessary for specific tasks.
- Guardrails:
- Permission Boundaries
- Service Control Policies (SCPs)
- GuardDuty and other monitoring tools to detect unusual activity
Principle 2: Differentiate Between Human and AI Actions
Explanation: Distinguish between actions initiated by humans versus those initiated by agents or ML models. This helps in attributing responsibility and auditing.
Implementation:
- AWS Managed MCP Servers: Use automatic context keys (
aws:SourceIP,aws:PrincipalTag). - Self-managed MCP Servers: Implement session tags manually when assuming roles.
- Session Policies: Apply temporary, narrow permissions for each tool invocation.
Principle 3: Secure the Agent's Runtime Environment
Explanation: Ensure that agents and their environments are
Read the full article at AWS Security Blog
Want to create content about this topic? Use Nemati AI tools to generate articles, social posts, and more.

![[AINews] The Unreasonable Effectiveness of Closing the Loop](/_next/image?url=https%3A%2F%2Fmedia.nemati.ai%2Fmedia%2Fblog%2Fimages%2Farticles%2F600e22851bc7453b.webp&w=3840&q=75)



