TLDR:
Amazon Bedrock introduces new attack paths, including RAG poisoning, data exfiltration, agent hijacking, and guardrail tampering. This blog covers the Bedrock telemetry needed to detect these threats and how Securonix uses CloudTrail and Model Invocation Logging to identify suspicious AI activity.
Introduction:
Generative AI is rapidly becoming part of enterprise applications, and Amazon Bedrock enables organizations to build these applications without managing the underlying foundation models. While Bedrock simplifies AI adoption, it also introduces a new attack surface.
Attackers can abuse Bedrock using stolen AWS credentials, manipulate Knowledge Bases to poison Retrieval-Augmented Generation (RAG) applications, weaken Guardrails, or use compromised AI agents to access enterprise data. Detecting these threats requires visibility into both AWS control-plane activity and AI-specific operations.
In this blog, we'll explore:
-
Common attacks on Bedrock
-
How Bedrock integrates with AWS logging services
-
How to ingest Bedrock telemetry into Securonix
-
High-value Bedrock threat detection use cases available in Securonix
Common Attacks:
| LLMJacking | An attacker compromises AWS credentials and begins using Bedrock models to consume expensive AI resources. |
| Knowledge Base Reconnaissance | Before accessing enterprise information, an attacker identifies available Knowledge Bases and begins querying them. |
| RAG Data Exfiltration | Rather than stealing documents directly from storage, the attacker repeatedly queries the Knowledge Base through Bedrock. |
| RAG Poisoning | The attacker modifies the enterprise data used by the Knowledge Base. |
| Agent Hijacking | The attacker changes the agent's behavior by modifying tools or backend code. Instead of compromising the model, the attacker compromises what the agent can execute. |
| Model Customization Abuse | The attacker attempts to poison or misuse base foundation models or custom models. |
| Guardrail Tampering | The attacker weakens or removes AI safety controls. |
| Knowledge Base Manipulation | The attacker modifies or removes enterprise knowledge base. |
| Shadow AI | An attacker or unauthorized employee deploys AI infrastructure without approval. |
Note: We are actively expanding our coverage across all the attack scenarios listed above, with additional detection content planned for upcoming releases.
Logging and Monitoring in Amazon Bedrock:
Understanding the available telemetry is essential before designing detections.
CloudTrail Logging:
AWS CloudTrail records management events, data events, network activity events (for supported services), and CloudTrail Insights events. The two primary categories are management and data events.
Management events are enabled by default (read events are enabled by default; write events are also logged unless configured otherwise).
Data events are not enabled by default. You must configure Advanced Event Selectors or Event Selectors to log data events.
Examples:
CreateKnowledgeBase
DeleteKnowledgeBase
UpdateGuardrail
CreateAgent
AssociateAgentKnowledgeBase
CreateModelCustomizationJob
Integration guide for Securonix: AWS CloudTrail Integration Documentation
CloudTrail → Trails → create trail
Step 1: Enter the trail name and create an Amazon S3 bucket or use an existing one.

Step 2: In Choose log events, select both management and data events. Under Data events, select the bedrock knowledge base resource type.

Note:
-
You should collect both management and data events for OOTB policies to work.
-
Currently, Securonix provides detection use cases for CloudTrail Management events and Amazon Bedrock Knowledge Base CloudTrail data event resource type. Support for additional Bedrock data event resource types is planned for future releases. Multiple Bedrock resource types can be monitored by configuring additional data event selectors in CloudTrail.
Model Invocation Logging:
Unlike CloudTrail, Model Invocation Logging captures inference-specific telemetry. Policies and Parsers for model invocation logs will be available in future releases.
It can publish logs to:
-
Amazon S3
-
CloudWatch Logs
It includes: (but not limited to)
-
Prompt
-
Response
-
Model ID
-
Token usage
-
Metadata
Amazon Bedrock Model Invocation Logging is disabled by default and must be explicitly enabled. To configure it:
-
Create a logging destination — Create an Amazon CloudWatch Log Group, an Amazon S3 bucket, or configure both, depending on your logging requirements.
-
Configure the IAM role — Create or select an IAM role trusted by
bedrock.amazonaws.comand grant it the required permissions to publish logs to the configured destination. -
Open the Bedrock logging settings — Navigate to Amazon Bedrock → Settings → Model invocation logging.
-
Enable Model Invocation Logging — Turn on model invocation logging and select the data types you want to capture, such as text, images, embeddings, and video. Configure the CloudWatch Logs and/or S3 destination. For most LLM-based applications, enabling text logging provides the most valuable visibility into prompts and model responses.
-
Validate the configuration — Invoke a supported Bedrock model and confirm that the invocation records are successfully delivered to the configured CloudWatch Log Group or S3 bucket.

Integrating Amazon Bedrock Telemetry with Securonix:
Model Invocation logs: (Planned Integration)

Threat Detection Coverage:
Rather than monitoring isolated API calls, Securonix correlates multiple Bedrock activities to identify attacker behavior.
Currently, these policies are designed for CloudTrail logs. We are working on developing policies for model invocation logs in future releases.

