Manthan.Ai
Powered by ConsultEdge.global

Welcome to CEG Manthan, TO THE NEW's GenAI assistant, here to guide you through our world of cloud, data, AI, and digital transformation.

What can we solve for you today?
✳︎
AI responses may contain mistakes. Please verify important information.
Enterprise AI Agent Security Framework Identity Policy and Guardrails on AWS

Securing Enterprise AI Agents: Identity, Policy and Guardrails on AWS

Security considerations with AI agents involve granting agents the minimum required access, ensuring validation and logging. As with onboarding new employees, this is often a barrier to agent adoption.

Step one: issue a badge

Ensure agents are representative of users, not developers. If the same key is placed into the config, all actions performed by the agent will be indistinguishable. There is no way to determine what request was made by whom.

Give the user’s identify to the agent.  Now, the agent will have the same privileges as the user. If the agent is being used by a junior support agent, they should not see the data a manager would see. Using AgentCore Identity, agent and user identities can be tied to identity providers (such as Amazon Cognito / Okta).

Step two: write the rulebook

As prompts are polite requests, it is possible to trick models into doing actions. Therefore, important rules should be defined externally. For example, if there is a limit on refunds, the agent must not allow refunds over the approved amount. By defining AgentCore policy, strict rules can be applied to the tools and data, outside of the agent. This ensures that refunds are never over the approved amount.

Step three: add a content filter

Guardrails can be used to ensure safe and appropriate input/output. They can be seen as an additional layer to policies. Guardrails determine whether text is appropriate. Policies determine whether actions are appropriate.

Step four: install a camera

To secure an agent, you must be able to observe it. Ensure logs, metrics, and traces are captured in order to know who, when, why, and what actions were performed within a session. This information will be requested by auditors. Continuously scoring accuracy and tool usage can also help detect drift.

Step five: assign an owner

AI agent governance is about people as much as technology. Decide who will approve new tools, review policy changes, and manage incidents. In high-risk scenarios (such as large payments), ensure a human has approved the action. Document roles in advance.

Step six: test before opening the door

LLM security testing includes checking for prompt injection, data leakage, and incorrect tool usage. First, perform threat modeling to understand what resources the agent can access. Consider how each of those resources could be misused. Perform vulnerability and penetration testing on the agent.

Testing should be performed on the surrounding application. Using automated tools, design documents and code can be checked to ensure they meet standards. On-demand attacks can be performed, and verified risks can be highlighted, with repeatable steps and recommendations for remediation.

A quick map of risk and control

  1. Shared keys: fix each user’s identify
  2. Quick fixes: employ policies that are not part of the model
  3. Unsafe content: utilize guardrails to rectify it
  4. No audit trail: employ observability to rectify
  5. Unknown problems may be rectified by normal testing

Questions to ask before launch

  1. Is the agent able to carry out tasks that the user is not permitted to?
  2. If the prompt is hacked, what restrictions are still in effect?
  3. If there is a failure, who is informed?
  4. When was the latest test of the agent?

The takeaway

Build multiple layers of AI agent security. Identity and policies should be in place, followed by guardrails and logging. Regular testing should be performed. If teams require assistance, they can find guidance at Consultedge Global (built on a CERT-In impanelled security practice). If done well, security can increase adoption of agents.

Scroll to Top
Contact Us on WhatsApp
india
India Office
uae
Dubai Office
freedemo

Connect With Our Experts