All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] avoid keyloggers: enter password with mouse?(virtual?keyboard)
Date: Wed, 5 Oct 2011 14:15:50 +0200	[thread overview]
Message-ID: <20111005121550.GA30825@tansi.org> (raw)
In-Reply-To: <loom.20111005T105550-49@post.gmane.org>

On Wed, Oct 05, 2011 at 09:37:01AM +0000, Jan wrote:
> Arno Wagner <arno@...> writes:
> 
> > I really don't know. If it is just the spare-time project of the
> > Internet Cafee owner, you might be right. If it is the project
> > of the secret police, recording the video off the cable is 
> > conveivable, although a bit more expensive than the about $80
> > for the hardware keylogger.
> 
> Usually it sould be a spare time project, since I choose the internet cafe
> at random and video grabber cost about $170 (see http://www.keydemon.com/
> ).  It would be nice to be protected against hardware keyloggers at least
> with the software I proposed.  I know some C basics.  In case I find some
> time, where could I get the mentioned linux knowledge?

A C on Linux tutorial should be enough then. 

Minimal process:

1. Write C-Programm with editor (of your choice, 
   examples: joe, vi, emacs)
2. gcc -o <program> <sourcefile>.c

This is for a single source file. Should be enough.

For screen output, just do a complete screen rewrite 
line-wise with the "poor man's teminal clear" (write 
25 or 50 emtpy lines). 

You can get c library help either from the GNU info pages
("info libc") or often from the commandline "man 3 <command>",
e.g. "man 3 printf". The "3" refers to section 3 of tha 
manual which is the C library. You may have to install the
C library documentation package.

Attacheing a command via its STDIN is a bit more tricky,
but can be done with "popen".
An example is here:

  http://stackoverflow.com/questions/70842/execute-program-from-within-a-c-program

As usual, Google is your friend, just add "linux" to the
C query.
 
> Originally I wanted to find a way to use my GnuPG key in internet cafes
> savely.  Since as you pointed out, even with the software I proposed,
> there is no "absolute" security.  Here's my pragmatical solution:
> 
> 0. Use privatix.
> 1. Protect against hardware keyloggers with the software I proposed to
> defeat the "most common" thread.
> 2. Use TWO GnuPG keys with the following user-IDs:
>    
>    "My Name 
>    (very safe, your email reaches 
>     me at my save PC at home only) 
>    <myaddress@gmx.de>",
>    
>    "My Name 
>    (not completely safe, your email reaches 
>     me in unsecure internet cafes and at home) 
>    <myaddress@gmx.de>"

Make sure the second one is clearly marked as not-that-secure, as
the sender has to choose which one to use.

> 3. Have two privatix USB sticks, one for at home, the other for internet
> cafes etc.  The first one never leaves my home.
> 
> This way people who want to send me an encrypted email can decide for
> hemselves which level of security their message needs.  If they chose the
> second key at east internet providers cannot read the content of the email
> and send personalized advertisments etc.
> 
> Another question:
> When I plug in my USB stick in an internet cafe, boot from it and have
> decrcypted it, is there a hardware mechanism known to you that could
> automatically copy the DECRYPTED contents of my stick? I think that's unlikely
> since the decryption takes place in the OS, ist that right?

Nothing standard. The best bet IMO would be to fake the boot
using a VM and then read the key from the VM's memory. You
are right that decryption is done in the PC, the data that 
goes over USB is still encrypted.

I would say that besides the faked boot via VM, you do not need
to worry about it in your scenario. And to fight the faked boot, 
do a full power cycle with wall socket unplug, not just a reset.
Presenting such a faked boot takes some effort though.

Arno
-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier 

  reply	other threads:[~2011-10-05 12:15 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 15:10 [dm-crypt] avoid keyloggers: enter password with mouse (virtual keyboard) Olivier Sessink
2010-04-12 17:15 ` Arno Wagner
2010-04-12 17:58   ` Heinz Diehl
2010-04-13 15:48     ` Arno Wagner
2010-04-13 19:38       ` Heinz Diehl
2010-04-13 19:55         ` Milan Broz
2010-04-14 13:11           ` Olivier Sessink
2010-04-14 15:30             ` Arno Wagner
2010-04-14 18:42               ` Olivier Sessink
2010-04-14 23:30                 ` Arno Wagner
2010-04-14 23:54                   ` Sven Eschenberg
2010-04-15  6:24                   ` Milan Broz
2010-04-15 10:00                     ` Arno Wagner
2010-04-15  7:50                   ` test532
2010-04-15 10:04                     ` Arno Wagner
2010-04-15 17:44                   ` Richard Zidlicky
2010-04-15 18:04                     ` [dm-crypt] avoid keyloggers: enter password with mouse(virtual keyboard) Vladimir Giszpenc
2011-10-04 15:02                   ` [dm-crypt] avoid keyloggers: enter password with mouse (virtual keyboard) Jan
2011-10-04 18:28                     ` [dm-crypt] avoid keyloggers: enter password with mouse?(virtual?keyboard) Arno Wagner
2011-10-04 21:42                       ` Jan
2011-10-04 22:48                         ` Arno Wagner
2011-10-05  9:37                           ` Jan
2011-10-05 12:15                             ` Arno Wagner [this message]
2011-10-05 18:18                               ` Jan
2011-10-04 18:48                     ` Heinz Diehl
2011-11-30 14:22                       ` Ma Begaj
2011-11-30 14:28                         ` Ma Begaj
2011-11-30 14:46                         ` Arno Wagner
2011-11-30 15:11                           ` Ma Begaj
2010-04-12 21:43   ` [dm-crypt] avoid keyloggers: enter password with mouse (virtual keyboard) Olivier Sessink
2010-04-12 17:51 ` Richard Zidlicky

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=20111005121550.GA30825@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.