View a markdown version of this page

AWS Ops Agent Security - AWS Ops Agent (formerly DevOps Agent)

AWS Ops Agent Security

This document provides information about security considerations, data protection, access controls, and compliance capabilities for AWS Ops Agent. Use this information to understand how AWS Ops Agent is designed to meet your security and compliance requirements.

Multi-layered security

AWS Ops Agent implements security at multiple layers. Even if broader permissions are granted to the agent's IAM role, the agent enforces its own internal access controls to limit the scope of its actions.

We recommend following the principle of least privilege when configuring IAM permissions for AWS Ops Agent, and implementing security at multiple layers. Defense in depth ensures that no single misconfiguration can compromise the security of your environment.

Agent Spaces

Agent Spaces serve as the primary security boundary in AWS Ops Agent. Each Agent Space:

  • Operates independently with its own configurations and permissions

  • Defines which AWS accounts and resources the agent can access

  • Establishes connections to third-party platforms

Agent Spaces maintain strict isolation to ensure security and prevent unintended access across different environments or teams.

Chats and investigations are shared within an Agent Space. To keep your teams' work separate, use a different Agent Space for each team.

Regional processing and data flow

AWS Ops Agent operates globally with regional processing capabilities. The agent retrieves operational data from AWS regions across all AWS accounts granted access within the configured Agent Space. This multi-region cross-account data collection ensures comprehensive incident analysis while respecting geographical boundaries for inference processing.

Amazon Bedrock usage and cross-region inference

AWS Ops Agent will automatically select the optimal region within your geography to process your inference requests. This maximizes available compute resources, model availability, and delivers the best customer experience. Your data will remain stored only in the region where your Agent Space is created, however, input prompts and output results may be processed outside that region as described in the following list. All data will be transmitted encrypted across Amazon's secure network.

AWS Ops Agent will securely route your inference requests to available compute resources within the geographic area where the request originated, as follows:

  • Inference requests originating in Europe will be processed within Europe.

  • Inference requests originating in the United States will be processed within the United States.

  • Inference requests originating in Australia will be processed within Australia.

  • Inference requests originating within Japan will be processed within Japan.

  • Inference requests originating in Canada will be processed within North America (Canada or United States).

  • If an inference request originates in an area not listed, it will be processed by default within the United States.

  • Ops Agent and Bedrock are not impacted by customer policies in Service Control Policies (SCPs) or Control Tower that restrict customer content to specific regions

  • Bedrock may use regions other than the originating region within your geography to perform stateless inference to optimize performance and availability

European Union routing details

For Agent Spaces in a European Region, AWS Ops Agent uses the EU cross-Region inference profile. The following routing rules apply, as described in the AWS Artificial Intelligence Blog post Unlocking AI flexibility in Europe: A guide to cross-region inference for EU data processing and model access :

  • Requests from a source Region in the EU are only routed to other AWS Regions in the EU.

  • Requests from EU source Regions are not routed to non-EU Regions. Europe (London) is a European Region but is handled separately from the EU data boundary, so it is not used as a destination Region for these requests.

  • Requests originating in Europe (London) are only routed between available EU Regions and Europe (London).

Global cross-Region inference for specific Regions

For the following Regions, the geography-based routing described previously does not apply. Instead, AWS Ops Agent will automatically select the optimal region globally to process your inference requests.

  • Asia Pacific (Seoul) – ap-northeast-2

  • Asia Pacific (Singapore) – ap-southeast-1

  • Asia Pacific (Mumbai) – ap-south-1

  • South America (São Paulo) – sa-east-1

Inference in AWS GovCloud (US)

For Agent Spaces in AWS GovCloud (US-West), the cross-Region inference routing described previously does not apply. AWS Ops Agent does not use cross-Region inference, and it uses only foundation models that are available in Amazon Bedrock in the AWS GovCloud (US) Regions. For more information about the differences in AWS GovCloud (US), see AWS Ops Agent in AWS GovCloud (US) in the AWS GovCloud (US) User Guide.

Identity and access management

Authentication methods

