All articlesWhat an attacker sees

What an attacker sees of your website before any attack

A worked example on a made-up domain: what anyone can learn about your website without breaking in, why it matters and what to ask your provider.

In short

  • Attacks start with observation: DNS, certificates and server replies are public.
  • A few minutes and free tools are enough to see how a website is built.
  • Many of these traces shrink with simple configuration changes.
On this page
  1. Looking comes first
  2. The traces, one by one
  3. What we did not do
  4. Seeing it on your own domain
  5. What to do on Monday morning
  6. Sources

Picture a car repair garage with a website, a form to book a service and an email address for quotes. Let's call it Garage Example. Anyone who wants to hit it does not start by attacking: they start by looking. And almost everything they need is already public.

Looking comes first

Every attack starts with reconnaissance: gathering information about the target. Most of that work does not even touch your server. Domain records, the lists of HTTPS certificates and the replies your website gives to any visitor are public by the way the internet works.

You do not have to be famous to be looked at. Automated programs sweep the internet constantly, site after site, looking for old software and forgotten settings. Here is what they would see on the garage's website, in a few minutes.

observation · garage-example.example
  1. $ observe garage-example.examplePublic information only, without breaking in anywhere.
  2. mail external serviceThe domain records show which service handles the email.
  3. ! dmarc missingNo rule says what to do with fake emails in the garage's name.
  4. cert shop · test · oldPublic certificate lists reveal other addresses on the domain.
  5. ! test. test copy onlineA forgotten copy of the site that nobody updates.
  6. server Apache 2.4.41The server announces its name and version.
  7. cms WordPress · 14 pluginsWhat the site is built with and which add-ons it uses.
  8. ! login public pageThe login page is open to anyone who wants to try passwords.
  9. ! headers CSP and HSTS missingProtections the browser would apply on its own are missing.
  10. summary 4 points to reduceNone of them is an attack. All of them tell someone where to look.

The traces, one by one

Email and DNS

DNS is the public directory that says where your website and email live. It also holds three settings with unfriendly names: SPF, DKIM and DMARC. Together they tell other servers which emails in your name are genuine. Without DMARC it is easier to send one of your customers a fake invoice that looks like it came from you.

What to ask: that SPF and DKIM are active and that DMARC is set up, first in monitoring mode and then in a mode that blocks fake emails.

Certificates and subdomains

Every HTTPS certificate issued goes into public logs, known as Certificate Transparency. It is a good idea for everyone's security, but it has a side effect: anyone can see the list of your subdomains, including test and old. Test copies are often the least looked after.

What to ask: a list of active subdomains, the ones you do not need switched off, and a password in front of test copies.

Software and versions

Many servers and CMSs state their name and version in every reply. With that, a look at the public lists of known flaws shows which ones affect that version.

What to ask: regular updates for the server, CMS and plugins. Hiding the version reduces noise, but the real fix is updating.

Login pages

A login page anyone can reach gets automated password attempts every day, often with credentials stolen elsewhere.

What to ask: two-step verification, a limit on attempts and no user called "admin".

Forgotten files and headers

Backups, exports and development folders left in the public folder are the most serious risk: whoever finds them does not have to force anything. Security headers, on the other hand, are instructions the server gives the browser to protect visitors; when they are missing, the browser does not apply them.

What to ask: that the public folder holds only the website, and that the main headers are configured.

What we did not do

Throughout the example nobody tried to get in, guess passwords or exploit a flaw. It is observation only. The next step, on someone else's system and without authorization, is a crime: in Italy, unauthorized access to a computer system (Article 615-ter of the Criminal Code), with similar offences in other countries.

That is why we only work with written authorization from whoever is entitled to the domain, within an agreed scope. We explain it in How we work.

Seeing it on your own domain

Some questions you can put to your provider today: you will find them below. If you want a first picture of what is visible on your domain, you can request the free snapshot: it only observes public information, with no active testing.

What to do on Monday morning

Tap each point once you have done it.

0 of 3 done

Sources

  1. Web Security Testing Guide, information gathering chapter. OWASP Foundation.
  2. RFC 9162, Certificate Transparency Version 2.0. IETF.
  3. RFC 7489, DMARC, and the specifications that update it. IETF.
  4. Secure Headers Project. OWASP Foundation.
  5. CVE Program, the public catalogue of known vulnerabilities.
  6. Italian Criminal Code, Article 615-ter, unauthorized access to a computer or telematic system.
Read next Data breach: what a small business really risks GDPR and obligations5 min read

Want to know what people see when they look at your website?

We send you a first picture of the technology visible from the outside on your company domain. It needs no passwords and runs no active tests.

Request your free snapshot