LoFP LoFP / legitimate platform, ml, or application teams may associate or update knowledge bases on bedrock agents as part of normal development, onboarding, or rag pipeline changes. verify that the actor identity, user agent, and source ip correspond to expected automation or authorized engineers, and that the associated knowledge base is an approved, organization-owned resource. if known behavior is causing false positives, it can be exempted from the rule.

Techniques

Sample rules

AWS Bedrock Third-Party or External Knowledge Base Associated to Agent

Description

Detects when an Amazon Bedrock agent is associated with, or updated to use, a knowledge base via the AssociateAgentKnowledgeBase, or UpdateAgentKnowledgeBase API actions. Bedrock agents consume knowledge base (RAG) content as trusted context for the model. By wiring an agent to an externally controlled or third-party knowledge base, or by swapping in an attacker-controlled knowledge base, an adversary can redraw the agent’s trust boundary toward an untrusted source. This is a software-supply-chain compromise and an indirect prompt-injection delivery vector: poisoned or adversarial content served from the associated knowledge base is treated as authoritative by the agent. Validate that the associated knowledge base, and any underlying data source, is owned and controlled by your organization.

Detection logic

data_stream.dataset: "aws.cloudtrail"
    and event.provider: "bedrock.amazonaws.com"
    and event.action: (
        "AssociateAgentKnowledgeBase" or
        "UpdateAgentKnowledgeBase"
    )
    and event.outcome: "success"