# Data Poisoning - Bedrock Knowledge Base

## Overview

* Amazon Bedrock Knowledge Bases can leverage data from multiple sources e.g., S3, Salesforce, and more
* This data may support critical operations such as customer service agents, internal references, and more
* If attackers can gain access to and/or modify the data, it can impact these workloads

### Resync Data Source

* Once data is modified (e.g., an attacker corrupts data in an S3 bucket), the knowledge base will need to resync with the data source

{% code overflow="wrap" %}

```zsh
aws bedrock-agent start-ingestion-job --knowledge-base-id <knowledge-base-id> --data-source-id <data-source-id>
```

{% endcode %}

* Get knowledge base id from `aws bedrock-agent list-knowledge-bases`
* Get data source id from `aws bedrock-agent list-data-sources --knowledge-base-id <knowledge-base-id>`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.techwithtyler.dev/cloud-security/aws/aws-offensive-security/aws-attacks-and-techniques/data-poisoning-bedrock-knowledge-base.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
