# Run an AI Data Exposure scan

An AI Data Exposure scan is Aikido's code-based data security posture management (DSPM). It runs inside [AI Scans](https://help.aikidogov.us/ai-scans/ai-code-analysis.md) and reasons over your repositories to find how sensitive data is handled. It does not connect to your databases.

## Prerequisites

- You need the **Manage Pentests and AI Scans** [permission](https://help.aikidogov.us/getting-started/automated-user-management/setting-roles-and-permissions.md) to create a scan. You can still open AI Scans and existing assessments without it.
- At least one repository is connected. [Self-scanned repositories](https://help.aikidogov.us/code-scanning/local-code-scanning.md) are excluded from the picker. There is a limit on how many repositories you can pick. [Contact support](https://help.aikidogov.us/miscellaneous-info/contact-support.md) if you need more.
- Your wallet has enough credits for the quoted cost. See [Wallet & Credits](https://help.aikidogov.us/miscellaneous-info/wallet-and-credits.md).

## Set up the scan

Go to [**AI Scans**](https://app.aikidogov.us/agentic-review), then open **New AI Scan**.

### Step 1: Select AI Data Exposure scan

On **Select AI scan type**, select **AI Data Exposure scan**, then click **Continue**.

**Cancel** returns to the AI Scans home.

### Step 2: Select repositories

1. Open **Repositories** and select the connected repositories for this scan. **Continue** stays disabled until at least one repository is selected.
2. To keep a monorepo focused, click **Exclude Paths** next to a selected repository and add directories that are not part of this scan.
3. Under **Scope**, leave **Scan all selected repositories** selected, or choose **Scan specific parts only** and describe the data handling to review.

![Exclude Paths button next to a selected repository](https://help.aikidogov.us/_assets/e5aa7e0cb14a/exclude-repository-paths.png)

> **Note:** Leave documentation and READMEs in the repository. Agents can read that markdown for data flows and how sensitive data is handled. Exclude unrelated applications or services.

**Additional Information** is optional and applies to this scan only. Click **Add Additional Information**, then **Upload File** or **Add Notes**, when context is missing from the source, such as intentionally exposed private data, known issues to ignore, or proxy-level protection. Put guidance that should apply to every scan in a markdown file in the repository. See [Guide Agents with Repository Files](https://help.aikidogov.us/ai-and-dev-tools/guide-an-audit-with-repository-files.md).

**Cancel** returns to **Select AI scan type**.

### Step 3: Confirm pricing and start

Wait until the **Pricing** step shows the credit total. Your balance is in the footer. Click **Add Credits** if the wallet is short.

The card title depends on scope:

- **Full AI Scan** when you scan all selected repositories.
- **Scoped AI Scan** when you chose **Scan specific parts only**. The step also shows the scope you wrote.

When **Configure** appears, use it to set the depth of the scan:

- **High risk only** prioritizes the areas most likely to expose serious vulnerabilities. Some areas get less coverage, or none.
- **Recommended coverage** investigates the security-sensitive parts of your selected scan scope.
- **Deeper coverage** builds on recommended coverage with additional investigation of lower-priority areas and less common code paths or cloud resources.

The credit total updates before you start.

Click **Start Audit** to launch. Credits are charged when you click **Start Audit**.

Aikido opens the assessment detail page. See [Track Progress and Findings](https://help.aikidogov.us/ai-scans/ai-code-audit-overview/track-progress-and-findings.md).

For the data-handling classes in scope, see [What an AI Data Exposure scan finds](https://help.aikidogov.us/ai-scans/what-is-dspm/what-data-exposure-audit-finds.md).

## FAQ

### Why is there a repository limit?

The picker limits how many repositories you can include so the scan stays focused. If you need more in one scan, [contact support](https://help.aikidogov.us/miscellaneous-info/contact-support.md).

## Related

- [AI Data Exposure scan](https://help.aikidogov.us/ai-scans/what-is-dspm.md): What DSPM is, and how Aikido's AI Data Exposure scan takes a code-based approach.

- [What an AI Data Exposure scan finds](https://help.aikidogov.us/ai-scans/what-is-dspm/what-data-exposure-audit-finds.md): What AI Data Exposure scan checks for in your source code.