AWS Ops Agent provides two authentication methods to log into the AWS Ops Agent Space web app:

  • AWS Identity Center integration – The primary authentication method uses OAuth 2.0 with session-based authentication using HTTP-only cookies. AWS Identity Center can federate with external identity providers through standard OIDC and SAML protocols, including providers like Okta, Ping Identity, and Microsoft Entra ID. This method supports multi-factor authentication through your identity provider. AWS Identity Center defaults to session durations of up to 12 hours and can be configured to a desired duration.

  • IAM authentication link – An alternative method provides direct access to the web app from the AWS Management Console using JWT-based tokens derived from an existing AWS Management Console session. This option is useful for evaluating AWS Ops Agent before implementing full Identity Center integration as well as gaining administrative access if the AWS Ops Agent web app becomes inaccessible through Identity Center based authentication. Sessions are limited to 8 hours.

IAM roles

AWS Ops Agent uses IAM roles to define access permissions:

  • Primary account role – Grants the agent access to resources in the AWS account where you create the Agent Space.

  • Secondary account roles – Grants the agent access to resources in additional AWS accounts connected to the Agent Space.

  • Web app role – Grants users access to AWS Ops Agent investigation data and findings in the web app.

These roles should be configured following the principle of least privilege, granting only the necessary read-only permissions required for investigations.

Data protection

Data encryption

AWS Ops Agent encrypts all customer data:

  • Encryption at rest – All data is encrypted with AWS-managed keys.

  • Encryption in transit – All retrieved logs, metrics, knowledge items, ticket metadata, and other data are encrypted in transit inside the agent's private network and to outside networks.

Data storage and retention

Data is stored in the region where your Agent Space is created, while inference processing may occur within your geography as described in the preceding Amazon Bedrock usage section.

When you delete an Agent Space, you lose access to its data immediately. AWS Ops Agent then permanently deletes the data from all its systems within 30 days. For more information about the deletion timeline, see How AWS Ops Agent deletes your data.

Personal identifiable information (PII)

AWS Ops Agent does not filter PII information when summarizing data gathered during investigations, recommendation evaluations, or chat responses. It is recommended that PII data be redacted before storing in observability logs.

Agent journal and audit logging

Agent journal

Both the Incident Investigation and Prevention capabilities maintain detailed journals that:

  • Log every reasoning step and action taken

  • Create complete transparency into agent decision-making processes

  • Cannot be modified by the agents once recorded, minimizing attacks such as prompt injection from hiding important actions

  • Include all chat messages from the Investigation page

AWS CloudTrail integration

All AWS Ops Agent API calls are automatically captured by AWS CloudTrail within the hosting AWS account. Using the information collected by CloudTrail, you can determine:

  • The request that was made to the agent

  • The IP address from which the request was made

  • Who made the request

  • When it was made

For MCP and A2A remote server connections, you can review AuthenticateAccessToken events that AWS Ops Agent records in CloudTrail each time it authenticates an access token, including failed authentications. For more information about event fields and correlating authentications with downstream actions, see Traceability in Authentication and security.

Note

For management and data events, only request parameters that are defined by the AWS Ops Agent API are eligible for redaction. Any additional fields that you include in a request that are not part of the API are recorded in CloudTrail exactly as you sent them and are not redacted. Do not include passwords or other sensitive information in fields that are not part of the API.

Prompt injection protection

A prompt injection attack occurs when an attacker embeds malicious instructions into external data, such as a webpage or document, that a generative AI system will later process. AWS Ops Agent natively consumes many data sources as part of its normal operations, including logs, resource tags, and other operational data. AWS Ops Agent protects against prompt injection attacks through the safeguards below, but it is important to ensure all connected data sources and user access to those data sources are trusted. See Shared responsibility model section for more.

