A Prismic site is split in two. Prismic runs the hosted content backend. You run the front-end app, usually a framework such as Next.js, on a host you choose. Attack traffic and suspicious activity show up in different places depending on which half you are looking at, so the first job is knowing where each kind of evidence lives.
Know which half you are watching
Prismic is a hosted (SaaS) headless CMS. You do not patch a CMS server, and you have no web server logs for the content backend. What you do control is who can log in to the repository, which API access tokens exist, which webhooks fire, and the front-end application you deploy, including its npm dependencies.
That gives you three evidence sources:
- Prismic repository settings: users, roles, access tokens and webhooks.
- Your front-end host: request logs, build logs, function logs and any firewall or bot-protection dashboard.
- Your own application: form handlers, preview routes, API routes and error monitoring you add yourself.
Which logs exist, how long they are kept and how detailed they are depends on your hosting provider, your plan and your setup. Check your host’s documentation before assuming a log exists. The Prismic documentation is the place to confirm what your Prismic plan offers for users, roles and tokens.
What to review inside Prismic
Because the content backend is not yours to log into at server level, the useful signals are about access and change.
- Repository users and roles. Look for people who no longer work with you, accounts you do not recognise and anyone with more permission than their job needs.
- API access tokens. Treat every token as a credential. A token you cannot explain, or one that has been shared in a chat, a ticket or a public repository, should be revoked and replaced.
- Webhooks. Confirm that every webhook points to an endpoint you own. An unfamiliar destination URL is a strong warning sign, because it means someone with settings access added it.
- Content history. If published documents changed and nobody on your team made the change, check who holds publish rights.
Some plans may include additional activity or audit features. Look in your repository settings and plan details rather than assuming they are there.
Read your front-end host’s logs
Almost all the raw attack traffic lands on your deployed app, not on Prismic. Most hosts for framework apps offer request logs, function or server logs and some form of firewall or analytics view. The retention window and filtering options differ by provider and plan.
When you open those logs, filter by response status first. The HTTP status code reference on MDN explains what each class means. A cluster of 404 responses, a run of 401 or 403 responses, or a burst of 429 or 5xx responses each points to a different cause.
What common attack patterns look like
Scanning and probing
Automated scanners request paths that have nothing to do with a headless site: /wp-login.php, /wp-admin, /.env, /.git/config, database dump filenames and admin panels. On a Prismic and Next.js site, all of these should return 404. Many requests for such paths from a few addresses in a short time is normal background noise, not an incident. It becomes interesting only if one of those requests returns 200.
Brute-force and credential stuffing
Prismic itself handles logins to the repository, so you will not see those attempts in your own logs. Brute-force traffic hits whatever login or protected route you built: a members area, a custom admin page, a preview endpoint or a staging site behind basic authentication. The pattern is many POST requests to the same route, repeated 401 or 403 responses and rotating addresses or usernames.
Form and comment spam
Contact forms, newsletter signups and any comment feature you built are the usual spam targets. Signs include bursts of submissions with random strings, links in every field and submissions with no matching page view before them. Spam is a nuisance and a reputation risk for your email sender, but it rarely signals a compromise.
Content scraping and API hammering
Heavy, rapid requests to your pages or API routes from one source often come from scrapers or misconfigured bots. The effect to watch is cost and speed: slow builds, function timeouts or a spike in hosting usage.
Signals that need action
Most of what you see is noise. Use this checklist to separate noise from signals worth acting on:
- A probe path returns 200. Find out why a path like
/.envor a backup file is being served and remove it from your deployment. - An unknown webhook, user or access token appears in your Prismic repository. Remove it, review who has settings access and rotate any related secrets.
- Published content changed without a matching editor. Review roles and check whether a token with write capability leaked.
- A token or secret appears in a public place, such as a repository, a client-side bundle or a build log. Revoke and replace it immediately.
- Repeated failures followed by a success on a login route you built. Treat the account as compromised and reset it.
- Your dependency scanner flags a package your front end uses. Check the advisory in the National Vulnerability Database or your package manager’s audit output and update.
- Sudden unexplained spikes in errors, bandwidth or function invocations that do not match a campaign or a launch.
Noise that needs no response: scanners getting 404s, spam blocked by your form protection and failed requests to paths that do not exist.
Make suspicious activity easier to see
You can only investigate what you recorded. A few steps help, and each depends on your host and stack:
- Turn on request and function logging on your front-end host, and note how long it keeps them.
- Enable the host’s firewall or rate-limiting features for login, form and API routes if it offers them.
- Add a bot challenge or honeypot field to public forms.
- Keep Prismic access tokens in server-side environment variables, never in client code.
- Give each editor the lowest role that lets them do their work, and review the user list on a schedule.
- Run your package manager’s audit command during builds and update dependencies regularly.
The OWASP Top Ten is a good reference for the kinds of weaknesses that scanning and brute-force traffic tries to find.
Frequently asked questions
Does Prismic show me server logs for my site?
No. Prismic hosts the content backend, so server-level request logs for your website come from wherever you deploy the front end. Inside Prismic you review users, roles, access tokens and webhooks. Check your plan for any further activity features.
Is a flood of requests for WordPress paths a sign of an attack on my Prismic site?
Usually not. Scanners request those paths on every site regardless of platform. If they return 404, nothing is exposed. Act only when one of those paths returns content.
What should I do first if I think an access token leaked?
Revoke it in your Prismic repository settings, create a replacement, update the environment variable on your host and redeploy. Then review the user list and webhooks for anything you do not recognise.