All checks
Medium BedrockAgentCore · regional

Bedrock AgentCore custom browsers should have session recording enabled

Checks that an Amazon Bedrock AgentCore custom browser records its sessions to an S3 location. A recording keeps each session's page changes, user actions, console logs and network requests, an audit trail for spotting unauthorized access, data exfiltration or other misuse during automated browsing.

service
BedrockAgentCore
severity
Medium
scope
evaluated in every region

How to fix it

  • Replaces the resource: A browser's session recording is fixed at creation: create a browser with recording on, repoint the agents that open sessions on it, then stop this one's sessions and delete it.
  • Affects another check: A replacement created on Public network fails BedrockAgentCore.5, so create it in VPC mode.

In the console

Bedrock AgentCore → Built-in tools → Create Browser tool → Session recording (fixed at creation)

Session recording
Enabled, with an S3 bucket and a prefix for the recordings
Permissions
An execution role that can write to that bucket (s3:PutObject and the multipart upload actions)
Network settings
VPC, set up as the BedrockAgentCore.5 finding describes

With the AWS CLI

aws bedrock-agentcore-control create-browser --name <browser-name> --execution-role-arn <execution-role-arn> --network-configuration '{"networkMode":"VPC","vpcConfig":{"subnets":["<subnet-id>"],"securityGroups":["<security-group-id>"]}}' --recording '{"enabled":true,"s3Location":{"bucket":"<bucket-name>","prefix":"<prefix>"}}' --region <region>

With Terraform

  • Interrupts service: Adding recording to a browser Terraform already tracks replaces it in one apply that deletes the old browser first, so agents lose it until they are repointed.
resource "aws_bedrockagentcore_browser" "this" {
  name               = var.browser_name
  execution_role_arn = var.execution_role_arn

  network_configuration {
    network_mode = "VPC"

    vpc_config {
      security_groups = var.security_group_ids
      subnets         = var.subnet_ids
    }
  }

  recording {
    enabled = true

    s3_location {
      bucket = var.recording_bucket
      prefix = var.recording_prefix
    }
  }
}

See which of your accounts this check is failing on.

Book a live scan