mlock() secure text editors?

From: Jason (NOSPAMperlmodules_at_lunkwill.org)
Date: 05/06/03

  • Next message: all mail refused: "Re: mlock() secure text editors?"
    Date: 5 May 2003 23:06:12 -0700
    
    

    Anyone aware of a text editor that can be used to edit files destined
    for encryption? That is, something that doesn't dump the plaintext to
    disk as backup files, uses mlock() to keep data from being swapped out
    and zeros out memory blocks before they're free()'ed.

    Ideally, it'd integrate with gpg so that the data gets encrypted
    before it ever gets to disk, avoiding the need to overwrite deleted
    disk blocks multiple times.

    Seems to me that a call to mlockall() inserted at the front of main()
    in, say, vi, would go a long way toward that end. Turn off backup
    files, and then either pipe output to gpg instead of saving, or save
    to a RAM disk. Wiping out free()d pages after vi exits would be
    harder - worst case, I could run a memory-eating mlockall() program
    that would malloc() and zero all available physical memory then exit.

    Thoughts?

                              -J


  • Next message: all mail refused: "Re: mlock() secure text editors?"

    Relevant Pages

    • Attack Scenarios against PGPs Whole Disk Encryption (WDE)
      ... Attack Scenarios against PGP's Whole Disk Encryption ... PGP's Whole Disk Encryption for Microsoft Windows encrypts all the ... As long as standard PC hardware and BIOS is used, the boot code of the disk ...
      (comp.security.pgp.tech)
    • RE: [Full-Disclosure] harddisk encryption
      ... If the encryptor encrypts your boot disk, it has to be involved early in the ... boot process and may be broken by anything that changes the system boot sequence. ... normally when the encryption keys had been entered. ... registry controls that allow the swap file to be wiped on shutdown. ...
      (Full-Disclosure)
    • RE: [Full-Disclosure] harddisk encryption
      ... > boot process and may be broken by anything that changes the system boot ... In the event of disk crash or emergency, unless a tool is provided to ... > i'm evaluating a software that performs harddisk encryption for deploying ...
      (Full-Disclosure)
    • Re: On the Recent PGP and Truecrypt Posting
      ... changing the passphrase would lock out prior users. ... Clearly a users with a backup copy of an encrypted disk for which they ... clear that real world users actually understand the need to re-encrypt ... You will also also see the architecture extend to some *very* cool storage encryption very soon. ...
      (Bugtraq)
    • Widely Used Security Solutions Unable To Prevent Data Theft
      ... Innersafe Corporation, a data security company. ... a text editor exposed protected data on a PC running disk ... "Data theft from a PC is surprisingly easy. ... Disk encryption scrambles data on the disk so it cannot be unscrambled ...
      (alt.privacy)