> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Black-box pen tests

> Run a Level 3 security scan that reviews source code and tests the running app through browser and network interactions.

A black-box penetration test examines a running app from the outside through browser and network interactions. It does not use the app's source code.

In the Project Security Center, **Level 3 (AI pentest)** brings together three types of security checks:

1. Free dependency and package checks
2. Agent static analysis of your source code
3. An external black-box test of the live Preview, conducted from outside without using your source code

After you start Level 3, Replit runs the Agent source-code review and the external black-box test in parallel.

For apps that use [Clerk Auth](https://docs.replit.com/features/auth-and-identity/clerk-auth.md), the black-box test runs two passes: one anonymous and one authenticated as a synthetic user. The authenticated pass uses synthetic credentials, so Replit does not expose your project's credentials to Agent. The test creates a second synthetic user only when it needs to check an ownership boundary between accounts.

## Run a Level 3 scan

**1. Open the project**

Open the individual project you want to scan.

**2. Open Security Center**

In the project's **Tools** pane, select **Security Center**.

**3. Start a scan**

At the top of Security Center, select **Run scan**.

**4. Choose Level 3**

Select **Level 3 (AI pentest)**.

![Security and Privacy Center open from the Tools pane with the Select scan level menu expanded and Level 3 AI pentest selected](https://mintcdn.com/replit/Skn6tD6LwF4-qlqT/images/project-security-center/level-3-ai-pentest.png?fit=max\&auto=format\&n=Skn6tD6LwF4-qlqT\&q=85\&s=3483509c46c876b6701ee817fc8d5392)

Level 3 (AI pentest) adds Agent static analysis and an external live Preview test to free dependency and package checks.

**5. Wait for both tasks**

Wait for the source-code review and the browser and network black-box test to finish.

**6. Review the results**

Review findings from both tasks in the **Security** pane. Assess each finding before sending accepted issues to Agent.

**7. Fix and rerun**

Send accepted findings to Agent. After you apply the fixes, run another Level 3 scan to verify them.

## Understand the two tasks

| Task | Evidence it uses | Purpose |
| - | - | - |
| Source-code review | Your application's source code | Identifies security, privacy, and architectural vulnerabilities in the codebase |
| Black-box pen test | Browser and network interactions with the running app | Examines externally observable behavior without using source code |

Review both sets of findings. One task does not replace the other: the source review can identify vulnerable implementation details, while the black-box test assesses the running app from the outside.

## Next steps

* Compare all three [security scan levels](https://docs.replit.com/features/security/security-scan-levels.md).
* Use [Agent security scans](https://docs.replit.com/features/security/agent-security-scans.md) for the normal source-code workflow.
* Learn how the [Project Security Center](https://docs.replit.com/features/security/project-security-center.md) combines scan paths and automatic checks.
* Review related terminology in [Security concepts](https://docs.replit.com/features/security/concepts.md).