Prompt injection safeguards:

  • Limited write capabilities – By default, the tools available to the agent are not able to mutate resources, with the exception of opening tickets and support cases. This prevents malicious instructions from modifying your infrastructure or applications. Directed actions are the exception. A directed action creates or modifies a resource, and the capability is disabled by default. If you turn it on, every directed action still requires operator approval before it runs. For more information, see Working with directed actions.

  • Account boundary enforcement – AWS Ops Agent only operates within the boundary permitted by the roles assigned to the agent in the primary and connected secondary AWS accounts. The agent cannot access or modify resources outside of its configured scope.

  • AI safety protections – AWS Ops Agent uses models with AI Safety Level 3 (ASL-3) protections, which include built-in classifiers that detect and resist prompt injection attempts. When the content safety guardrail is on, which is the default, the agent also uses a prompt attack filter that detects and blocks prompt injection and jailbreak attempts. For more information about the filter, see Detect prompt attacks with Amazon Bedrock Guardrails in the Amazon Bedrock User Guide.

  • Immutable audit trail – The agent journal logs every reasoning step and action taken. Journal entries cannot be modified by the agent once recorded, preventing prompt injection attacks from hiding malicious actions.

While AWS Ops Agent provides multiple layers of protection against prompt injection attacks, certain configurations can increase risk:

  • Custom MCP server tools – The bring-your-own MCP feature allows you to introduce custom tools to the agent, which can present additional opportunities for prompt injection. Custom tools may not have the same security controls as native AWS Ops Agent tools, and malicious instructions could potentially use these tools in unintended ways. See Shared responsibility model section for more.

  • Authorized user attacks – Users who are authorized to operate within the AWS account boundary or connected tools have a higher chance of attempting an attack against the agent. These users may have the ability to modify data sources that the agent consumes, such as logs or resource tags, making it easier to embed malicious instructions that the agent will process.

To mitigate these risks:

  1. Carefully review and test custom MCP servers before deploying them in Agent Spaces.

    1. Ensure they are only permitted to perform read-only actions

    2. Verify that users of external tools accessed by MCP servers are trusted entities, as AWS Ops Agents interfacing with MCP rely on the implicit trust relationship established between these tool users and the AWS Ops Agent

  2. Apply the principle of least privilege when granting users access to systems that provide data to the agent

  3. Regularly audit which MCP servers are connected to your Agent Spaces

  4. Since any content retrieved from allowlisted URLs could attempt to manipulate the agent's behavior, only include trusted sources in your allowlist.

Content safety guardrail

AWS Ops Agent provides a content safety guardrail, powered by Amazon Bedrock Guardrails, that screens the prompts sent to your Agent Space. It helps keep prompt injection and jailbreak attempts from reaching the agent. We manage the guardrail for you. It is on by default, including for existing Agent Spaces, unless you turn it off.

Choosing whether to turn off the guardrail

  • With the guardrail on, it screens the prompts sent to your Agent Space, and its prompt attack filter detects and blocks prompt injection and jailbreak attempts. The guardrail might occasionally block legitimate content.

  • With the guardrail off, the guardrail doesn't screen or block prompts. The agent still uses the built-in protections of its models. For more information about these protections, see Prompt injection protection.

Turning the content safety guardrail on or off

  1. Open the Agent Spaces page in the AWS Ops Agent console and choose your Agent Space.

  2. On the Configuration tab, turn Enable content safety guardrail on or off.

To turn off the guardrail when you create an Agent Space, see Configuring the content safety guardrail (optional).

To check whether the guardrail is on, open the Agent Space web app and choose Settings. The web app shows the setting as read-only and links to the Configuration tab in the console.

Integration security

AWS Ops Agent supports several integration types, each with its own security model:

  • Native bidirectional integrations – Built-in integrations that can send data to the agent and receive updates from the agent. This uses the vendor’s authentication methods

  • MCP servers – Remote Model Context Protocol servers that use OAuth 2.0 authentication flows and API keys to securely communicate with external systems.

  • Webhook triggers – Investigation triggers from remote services such as tickets or observability systems. Webhooks use either Hash-based Message Authentication Code (HMAC) signatures or an API key (bearer token) for security.

  • Outbound communication – The agent sends updates to integrations such as Slack, Microsoft Teams, and ticketing systems. In private Slack channels, mention the app to start and continue bidirectional conversations with the agent. For instructions on connecting Slack and Microsoft Teams, see Connecting Slack and Connecting Microsoft Teams.

  • Slack code channels – In a private Slack code channel for an investigation, the agent answers every message without a mention. For more information, see Using Slack code channels.

