Enable Amazon Bedrock Activity Monitoring

Chat assistants, agents, and custom applications that use Amazon Bedrock on Amazon Web Services (AWS) to invoke a large language model (LLM) generate a continuous stream of prompts and model responses. When enabled, Amazon Bedrock model invocation logging records these interactions as raw logs, but it does not inspect them for security risks.

Tenable One AI Exposure monitors these Amazon Bedrock model invocation logs. The platform catalogs the interactions in the logs, inspects them for security risks, and shows the results in the AI Exposure console.

To view activity detections for your AI applications, navigate to the Activity Detections page in AI Exposure. For more information, see AI Activity Detections.

Supported APIs and Models

AI Exposure supports the following Amazon Bedrock model invocation APIs:

API Description Supported Models
Converse The standard Amazon Bedrock API for model invocation that sends messages to an Amazon Bedrock model through a consistent interface. All models available through Amazon Bedrock.
InvokeModel A direct invocation of a specific model hosted in Amazon Bedrock. Currently, Anthropic models only.
Note: AI Exposure processes only model invocation logs that contain text-only content blocks into messages. AI Exposure skips any logs that contain non-text content blocks, such as images or tool calls.

Prerequisites

Before you enable Amazon Bedrock activity monitoring in AI Exposure, ensure that you have the following:

  • A connected AWS account — To onboard an AWS account, see Connect an AWS Account.
  • Required Permissions:
    • Permissions to modify Amazon Bedrock settings in the regions that you want to monitor, which allows you to enable model invocation logging.
  • An Amazon S3 bucket to receive the Amazon Bedrock invocation logs. You can use a new or existing bucket.

Step 1: Enable Amazon Bedrock Model Invocation Logging

Complete the following steps for each AWS region where you use Amazon Bedrock.

  1. Sign in to the Amazon Bedrock console for your region.
  2. In the left navigation pane, click Settings.
  3. In the Model invocation logging section, turn on the Model invocation logging toggle.
  4. For both input and output content, select Text as the data type.
  5. Select an Amazon S3 bucket as the logging destination. Note the bucket name and, if the bucket is encrypted with an AWS KMS key, the KMS key ARN.
  6. Click Save settings.

For more information, see the Amazon Bedrock documentation.

Note: AWS provisions Amazon Bedrock separately for each region in each account. Therefore, you must enable model invocation logging for every Amazon Bedrock instance in each AWS region where you deploy your account.

Step 2: Grant AI Exposure Access to the Amazon S3 Bucket

The IAM role associated with your account connection requires the following permissions to retrieve data from the Amazon S3 bucket:

  • s3:GetBucketLocation
  • s3:GetObject
  • s3:ListBucket
  • kms:Decrypt (required only if the bucket is encrypted with an AWS KMS customer managed key)
Note: Restrict these permissions to the designated log bucket and any specific key prefix that you use. If your existing connector role already has global read-only access to data buckets, you do not need to take further action. Otherwise, update your IAM permissions or bucket policy to grant access.

For more information about permissions, see AWS Required Permissions.

To enable Amazon Bedrock monitoring on a connected AWS account:

  1. Navigate to Settings > Integrations.
    The Integrations page appears.
  2. In the row of the account for which you want to enable Amazon Bedrock monitoring, click the three-dots icon, and then select Edit.
  3. In the Permissions step, enable Bedrock Model Invocation Logging (S3), and then select the regions where you want to monitor Amazon Bedrock logs.

    Note: You should only select AWS regions where Amazon Bedrock is available and that are already enabled in this AWS account's integration settings. If other regions are selected, it results in an issue for this AWS account connection.
  4. In the IAM Role step, update the existing IAM role with the Amazon Bedrock permissions by using either the CloudFormation (AWS CLI) or the Manual (AWS Console) methods.

Update the IAM role using CloudFormation (AWS CLI):

  1. Open a new shell session with the latest version of the AWS CLI. Administrator privileges are required to update the CloudFormation stack.
  2. Copy the command that appears in the wizard, and run it in your shell.
  3. Wait until the stack update is complete. The command updates the existing role, so it does not return a TenableRoleArn output in the shell.
  4. Click Next, and then click Finish.

