From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Yoav Weiss <ml-lkml@unpatched.org>
Cc: Ahmed Masud <masud@googgun.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: encrypted swap [was: The disappearing sys_call_table export.]
Date: Thu, 15 May 2003 09:24:25 +0200 [thread overview]
Message-ID: <20030515072425.GA7638@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <Pine.LNX.4.44.0305142152500.12748-100000@marcellos.corky.net>
On Wed, 14 May 2003 21:59:47 +0300, Yoav Weiss wrote:
> On Wed, 14 May 2003, Jörn Engel wrote:
> > On Wed, 14 May 2003 12:13:03 -0400, Ahmed Masud wrote:
> > >
> > > The idea is to have encryption keys for the pages to be unique on a
> > > per-uid per-process basis. So one user on the system cannot access (even
> > > if they are root) parts of another's private data. To achieve this,
> > > different parts of swap device need to be encrypted with different keys.
> >
> > How do user *know* that root cannot simply bypass this security?
> >
> > Root, god, what's the difference? ;-)
>
> Aside from what Ahmed said about about rootless systems, the per-process
> encryption reduces the window of opportunity for attackers who gain root
> (or physical access).
>
> Try strings(1) on your swap device. You'll be surprised at what you find.
> You'll probably recognize passwords you haven't useds for a long time, and
> a lot of other stuff you didn't expect. Sometimes you can find whole ssh
> sessions there, plaintext. (think xterm scroll buffer).
>
> With per-process encryption, even if root decides to read the swap at some
> point (evil admin or an attacker who 0wn3d the box), the leakage is
> limited to processes currently running.
s/currently running/running now or in the future/
But apart from that, it does really reduce the window, agreed.
An alternative approach would simply zero all freed memory in the
system, with almost identical effects. Almost means you are missing
memory (that isn't cleared on reboot on all systems, ...) and this is
missing hard disk recovery that can read data already overwritten.
Arguments against this simpler approach?
Jörn
--
Rules of Optimization:
Rule 1: Don't do it.
Rule 2 (for experts only): Don't do it yet.
-- M.A. Jackson
next prev parent reply other threads:[~2003-05-15 7:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-13 13:58 The disappearing sys_call_table export Yoav Weiss
2003-05-13 22:51 ` Ahmed Masud
2003-05-13 23:58 ` Yoav Weiss
2003-05-14 10:06 ` encrypted swap [was: The disappearing sys_call_table export.] Ahmed Masud
2003-05-14 12:43 ` Yoav Weiss
2003-05-14 14:02 ` Ahmed Masud
2003-05-14 15:12 ` Yoav Weiss
2003-05-14 14:06 ` Ahmed Masud
2003-05-14 15:20 ` Yoav Weiss
2003-05-14 15:57 ` Jörn Engel
2003-05-14 16:13 ` Ahmed Masud
2003-05-14 16:23 ` Jörn Engel
2003-05-14 16:32 ` Ahmed Masud
2003-05-14 16:38 ` Ahmed Masud
2003-05-14 18:59 ` Yoav Weiss
2003-05-15 7:24 ` Jörn Engel [this message]
2003-05-15 10:16 ` Yoav Weiss
2003-06-12 23:20 ` The disappearing sys_call_table export Nigel Cunningham
2003-06-15 22:37 ` Yoav Weiss
2003-05-16 8:19 encrypted swap [was: The disappearing sys_call_table export.] (fwd) Ahmed Masud
2003-05-16 23:09 ` encrypted swap [was: The disappearing sys_call_table export.] Yoav Weiss
2003-05-16 23:39 ` Yoav Weiss
2003-05-17 16:32 ` Hugh Dickins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030515072425.GA7638@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=linux-kernel@vger.kernel.org \
--cc=masud@googgun.com \
--cc=ml-lkml@unpatched.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome