WordPress · Drupal · Site Maintenance · Technical SEO · Editorial Policy

How to Spot Attack Traffic and Suspicious Activity on a Strapi Site

A Strapi site is a Node.js application with an admin panel and a public API. Both are reachable from the internet, so both attract automated traffic. Most of it is harmless noise. A small part signals a real problem. This guide shows where to look and how to tell the difference.

Where the evidence lives

Strapi does not keep one central security dashboard. The evidence is spread across several layers, and what you can see depends on how and where the project is hosted.

  • Web server or reverse proxy access logs. If you self-host behind Nginx, Apache, Caddy or a load balancer, these logs record every request: path, status code, IP address and user agent. They are the best source for scanning and brute-force patterns.
  • Strapi application logs. Strapi has a built-in logger and a logger middleware that you configure in your project. Errors, crashes and startup problems appear here, and you can add your own log lines to custom code.
  • Process output. Under a process manager or container platform, the console output of the Node.js process is usually collected for you.
  • Audit Logs in the admin panel. Strapi offers an Audit Logs feature that records admin activity such as logins and content or settings changes. Availability depends on your Strapi edition and plan, so check the official documentation before relying on it.
  • Strapi Cloud and host dashboards. If you use Strapi Cloud or a managed host, look at the logs and metrics that provider exposes. What is retained, and for how long, varies by plan.
  • CDN or firewall analytics. If a CDN or web application firewall sits in front of the site, its dashboard often shows blocked requests, bot scores and top offending IPs.

Start by finding out which of these you actually have. Many owners discover that nothing retains logs beyond a short window, which makes later investigation impossible.

What brute-force attempts look like

Brute-force attempts target logins. On a Strapi site there are two places to watch: the admin login and, if you use the Users & Permissions plugin, the public authentication endpoints.

  • Repeated POST requests to the admin login route or the local authentication endpoint, often many per minute.
  • A run of 400 or 401 responses from one IP address or a rotating set of addresses.
  • Many different email addresses tried from the same source, which points to credential stuffing with leaked lists.
  • Generic or missing user agents, or the same user agent repeated across many addresses.

A burst of failures with no success is noise that your rate limiting and strong passwords already handled. The same burst followed by a successful login from the same address is a different matter, and you should treat it as a possible compromise.

What scanning looks like

Scanners probe for well-known paths without caring what the site runs. In your access logs, you will see requests for files and routes that do not exist on a Strapi project.

  • Paths for other platforms, such as WordPress login pages or PHP admin tools, answered with 404.
  • Requests for environment files, backup archives, version-control folders and configuration files.
  • Requests for the admin panel path and for API routes that your project never defined, as bots try to list content types.
  • Unusual query strings or encoded characters that try to trigger injection or path traversal.

A wall of 404 responses to paths you never created is normal. What deserves attention is a 200 response to a path that should not exist, or any response that returns file contents. Also look for requests that return real content you did not intend to publish, which suggests an open permission.

What spam and abuse look like

Spam targets anything that accepts input. For Strapi that usually means registration endpoints and any content type where the Public role or an API token can create entries.

  • New user accounts with random names, disposable email domains or identical patterns.
  • New entries in a content type, such as comments, leads or form submissions, filled with links or gibberish.
  • Sudden spikes of POST requests to a single create endpoint.
  • Heavy GET traffic against list endpoints with very large page sizes, which can slow your database.

Check the Public role under the Users & Permissions settings. Every permission ticked there is open to anyone on the internet, including bots. Tick only what the front end truly needs.

Signals that need action

Not every alert is equal. Use this list to separate urgent items from background noise.

  1. A successful admin login you cannot explain. Check the time, the IP address and whether that person was working. Reset the password and review the account.
  2. New admin users, changed roles or changed permissions. These are classic persistence steps. Compare the current user list and role settings against what you expect.
  3. New or changed API tokens. A token grants access without a login. Delete any you did not create and regenerate those you cannot account for.
  4. Public role permissions that grew. If create, update or delete became available to the public, find out who changed it and when.
  5. Unexpected content changes. Edited entries, new media files or altered links you did not make.
  6. Unfamiliar processes, files or outbound connections on the server. This is a host-level problem, not a Strapi setting, and it calls for an immediate incident response with your hosting team.
  7. Sustained traffic that degrades performance. Add rate limiting or a firewall rule even if nothing was breached.

Signals that usually need no action: failed logins that never succeed, 404s for paths from other platforms, and single probes from random addresses.

Reduce what you have to watch

The easiest log to read is the one with fewer events in it. A few habits cut the noise and make real anomalies stand out.

  • Keep Strapi, its plugins and Node.js updated. Self-hosters carry this duty themselves, and it is the most effective defense against scanners that look for known weaknesses.
  • Use unique, long passwords and two-factor protection through your hosting or identity layer where available. Give each editor their own admin account with the narrowest role that works.
  • Put a CDN, firewall or reverse proxy in front of the site and apply rate limits to login and create endpoints.
  • Consider restricting access to the admin panel by IP address or VPN if your team is small.
  • Scope API tokens narrowly, give them an expiry where your edition supports it, and store them outside your repository.
  • Ship logs somewhere that an attacker on the server cannot erase, and decide how long you keep them.

The official Strapi documentation at docs.strapi.io covers logging, middleware configuration, roles and permissions, and the Audit Logs feature. For a general view of the weaknesses attackers aim for, the OWASP Top Ten is a reliable reference. If you need to interpret response codes in your logs, the MDN HTTP status reference explains each one.

Frequently asked questions

Does Strapi have a built-in audit trail?

Strapi offers an Audit Logs feature in the admin panel that records admin actions. It is tied to specific editions or plans, so check the documentation for your setup. If it is not available to you, rely on web server logs, application logs and your host’s tools.

Should I block every IP that fails a login?

No. Failed logins are common and often come from rotating addresses, so manual blocking rarely helps. Rate limiting at the proxy, CDN or firewall handles this automatically. Reserve manual action for cases where a login actually succeeds.

How do I know if my admin panel was compromised?

Look for admin logins you cannot explain, new users, changed roles, new API tokens and altered Public role permissions. If any of these appear, change passwords, revoke tokens, review permissions and ask your host to check the server itself.

We use essential cookies to make this site work and remember your preferences. We do not use advertising or analytics cookies. Privacy Policy. Cookie Policy.