If someone finds a hole in your AI-built app, can they tell you
A researcher finds a hole in your app. Maybe a public storage bucket, maybe an open admin route. They want to tell you before they tell anyone else. They look for a security contact. There is none. No email on the site,
A researcher finds a hole in your app. Maybe a public storage bucket, maybe an open admin route. They want to tell you before they tell anyone else.
They look for a security contact. There is none. No email on the site, no page, nothing. So they post it publicly, or they give up and you never hear about it.
What security.txt is
It is a small text file at a known address, /.well-known/security.txt. It tells anyone who finds a problem where to send it. It is a public standard, RFC 9116, and it takes about five minutes to add.
How to check your own app
- Open
https://yourdomain.com/.well-known/security.txtin a browser. - If you get a 404, you have none.
- If you have one, check that the contact address is a real inbox that someone reads.
- Check the Expires line. The standard asks for one, and an old date tells readers the file is stale.
- Make sure the file is served as plain text over HTTPS, not as an HTML page that happens to say "not found".
What a good file has
- A Contact line with an email address or a form link that you actually watch.
- An Expires line with a date no more than a year ahead.
- Optionally a Preferred-Languages line and a link to a short policy page.
An example, with your own details in place of the placeholders:
Contact: mailto:[email protected]
Expires: 2027-12-31T23:59:59.000Z
Preferred-Languages: en
Canonical: https://yourdomain.com/.well-known/security.txt
How to fix it
- Create a mailbox or alias such as security@ on your domain, and make sure it is monitored.
- Add the file to the folder your host serves as static files, under
.well-known. - Put a reminder in your calendar to renew the Expires date.
- Decide in advance who answers, and what you will say: thanks, we got it, we will tell you when it is fixed.
A prompt you can paste into your AI builder
"Add a file at /.well-known/security.txt served as text/plain. Set Contact to mailto:security@, add an Expires date 12 months from today, and add a Canonical line with the full URL. Make sure my hosting config does not rewrite this path to the single-page app's index.html."
That last sentence matters. Single-page apps often send every unknown path to the home page, so the file shows up as HTML instead of text.
What a scanner can and cannot tell you
An outside scan can read public paths such as this one. It cannot tell you whether anyone reads the inbox, or how you would answer a report. That part is a habit you set up yourself.
I work on ProofForge. The free scan covers what a visitor can see and says plainly what it could not check.
Check your own app from the outside, free. Run the free ProofForge scan on your live URL. No account needed for the first scan. It looks at your public site the way a stranger would and says pass, fail or inconclusive, so you know what is confirmed and what it could not see. One-time reports start at $9: see pricing. Building with an AI agent? There is an MCP server so it can check before it deploys.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.