News for hackers. Stuff that matters.
Re:Ask HN: Best practice securing secrets on local machines ... by xinbenlv on Thursday January 22, 2026 @05:40PM (#46726054)
Any prompt injection attack could by pass this by simply do a base64 or any encoding, I guess?
Re:Ask HN: Best practice securing secrets on local machines ... by CriptoSeguro25 on Thursday January 22, 2026 @06:14PM (#46726348)
You ar absolutely right. Obfuscation like Base64 or rot13 will always beat static Regex. I was thinking more in terms of a seatbelt for accidental leaks user error rather than a defense against adversarial prompt injection. It's about reducing the blast radius of clumsy mistakes, not stopping a determined attacker.