Project PorchLight

Passing a check

If you've authorized the testing, the AI security agent makes two random values, a code and a proof, each 22 to 128 base64url characters (32 recommended), and gives both to you. You publish the proof plus one line feed as the body of /.well-known/security-testing/<code>, with no notice comment. The check passes only when the page loads and its first line is the proof. When the engagement ends, remove the file.

A host that caches static files may keep serving a proof file after removal. The owner is responsible for purging or bypassing cache on the check path. The engagement's end is defined by the agreement, not by the file.

This depends on unknown paths returning 404. If your site answers every path with a 200, say through a catch-all route or a single-page-app fallback, it breaks the check.

If your site hosts content that its users upload or publish, make sure none of it can end up under /.well-known/security-testing/.