Articles
Articles
Practical writing on building digital products, cybersecurity, and AI in a developer's daily work.
More topics (2)
3 min read#AI#App securityDid your chatbot show one user another user's data? Closing LLM02
Per OWASP, a language model can reveal personal data or business secrets in its answers, and system prompt rules are not always honored. The fix is that the model only sees what the user may see, and data gets cleaned before it reaches it.
2 min read#App security#Web developmentYour account page showing for another user? Cache-Control decides
A page with a user's data must not be stored in a shared cache such as a CDN. Per MDN, private keeps it in the browser cache only, no-store stops any cache from storing it, and no-cache does not mean don't cache.
2 min read#App security#Web developmentYour site never uses the camera? Turn it off with Permissions-Policy
The Permissions-Policy header tells the browser which features are allowed on your page and in the iframes inside it. The value () turns a feature off everywhere, so turn off the camera, microphone and location if you don't use them.
2 min read#App security#PrivacyIs a user's password sitting in your logs? What must stay out of them
Logs end up in central stores, archives and backups. The OWASP cheat sheet says passwords, tokens, session IDs and encryption keys should not go into them directly: remove, mask or hash them.
3 min read#App security#PrivacyIs your password reset link leaking? Set Referrer-Policy
Browsers send your page address with requests in the Referer header. The Referrer-Policy header decides how much of it goes out, and no-referrer removes it from sensitive pages.
12 min read#App security#PrivacyHow did a plain ad put spyware on Al Jazeera devices without a click?
According to Citizen Lab, ads bought by Discover-Tech asked a server whether the device was a target, and only the target got code. That is how at least 45 devices at Al Jazeera were targeted with Candiru spyware.
