I was looking through the code and noticed Vault uses mlock. I assume this is so the keys aren't accidentally saved to swap. However, is there any precaution against keys showing up in core dumps? I'm wondering if on Linux using madvise's MADV_DONTDUMP could prevent this. Or is there a recommended way to prevent core dumps?Thanks.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/5b907cee-a883-4f8b-9b7b-d11caa7343dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Protecting against memory analysis of a running Vault. If an attacker is able to inspect the memory state of a running Vault
instance then the confidentiality of data may be compromised.
thanks,
Matthew
Vault uses the mlock(2) syscall to prevent pages from being swapped to disk.See https://www.vaultproject.io/docs/configuration/index.html#disable_mlock for more details, and how to ensure Vault can run that syscall (that's normally privileged) without needing to run as the root user.Best regards,--Michael
On Wed, Apr 12, 2017 at 8:06 PM, Pinku Surana <sur...@gmail.com> wrote:
I was looking through the code and noticed Vault uses mlock. I assume this is so the keys aren't accidentally saved to swap. However, is there any precaution against keys showing up in core dumps? I'm wondering if on Linux using madvise's MADV_DONTDUMP could prevent this. Or is there a recommended way to prevent core dumps?Thanks.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/5b907cee-a883-4f8b-9b7b-d11caa7343dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CABHxtY5cQ%2BNFizv9zs4Djdc3muDZf2sCuSEXP6ojr%2BxvTdaB1Q%40mail.gmail.com.
Hi Pinku,Please also check out https://www.vaultproject.io/docs/internals/security.html - it explains more about Vault's threat model. A core dump would not be covered in this threat model, here's the specific quote about it being outside of Vault's threat model from that page:Protecting against memory analysis of a running Vault. If an attacker is able to inspect the memory state of a running Vault
instance then the confidentiality of data may be compromised.
thanks,
Matthew
On Wed, Apr 12, 2017 at 10:23 PM 'Michael Fischer' via Vault <vault...@googlegroups.com> wrote:
Vault uses the mlock(2) syscall to prevent pages from being swapped to disk.See https://www.vaultproject.io/docs/configuration/index.html#disable_mlock for more details, and how to ensure Vault can run that syscall (that's normally privileged) without needing to run as the root user.Best regards,--Michael
On Wed, Apr 12, 2017 at 8:06 PM, Pinku Surana <sur...@gmail.com> wrote:
I was looking through the code and noticed Vault uses mlock. I assume this is so the keys aren't accidentally saved to swap. However, is there any precaution against keys showing up in core dumps? I'm wondering if on Linux using madvise's MADV_DONTDUMP could prevent this. Or is there a recommended way to prevent core dumps?Thanks.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/5b907cee-a883-4f8b-9b7b-d11caa7343dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CABHxtY5cQ%2BNFizv9zs4Djdc3muDZf2sCuSEXP6ojr%2BxvTdaB1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CAM6U7_PQmsjJmywbAdgCLzanBemKUQH7uMt%2B3W7AaYYvUMiO4A%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CAORe8GH05Md-aFdHpJRct41upxaO4RxyQL4fHk%2BR84Ee2eaziQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/5b907cee-a883-4f8b-9b7b-d11caa7343dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CABHxtY5cQ%2BNFizv9zs4Djdc3muDZf2sCuSEXP6ojr%2BxvTdaB1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CAM6U7_PQmsjJmywbAdgCLzanBemKUQH7uMt%2B3W7AaYYvUMiO4A%40mail.gmail.com.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/19fc1865-226b-4f1f-9859-9e10e5e35e5b%40googlegroups.com.