Registration providers

Some external tools are authenticated at the account level and shared among all Agent Spaces in the account. When you register these tools, you authenticate once at the account level, and then each Agent Space can connect to specific resources within that registered connection.

Connecting an Agent Space to a resource within a registered connection is an Agent Space operation. For example, if you have permission to modify an Agent Space, you can associate a Slack or Microsoft Teams channel by entering its channel ID or channel link. You don't need to be a member of that channel. To control who can create associations, manage Agent Space permissions through AWS Identity and Access Management (IAM) policies. For more information about the IAM actions that control associations, see Ops Agent IAM permissions.

The following tools use account-level registration:

  • GitHub – Uses OAuth flow for authentication. After registering GitHub at the account level, each Agent Space can connect to specific repositories within your GitHub organization.

  • Dynatrace – Uses OAuth token authentication. After registering Dynatrace at the account level, each Agent Space can connect to specific Dynatrace environments or monitoring configurations.

  • Slack – Uses OAuth token authentication. After registering Slack at the account level, each Agent Space can connect to specific Slack channels channels.

  • Microsoft Teams – Uses Microsoft Entra ID administrator consent and OAuth authentication. After registering Microsoft Teams at the account level, each Agent Space can connect to specific Teams channels.

  • Datadog – Uses MCP with OAuth flow for authentication. After registering Datadog at the account level, each Agent Space can connect to specific Datadog monitoring resources.

  • New Relic – Uses API key authentication. After registering New Relic at the account level, each Agent Space can connect to specific New Relic monitoring configurations.

  • Splunk – Uses bearer token authentication. After registering Splunk at the account level, each Agent Space can connect to specific Splunk data sources.

  • GitLab – Uses access token authentication. After registering GitLab at the account level, each Agent Space can connect to specific GitLab repositories.

  • ServiceNow – Uses OAuth client key/token authentication. After registering ServiceNow at the account level, each Agent Space can connect to specific ServiceNow instances or ticket queues.

  • General public accessible remote MCP servers – Use OAuth flow for authentication. After registering a remote MCP server at the account level, each Agent Space can connect to specific resources exposed by that server.

Network connectivity

AWS Ops Agent connects to your third-party systems and remote MCP servers to perform investigations and other operations.

Inbound traffic from AWS Ops Agent to your systems

