irthlabs-scanner

If you saw irthlabs-scanner in your server logs, it was a security check that the owner of the site asked us to run.

It reads a small, fixed part of a site, slowly, and only after the owner has proved the domain is theirs.

What it looks like in a server log

GET / 200

GET /assets/app.js 200

User-Agent

irthlabs-scanner (+https://irthlabs.com/scanner)

A sample of two requests. The User-Agent always names the scanner and links to this page.

When it runs

Only on a domain whose owner proved control of it by publishing a DNS TXT record at _irthlabs.<domain>. We check that record again before every visit. If the record is gone, we fetch nothing.

The DNS record that allows a check

Sample
Type
TXT
Name
_irthlabs.example.com
Value
irthlabs-verify=
The token is different for every client, so copying someone else's public record verifies nothing.

What it does

  • Sends plain HTTPS GET requests, one at a time, each limited to 10 seconds.
  • Loads the homepage, the JavaScript files that page links to on the same domain, and one source map (.map file) per JavaScript file: the one the file names, if it is on the same domain; if the file names none, its address with .map added; if it names one on another domain or inline, none. At most 30 files and 5 MB per check, source maps included.
  • Follows at most 3 redirects, and only within the same domain over HTTPS.
  • Looks for secrets (such as API keys) and Stripe test keys in what it loaded, checks whether source maps are served, checks whether scripts from other domains carry an integrity hash, and reads the security headers of the homepage response.

What it does not do

  • Follow links to other pages.
  • Log in or submit forms.
  • Run your JavaScript.
  • Load anything from other domains.

What it keeps

Only the findings, with any secret masked to its first four and last two characters, and the names (not values) of cookies.

Page content is not stored, except the line where a secret was found, with the secret masked.

Questions, or want it to stop? Email [email protected]. The site owner can also stop it at any time by removing the TXT record.