Skip to content

Protect sensitive variables in memory (kernel keyring) #292

@unparagoned

Description

@unparagoned

I notice you reassign and unset the sensitive values. From what I can tell from memory dumps:

  • Reassigning values does not overwrite the memory location the previous value was stored at but creates an entry at a new memory address.
  • Also unset doesn't clear the memory so you can still see the previous content.

Also depending on implementation and environment reassigning before performing unset might do more harm than good.

Is there a better way to clear these values from memory? I'm more of a C guy so it took me a while to even view the memory address and contents of shell script. Let alone come up with a solution.

Metadata

Metadata

Assignees

Labels

discussiondocsleading to more and improved documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions