Re:Handling secrets (somewhat) securely in shells
by oefrha on Wednesday January 14, 2026 @02:08AM
(#46613219)
Defense in depth. Malware is software programmed to do a number of things, not all possible things (well at least until the attacker gets a shell, which is rather noisy). Scanning env vars is trivial, scanning the entire file system and traversing mount points is a bit harder, traversing all memory and guessing what’s a secret is a hell lot harder even for an interactive attacker. If you happen to include some malicious library doing dragnet mining and exfilatration of secrets, you’re more likely to dodge a bullet if you don’t have secrets in env vars than if you do.
[ Parent
| on HN ]
There are no comments on this comment yet.