To update the IAM role manually (AWS Console):

  1. In the AWS Management Console, navigate to IAM > Roles, and select the role created during onboarding.
  2. On the Permissions tab, click Add permissions > Create inline policy.
  3. Click JSON, and paste the policy that appears in the wizard. Replace bucketName with the name of your S3 bucket and bucketKeyArn with your KMS key ARN. If the bucket is not encrypted with a KMS key, remove the kms:Decrypt statement.

    Note: The policy must include every Amazon S3 bucket and every AWS KMS key that Amazon Bedrock uses as a model invocation logging destination, across all the regions that you monitor.
    Copy

    JSON

    {
    "Version": "2012-10-17",
    "Statement": [
      {
        "Effect": "Allow",
        "Action": [
          "s3:GetBucketLocation",
          "s3:GetObject",
          "s3:ListBucket"
        ],
        "Resource": [
          "arn:aws:s3:::bucketName",
          "arn:aws:s3:::bucketName/*"
        ]
      },
      {
        "Effect": "Allow",
        "Action": "kms:Decrypt",
        "Resource": "bucketKeyArn"
      }
    ]
    }
  4. Click Next, enter a name for the policy, and then click Create policy.
  5. Click Next, and then click Finish.

KMS Key in Different Account

If the KMS key that encrypts your Amazon Bedrock log bucket is located in a different AWS account than the one that is already connected, you need to grant AI Exposure access to the key.

To grant access to a KMS key located in a different account:

  1. Navigate to the AWS account where the Amazon Bedrock log bucket KMS key is located.
  2. Navigate to KMS > Customer managed keys and open the relevant KMS key.
  3. Edit the key policy and add the following statement to the Statement section:

    Copy

    JSON

    {
        "Sid": "Allow an external account to use this KMS key",
        "Effect": "Allow",
        "Principal": {
            "AWS": "{TenableRoleARN}"
        },
        "Action": "kms:Decrypt",
        "Resource": "*"
    }

    Replace tenableRoleArn with the ARN of the IAM role for your account connection. To find the ARN, sign in to the account that you connected, and then navigate to IAM > Roles and open the role you created during onboarding.

  4. Save your changes.

Step 3: Verify Logging

After you configure logging and access, new interactions appear in the AI Exposure console shortly after they occur in Amazon Bedrock.

If Amazon Bedrock logging was already enabled before you set up monitoring, AI Exposure first syncs the logs from the previous 14 days. New interactions appear after this initial sync is complete.

How conversations are displayed: Amazon Bedrock does not provide a session ID, so AI Exposure cannot group related calls into a single conversation. Most Amazon Bedrock conversations appear as a single turn (one prompt and its response). However, Claude Code does provide a session ID on the model invocation log so related calls can be grouped into a conversation.

Troubleshoot Missing Data

If data does not appear in the console after you enable logging, confirm the following items:

  • The region where logging occurs is selected as an Active Region on the AWS account. For more information, see Connect an AWS Account.
  • The Amazon S3 bucket contains new log objects. Verify the bucket directly in the AWS Management Console.
  • The IAM role for the account has the s3:GetBucketLocation, s3:GetObject, and s3:ListBucket permissions for the bucket.
  • Model invocation logging is enabled in every region where Amazon Bedrock calls occur. Model invocation logging is regional.
  • Text content logging is enabled and not just metadata logging.

View Logging Details in the Console

You can view Amazon Bedrock logs in the AI Exposure console on the following pages:

Note: AI Exposure assigns Amazon Bedrock interactions to the AWS scope.
  • AI Activity Detections — Displays individual detections, including the content type (for example, exposed credentials, PII, or jailbreak attempt), its severity, triggering identity, and a link to the full conversation for context. For more information, see AI Activity Detections.
  • AI Activity Issues — Displays related detections grouped together so you can triage recurring or related issues as a single unit. For more information, see AI Activity Issues.
  • Conversations — Displays the reconstructed prompt or response history behind any detections. For more information, see AI Conversations.
Note: AI Exposure determines conversation titles as follows:
  • Claude Code conversations — Claude Code makes a separate invocation in the same session to generate a title. AI Exposure reads that invocation log and uses the generated title.
  • Single-turn conversations: AI Exposure uses the first seven words of the prompt as the title.