# Security review for apps built with Replit Agent

> Rare Agentics is a UK software and AI agent engineering firm that reviews apps built with Replit Agent. We check first that development and production data are separated, who can read the Secrets and whether the published app is open to the public. Every finding is reproduced and ranked in a written report. A review takes 1 to 3 weeks.

Source https://rareagentics.com/security-review-for-ai-built-apps/replit. Last reviewed 2026-12-04.

## What does Replit Agent set up for you?

Replit Agent builds the app and publishes it on Replit’s own hosting. Each app has a development database, where you and Agent experiment, and a separate production database that publishing creates. Keys are kept in Secrets and reach your code as environment variables.

## Where do apps built with Replit Agent usually go wrong?

- **Database changes that publish with the app.** Replit’s documentation says structural changes made in development, such as adding or removing tables and columns, are applied to production when you publish. A column removed during an experiment is removed from live data at the next publish.
- **Database rules that never reach production.** The same page says publishing does not copy functions, triggers or grants. A protection added to the development database in one of those forms can be missing from production while every test in the workspace still passes.
- **Secrets readable by more people than expected.** Collaborators on a project can see secret names and values. Replit also notes that organisation members who cannot view a value in the editor can still read it by printing the environment variables.
- **An internal tool published as Public.** Apps in a personal workspace default to Public, which means anyone with the address can use them. A dashboard built for staff is on the open internet unless its access setting was changed or it has sign-in of its own.
- **Access rules that live only in server code.** The app reaches its database through a single connection string, so which customer can read which row is decided by your server code. An endpoint that looks up a record by its identifier without checking the owner returns it to anyone who asks.
- **Live data open to manual edits.** Production is read-only in the Database tool by default, with a switch called Enable Editing. Left on, it lets anyone with access to the workspace change customer records by hand with no review.

## What do we check in a Replit Agent app?

1. **Development and production separation.** We confirm the two databases use different connection strings and that the app is on current infrastructure. Replit shut down its shared legacy databases on 8 June 2026.
2. **What a publish will change in production.** We compare the development and production schemas and list every difference, including functions, triggers and grants that publishing does not carry across.
3. **Authorisation on every endpoint.** We test each route as two separate test customers and confirm that the server checks ownership before it reads or writes a row.
4. **Secrets and who can read them.** We review project and account Secrets, the collaborator list and whether any sensitive value has been stored as a plain configuration instead.
5. **Who can open the published app.** We check the access setting on each published app and test what a visitor with no account can reach.
6. **Recovery of live data.** We check what checkpoints and restore options exist for the production database and ask when a restore was last tried.
7. **Sign-in, sessions and limits.** We test sign-up, password reset and session handling, and check whether logins, forms and AI features can be called without limit.
8. **Replit’s own scan results.** We read the results of Replit’s dependency and publish scans. Replit describes its build-time check as lightweight and not a full codebase review.

## What can you check in your Replit Agent app today?

1. **Check who can open your published app.** Open the publishing settings and read the access option. If the app is for staff only, it should not be set to Public.
2. **Confirm your two databases are separate.** In the Database tool, compare the development and production connection strings. The part that starts with ep- should differ, and if it matches, follow Replit’s migration guide or contact Replit support.
3. **Review your collaborators.** Remove anyone who no longer needs access to the project. Collaborators can see the values of your Secrets.
4. **Turn off Enable Editing on production.** Open the Database tool, select production and confirm that editing is switched off unless someone is making a planned change.
5. **Read the security scan before you publish.** Open the Security pane, read the dependency findings and switch on the setting that blocks publishing when a critical vulnerability is found.
6. **Test with two accounts of your own.** Create two test accounts in your app. Sign in as one and try to open a record that belongs to the other.

## Questions

### Do we have to rebuild or move off Replit?

Rarely. Most apps need targeted fixes such as ownership checks on named endpoints, tighter access settings and Secrets tidied up. If moving or rebuilding is the honest answer we will say so in the report and explain why.

### Could Replit Agent delete our production database?

Replit wrote in July 2025 that Agent had deleted data from a user’s app database and that the data was restored with its Rollback feature. Replit then separated development and production databases by default, and its documentation now says Agent cannot modify the production database. We confirm that your app has that separation.

### Can Agent still see our live customer data?

Replit’s documentation says Agent can read production through a read-only replica and cannot change it. That is worth knowing if the live database holds personal data, and we cover it in the report.

### Replit already scans the app before publishing. Is that enough?

It is a useful first pass. Replit says its automatic checks complement and do not replace a full security scan, and its Auto-Protect feature covers dependency vulnerabilities only. A review also tests who can read whose data in the running app.

### Is the review a penetration test?

No. It is an engineering-led review of your code, database and configuration, with every finding reproduced. It is not a certification. If a customer or investor needs a certified penetration test we will say so and work alongside the firm you choose.

## Sources

1. [Development and production databases](https://docs.replit.com/features/data-and-storage/development-and-production), Replit
2. [Introducing a safer way to Vibe Code with Replit](https://replit.com/blog/introducing-a-safer-way-to-vibe-code-with-replit-databases), Replit
3. [Doubling down on our commitment to secure vibe](https://replit.com/blog/doubling-down-on-our-commitment-to-secure-vibe-coding), Replit
4. [Secrets](https://docs.replit.com/core-concepts/project-editor/app-setup/secrets), Replit
5. [Project Security Center](https://docs.replit.com/features/security/project-security-center), Replit
6. [Who can access your app](https://docs.replit.com/features/publishing/private-deployments), Replit
7. [A01 Broken Access Control, OWASP Top 10 2025](https://top10.owasp.org/2025/A01_2025-Broken_Access_Control), OWASP Foundation

---

Rare Agentics is a UK software and AI agent engineering firm based in London. Rare Agentics Limited, company number 17494524. Contact hello@rareagentics.com or https://rareagentics.com/contact. Book a call at https://rareagentics.com/book-a-call.
