Fieldwork/Survey

How it works

A survey, not an attack

Most small businesses never get a security review. They have a website someone set up years ago, an email address customers trust, and no idea whether either could be used against them. Survey is a five-minute answer to that question, written for the owner rather than for a security team.

What it does

Survey behaves like an ordinary visitor. It loads your homepage over HTTPS, completes the same handshake a browser does, makes one extra handshake to see whether retired protocols are still accepted, and reads the public DNS records that mail servers read before accepting your email. It also asks for /.well-known/security.txt, a standard file for publishing a security contact.

It does not look for hidden files, test logins, scan ports or send anything that a normal browser or mail server wouldn't.

How it protects itself

A tool that fetches any address you type is a classic target for server-side request forgery: tricking the server into reaching internal systems such as the cloud metadata service. Survey checks every connection at the moment it's made, after DNS has been resolved, and refuses anything that isn't a public address on port 80 or 443. That includes redirects and DNS rebinding tricks. Each visitor can run a handful of surveys a minute, results are cached for 15 minutes so no site is contacted repeatedly, and the service runs with no stored credentials.

The full threat model, the code and the deployment pipeline are public on GitHub.

Grading

Every site starts at 100. High-severity findings cost 25 points, medium 10 and low 4. Informational notes cost nothing. A is 90 and above, B 80, C 65, D 50.

Privacy

Survey keeps reports in memory for 15 minutes and then forgets them. Logs record the domain surveyed and a one-way, per-server hash of the visitor's IP address, used only for rate limiting.