AWS Ops Agent initiates outbound connections to your third-party systems and remote MCP servers, which arrive as inbound traffic to your infrastructure. How you secure this traffic depends on how your tools are hosted:

  • Privately hosted tools – If your tools are reachable from within an AWS VPC, you can use AWS Ops Agent private connections to keep traffic isolated to AWS networks, and off of the public internet. For more information, see Connecting to privately hosted tools.

  • Publicly hosted tools – If your tools are reachable over the public internet and use IP allowlisting or firewall rules, you must allow inbound traffic from the following AWS Ops Agent source IP addresses:

    • Asia Pacific (Sydney) (ap-southeast-2)

      • 13.237.95.197

      • 13.238.84.102

      • 52.64.174.242

      • 13.211.249.13

      • 15.134.235.54

      • 3.107.145.226

    • Asia Pacific (Tokyo) (ap-northeast-1)

      • 13.192.12.233

      • 35.74.181.230

      • 57.183.50.158

      • 13.114.228.89

      • 54.150.140.28

      • 46.51.224.121

    • Asia Pacific (Seoul) (ap-northeast-2)

      • 3.34.151.190

      • 43.201.166.78

      • 43.202.86.139

      • 3.34.18.33

      • 54.180.200.45

      • 54.116.192.122

    • Europe (Frankfurt) (eu-central-1)

      • 18.158.110.140

      • 52.57.96.160

      • 52.59.55.56

      • 63.183.67.111

      • 63.184.95.132

      • 63.184.36.38

    • Europe (Ireland) (eu-west-1)

      • 34.251.85.24

      • 52.30.157.157

      • 52.51.192.222

      • 99.81.41.52

      • 54.246.170.103

      • 52.212.224.65

    • US East (N. Virginia) (us-east-1)

      • 34.228.181.128

      • 44.219.176.187

      • 54.226.244.221

      • 100.56.22.59

      • 3.234.39.4

      • 44.215.92.10

    • US East (Ohio) (us-east-2)

      • 16.58.244.57

      • 18.221.155.24

      • 52.15.165.125

      • 3.140.232.11

      • 3.18.40.86

      • 3.136.175.223

    • US West (Oregon) (us-west-2)

      • 34.212.16.133

      • 52.89.67.212

      • 54.187.135.61

      • 34.209.115.89

      • 44.224.219.86

      • 54.201.89.243

    • South America (São Paulo) (sa-east-1)

      • 54.207.222.14

      • 54.232.201.242

      • 54.94.247.213

      • 54.94.50.36

      • 54.20.8.106

      • 52.67.155.119

    • Asia Pacific (Mumbai) (ap-south-1)

      • 13.126.209.199

      • 13.234.6.24

      • 35.154.102.216

      • 13.200.172.217

      • 13.235.168.21

      • 13.206.231.7

    • Asia Pacific (Singapore) (ap-southeast-1)

      • 18.139.13.125

      • 47.130.240.215

      • 54.179.238.173

      • 54.169.147.211

      • 52.77.189.96

      • 52.77.31.188

    • Canada (Central) (ca-central-1)

      • 3.96.5.29

      • 3.99.39.12

      • 99.79.90.221

      • 16.52.252.11

      • 16.52.242.49

      • 15.157.224.32

    • Europe (London) (eu-west-2)

      • 13.42.228.66

      • 16.60.62.58

      • 35.176.240.10

      • 16.60.67.127

      • 3.9.91.248

      • 35.179.253.69

    • Europe (Paris) (eu-west-3)

      • 15.224.33.200

      • 15.224.52.205

      • 35.181.29.248

      • 15.236.156.168

      • 35.181.249.41

      • 15.188.203.217

    • Europe (Stockholm) (eu-north-1)

      • 13.49.123.102

      • 13.49.215.189

      • 16.170.2.94

      • 51.21.185.240

      • 13.51.143.119

      • 13.62.195.255

Outbound traffic from your VPC to AWS Ops Agent

For outbound traffic from your AWS VPC to AWS Ops Agent (for example, using Ops Agent through outbound webhooks), you can use VPC Endpoints to keep this network traffic isolated to AWS networks. For more information, see VPC Endpoints (AWS PrivateLink).

Shared responsibility model

AWS responsibilities

AWS is responsible for:

  • Maintaining the security of data retrieved by the agent

  • Securing native tools available for use by the agent

  • Protecting the infrastructure that runs AWS Ops Agent

Customer responsibilities

Customers are responsible for:

  • Managing user access to the agent space

  • Limiting access to trusted users of external systems that provide inputs to the agent, such as services and resources that produce logs, CloudTrail events, tickets, and more – that may be used to attempt malicious prompt injection.

  • Ensure all connected data sources have trusted data that is unlikely to be used to attempt prompt injection attacks

  • Ensuring bring-your-own MCP server integrations operate securely

  • Connecting only trusted repositories for Code Change Risk Analysis reviews

  • Only referencing trusted and related code repositories in READMEs, pull and merge request comments, issues, and AGENTS.md files. For more information, see Repository content and external references.

  • Ensuring IAM roles assigned to the agent are properly scoped

  • Redacting PII data before storing in observability logs and other agent data sources

  • Following the recommended practice of granting only read-only permissions to connected data sources, including bring-your-own MCP servers

Data usage

AWS does not use agent data, chat messages, or data from integrated data sources to train models or improve the product. The AWS Ops Agent Space uses customer in-product feedback to improve the agent’s responses and investigations, but AWS does not use it to improve the service itself.

To provide the service and assess its performance, we may collect operational signals about your use of AWS Ops Agent's Release Manager, such as metrics based on your feedback to the Code Change Risk Analysis comments (such as whether you fixed a flagged issue, agreed to address it later, disagreed with it, or implemented a suggested code change).