Improvement
One key is not enough
What if someone takes the whole computer?
Not just the disk. All of it. Chip included.
Until today, in adkos, the chip was enough to open the disk.
Not anymore.
The TPM, the chip that keeps secrets, is good at keeping them. But it uses classical cryptography. And in adkos that counts as broken.
So it can’t be the only key.
Now the disk opens with two things at once. What the chip keeps. And a password you type at boot. On a server, a secret the system generates and shows you once. And if you lose the password, a recovery code.
The chip alone, never.
Remember last night’s loose end? Someone putting the whole disk back exactly as it was before.
It’s tied.
The TPM keeps a counter that moves on every boot. The disk notes which number it’s on. Give it an older disk and the numbers don’t match, so it won’t open.
There’s one gap left, and I’ll tell you about it. A copy taken since the last boot would still get in. Moving the counter on every write would wear the chip out. I leave it that way on purpose, and it’s written down.
And from today, every encrypted disk carries a seal. If it doesn’t, adkos won’t open it.
That same morning, the root key, the one that signs all the others, added a third signature. One that rests on hash functions alone. All three have to check out.
Also new:
More defences against processors that guess. On the ones that let you spy on the kernel’s memory, the kernel is out of view while a program runs. Only its front door stays visible.
Each program pays from its own quota for the memory the kernel spends on it: its page tables, its code and its stacks.
And I wrote down what I want adkos to be. Two aims of the same weight. Secure by itself, without you having to know how it works. And very easy for anyone to build on.
That’s why a first version of adk, the tool for making programs, now joins the roadmap of the base.
One key is not enough. Not for the disk, not for anything.
New entries will come as it grows. The Atom feed brings them to you without an account.