|
|
SA#07: Unexpected duplicates of imported software based keysWhen either the command line utility generatekey or the KeySafe graphical application is used to import a software based key into an nCipher nShield or nForce hardware security module, the key is successfully imported. However copies of the original key file are incorrectly left on the host file system. This advisory also available as PGP-signed plaintext. Feburary 2003SummaryWhen either the command line utility generatekey or the KeySafe graphical application is used to import a software based key into an nCipher nShield or nForce hardware security module, the key is successfully imported. However copies of the original key file are incorrectly left on the host file system. BackgroundnCipher provides tools to support importing software based keys into an nForce or nShield hardware security module. This operation is not usually recommended, since:
However it is recognised that some customers require existing software based keys to be imported into an nCipher module to reduce the risk of a future successful attack, without revoking and replacing these keys. Issue Description1. CauseWhile importing a software based key into a security world the generatekey utility makes temporary copies of the source key contained in the specified PEM file in order to convert it into DER format ready for importing onto an nCipher module. However, the software fails to delete the temporary copies of the source key and leaves them on the file system after the key has been imported into the module. The KeySafe graphical utility uses generatekey, and is therefore also affected by this problem. 2. ImpactAfter a successful import operation two additional copies of the key are left on the file system in files named key.pem and key.der in the current directory. If these files are not deleted manually by the operator then these copies may be found by an attacker if the security of the host is compromised. 3. Who Is Not AffectedYou are not affected if:
4. Who May Be AffectedThe bug exists in all versions of generatekey that is supplied with the nCipher support software earlier than CD version 7.00. You are affected if you have at any time imported a software based key contained in a PEM file using generatekey, KeySafe or a custom kmjava application which uses the AppKeyGenerator or KeyGenerator classes, and have not taken steps to remove temporary key material from your host. 5. How To Tell If You Are AffectedSearch the contents of the file system, and backups as necessary, of any host which may have been affected. Search for files named key.pem and key.der. Any such file may be the result of the vulnerability described here; alternatively, it may be a different key legitimately held in software, or a key indicator file containing only a reference to the filename of a key previously imported. For information on key indicator files please refer to nCipher product documentation. Note that you may have multiple key.pem and key.der files in different directories if you have imported multiple keys. Only the most recent key.pem and key.der will remain in any one directory. nCipher supplies a utility, `pubkey-find', which can parse and describe RSA private keys stored as (unencrypted) files in .pem format. If you would like to use the pubkey-find utility, and it is not installed on your host system, please contact nCipher Support. For each key.der file, convert it to a .pem file by running
or
and then run pubkey-find on the resulting k.pem file:
or
For each key.pem file, run
or
pubkey-find should produce one of the following sets of output:
RemedynCipher recommends that customers avoid importing software based keys if at all possible. Customers who have previously imported software based keys may wish to review their original decision, and consider revoking and generating new keys. If this is not feasible, best practice with any key import would be to completely erase, using specialist third party tools, all computer systems and any media which have processed and may contain the software based key material. However, this is frequently impractical. In this case, you should delete any key.pem or key.der file which you have identified as containing a key which you have imported into an nCipher module, and any k.pem file created as part of the analysis, above. The key should be deleted from the following places:
Customers should be aware that securely deleting files from file systems is generally difficult, and should seek expert operating system specific advice if in any doubt. Software Distribution and ReferencesThe current maintenance release of nCipher support software (CD version 7.00 or later), contains an updated version of the generatekey program. This version will attempt to remove any temporary files that are created during the import process, using standard operating system facilities. However, since the underlying physical media may continue to contain the imported key material, use of this version does *not* eliminate the security vulnerabilities associated with importing keys. This version does *not* check for or remove, any key.pem of key.der files that remain from earlier import operations. You can obtain copies of this advisory, and any supporting documentation, from the nCipher updates site: http://www.ncipher.com/support/advisories/ Due to export control regulations, we are unable to make the updated software available on the web site. Please contact nCipher Support who will advise you on obtaining updated software, either via Internet download or on CDROM. nCipher SupportnCipher customers who require support or further information regarding this problem should contact support@ncipher.com. nCipher Support can also be reached by telephone: Customers in the USA or Canada: Customers in all other countries outside of the USA and Canada can call the USA number in the event that they receive the advisory outside of UK support hours (09:00 - 17:30). Further InformationGeneral information about nCipher products: nCipher Developer's Guide and nCipher Developer's Reference http://www.ncipher.com/documentation.html If you would like to receive future security advisories from nCipher, please subscribe to the low volume nCipher security-announce mailing list. To do this, send a mail with the single word `subscribe' in the message body to: security-announce-request@ncipher.com.
© nCipher Corporation Ltd. 2003 All trademarks acknowledged. nCipher, KeySafe, nForce and nShield are trade marks and registered trade marks respectively of nCipher Corporation Limited. $Id: advisory7.txt,v 1.12 2003/02/18 12:08:51 mknight Exp $ |
nCipher protects critical enterprise data for many of the world's most security-conscious organizations
by being an industry leader in cryptography and data security, data encryption, enterprise pki,
digital signature software, timestamp, and other data protection solutions.