The Pentest4 scanner

For whoever runs a site and sees our requests in their logs: what we are, where we come from, what we do on your site and how to stop us.

User-Agent
Pentest4/1.0 (+https://pentest4.me/bot)
Official list
api.pentest4.me/api/scanner
Contact
bot@pentest4.me

What it is

Pentest4 is a service that checks the security of websites from the outside, at the request of whoever runs them. It is operated by SIETE OCHO NUEVE MX S.C., from Mexico.

If you see our requests, someone with a Pentest4 account proved they control your site and asked for a scan.

Only verified sites

Before a site can be scanned, the account must publish a verification code on it (starting with pentest4-verify=) in one of three ways:

  • DNS TXT record at _pentest4.<host> or at _pentest4.<domain> (the registrable domain: whoever controls the zone controls its hosts).
  • File at https://<host>/.well-known/pentest4.txt.
  • Meta tag on the home page: <meta name="pentest4-verify" content="pentest4-verify=…">.

For the file and the meta tag, at most one redirect from the host to its twin with or without www is accepted. Verification is repeated when each scan starts: if the code is gone, the scan does not start.

The file and meta tag checks also come from our IPs, with our User-Agent and a 5-second time limit.

How to identify it

Every HTTP request carries this User-Agent:

Pentest4/1.0 (+https://pentest4.me/bot)

And comes from these IP addresses:

  • 162.220.234.240
  • 152.55.180.240
  • 152.55.180.242
  • 152.55.180.243

The current, authoritative list is the JSON at https://api.pentest4.me/api/scanner (fields user_agent and ips). If it changes, it changes there first.

Anyone can copy a User-Agent. A request with ours that does not come from one of those IPs is not ours. Always check the source IP.

What it does

It looks at your site the way any visitor would. In a scan it:

  • Requests the home page over https and http, and a path that does not exist, to see how your server answers an error.
  • Follows links on the same host: up to 20 pages and 40 scripts.
  • Tries a fixed list of known paths that should not be public: files like /.env or /.git, backups, admin panels, diagnostic endpoints (/actuator, /phpinfo.php, /server-status…), API documentation and source maps.
  • Requests up to 15 API routes that appear in your own scripts, without credentials, to see whether they return private data without a session. Only fixed routes, without parameters, that your scripts do not use to write and whose name does not suggest an action.
  • Sends one request with an Origin header to check your CORS setup, and one read-only GraphQL query ({__schema{queryType{name}}}) by GET on /graphql and /api/graphql.
  • Reads your TLS certificate and queries your email DNS records (SPF and DMARC).

Limits

  • At most about 140 HTTP requests per scan.
  • At most 5 scans a day per host, across all accounts.
  • Each request gets 10 seconds in total, reads at most 2 MB of the response and follows at most 3 redirects, only within your host or to its twin with or without www.
  • A scan that does not finish in 35 minutes is cut off.

What it does not do

  • It only makes GET requests. Never POST, PUT or DELETE.
  • It does not submit forms, does not sign in and does not try passwords.
  • It sends no attack payloads and does not try to exploit anything.
  • It does not follow links that look like actions (such as /delete-…).
  • It does not load-test: requests per scan are capped as above.
  • It requests nothing from other hosts. If your pages load third-party scripts, it only notes them.
  • It does not connect to private or internal IP addresses, even if your DNS points to them.

It does not read robots.txt. That file is for search engines; this scan was requested by someone who proved they control the site. To stop it, use one of the options below.

How to stop it

  1. Remove the verification code (the TXT record, the file or the meta tag). We check it again when each scan starts: without it, no new scan starts.
  2. Write to bot@pentest4.me with the host. We block it so no account can add, verify or scan it, together with its twin with or without www and, if you ask, its subdomains. Running scans of that host stop.
  3. Block our IPs in your firewall. It works, but a scan may keep trying up to its limit.

Reporting abuse

If you did not authorise a scan, write to bot@pentest4.me with:

  • the host;
  • date and time (preferably in UTC);
  • the source IP and a few lines from your logs.

We keep a record of every verification and every scan for 12 months, also if the account or the site has since been deleted. With it we tell you whether those requests came from our scanner, when, and with which method the site was verified. We do not share the account's details unless a law or a valid order requires it.

If the account scanned a site it does not control, we can suspend it and block its email, and we block the host if you ask.