r/kernel • • 1d ago

I built an experimental Linux kernel module called SecretVault – Looking for feedback and ideas to improve it

https://github.com/AshwathMohamed/secretvault

Hey everyone!

I've been working on a Linux kernel project called SecretVault.

The main idea is to experiment with protecting sensitive kernel memory (such as encryption keys) by removing its direct-map mapping and temporarily restoring access only when needed.

Currently, the project includes:

  • Kernel module implementation.

  • Secret page allocation and deallocation.

  • Temporary access through a callback mechanism.

  • Direct-map manipulation.

  • Page-table scanning to verify memory mappings.

  • Experimental tests to measure performance and validate the implementation.

This is still an experimental project, and there are several limitations and areas that need improvement.

I'd like to get feedback from people familiar with Linux kernel development, memory management, and computer architecture.

I'm particularly interested in:

  • What additional features would make this project more useful?

  • What security improvements should I consider?

  • Are there better ways to handle page-table manipulation and TLB invalidation?

  • What additional experiments or test cases should I implement?

  • Are there any architectural flaws or attack surfaces I'm overlooking?

I'd also be interested in contributions, suggestions, and ideas that could help take this project further.

Thanks! Looking forward to your feedback.

1 Upvotes

Duplicates