<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>D-kriptik Blog</title>
	<atom:link href="http://d-kriptik.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://d-kriptik.com/blog</link>
	<description>Bridging the technology gap between techies and everyone else.</description>
	<pubDate>Wed, 30 Jul 2008 18:57:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Quickies: dns, tor 0.2.0.x, truecrypt 6, cold boot sw, fips stuff, j-pake</title>
		<link>http://d-kriptik.com/blog/2008/07/23/quickies-dns-tor-020x-truecrypt-6-cold-boot-sw-fips-stuff-j-pake/</link>
		<comments>http://d-kriptik.com/blog/2008/07/23/quickies-dns-tor-020x-truecrypt-6-cold-boot-sw-fips-stuff-j-pake/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 18:54:57 +0000</pubDate>
		<dc:creator>D-Kriptik Support (Andrew Donofrio)</dc:creator>
		
		<category><![CDATA[Anonymity &amp; Privacy]]></category>

		<category><![CDATA[Authentication &amp; Identity]]></category>

		<category><![CDATA[Crypto]]></category>

		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://d-kriptik.com/blog/?p=203</guid>
		<description><![CDATA[I am posting these snippets in a period of quiet between bedraggling, booming storms. Alas, dear reader, another set of quickies, as summertime rolls. So, the <a href="http://www.doxpara.com/?p=1162">DNS implementation flaw</a> has (allegedly) been revealed. Grinding through weak state combined with additional RR trickery gets the job done. The 0.2.0.x branch of Tor has gone from alpha to <a href="http://archives.seul.org/or/talk/Jul-2008/msg00091.html">release</a>, with 0.2.0.30 being the first version deemed fit for primetime. So, TrueCrypt 6 has been rolled out, and I took note of the following <a href="http://www.truecrypt.org/docs/?s=version-history">new features</a>. <a href="http://d-kriptik.com/blog/2008/02/21/cold-boot/">Remember cold boot?</a> Well, the software created as part of the research has now been <a href="http://citp.princeton.edu/memory/code/">released</a>. You may have noticed <a href="http://csrc.nist.gov/groups/STM/cmvp/standards.html#01">this</a>. A few <a href="http://csrc.nist.gov/groups/ST/toolkit/BCM/modes_development.html">new</a> <a href="http://csrc.nist.gov/groups/ST/toolkit/BCM/index.html">modes</a> of operation for the AES have popped up at NIST in somewhat recent months. One of these, <a href="http://grouper.ieee.org/groups/1619tmp/1619-2007-NIST-Submission.pdf">XTS</a>, is now being <a href="http://www.csrc.nist.gov/groups/ST/documents/Request-for-Public-Comment-on_XTS.pdf">proposed</a> by NIST for approval for government use, meaning it could become an approved mode of operation for AES under FIPS 140. <a href="http://csrc.nist.gov/publications/drafts/Draft-SP-800-107/draft-SP800-107-July2008.pdf">Draft SP 800-107</a>, Recommendation for Applications Using Approved Hash Algorithms, has been <a href="http://csrc.nist.gov/publications/PubsDrafts.html#800-107">published</a> and is open to public comment until 09-Oct-2008. <a href="http://www.lightbluetouchpaper.org/2008/05/29/j-pake/">Yes</a> <a href="http://grouper.ieee.org/groups/1363/passwdPK/submissions/hao-ryan-2008.pdf">please</a>.]]></description>
			<content:encoded><![CDATA[<p>I am posting these snippets in a period of quiet between bedraggling, booming storms. Alas, dear reader, another set of quickies, as summertime rolls.</p>
<p>-</p>
<p>So, the <a href="http://www.doxpara.com/?p=1162">DNS implementation flaw</a> has (allegedly) been revealed. Grinding through weak state combined with additional RR trickery gets the job done. Good stuff. Adding more <a href="http://d-kriptik.com/blog/2008/03/12/entropy-misc/">entropy</a> to the state information is one way to fend off feasibility, as demonstrated by <a href="http://cr.yp.to/djbdns.html">djbdns</a> (yes, I <a href="http://d-kriptik.com/blog/2007/11/08/quick-notes-on-ubuntu-gutsy-with-xen-and-djbdns-phishing-lesson-misc/">mentioned</a> djbdns at one point). Patches abound.</p>
<p><ins><strong>Update</strong>: <a href="http://www.milw0rm.com/exploits/6122">An exploit</a>.</ins><br />
-</p>
<p>The 0.2.0.x branch of Tor has gone from alpha to <a href="http://archives.seul.org/or/talk/Jul-2008/msg00091.html">release</a>, with 0.2.0.30 being the first version deemed fit for primetime.</p>
<blockquote><p>
I tagged Tor 0.2.0.30, the stable release of the 0.2.0.x series, on Tuesday.</p>
<p>You can read all about it here:<br />
<a href="https://svn.torproject.org/svn/tor/tags/tor-0_2_0_30/ReleaseNotes">https://svn.torproject.org/svn/tor/tags/tor-0_2_0_30/ReleaseNotes</a></p>
<p>We haven&#8217;t made an official announcement yet, because we&#8217;re waiting for Torbutton 1.2.0 to go stable so we can build packages for the Windows and OS X folks.
</p></blockquote>
<p>From the <a href="https://svn.torproject.org/svn/tor/tags/tor-0_2_0_30/ReleaseNotes">release notes</a>&#8230;</p>
<blockquote><p>
Changes in version 0.2.0.30 - 2008-07-15<br />
  This new stable release switches to a more efficient directory distribution design, adds features to make connections to the Tor network harder to block, allows Tor to act as a DNS proxy, adds separate rate limiting for relayed traffic to make it easier for clients to become relays, fix a variety of potential anonymity problems, and includes the usual huge pile of other features and bug fixes.
</p></blockquote>
<p>Great work.</p>
<p>-</p>
<p>The <a href="http://www.truecrypt.org/">TrueCrypt</a> team has been quite busy it seems, with two major <a href="http://d-kriptik.com/blog/2008/02/07/gutsy-ossl-padlock-conversations-truecrypt-50/">releases</a> this year within a few months of each other. So, TrueCrypt 6 has been rolled out, and I took note of the following <a href="http://www.truecrypt.org/docs/?s=version-history">new features</a>.</p>
<blockquote><p>
Parallelized encryption/decryption  on multi-core processors (or multi-processor systems). Increase in encryption/decryption speed is directly proportional to the number of  cores and/or processors.
</p></blockquote>
<blockquote><p>
Each volume created by this or later versions of TrueCrypt will contain an embedded  backup header (located at the end of the volume). Note that  it is impossible to mount a volume when its header is damaged (the header contains an encrypted master key). Therefore, embedded backup headers significantly reduce this risk. Also note that   a backup header is <i>not</i> a copy of the original volume header because it is encrypted with a different  header key derived using a different salt. For more information, see the subsection <a href="http://www.truecrypt.org/docs/program-menu.php#tools-restore-volume-header"><i>Tools &gt; Restore Volume Header</i></a>.
</p></blockquote>
<p>More great work.</p>
<p>-</p>
<p><a href="http://d-kriptik.com/blog/2008/02/21/cold-boot/">Remember cold boot?</a> Well, the software created as part of the research has now been <a href="http://citp.princeton.edu/memory/code/">released</a>.</p>
<blockquote><p>
July 16, 2008 — This page contains source code for some of the software that we developed in the course of this research. These prototype applications are intended to illustrate the techniques described in the <a href="http://citp.princeton.edu/memory/">paper</a>; we are unable to provide technical support.
</p></blockquote>
<p>-</p>
<p>You may have noticed <a href="http://csrc.nist.gov/groups/STM/cmvp/standards.html#01">this</a>.</p>
<blockquote><p>
4Q08 The second draft of FIPS 140-3 will be published for public comment (subject to change).
</p></blockquote>
<p>-</p>
<p>A few <a href="http://csrc.nist.gov/groups/ST/toolkit/BCM/modes_development.html">new</a> <a href="http://csrc.nist.gov/groups/ST/toolkit/BCM/index.html">modes</a> of operation for the AES have popped up at NIST in somewhat recent months. One of these, <a href="http://grouper.ieee.org/groups/1619tmp/1619-2007-NIST-Submission.pdf">XTS</a>, is now being <a href="http://www.csrc.nist.gov/groups/ST/documents/Request-for-Public-Comment-on_XTS.pdf">proposed</a> by NIST for approval for government use, meaning it could become an approved mode of operation for AES under FIPS 140.</p>
<blockquote><p>
The P1619 Task Group of the Security in Storage Working Group (SISWG) of the Institute of Electrical and Electronics Engineers, Inc. (IEEE) has submitted the XTS-AES algorithm (XTS, for short) to NIST as an encryption mode of operation of the Advanced Encryption Standard (AES) block cipher. Although XTS does not provide authentication in order to avoid expansion of the data, it is designed to provide some protection against malicious manipulation of the encrypted data. Subject to the 90-day period of public comment that is described below, NIST proposes to approve XTS for government use under the auspices of FIPS Pub. 140-2.
</p></blockquote>
<p>-</p>
<p><a href="http://csrc.nist.gov/publications/drafts/Draft-SP-800-107/draft-SP800-107-July2008.pdf">Draft SP 800-107</a>, Recommendation for Applications Using Approved Hash Algorithms, has been <a href="http://csrc.nist.gov/publications/PubsDrafts.html#800-107">published</a> and is open to public comment until 09-Oct-2008. </p>
<blockquote><p>
This Recommendation provides security guidelines for achieving the required or desired security strengths of several cryptographic applications that employ the approved cryptographic hash functions specified in Federal Information Processing Standard (FIPS) 180-3 [FIPS 180-3], such as digital signature applications [FIPS 186-3], Keyedhash Message Authentication Codes (HMACs) [FIPS 198-1] and Hash-based Key Derivation Functions (HKDFs) [SP 800 56A] &#038; [SP 800 56B].
</p></blockquote>
<p><ins><strong>Update</strong>: Related to the SP 800-107 news, a revision to FIPS 198 has been released, <a href="http://csrc.nist.gov/publications/PubsFIPS.html#FIPS%20198-1">FIPS 198-1</a>.</p>
<blockquote><p>
APPENDIX A: The Differences Between FIPS 198 and FIPS 198-1<br />
The length of truncated HMAC outputs and their security implications in FIPS 198 is not mentioned in this Standard; instead, it is described in SP 800-107. The discussion about the limitations of MAC algorithms has been moved to SP 800-107. The examples and OIDs have been posted on the NIST web sites referenced in Section 6.
</p></blockquote>
<p></ins></p>
<p>-</p>
<p><a href="http://www.lightbluetouchpaper.org/2008/05/29/j-pake/">Yes</a> <a href="http://grouper.ieee.org/groups/1363/passwdPK/submissions/hao-ryan-2008.pdf">please</a>.</p>
<blockquote><p>
Abstract. Password-Authenticated Key Exchange (PAKE) studies how to establish secure communication between two remote parties solely based on their shared password, without requiring a Public Key Infrastructure (PKI). Despite extensive research in the past decade, this problem remains unsolved. Patent has been one of the biggest brakes in deploying PAKE solutions in practice. Besides, even for the patented schemes like EKE and SPEKE, their security is only heuristic; researchers have reported some subtle but worrying security issues.</p>
<p>In this paper, we propose to tackle this problem using an approach different from all past solutions. Our protocol, Password Authenticated Key Exchange by Juggling (J-PAKE), achieves mutual authentication in two steps: first, two parties send ephemeral public keys to each other; second, they encrypt the shared password by juggling the public keys in a verifiable way. The first use of such a juggling technique was seen in solving the Dining Cryptographers problem in 2006. Here, we apply it to solve the PAKE problem, and show that the protocol is zero-knowledge as it reveals nothing except one-bit information: whether the supplied passwords at two sides are the same. With clear advantages in security, our scheme has comparable efficiency to the EKE and SPEKE protocols.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://d-kriptik.com/blog/2008/07/23/quickies-dns-tor-020x-truecrypt-6-cold-boot-sw-fips-stuff-j-pake/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Quickies: headaches, links, stories, crypto stuff, other</title>
		<link>http://d-kriptik.com/blog/2008/05/21/quickies-headaches-links-stories-crypto-stuff-other/</link>
		<comments>http://d-kriptik.com/blog/2008/05/21/quickies-headaches-links-stories-crypto-stuff-other/#comments</comments>
		<pubDate>Thu, 22 May 2008 01:25:40 +0000</pubDate>
		<dc:creator>D-Kriptik Support (Andrew Donofrio)</dc:creator>
		
		<category><![CDATA[Anonymity &amp; Privacy]]></category>

		<category><![CDATA[Authentication &amp; Identity]]></category>

		<category><![CDATA[BSD]]></category>

		<category><![CDATA[Conferences]]></category>

		<category><![CDATA[Crypto]]></category>

		<category><![CDATA[Debian &amp; Ubuntu]]></category>

		<category><![CDATA[Off-topic]]></category>

		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://d-kriptik.com/blog/?p=200</guid>
		<description><![CDATA[Unfortunately, this rare act of posting will be limited to a quickie - a few miscellaneous items accumulated over a couple of months. A few headaches... Three useful Ubuntu and FreeBSD pages - <a href="http://www.ubuntu.com/usn/">USN</a>, <a href="http://www.vuxml.org/freebsd/">FreeBSD VuXML</a>, and <a href="http://www.freebsd.org/security/advisories.html">FreeBSD Security Advisories</a>. <a href="http://www.businessballs.com/stories.htm">This</a> site has a useful set of stories. NIST <a href="http://csrc.nist.gov/publications/drafts/800-108/Draft_SP-800-108_April-2008.pdf">draft SP 800-108</a> has been <a href="http://csrc.nist.gov/publications/PubsDrafts.html#800-108">released</a>. They <a href="http://eprint.iacr.org/2008/130.pdf">just</a> <a href="http://eprint.iacr.org/2008/131.pdf">don't</a> <a href="http://eprint.iacr.org/2008/142.pdf">quit</a>, <a href="http://eprint.iacr.org/2008/174.pdf">do</a> they? <a href="http://www.nsa.gov/public/publi00003.cfm">Interesting stuff</a> - in particular, the <a href="http://www.nsa.gov/public/crypt_spectrum.cfm">Cryptologic Spectrum Articles</a> and <a href="http://www.nsa.gov/public/cryptologicquarterly.cfm">Cryptologic Quarterly Articles</a> have some fun reads. An easy to cut 'n paste into a blog post set of old web server log entries depicting an instance of Tor being used to proxy/anonymize automated probes of this web site. The 2008 schedule is up at the <a href="http://www.summerstage.org/">Summer Stage</a> web site.]]></description>
			<content:encoded><![CDATA[<p>So, I recently saw <a href="http://www.imdb.com/title/tt0467406/">Juno</a> for the first time, and was surprised and happy to hear Kimya Dawson permeate the soundtrack. And, I ate at <a href="http://www.wd-50.com/">wd~50</a>, which was, well, an experience - highly recommended if you want to try something truly new.</p>
<p>Anyway, yes, still here. Unfortunately, this rare act of posting will be limited to a quickie - a few miscellaneous items accumulated over a couple of months.</p>
<p>-</p>
<p>A few headaches&#8230;</p>
<ol>
<li><a href="http://www.links.org/?p=327">Wow</a>, just wow.<br />
<blockquote><p>
The result of this is that for the last two years (from Debian’s “Etch” release until now), anyone doing pretty much any crypto on Debian (and hence Ubuntu) has been using easily guessable keys. This includes SSH keys, SSL keys and OpenVPN keys.
</p></blockquote>
<p>Update immediately. And be sure to do things such as regenerate all persistent keys that used random data taken from the vulnerable Debian OpenSSL during their generation - some of this type of work is handled automatically when updating your packages (e.g., OpenSSH server keys), but only you know what you have done outside this automated window.
</li>
<li>I booted up a Windows XP box only to find that some resource of the Logitech QuickCam software had become corrupted, and this resulted in a nasty msi installer loop hitting the box as soon as a user logged in. I <a href="http://blogs.msdn.com/astebner/archive/2005/03/29/help-me-help-you-if-you-have-setup-bugs.aspx#479953">found</a> <a href="http://support.microsoft.com/kb/290301">this</a> tool extremely useful in cleaning up the mess.<br />
<blockquote><p>
[..]With the Windows Installer CleanUp Utility, you can remove a program&#8217;s Windows Installer configuration information. You may want to remove the Windows Installer configuration information for your program if you experience installation (Setup) problems. For example, you may have to remove a program&#8217;s Windows Installer configuration information if you have installation problems when you try to add (or remove) a component of your program that was not included when you first installed your program.
</p></blockquote>
</li>
<li>Much to my very unpleasant surprise, I upgraded a server over here from Ubuntu Gutsy to Hardy and discovered networking for Xen DomU&#8217;s in Ubuntu Hardy 8.04 is somewhat <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/218126">broken</a>. I ended up using the 2.6.24-17-xen kernel from the hardy-proposed repository, but you could also just stick with the Gutsy Xen kernel for DomU&#8217;s.</li>
<li>When I upgraded to Gnome 2.22 on a particular FreeBSD 7.0 system, certain things, like the clock applet, did not work. This was due to the dbus daemon not being started. Then, the hal daemon and Gnome did not want to play nice together. <a href="http://www.freebsd.org/gnome/docs/halfaq.html">This</a> page provided the information necessary to get them playing nice - in this particular instance, not mounting procfs was the <a href="http://www.nabble.com/consolekit-polkit-problem-td16339107.html">problem</a>.</li>
</ol>
<p>Side note, I was helping someone install Ubuntu recently, and it brought to my attention yet again how much I take what I consider to be basic skills for granted when using *nix. Small things, like running an executable from within your environment path versus by directly specifying the path (the most confusing to many example of this seems to be trying to run an executable in the current working directory), are just not common knowledge. Even the whole command line itself is often scary and bizarre to people. This makes it extremely difficult to provide useful guidance for people to blindly follow (posts on this blog should never be assumed to provide step-by-step instructions - they are just some basic notes at best, as extremely helpful <a href="http://d-kriptik.com/blog/2005/12/14/loop-aes-and-debian/#comment-69233">comments</a> like this make obvious). And, even Ubuntu is not as trivial to use as it would appear to many that work in the *nix world.</p>
<p>-</p>
<p>Three useful Ubuntu and FreeBSD pages&#8230;</p>
<p><a href="http://www.ubuntu.com/usn/">USN</a>.</p>
<blockquote><p>
These are the Ubuntu security notices that affect the current supported releases of Ubuntu.[...]
</p></blockquote>
<p><a href="http://www.vuxml.org/freebsd/">FreeBSD VuXML</a>.</p>
<blockquote><p>
Security issues that affect the FreeBSD operating system or applications in the FreeBSD Ports Collection are documented using the Vulnerabilities and Exposures Markup Language (VuXML).[...]
</p></blockquote>
<p><a href="http://www.freebsd.org/security/advisories.html">FreeBSD Security Advisories</a>.</p>
<blockquote><p>
This web page contains a list of released FreeBSD Security Advisories.[...]
</p></blockquote>
<p>-</p>
<p>Story-telling is one of the fundamental tools in a teacher&#8217;s toolkit. Having done quite a bit of consulting, I have learned how invaluable a good story is to driving home particular points and building relationships. There is something fundamental about how stories effect us, perhaps stemming from our innate ability to empathesize and our massive pattern recognition horse-power.</p>
<p>Anyway, <a href="http://www.businessballs.com/stories.htm">this</a> site has a useful set of stories. [via <a href="http://lists.extropy.org/mailman/listinfo.cgi/extropy-chat">exi</a>]</p>
<blockquote><p>
Here are some stories, analogies, research findings and other examples that provide wonderful illustrations for learning, and inspiration for self-development.
</p></blockquote>
<p>In fact, <a href="http://www.businessballs.com/stories.htm#old_lady_hearing-aid_story">the first story</a> mirrors a <a href="http://d-kriptik.com/blog/2008/03/04/goodness-he-is-even-bringing-up-intercoms/">recent</a> post.</p>
<blockquote><p>
An old lady had a hearing-aid fitted, discreetly, hidden underneath her hair.</p>
<p>A week later she returned to the doctor for her check-up.</p>
<p>&#8220;It&#8217;s wonderful - I can hear everything now,&#8221; she reported very happily to the doctor.</p>
<p>&#8220;And is your family pleased too?&#8221; asked the doctor.</p>
<p>&#8220;Oh I haven&#8217;t told them yet,&#8221; said the old lady, &#8220;And I&#8217;ve changed my will twice already..&#8221;
</p></blockquote>
<p>This reminds me of a story I often tell about someone I met a while back, a graduate student in psych. She was studying aspects of the initial meeting/courtship routines of people, and would go out to bars and such and interact with potential suitors. Here these suitors were, following their typical pickup routines and sometimes spilling more than their drinks, and here she was, analyzing their interaction and subsequently writing up notes to be turned into research papers, etc.</p>
<p>-</p>
<p>NIST <a href="http://csrc.nist.gov/publications/drafts/800-108/Draft_SP-800-108_April-2008.pdf">draft SP 800-108</a> has been <a href="http://csrc.nist.gov/publications/PubsDrafts.html#800-108">released</a>.</p>
<blockquote><p>
SP 800-108</p>
<p>DRAFT Recommendation for Key Derivation Using Pseudorandom Functions</p>
<p>NIST announces the release of draft Special Publication 800-108, Recommendation for Key Derivation Using Pseudorandom Functions. This Recommendation specifies techniques for key derivation from a secret key using pseudorandom functions (PRF). Please submit comments to draft-SP800-108-comment@nist.gov with &#8220;Comments on SP800-108&#8243; in the subject line. The comment period closes on June 28, 2008.
</p></blockquote>
<p>Yet more KDFs.</p>
<p>-</p>
<p>They <a href="http://eprint.iacr.org/2008/130.pdf">just</a> <a href="http://eprint.iacr.org/2008/131.pdf">don&#8217;t</a> <a href="http://eprint.iacr.org/2008/142.pdf">quit</a>, <a href="http://eprint.iacr.org/2008/174.pdf">do</a> they?</p>
<p><a href="http://eprint.iacr.org/2008/130">1</a></p>
<blockquote><p>
This is the first article analyzing the security of SHA-256 against fast collision search which considers the recent attacks by Wang et al. We show the limits of applying techniques known so far to SHA-256. Next we introduce a new type of perturbation vector which circumvents the identified limits. This new technique is then applied to the unmodified SHA-256. Exploiting the combination of Boolean functions and modular addition together with the newly developed technique allows us to derive collision-producing characteristics for step-reduced SHA-256, which was not possible before. Although our results do not threaten the security of SHA-256, we show that the low probability of a single local collision may give rise to a false sense of security.
</p></blockquote>
<p><a href="http://eprint.iacr.org/2008/131">2</a></p>
<blockquote><p>
We study the security of step-reduced but otherwise unmodified SHA-256. We show the first collision attacks on SHA-256 reduced to 23 and 24 steps with complexities $2^{18}$ and $2^{50}$, respectively. We give an example colliding message pair for 23-step SHA-256. The best previous, recently obtained result was a collision attack for up to 22 steps. Additionally, we show non-random behaviour of SHA-256 in the form of pseudo-near collisions for up to 31 steps, which is 6 more steps than the recently obtained non-random behaviour in the form of a semi-free start near-collision. Even though this represents a step forwards in terms of cryptanalytic techniques, the results do not threaten the security of applications using SHA-256.
</p></blockquote>
<p><a href="http://eprint.iacr.org/2008/142">3</a></p>
<blockquote><p>
[...]First we describe message modification techniques and use them to obtain an algorithm to generate message pairs which collide for the actual SHA-256 reduced to 18 steps. Our second contribution is to present differential paths for 19, 20, 21, 22 and 23 steps of SHA-256. We construct parity check equations in a novel way to find these characteristics. Further, the 19-step differential path presented here is constructed by using only 15 local collisions, as against the previously known 19-step near collision differential path which consists of interleaving of 23 local collisions. Our 19-step differential path can also be seen as a single local collision at the message word level. We use a linearized local collision in this work. These results do not cause any threat to the security of the SHA-256 hash function.
</p></blockquote>
<p><a href="http://eprint.iacr.org/2008/174">4</a></p>
<blockquote><p>
[...]We build on the work of Nikoli\&#8217;{c} and Biryukov and provide a generalized nonlinear local collision which accepts an arbitrary initial message difference. This local collision succeeds with probability 1. Using this local collision we present attacks against 18-step SHA-256 and 18-step SHA-512 with arbitrary initial difference. Both of these attacks succeed with probability 1. We then present special cases of our local collision and show two different differential paths for attacking 20-step SHA-256 and 20-step SHA-512. One of these paths is the same as presented by Nikoli\&#8217;{c} and Biryukov while the other one is a new differential path. Messages following both these differential paths can be found with probability 1. This improves on the previous result where the success probability of 20-step attack was 1/3. Finally, we present two differential paths for 21-step collisions for SHA-256 and SHA-512, one of which is a new path. The success probability of these paths for SHA-256 is roughly $2^{-15}$ and $2^{-17}$ which improves on the 21-step attack having probability $2^{-19}$ reported earlier. We show examples of message pairs following all the presented differential paths for up to 21-step collisions in SHA-256. We also show first real examples of colliding message pairs for up to 20-step reduced SHA-512.
</p></blockquote>
<p>Completely academic, but you know what they say - attacks only get better.</p>
<p>-</p>
<p><a href="http://www.nsa.gov/public/publi00003.cfm">Interesting stuff</a>.</p>
<blockquote><p>
NSA/CSS periodically releases declassified documents or indexes to these documents to the public. The documents listed on this page were located in response to numerous requests received by NSA on the various subjects stated and for which there appears to be a general public interest. The date after each entry reflects the most current release date of that material. When additional material for a given subject is updated then a new subject index date is posted. To select a subject index, click on the subject title.
</p></blockquote>
<p>In particular, the <a href="http://www.nsa.gov/public/crypt_spectrum.cfm">Cryptologic Spectrum Articles</a> and <a href="http://www.nsa.gov/public/cryptologicquarterly.cfm">Cryptologic Quarterly Articles</a> have some fun reads.</p>
<p>-</p>
<p>An easy to cut &#8216;n paste into a blog post set of old web server log entries depicting an instance of Tor being used to proxy/anonymize automated probes of this web site.</p>
<blockquote><p>
anonymizer.blutmagie.de - - [13/Mar/2008:00:59:00 -0700] &#8220;GET /forum/phpbb/index.php HTTP/1.0&#8243; 404 285 &#8220;http://forum.d-kriptik.com/phpbb/index.php&#8221; &#8220;Mozilla/4.0 (compatible; MSIE 6.0; AOL 9.0; Windows NT 5.1)&#8221;</p>
<p>tor.anonymous.proxy.quex.org - - [13/Mar/2008:00:59:01 -0700] &#8220;GET /forum/phpbb2/index.php HTTP/1.0&#8243; 404 286 &#8220;http://forum.d-kriptik.com/phpbb2/index.php&#8221; &#8220;Mozilla/4.0 (compatible; MSIE 6.0; AOL 9.0; Windows NT 5.1)&#8221;</p>
<p>tor.anonymizer.ccc.de - - [13/Mar/2008:00:59:02 -0700] &#8220;GET /forum/forums/index.php HTTP/1.0&#8243; 404 286 &#8220;http://forum.d-kriptik.com/forums/index.php&#8221; &#8220;Mozilla/4.0 (compatible; MSIE 6.0; AOL 9.0; Windows NT 5.1)&#8221;</p>
<p>tor.anonymizer.ccc.de - - [13/Mar/2008:00:59:08 -0700] &#8220;GET /forum/board/index.php HTTP/1.0&#8243; 404 285 &#8220;http://forum.d-kriptik.com/board/index.php&#8221; &#8220;Mozilla/4.0 (compatible; MSIE 6.0; AOL 9.0; Windows NT 5.1)&#8221;
</p></blockquote>
<p>-</p>
<p>Like heat and humidity, free music and Central Park mean summer. The 2008 schedule is up at the <a href="http://www.summerstage.org/">Summer Stage</a> web site. And, the <a href="http://www.summerstage.org/index1.aspx?BD=20516">opening Saturday</a> looks good to me.</p>
<blockquote><p>
Vampire Weekend<br />
Kid Sister<br />
Ecstatic Sunshine 	</p>
<p>Saturday, June 14, 2008<br />
From 4:00 PM to 7:30 PM<br />
Central Park SummerStage
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://d-kriptik.com/blog/2008/05/21/quickies-headaches-links-stories-crypto-stuff-other/feed/</wfw:commentRss>
		</item>
		<item>
		<title>entropy, misc</title>
		<link>http://d-kriptik.com/blog/2008/03/12/entropy-misc/</link>
		<comments>http://d-kriptik.com/blog/2008/03/12/entropy-misc/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 02:19:21 +0000</pubDate>
		<dc:creator>D-Kriptik Support (Andrew Donofrio)</dc:creator>
		
		<category><![CDATA[Authentication &amp; Identity]]></category>

		<category><![CDATA[Crypto]]></category>

		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://d-kriptik.com/blog/2008/03/12/entropy-misc/</guid>
		<description><![CDATA[I found <a href="http://www.overcomingbias.com/2008/03/mind-probabilit.html">this</a> post interesting having just had yet another discussion about entropy in this seed, key, password, etc. world of mine.[...]In our seed, key, password, etc. world, entropy is a measure of uncertainty. It is what someone does not know. As such, entropy is subjective. If I know a password, it has no entropy; however, to someone that knows close to absolutely nothing about a password, it has close to maximum entropy.

***

A new version of <a href="http://sourceforge.net/projects/mixmaster/">mixmaster</a> has been <a href="http://lists.mixmin.net/pipermail/remops/2008-March/000422.html">released</a>. The next major version of <a href="http://www.torproject.org/">Tor</a> is in the <a href="http://archives.seul.org/or/talk/Mar-2008/msg00025.html">release candidate phase</a> too. 

-

<a href="http://www.pinktentacle.com/2008/03/cyber-goggles-high-tech-memory-aid/">For</a> the wannabe gargoyles amongst us...

-



If you build it, <a href="http://www.secure-medicine.org/icd-study/icd-study.pdf">they</a> will come. ]]></description>
			<content:encoded><![CDATA[<p>I found <a href="http://www.overcomingbias.com/2008/03/mind-probabilit.html">this</a> post interesting having just had yet another discussion about entropy in this seed, key, password, etc. world of mine.</p>
<blockquote><p>
The term &#8220;Mind Projection Fallacy&#8221; was coined by the late great Bayesian Master, E. T. Jaynes, as part of his long and hard-fought battle against the accursèd frequentists.  Jaynes was of the opinion that probabilities were in the mind, not in the environment - that probabilities express ignorance, states of partial information; and if I am ignorant of a phenomenon, that is a fact about my state of mind, not a fact about the phenomenon.
</p></blockquote>
<p>Of course, this speaks to entropy. In our seed, key, password, etc. world, entropy is a measure of uncertainty. It is what someone does not know. As such, entropy is subjective. If I know a password, it has no entropy; however, to someone that knows close to absolutely nothing about a password, it has close to maximum entropy.</p>
<p>So, when we talk about the entropy of things like passwords, what we generally mean is the amount of uncertainty, or the lack of information, about that password given some set of assumptions of the information available about that password. And, since entropy is subjective, any measurement of this uncertainty that we produce will likely just be a bound (e.g., an estimate of the maximum possible value) based on particular assumptions.</p>
<p>Ok, lets look at a very simple example with passwords (I banged this out quickly, so hopefully I didn&#8217;t make any obvious mistakes)&#8230;</p>
<p>Consider the set of passwords exactly 8 digits in length and composed of case-insensitive, repeatable, alphanumeric characters. Given that, each digit of the password can be 1 of 36 characters (i.e., 0-9 or a-z), and, given the passwords are 8 digits in length, there are 36*36*36*36*36*36*36*36 = 36<sup>8</sup> possible passwords. </p>
<p>Flipping through &#8220;The Mathematical Theory of Communication&#8221;, Shannon defined entropy, or the measure of uncertainty, for a set of probabilities p<sub>1</sub>,&#8230;,p<sub>n</sub>, as H = -&sum; p<sub>i</sub> log p<sub>i</sub>, where p<sub>i</sub> is the probably of an event i.</p>
<p>Looking at <a href="http://csrc.nist.gov/publications/nistpubs/800-90/SP800-90revised_March2007.pdf"">SP800-90</a>, min-entropy, another measure of uncertainty, for a set of probabilities p<sub>1</sub>,&#8230;,p<sub>n</sub> is defined as H = -log<sub>2</sub>(p<sub>max</sub>), where p<sub>max</sub> is the maximum p in p<sub>1</sub>,&#8230;,p<sub>n</sub>.</p>
<p>Now, lets say you choose a password from this set using a selection method that ensures that the probability of any character being chosen for a digit of the password is 1/36 (i.e., each digit of the password is equally likely to contain any of the 36 possible characters). Once you have chosen and know your password, what is the entropy of that password to you? Well, 0, as you know the password. </p>
<p>In other words, each digit of the password is known to you, meaning the probably of one particular character being in each digit of the password is 1, while the probably of any other characters being in that same digit is 0. So, there is only one p<sub>i</sub> for each digit of the password, and our Shannon H = -&sum; p<sub>i</sub> log p<sub>i</sub> = -1 log 1 = 0 and our min-entropy H = -log<sub>2</sub>1 = 0. So, for each digit of our password, H=0. And, treating the digits of our password as independent, the entropy of our password is sum of the individual entropy we calculated for each digit, namely 0+0+0+0+0+0+0+0=0. </p>
<p>Another way of looking at this is that the chance that you will guess your password given you know your password is 1/1=1. Translating that to percent, 1*100 = 100%.</p>
<p>Now, lets say an outside observer comes along who knows nothing about the password you selected above except that it is in this set of possible passwords we have defined. For this attacker, the entropy of the password is quite different, as there is quite a bit uncertainty about your password.</p>
<p>As stated, each digit of the password can be 1 of 36 characters, and this outsider has no information that would bias them towards any particular character being in any particular digit of the password. So, the probably of a particular digit in the password being a particular character is 1/n, where n is the number of potential characters, or 1/36.</p>
<p>Plugging that into H, we get Shannon H = -&sum; p<sub>i</sub> log p<sub>i</sub> = -((1/36)*log(1/36) + (1/36)*log(1/36) + &#8230;<sub>repeat 32 more times</sub>&#8230; + (1/36)*log(1/36) + (1/36)*log(1/36)) = log(36) &asymp; 1.5563 (5.1699 bits) or our min-entropy H = -log<sub>2</sub>(1/36) &asymp; 5.1699. So, for each digit of our password, H &asymp; 1.5563 (5.1699 bits). And, since this observer knows nothing to imply any dependence between the digits of the password, the digits can be treated as independent and so the total entropy for the password will equal the sum of the entropy of each digit, or roughly 1.5563+1.5563+1.5563+1.5563+1.5563+1.5563+1.5563+1.5563=1.5563*8=&asymp;12.4504 (5.1699+5.1699+5.1699+5.1699+5.1699+5.1699+5.1699+5.1699=5.1699*8=&asymp;41.3594 bits)</p>
<p>Another way of looking at this is that the chance this outside observer will guess our password is 1/(36<sup>8</sup>)=1/2821109907456&asymp;.00000000000035447. Translating that to percent, .00000000000035447*100 = .000000000035447%.</p>
<p>This situation is actually the maximum measure of uncertainty for a password taken from our set of passwords, as it assumes that every character from our character set to be equally likely in every digit of the password and that each digit is independent of the others. (When people ask if their passwords are strong, generally they are asking whether they are near this maximum bound.)</p>
<p>Of course, there is a large range in between the two entropy extremes in this example, and where someone&#8217;s uncertainty about a password falls in that range depends on what they know about the password. For example, if they know the password is an English word but not what word exactly, the entropy slides over towards the minimum end. If they know your password is the name of someone very close to you but not what name exactly, then the entropy likely drops to close to zero.</p>
<p>Since I mentioned it above, Appendix A of of <a href="http://csrc.nist.gov/publications/nistpubs/800-90/SP800-90revised_March2007.pdf">SP800-90</a> (Recommendation for Random Number Generation Using Deterministic Random Bit Generators) discusses the subjectiveness of entropy.</p>
<blockquote><p>
The word “entropy” is used to describe a measure of randomness, i.e., a description of how hard a value is to guess. Entropy is a measure of uncertainty or unpredictability and is dependent on the probabilities associated with the possible results for a given “event” (e.g., a throw of a die or flip of a coin).</p>
<p>Entropy is relative to an adversary and his ability to observe or predict a value. If the adversary has no uncertainty about the value, then the entropy is zero (and so is the security of the consuming application that relies on the DRBG). Any assessment of the entropy of a particular value is actually an assessment of how much of the value is unknown to the adversary.
</p></blockquote>
<p>That document also discusses calculating entropy, recommending min-entropy over Shannon entropy. In the example calculations here, both result in the same entropy estimate, but, in general, min-entropy will produce a more conservative (i.e., less than or equal to) estimate of entropy than Shannon entropy.</p>
<p>***</p>
<p>A new version of <a href="http://sourceforge.net/projects/mixmaster/">mixmaster</a> has been <a href="http://lists.mixmin.net/pipermail/remops/2008-March/000422.html">released</a>. [via <a href="http://lists.mixmin.net/mailman/listinfo/remops">remops</a> and others]</p>
<blockquote><p>
Mixmaster 3.0 has been released this week. This is the first major version release since 2.9, and a continuation of that code, though it incorporates numerous improvements, feature enhancements, and bug-fixes. It is recommended that you upgrade your remailers to this version.
</p></blockquote>
<p>The next major version of <a href="http://www.torproject.org/">Tor</a> is in the <a href="http://archives.seul.org/or/talk/Mar-2008/msg00025.html">release candidate phase</a> too.</p>
<p>-</p>
<p><a href="http://www.pinktentacle.com/2008/03/cyber-goggles-high-tech-memory-aid/">For</a> the wannabe gargoyles amongst us&#8230; [via <a href="http://postbiota.org/mailman/listinfo/tt">tt</a>]</p>
<blockquote><p>
Researchers at the University of Tokyo have developed a smart video goggle system that records everything the wearer looks at, recognizes and assigns names to objects that appear in the video, and creates an easily searchable database of the recorded footage. Designed to function as a high-tech memory aid, these “Cyber Goggles” promise to make the act of losing your keys a thing of the past, according to head researcher professor Tatsuya Harada.
</p></blockquote>
<p>And, yes, I would wear those.</p>
<p>-</p>
<p>Finally, if you build it, <a href="http://www.secure-medicine.org/icd-study/icd-study.pdf">they</a> will come.</p>
<blockquote><p>
Abstract—Our study analyzes the security and privacy properties of an implantable cardioverter defibrillator (ICD). Introduced to the U.S. market in 2003, this model of ICD includes pacemaker technology and is designed to communicate wirelessly with a nearby external programmer in the 175 kHz frequency range. After partially reverse-engineering the ICD’s communications protocol with an oscilloscope and a software radio, we implemented several software radio-based attacks that could compromise patient safety and patient privacy. Motivated by our desire to improve patient safety, and mindful of conventional trade-offs between security and power consumption for resource constrained devices, we introduce three new zero-power defenses based on RF power harvesting. Two of these defenses are humancentric, bringing patients into the loop with respect to the security and privacy of their implantable medical devices (IMDs). Our contributions provide a scientific baseline for understanding the potential security and privacy risks of current and future IMDs, and introduce human-perceptible and zero-power mitigation techniques that address those risks. To the best of our knowledge, this paper is the first in our community to use general-purpose software radios to analyze and attack previously unknown radio communications protocols.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://d-kriptik.com/blog/2008/03/12/entropy-misc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Goodness, he is even bringing up intercoms</title>
		<link>http://d-kriptik.com/blog/2008/03/04/goodness-he-is-even-bringing-up-intercoms/</link>
		<comments>http://d-kriptik.com/blog/2008/03/04/goodness-he-is-even-bringing-up-intercoms/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 17:46:58 +0000</pubDate>
		<dc:creator>D-Kriptik Support (Andrew Donofrio)</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://d-kriptik.com/blog/2008/03/04/goodness-he-is-even-bringing-up-intercoms/</guid>
		<description><![CDATA[As some of you may have noticed, I am big of using "local grass roots networks for intelligence gathering" (e.g., "walking the beat"), meaning something like enlisting everyday people to get out there and gather intelligence during their normal everyday activities. So, here is a more off the wall example...]]></description>
			<content:encoded><![CDATA[<p>As some of you may have noticed, I am big of using &#8220;local grass roots networks for intelligence gathering&#8221; (e.g., &#8220;walking the beat&#8221;), meaning something like enlisting everyday people to get out there and gather intelligence during their normal everyday activities. From barstaff/waitstaff to the beautiful to those that pick up the trash to techies to those that just hang out a lot, you can pull together a wealth of information on particular subjects of interest to you, from specific material (e.g., make a note if you hear of a great apartment becoming available) to just general feelings (e.g., make a note about anything that strikes you as odd or foolish or interesting or official). So, here is a more off the wall example&#8230;</p>
<p>Now, &#8220;we all know&#8221; having sensitive conversations walking down the street in NYC is not necessarily the wisest thing to do; however, people tend to think it is acceptable when no one appears to be within direct earshot. But, in many places within NYC, apartment intercoms are within earshot. And, many intercoms give no indication of when &#8220;listen&#8221; is activated.</p>
<p>Sure, there are lots of ways to eavesdrop on public conversations, but intercoms are a quick and easy way for just about anyone living in an apartment in NYC to do a bit of local surveillance using a standard apartment feature available to them at this very moment. And, if you live in the financial district or some area full of well to do business or political people or what have you, there could be lots of potential to gather both dirt and confidential information via intercoms.</p>
<p>Anyway, it might be interesting to pull together a weekly or monthly or what have you podcast composed of, well, interesting conversations (or even video in some cases) captured via intercoms just to see the results. (Of course, before doing so, it would be good to find out if recording public conversations is legal in whatever jurisdiction the recording is taking place?)</p>
<p>On a side note, while &#8220;we all know&#8221; discussing or reading sensitive information does not mix with public places, it is still quite common for people to have sensitive conversations in public directly within earshot of others and read sensitive documents in public directly within eyeshot of others - for example, someone was reading a hard copy of a design spec for a financial management system, including the security section, on the train a couple of days ago in plain view (this particular instance stood out to me because the system was for a company I own stock in). In NYC, commuters seem to be particularly prone to exhibiting these behaviors, which gives rise to some potential recon options, like enlisting people that, say, ride the subway during rush hour to keep an ear/eye out for interesting information. That nifty cell phone might be of use here too.</p>
<p>Yes, still &#8220;keepin&#8217; it old school&#8221; in 2008.</p>
<p>While this post was somewhat in good fun, it did bring to mind a conversation I had with a bartender back in DC a number of years ago about Romania. He told me that many talented techies there turn to computer crime and such because there are so few opportunities for them to use their skills in other ways. You know, as the economy slips in the USA, this type of situation may hit hard close to home - which could mean, say, HUMINT will be even cheaper and more plentiful (e.g., chat up a laid off employee), and so on.</p>
]]></content:encoded>
			<wfw:commentRss>http://d-kriptik.com/blog/2008/03/04/goodness-he-is-even-bringing-up-intercoms/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cold boot</title>
		<link>http://d-kriptik.com/blog/2008/02/21/cold-boot/</link>
		<comments>http://d-kriptik.com/blog/2008/02/21/cold-boot/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 01:48:49 +0000</pubDate>
		<dc:creator>D-Kriptik Support (Andrew Donofrio)</dc:creator>
		
		<category><![CDATA[Crypto]]></category>

		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://d-kriptik.com/blog/2008/02/21/cold-boot/</guid>
		<description><![CDATA[So, straight off <a href="http://d-kriptik.com/blog/2008/02/19/fips-yet-again-hotplug-impact/">the hotplug post</a>, now there is <a href="http://citp.princeton.edu.nyud.net/pub/coldboot.pdf">a paper</a> discussing the recovery of encryption keys from RAM after a machine has been powered off. [hat tip to a friend and <a href="http://www.mail-archive.com/cryptography%40metzdowd.com/msg08868.html">Metzger's list</a>]]]></description>
			<content:encoded><![CDATA[<p>So, straight off <a href="http://d-kriptik.com/blog/2008/02/19/fips-yet-again-hotplug-impact/">the hotplug post</a>, now there is <a href="http://citp.princeton.edu.nyud.net/pub/coldboot.pdf">a paper</a> discussing the recovery of encryption keys from RAM after a machine has been powered off. [hat tip to a friend and <a href="http://www.mail-archive.com/cryptography%40metzdowd.com/msg08868.html">Metzger's list</a>]</p>
<blockquote><p>
Contrary to popular assumption, DRAMs used in most modern computers retain their contents for seconds to minutes after power is lost, even at room temperature and even if removed from a motherboard. Although DRAMs become less reliable when they are not refreshed, they are not immediately erased, and their contents persist sufficiently for malicious (or forensic) acquisition of usable full-system memory images. We show that this phenomenon limits the ability of an operating system to protect cryptographic key material from an attacker with physical access. We use cold reboots to mount successful attacks on popular disk encryption systems using no special devices or materials. We experimentally characterize the extent and predictability of memory remanence and report that remanence times can be increased dramatically with simple techniques. We offer new algorithms for finding cryptographic keys in memory images and for correcting errors caused by bit decay. Though we discuss several strategies for partially mitigating these risks, we know of no simple remedy that would eliminate them.
</p></blockquote>
<p>In my <a href="http://d-kriptik.com/blog/2008/02/19/fips-yet-again-hotplug-impact/">previous</a> post, I said &#8220;However, if you pulled the plug, then the plaintext key would be lost.&#8221; without qualifiers - I generally thought a 10 second rule was appropriate, that is, remove power and 10 seconds later the key would be too difficult for most attackers to recover. Well, it <a href="http://citp.princeton.edu.nyud.net/pub/coldboot.pdf">looks like</a> a 60 second rule is a better baseline and perhaps a <del>5</del><ins>15</ins> minute rule is the fairly conservative way to go.</p>
<blockquote><p>
Our first tests measured the decay rate of each memory module under normal operating temperature, which ranged from 25C to 44C depending on the machine (see Figures 1, 2, and 3). We found that the dimensions of the decay curves varied considerably between machines, with the fastest exhibiting complete data loss in approximately 2.5 seconds and the slowest taking an average of 35 seconds. However, the decay curves all display a similar shape, with an initial period of slow decay, followed by an intermediate period of rapid decay, and then a final period of slow decay.
</p></blockquote>
<p>And,</p>
<blockquote><p>
Imaging residual memory contents requires no special equipment. When the system boots, the memory controller begins refreshing the DRAM, reading and rewriting each bit value. At this point, the values are fixed, decay halts, and programs running on the system can read whatever data is present using normal memory-access instructions.
</p></blockquote>
<p>In other words, if someone quickly powers the system back up after the plug is pulled, the decay is stopped. So, turn the system back on within a few seconds, and it is likely quite easy for anybody to quickly reboot the machine from, say, a USB token that has just enough software to dump the memory and then pull the key from that dump. Throw in some error correcting algorithms based on, say, the key schedules used in AES, and key recovery in the presence of some memory degradation improves drastically.</p>
<blockquote><p>
Our experiments (see Section 3) show that it is possible to recover memory contents with few bit errors even after cutting power to the system for a brief time, but the presence of even a small amount of error complicates the process of extracting correct cryptographic keys. In this section we present algorithms for correcting errors in symmetric and private keys. These algorithms can correct most errors quickly and uniquely even in the presence of relatively high bit error probabilities in the range of 5% to 50%, depending on the type of key.
</p></blockquote>
<p>And, yes, they demonstrated all of this on <a href="http://www.truecrypt.org/">TrueCrypt</a>,</p>
<blockquote><p>
We tested TrueCrypt versions 4.3a and 5.0a running on a Linux system. We mounted a volume encrypted with a 256-bit AES key, then briefly cut power to the system and used our memory imaging tools to record an image of the retained memory data. In both cases, our keyfind program was able to identify the 256-bit AES encryption key, which did not contain any bit errors. For TrueCrypt 5.0a, keyfind was also able to recover the 256-bit AES XTS tweak key without errors.
</p></blockquote>
<p>As well as, on <a href="http://www.saout.de/misc/dm-crypt/">dm-crypt</a> (for <a href="http://d-kriptik.com/blog/2007/11/08/quick-notes-on-ubuntu-gutsy-with-xen-and-djbdns-phishing-lesson-misc/">those</a>, say, using FDE setup during the installation of Ubuntu Gutsy).</p>
<blockquote><p>
We tested a dm-crypt volume created and mounted using the LUKS (Linux Unified Key Setup) branch of the cryptsetup utility and kernel version 2.6.20. The volume used the default AES-CBC format. We briefly powered down the system and captured a memory image with our PXE kernel. Our keyfind program identified the correct 128-bit AES key, which did not contain any bit errors. After recovering this key, an attacker could decrypt and mount the dm-crypt volume by modifying the cryptsetup program to allow the raw key to be input.
</p></blockquote>
<p>What to do?</p>
<blockquote><p>
Memory imaging attacks are difficult to defend against because cryptographic keys that are in active use need to be stored somewhere. Our suggested countermeasures focus on discarding or obscuring encryption keys before an adversary might gain physical access, preventing memory-dumping software from being executed on the machine, physically protecting DRAM chips, and possibly making the contents of memory decay more readily.
</p></blockquote>
<p>So, shutdown and remove power from that machine when not in use. And, make sure no one accesses that machine for <del>5</del><ins>15</ins> minutes (or more) after removing power. You may even want to create a bootable CD-ROM or USB token that specifically scrubs all system RAM, and boot from that after finishing up using encryption tools.</p>
<p>Good stuff.</p>
<p><ins><strong>Update</strong>: <a href="http://citp.princeton.edu/memory/">Here</a> is the site covering the paper&#8217;s release, which includes a <a href="http://citp.princeton.edu/memory/faq/">FAQ</a>.</ins></p>
<p><ins><strong>Update</strong>: Declan McCullagh has a <a href="http://www.news.com/2300-1029_3-6230933-1.html">slide show</a> demonstrating the attack conducted against his laptop, as well as, <a href="http://www.news.com/8301-13578_3-9876060-38.html">an article</a> on the topic.</ins></p>
<p><ins><strong>Update</strong>: Just a quick note, since this post has given me some grief in my circles - you know, if the value of the data you are protecting is such that an attacker would be willing to, say, employ electron microscopes and such in the process of analyzing your DRAM, then you really need to start looking into very specific hardware setups (e.g., hardware cryptographic modules, physical destruction mechanisms, etc.) to meet your needs, because that generic Dell machine running that generic flavor of Windows with whatever cryptographic software on top is very likely not going to cut it for your purposes.</ins></p>
<p><ins><strong>Update</strong>: Look at <a href="http://mcgrewsecurity.com/projects/msramdmp/">that</a>.</p>
<blockquote><p>
When the idea of memory retaining state for a short time was first brought to my attention a little over a year ago, I ran a few experiments similar to this one, just to prove it to myself. The desktop machines I tried would hold state for anywhere between 5 and 10 seconds without power, whereas my laptop, with no battery or wall power, would maintain state for an amazing 10 minutes.[...]</p>
<p>The Princeton researchers applied this method to the recovery of encryption keys, with great results. They also cooked up a way to image the contents of RAM with a very small footprint, only overwriting a small amount of memory in the process. Unfortunately, at the time of writing this, their tool, ram2usb, hasn&#8217;t been released. I decided that it wouldn&#8217;t be hard to go ahead and implement one myself, based off their paper and youtube video posted above, so that I (and others) can go ahead and start having fun.</p>
<p>So, as a small side project, I&#8217;ve written &#8220;msramdmp&#8221;, the McGrew Security RAM Dumper. Enjoy!
</p></blockquote>
<p></ins></p>
<p><ins><strong>Update</strong>: Yes, yes, if the wire is available, why boot cold when you could just <a href="http://md.hudora.de/presentations/firewire/2005-firewire-cansecwest.pdf">use</a> <a href="http://www.storm.net.nz/static/files/ab_firewire_rux2k6-final.pdf">fire</a>.</ins></p>
<p><ins><strong>Update</strong>: The software created by the original researchers has now been released http://citp.princeton.edu/memory/code/.</p>
<blockquote><p>
July 16, 2008 — This page contains source code for some of the software that we developed in the course of this research. These prototype applications are intended to illustrate the techniques described in the paper http://citp.princeton.edu/memory/; we are unable to provide technical support.
</p></blockquote>
<p></ins></p>
]]></content:encoded>
			<wfw:commentRss>http://d-kriptik.com/blog/2008/02/21/cold-boot/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FIPS yet again, hotplug, impact</title>
		<link>http://d-kriptik.com/blog/2008/02/19/fips-yet-again-hotplug-impact/</link>
		<comments>http://d-kriptik.com/blog/2008/02/19/fips-yet-again-hotplug-impact/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 02:28:37 +0000</pubDate>
		<dc:creator>D-Kriptik Support (Andrew Donofrio)</dc:creator>
		
		<category><![CDATA[Crypto]]></category>

		<category><![CDATA[Off-topic]]></category>

		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://d-kriptik.com/blog/2008/02/19/fips-yet-again-hotplug-impact/</guid>
		<description><![CDATA[I feel like I am beating a dead horse with the start of this post. I tried to go a little off course from there.

-

<a href="http://d-kriptik.com/blog/2007/12/22/140-trends-zero-etc/">Another</a> discussion of FIPS 140 has been <a href="http://mailman.mit.edu/pipermail/saag/2008q1/002116.html">kicked off</a> on SAAG. Besides <a href="http://mailman.mit.edu/pipermail/saag/2008q1/002116.html">the</a> kick off message (on including FIPS-approved algorithms in a possible IETF recommended set of crypto algorithms), <a href="http://mailman.mit.edu/pipermail/saag/2008q1/002118.html">this</a> post (on product customer demand for FIPS 140) and <a href="http://mailman.mit.edu/pipermail/saag/2008q1/002126.html">this</a> post (on the general pain of the process) are probably of most interest, but the entire thread may be worth a read if FIPS 140 matters to you. (Oh, and <a href="http://mailman.mit.edu/pipermail/saag/2008q1/002127.html">this</a> made me laugh.)

-

Since I mentioned <a href="http://www.truecrypt.org/">TrueCrypt</a> in a <a href="http://d-kriptik.com/blog/2008/02/07/gutsy-ossl-padlock-conversations-truecrypt-50/">previous</a> post, look at <a href="http://www.schneier.com/blog/archives/2008/02/hotplug_1.html">this</a>.

-

Now <a href="http://www.physorg.com/news117445620.html">this</a> phenomenon sounds a little familiar.

-

<a href="http://www.abc2news.com/news/local/story.aspx?content_id=4f8b7c0f-6d4a-47b7-9e9b-569803ea7db8">Speaking of impact</a>, small world.]]></description>
			<content:encoded><![CDATA[<p>I feel like I am beating a dead horse with the start of this post. I tried to go a little off course from there.</p>
<p>-</p>
<p><a href="http://d-kriptik.com/blog/2007/12/22/140-trends-zero-etc/">Another</a> discussion of FIPS 140 has been <a href="http://mailman.mit.edu/pipermail/saag/2008q1/002116.html">kicked off</a> on SAAG. Besides <a href="http://mailman.mit.edu/pipermail/saag/2008q1/002116.html">the</a> kick off message (on including FIPS-approved algorithms in a possible IETF recommended set of crypto algorithms), <a href="http://mailman.mit.edu/pipermail/saag/2008q1/002118.html">this</a> post (on product customer demand for FIPS 140) and <a href="http://mailman.mit.edu/pipermail/saag/2008q1/002126.html">this</a> post (on the general pain of the process) are probably of most interest, but the entire thread may be worth a read if FIPS 140 matters to you. (Oh, and <a href="http://mailman.mit.edu/pipermail/saag/2008q1/002127.html">this</a> made me laugh.)</p>
<p><a href="http://d-kriptik.com/blog/2007/02/01/fips-140-sorrow/">This</a> post of mine from a year ago seems relevant to some of what is being said.</p>
<blockquote>
<ol>
<li>A vendor has been put at a competitive disadvantage because they do not have FIPS 140 validation. Perhaps their competitors have it. Perhaps a bid requires it. Whatever the case may be, they don’t have it, so now they want to tear it down.
<p>Also found here are people that just dislike FIPS 140 or, perhaps, standards in general.
</p>
</li>
<li>A vendor has gone through the process, and it was quite painful. So, now they vent about all the changes they had to make, how silly particular requirements were, how incompetent the lab staff was, etc.</li>
<li>An expert tells stories of how the requirements are ambiguous and the labs all vary in how they interpret the requirements.
<p>Also found here (and often quite different from the previously described expert) are people that have run into FIPS a number of times over the years, which has caused them exposure to differing requirements without having seen the evolution of those changes.
</p>
</li>
</ol>
</blockquote>
<p>In <a href="http://d-kriptik.com/blog/2007/02/01/fips-140-sorrow/">that</a> lengthy post, I discuss some points often causing pain.</p>
<blockquote>
<ol>
<li>Vendor misunderstanding of the FIPS 140 requirements and terminology.<br />
[...]</li>
<li>Vendor misinterpretation of lab (or NIST/CSE) questions and issues.<br />
[...]</li>
<li>Labs can, and do, make requests and recommendations.<br />
[...]</li>
<li>New labs, new lab staff, new technologies, and new revisions of FIPS 140 (and related) standards can make for created requirements. (This is where you can find the most variation among labs.)<br />
[...]</li>
</ol>
</blockquote>
<p>Anyway, I think a couple of additional points might be relevant to some of what I read in the latest SAAG thread.</p>
<p>First, I don&#8217;t think the concept of failure in a FIPS validation effort is quite so rigid as is being implied in parts of the SAAG discussion. During a FIPS validation effort, the lab (during testing) or NIST/CSE (during review) may bring up issues that a vendor has to address. These issues are often areas in which the module may be failing to meet particular FIPS requirements. This does not mean the module &#8220;fails,&#8221; it just means that the issues raised must be addressed before the module &#8220;passes.&#8221; In general, issues often boil down to some of the following:</p>
<ol>
<li>Clarification - the issue raised is just seeking some short clarification about the product&#8217;s workings and/or how a requirement is met. A quick written or verbal response (e.g., answering a question) can often be enough.
</li>
<li>Documentation - the issue raised is about incorrect, confusing, or incomplete documentation. Modifying the documentation is normally the fix here. (Even though what follows in 3 is often what vendors dread most, 2 can also lead to much pain if the lab starts questioning technical aspects of the product and heads down all sorts of testing paths that would otherwise have been avoided (i.e., prepare documentation that gives the lab what it needs in an easy to use form).)
</li>
<li>Technical - the issue raised is actually a technical problem with the product in regards to meeting the requirements. Here is where the product itself may have to be modified, and this is what most vendors want to avoid once they are knee deep in the validation (i.e., get the product meeting the requirements before the lab testing gets underway).
</li>
</ol>
<p>In all three cases, the &#8220;failure&#8221; can be corrected and the product can continue on with its validation. Depending on the issues raised, labs will often continue working on the validation effort in other areas while the vendor is working on addressing the issues; however, there is, of course, a point where the lab will need certain issues addressed before being able to move forward - this is where the third case can be especially problematic.</p>
<p>Second, this brings us to the &#8220;restarting&#8221; portion of the discussion in that thread. In general, if the issues raised can be addressed in a timely manner and based on the version of the product at that moment going through validation, then there should be no &#8220;restart&#8221; issue. However, if the issues raised take a long time for the vendor to fix and/or require a switch in the version of the product such that the new version includes a large number of other changes in the product (e.g., a switch to a new version of the product with a whole suite of new features), this could cause a &#8220;restart.&#8221; I generally think of these restarts coming in these two forms.</p>
<ol>
<li>The lab can no longer move forward with the effort while waiting on the vendor to address issues, so the project is put on hold. Depending on time frame here, lab resources will be moved elsewhere and lab knowledge of the product will deteriorate. When the vendor is ready to start back up, the lab has to restaff the effort, rebuild its knowledge of the product and the validation effort, and generally kick things off again.</li>
<li>The changes were rolled into a new version of the product, and this new product is dramatically changed from the one that began the validation effort. The lab will have to figure out what has changed and determine how much of their work performed to this point can be reused, much like in a revalidation scoping but more awkward. If this is in combination with 1, this could get close to starting over.</li>
</ol>
<p>Needless to say, you want to avoid going down this road.</p>
<p>-</p>
<p>Since I mentioned <a href="http://www.truecrypt.org/">TrueCrypt</a> in a <a href="http://d-kriptik.com/blog/2008/02/07/gutsy-ossl-padlock-conversations-truecrypt-50/">previous</a> post, look at <a href="http://www.schneier.com/blog/archives/2008/02/hotplug_1.html">this</a>.</p>
<blockquote><p>
<a href="http://www.wiebetech.com/products/HotPlug.php">HotPlug</a> allows you to seize and move a computer without losing power.  (<a href="http://www.youtube.com/watch?v=erq4TO_a3z8">Video</a>  <a href="http://www.youtube.com/watch?v=-G8sEYCOv-o">demos</a>.)  See also: <a href="http://www.wiebetech.com/products/MouseJiggler.php">MouseJiggler</a>.
</p></blockquote>
<p><a href="http://www.wiebetech.com/products/HotPlug.php">Yep</a>, you guessed it.</p>
<blockquote><p>
How to circumvent Whole Disk Encryption<br />
The key: Do not allow the encryption to activate. Low level encryption such as Vista&#8217;s Whole Disk Encryption (WDE) can halt an investigation. Use HotPlug and Mouse Jiggler to prevent encryption technologies from activating. If you can carry away the computer while it&#8217;s still logged in, you maintain full access to the hard drive.
</p></blockquote>
<p>In short, the plaintext key is often stored (cached), or authorization to access the plaintext key is stored (cached), in volatile memory (e.g., RAM) when using things like full disk encryption, so that data read from/written to disk can undergo transparent (to the user) processing. When the computer is powered down, goes to sleep, etc., assuming the hardware/software properly handles things, the (easy) access to the plaintext key is lost (e.g., the cached key or authorization to use the key is wiped). This gear is meant to prevent the circumstances that cause that wiping from happening.</p>
<p>Think of TrueCrypt - if you are using system disk encryption on your home desktop, then you know that, once you have entered your password at boot, the stored encrypted key is decrypted and the plaintext key is then stored in memory by TrueCrypt to transparently encrypt/decrypt data as it is written to/read from disk (i.e., you only enter your password once per boot). Anyone taking control of your desktop at that point has full access to your encrypted drive. However, if you pulled the plug, then the plaintext key would be lost. Well, this gear allows an attacker to grab your desktop and remove it from your home without it losing power (or hibernating).</p>
<p>-</p>
<p>Now <a href="http://www.physorg.com/news117445620.html">this</a> phenomenon sounds a little familiar.</p>
<blockquote><p>
Over 90% of people responded physically, for example with an exaggerated stare or a wave. Almost half responded verbally – more men than women. Here, says Professor Shuster, the sex difference was striking. 95% of adult women were praising, encouraging or showed concern. There were very few comic or snide remarks. In contrast, only 25% of adult men responded as did the women, for example, by praise or encouragement; instead 75% attempted comedy, often snide or combative as an intended put-down.
</p></blockquote>
<p>I mentioned this impact with regards to attire in <a href="http://d-kriptik.com/blog/2007/08/13/hot-wiring-incorrect-cough-search/">this</a> post. </p>
<blockquote><p>
(Side note, I have an old, bright red Futura t-shirt that says “For love or money”. With many, it generates mostly “for love!” comments and generally leads to conversation about values and the like. With others, it often inspires awkward mockery, as is the case with almost any loud attire.)
</p></blockquote>
<p>The &#8220;others&#8221; here are generally straight men showing negative interest, while the &#8220;many&#8221; are usually straight women or gay men showing positive interest. Perhaps this makes sense, as I am likely viewed as a potential rival to the former and a potential suitor to the latter.</p>
<p>Whatever the case may be, I always enjoy hacking peoples&#8217; thoughts and behavior with something so simple as a t-shirt. As such, my custom t-shirts often play to this effect quite nicely.</p>
<p>-</p>
<p><a href="http://www.abc2news.com/news/local/story.aspx?content_id=4f8b7c0f-6d4a-47b7-9e9b-569803ea7db8">Speaking of impact</a>,</p>
<blockquote><p>
ABC2 has obtained new video of Baltimore police officer Salvatore Rivieri in action at the Inner Harbor. This time he confronts Billy Friebele, an artist from Washington D.C., who was videotaping at the Harbor last summer.</p>
<p>Friebele told ABC2 he was taping the reactions of passersby to a box he was moving with a remote controlled car. Officer Rivieri is seen on tape kicking the box off of the car and then kicking the car. The officer then orders Friebele to leave the area.
</p></blockquote>
<p>Small world. I knew Billy back in college.</p>
]]></content:encoded>
			<wfw:commentRss>http://d-kriptik.com/blog/2008/02/19/fips-yet-again-hotplug-impact/feed/</wfw:commentRss>
		</item>
		<item>
		<title>gutsy ossl padlock, conversations, truecrypt 5.0</title>
		<link>http://d-kriptik.com/blog/2008/02/07/gutsy-ossl-padlock-conversations-truecrypt-50/</link>
		<comments>http://d-kriptik.com/blog/2008/02/07/gutsy-ossl-padlock-conversations-truecrypt-50/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 20:34:07 +0000</pubDate>
		<dc:creator>D-Kriptik Support (Andrew Donofrio)</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Crypto]]></category>

		<category><![CDATA[Debian &amp; Ubuntu]]></category>

		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://d-kriptik.com/blog/2008/02/07/gutsy-ossl-padlock-conversations-truecrypt-50/</guid>
		<description><![CDATA[So, enabling Via padlock support on my Ubuntu Gutsy system with the default kernel was kind of, well, trivial. With that done, I wanted to use the Via hardware RNG as an entropy source to "/dev/random", so I installed "rng-tools". After that, I wanted to get the widest range of apps using OpenSSL to take advantage of the hardware crypto by default as easily as possible, for which I came back to <a href="http://www.logix.cz/michal/devel/padlock/">this</a> page a bunch of times. 

- 

A few quickly summarized conversations of possible interest to readers. 

- 

The <a href="http://www.truecrypt.org/docs/?s=version-history">latest</a> release of <a href="http://www.truecrypt.org/">TrueCrypt</a> 5.0 is <a href="http://www.truecrypt.org/downloads.php">available</a>, including the use of the XTS mode of operation and whole disk encryption for Windows.]]></description>
			<content:encoded><![CDATA[<p>So, enabling Via padlock support on my Ubuntu Gutsy system with the default kernel was kind of, well, trivial. I just configured the relevant kernel modules to be loaded at boot, which involved editing &#8220;/etc/modules.conf&#8221; and inserting &#8220;padlock_aes&#8221;, &#8220;padlock_sha&#8221;, and &#8220;via_rng&#8221; entries.</p>
<p>With that done, I wanted to use the Via hardware RNG as an entropy source to &#8220;/dev/random&#8221;, so I installed &#8220;rng-tools&#8221;.</p>
<p>After that, I wanted to get the widest range of apps using OpenSSL to take advantage of the hardware crypto by default as easily as possible, for which I came back to <a href="http://www.logix.cz/michal/devel/padlock/">this</a> page a bunch of times. <a href="http://www.logix.cz/michal/devel/padlock/contrib/openssl-0.9.8e-engine.diff">This</a>  patched started me off in one direction, and I ended up heading down the path of the &#8220;devcrypto&#8221; sort of hack already in the OpenSSL code base.</p>
<p>So, I ended up modifying &#8220;crypto/engine/eng_all.c&#8221; (and &#8220;crypto/engine/engine.h&#8221; for the prototype) to add a separate setup function (similar to what was there for &#8220;devcrypto&#8221;) to load padlock and set it as the default engine (BTW, the &#8220;set it as default&#8221; step should not be necessary - all it does is get padlock cached as the default engine for the supported algorithms now rather than later), and then I changed the &#8220;ssl/ssl_algs.c&#8221; &#8220;SSL_library_init&#8221; function and &#8220;crypto/evp/c_all.c&#8221; &#8220;OPENSSL_add_all_algorithms_noconf&#8221; function to call this padlock setup function, which should in theory cover the number of applications out there that call &#8220;OPENSSL_add_all_algorithms&#8221; and &#8220;OPENSSL_add_ssl_algorithms.&#8221; Also, I inserted a &#8220;ENGINE_cleanup&#8221; call into the &#8220;crypto/evp/names.c&#8221; &#8220;EVP_cleanup&#8221; function, although I am not sure this is necessary (or wise).</p>
<p>About the only thing annoying in the process was warnings of version information not being found in my OpenSSL shared libraries. I found <a href="http://rt.openssl.org/Ticket/Display.html?id=1222">this</a> useful in fixing the issue.</p>
<p>(Oh, and apologies to my Tor server users, as my server was up and down quite a bit while I played with these things.)</p>
<p>-</p>
<p>A few quickly summarized conversations of possible interest to readers.</p>
<p>I was in a bar talking with a couple of people that were in the USA armed forces and about to go back to deployment in the Middle East. One thing they noted was that the only attack that really scared them when they first deployed over there was IEDs. They said that the fright factor came from the fact that IEDs were something for which they were not trained at the time, IEDs were an unknown. With an outright fire fight, with people firing at them, they knew what to expect; with IEDS, everything could be going as best it can for them over there and then, out of nowhere, boom, they were seriously maimed or dead. Both figuratively and literally, IEDs hit them totally out of the blue. However, with time and experience, IEDs have become a known and expected fact of life over there, something that can be dealt with both strategically and emotionally.</p>
<p>The conversation reminded me of topics like <a href="http://www.accessmylibrary.com/comsite5/bin/comsite5.pl?page=library&#038;item_id=0286-19720891">this</a> article (the links I quickly turned up for that article require logins, free or otherwise - an excerpt is <a href="http://www.accessmylibrary.com/coms2/summary_0286-19720891_ITM">here</a>).</p>
<blockquote><p>
Another important dimension of appraisal concerns potential actions: &#8220;What can be done about the situation?&#8221; Here, controllability and its prerequisite, the stimuli&#8217;s predictability, are critical: predictable and controllable adverse stimuli generate less fear, anxiety, and pain than unpredictable and uncontrollable stimuli.
</p></blockquote>
<p>Also, Ekman&#8217;s Emotions Revealed came to mind, where there is discussion of fear being influenced by three components - intensity, timing, and coping. Coping seems to be the key being discussed here - e.g., by knowing about the threat, strategies can be developed to reduce the risk posed by the threat, and thus reduce the strength of your fear.</p>
<p>Ok, moving along&#8230;</p>
<p>I was speaking with a LEO from the NYPD while waiting for a train. We got onto the topic of PBA cards, where I learned that such PBA cards can be tied to particular officers, which was new to me. The officer informed me that the higher the rank of the officer to which the PBA card is tied, the better the chance you have of getting a reduced charge or just being completely left off the hook when stopped by an officer for some offense. However, someone with me pointed out that this whole situation was not fair, that just knowing someone should not let you off the hook. The officer replied that this was not unfair, you just have to know someone. To this, my acquaintance said that was why it was unfair, because she didn&#8217;t known anyone, as was evidenced by her lack of names to drop when getting her second speeding ticket in a roughly two month period recently. The officer&#8217;s advice, get to know someone high up in the police force or, better yet, just stop speeding. (Of course, my acquaintance left out that she broke down and cried while getting that latest speeding ticket, and the officer subsequently lowered the speed indicated on the ticket by a number of miles.)</p>
<p>The conversation reminded of another conversation I had a while back with a friend of mine that was an academic. He was complaining that publishing papers in his field was as much about getting the right people to sign up as coauthors (regardless of any actual contribution to the research conducted in the paper) as it was about the research being published. He said the politics degraded the science, which seems similar to my acquaintance above pointing out the politics degrading (the fair application of) the law. </p>
<p>Regardless, the reality is clear - who you know matters. And, as often is the case, these discussions reminded me of Cialdini&#8217;s influence, such as the power of reciprocation, social proof,  and authority.</p>
<p>-</p>
<p>The <a href="http://www.truecrypt.org/docs/?s=version-history">latest</a> release of <a href="http://www.truecrypt.org/">TrueCrypt</a> 5.0 is <a href="http://www.truecrypt.org/downloads.php">available</a>, including the use of the XTS mode of operation and whole disk encryption for Windows.</p>
<blockquote><p>
Ability to encrypt a system partition/drive (i.e. a partition/drive where Windows is installed) with pre-boot authentication (anyone who wants to gain access and use the system, read and write files, etc., needs to enter the correct password each time before the system starts). For more information, see the chapter System Encryption in the documentation.   (Windows Vista/XP/2003)
</p></blockquote>
<blockquote><p>
XTS mode of operation, which was designed by Phillip Rogaway in 2003 and which was recently approved as the IEEE 1619 standard for cryptographic protection of data on block-oriented storage devices. XTS is faster and more secure than LRW mode (for more information on XTS mode, see the section Modes of Operation in the documentation).
</p></blockquote>
<p>Speed improvements on Windows, an OSX port, and SHA-512 support are also included in this release. Good stuff.</p>
<p>Most everywhere I tested out this release, it worked well, with one exception - an &#8220;Insufficient memory for encryption&#8221; error I ran into on one of my somewhat older systems. Looking around at a few forums (e.g., <a href="http://www.wilderssecurity.com/showthread.php?p=1177087">here</a>) and at the TC code (e.g., &#8220;BootSector.asm&#8221;, &#8220;BootMain.cpp&#8221;, &#8220;BootDefs.h&#8221;), I don&#8217;t see a workaround for the system without modifying the TC code directly to correct/masked the issue. So, this will <a href="http://www.truecrypt.org/docs/?s=issues-and-limitations">wait</a> for a bugfix release.</p>
<blockquote><p>
On some systems, when performing the system encryption pretest, the TrueCrypt Boot Loader reports the following error: Insufficient memory for encryption. This issue will be addressed in the next version of TrueCrypt.
</p></blockquote>
<p><ins><strong>Update</strong>: To help with debugging the &#8220;Insufficient memory for encryption&#8221; bug, the TrueCrypt team is <a href="http://www.truecrypt.org/docs/?s=issues-and-limitations">requesting</a> your help.</p>
<blockquote><p>[...]If you encountered this error, you can help us solve this issue by booting a special test ISO image, which displays the amount of free base memory on your system. To do so, please download <a href="http://www.truecrypt.org/special-downloads/BootMemoryTest.zip">this file</a>, unpack it, and burn the extracted ISO image to a CD/DVD. Then restart your computer and boot from the CD/DVD. Write down the amount of free base memory displayed by the program and  <a href="http://www.truecrypt.org/contact.php">email it to us</a> or include it in a <a href="https://www.truecrypt.org/bugs/">bug report</a> (in either case, make sure the subject is: &#8216;<i>Base Memory Test Report</i>&#8216;). Thank you.</p></blockquote>
<p></ins></p>
<p><ins><strong>Update</strong>: <a href="http://www.truecrypt.org/">TrueCrypt</a> 5.0a was released today (2007-02-12). Among the <a href="http://www.truecrypt.org/docs/?s=version-history">changes</a>&#8230;</p>
<blockquote><p>
The memory requirements for the TrueCrypt Boot Loader have been reduced by 18 KB (eighteen kilobytes). As a result of this improvement, the following problem will no longer occur on most of the affected computers: The memory requirements of the TrueCrypt Boot Loader 5.0 prevented users of some computers from encrypting system partitions/drives (when performing the system encryption pretest, the TrueCrypt Boot Loader displayed the following error message: Insufficient memory for encryption).
</p></blockquote>
<p></ins></p>
<p><ins>I should note that one older system of mine mentioned above still fails to meet the memory requirements. Ah well.</ins></p>
<p><ins><strong>Update</strong>: <a href="http://www.truecrypt.org/">TrueCrypt</a> 5.1 has been released. </p>
<blockquote><p>
<a href="http://www.truecrypt.org/docs/?s=version-history"><b>What is new in TrueCrypt 5.1</b></a>&nbsp; &nbsp;(released March 10, 2008)
</p></blockquote>
<p>Included in the <a href="http://www.truecrypt.org/docs/?s=version-history">changes</a>,</p>
<blockquote><p>
The minimum memory requirements for the TrueCrypt Boot Loader have been reduced from 42 KB to 27 KB (twenty-seven kilobytes). This allows users to encrypt system partitions/drives on computers where the BIOS reserves a large amount of memory.  (Windows Vista/XP/2008/2003)
</p></blockquote>
<p>With that reduction, I can now use FDE on that problem machine noted above.</p>
<p>Also of note,</p>
<blockquote><p>
Increased speed of AES encryption/decryption (depending on the hardware platform, by 30-90%).    (Windows)
</p></blockquote>
<p>Nice.</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://d-kriptik.com/blog/2008/02/07/gutsy-ossl-padlock-conversations-truecrypt-50/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Quickies: fips, banks, misc.</title>
		<link>http://d-kriptik.com/blog/2008/01/31/quickies-fips-banks-misc/</link>
		<comments>http://d-kriptik.com/blog/2008/01/31/quickies-fips-banks-misc/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 01:55:12 +0000</pubDate>
		<dc:creator>D-Kriptik Support (Andrew Donofrio)</dc:creator>
		
		<category><![CDATA[Crypto]]></category>

		<category><![CDATA[Off-topic]]></category>

		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://d-kriptik.com/blog/2008/01/31/quickies-fips-banks-misc/</guid>
		<description><![CDATA[I am caught up in a few things, but I thought some quickies might be nice.

***

Lets begin with sort of FIPS 140 news... The FIPS 140-2 <a href="http://csrc.nist.gov/groups/STM/cmvp/documents/fips140-2/FIPS1402IG.pdf">Implementation Guidance</a> has been <a href="http://csrc.nist.gov/groups/STM/cmvp/announcements.html">updated</a>. An update to the SHA3 candidate implementation C <a href="http://www.csrc.nist.gov/groups/ST/hash/sha-3/Submission_Reqs/crypto_API.html">API</a> has been <a href="http://www.csrc.nist.gov/groups/ST/hash/documents/SHA3-C-API.pdf">published</a> by NIST. Oh, and NIST is running <a href="http://csrc.nist.gov/groups/ST/IBE/index.html">a workshop</a> on IBE. 

Besides the many tumbles taking place, banks have had lots of security news of late... <a href="http://www.thelocal.se/9822/20080130/">Foiled</a>, but popping through physical and people security is a favorite of mine. It <a href="http://www.washingtonpost.com/wp-dyn/content/article/2008/01/11/AR2008011103785.html">looked like</a> looking the part struck again at a bank. Or not. Now, it <a href="http://www.washingtonpost.com/wp-dyn/content/article/2008/01/14/AR2008011402855.html">sounds like</a> an insider job. Speaking of insiders at a financial (and ignoring write-down scapegoat theories for the moment), <a href="http://online.wsj.com/article_print/SB120115814649013033.html">this</a> sounds stunning. Somewhere else, <a href="http://news.bbc.co.uk/1/hi/business/7181741.stm">a little online recon</a> strikes at a bank.

Finally, some miscellaneous items... 
I mentioned <a href="http://d-kriptik.com/blog/2007/12/11/quickies-smell-bot-book-wikipedia-moon/">smell</a> before. Well, <a href="http://www.psychologytoday.com/articles/index.php?term=pto-20071228-000001&#038;print=1">here</a> is some more. Remember <a href="http://d-kriptik.com/blog/2006/01/25/funded-audits-of-open-source/">this</a>? If these [<a href="http://www.informationweek.com/management/showArticle.jhtml?articleID=205602299">1</a>,<a href="http://www.techworld.com/security/news/index.cfm?newsID=11086">2</a>] articles are about the same effort, apparently a bit of low-hanging fruit was removed as a result, as noted in <a href="http://www.coverity.com/html/press_story54_01_08_08.html">this</a> press release. I found <a href="http://well.blogs.nytimes.com/2007/12/26/medical-myths-even-doctors-believe/">this</a> article quite fun. Lastly, I poked my head in on <a href="http://www.virgilgallery.com/v2/?ikId=12176">this</a>.]]></description>
			<content:encoded><![CDATA[<p>I am caught up in a few things, but I thought some quickies might be nice.</p>
<p>***</p>
<p>Lets begin with sort of FIPS 140 news&#8230;</p>
<p>-</p>
<p>The FIPS 140-2 <a href="http://csrc.nist.gov/groups/STM/cmvp/documents/fips140-2/FIPS1402IG.pdf">Implementation Guidance</a> has been <a href="http://csrc.nist.gov/groups/STM/cmvp/announcements.html">updated</a>.</p>
<blockquote><p>
[01-24-2008] Implementation Guidance for FIPS PUB 140-2 and the Cryptographic Module Validation Program [ <a href="http://csrc.nist.gov/groups/STM/cmvp/documents/fips140-2/FIPS1402IG.pdf">PDF</a> ] has been updated</p>
<p>New Implementation Guidance:</p>
<p>    * 7.7 Key Establishment and Key Entry and Output</p>
<p>Updated Implementation Guidance:</p>
<p>    * G.2 Completion of a test report: Information that must be provided to NIST and CSE<br />
          o Added reference to CMVP comments document.<br />
    * G.8 Revalidation Requirements<br />
          o Added reference to the CMVP FAQ in change scenario 1.
</p></blockquote>
<blockquote><p>
[01-16-2008] Implementation Guidance for FIPS PUB 140-2 and the Cryptographic Module Validation Program [ <a href="http://csrc.nist.gov/groups/STM/cmvp/documents/fips140-2/FIPS1402IG.pdf">PDF</a> ] has been updated</p>
<p>Updated Implementation Guidance:</p>
<p>    * G.13 Instructions for completing a FIPS 140-2 Validation Certificate<br />
    * 1.8 Listing of DES Implementations<br />
    * 7.1 Acceptable Key Establishment Protocols<br />
    * 9.4 Cryptographic Algorithm Tests for SHS Algorithms and Higher Cryptographic Algorithms Using SHS Algorithms
</p></blockquote>
<p>There are two key updates to look at here, which finally explain in public, written form what has been lore for quite some time.</p>
<p>The new 7.1 IG provides a detailed explanation the key distribution versus key input/output for FIPS 140-2. I can&#8217;t say the explanation is the friendliest, but it is good to see the information out there now.</p>
<p>The update to 7.7 basically finishes the translation of the key establishment requirements into something concrete. And, <a href="http://csrc.nist.gov/publications/fips/fips140-2/fips1402annexd.pdf">Appendix D</a> now points here.</p>
<p>Also, I always assumed what the change to 9.4 specifies, but I guess this wasn&#8217;t explicit until now.</p>
<p>-</p>
<p>An update to the SHA3 candidate implementation C <a href="http://www.csrc.nist.gov/groups/ST/hash/sha-3/Submission_Reqs/crypto_API.html">API</a> has been <a href="http://www.csrc.nist.gov/groups/ST/hash/documents/SHA3-C-API.pdf">published</a> by NIST.</p>
<blockquote><p>
Revision 3: January 24, 2008
</p></blockquote>
<blockquote><p>
This document specifies the ANSI C interface profile for implementations of SHA-3 candidate algorithms. C implementations shall support the syntax and parameterization of the interface profile messages as described in this API. The API consists of a few data definitions and one function to compute hashes. The function specified in this API has return values listed that are largely used to supply error codes in the event of incomplete execution of the routine. The error values listed are not meant to be an exhaustive list. If additional error codes are useful for your implementation, please provide them.
</p></blockquote>
<p><ins><br />
<strong>Update</strong>: I figured I would insert this here, rather than in a separate post.</p>
<p>Submissions for the NIST SHA-3 <a href="http://www.csrc.nist.gov/groups/ST/hash/sha-3/index.html">contest</a> are required to include test vectors that can be used to help to verify the correctness of implementations of the candidate algorithms. A specification has been <a href="http://www.csrc.nist.gov/groups/ST/hash/documents/SHA3-KATMCT1.pdf">published</a> with the requirements.</p>
<blockquote><p>
Each submission package is required to include Known Answer Test (KAT) and Monte Carlo Test (MCT) values, which can be used to determine the correctness of an implementation of the candidate algorithm. Values shall be included (at a minimum) for each of the four minimum required hash sizes: 224, 256, 384, and 512-bits.</p>
<p>These KAT and MCT tests are based on tests specified in The Secure Hash Algorithm Validation System (SHAVS) [<a href="http://csrc.nist.gov/groups/STM/cavp/documents/shs/SHAVS.pdf">SHAVS</a>], which describes tests for the SHA-2 family of hash functions. Each of the tests for which values are required in the submission packages is described below. In addition, example files are included which specify the exact syntax and format that submitters are required to use when submitting their KAT and MCT values.
</p></blockquote>
<p>Anyone that has undergone algorithm testing for SHA-1 or any of the SHA-2&#8217;s will be familar with these types. However, there is an additional test added into the mix, besides the usual SMTs, LMTs, and MCTs.</p>
<blockquote><p>
To test an algorithm’s ability to process messages longer that 232-bits in length, the candidate must supply a message digest for one extremely long sequence. The sequence is a 64-byte character string repeated 16,777,216 times. The message will be supplied in a file called ExtremelyLongMsgKAT_{Length}.txt for each of the required hash length.[...]
</p></blockquote>
<p>So, it looks like we will be running XLMTs in the future too.</p>
<p>(I guess while I am writing this, I should also note that the <a href="http://www.csrc.nist.gov/groups/ST/hash/documents/SHA3-C-API.pdf">C API</a> for candidate algorithm implementations has been updated since I wrote the initial post.)<br />
</ins></p>
<p>-</p>
<p>Oh, and NIST is running <a href="http://csrc.nist.gov/groups/ST/IBE/index.html">a workshop</a> on IBE. </p>
<blockquote><p>
June 3-4, 2008</p>
<p>This workshop brings together academia, government and industry to explore innovative and practical applications of pairing-based cryptography. Pairings have been used to create identity-based encryption schemes, but are also a useful tool for solving other cryptographic problems. We hope to encourage the development of new security applications and communication between researchers, developers and users. In addition to presentations, the workshop will facilitate panel discussions among invited experts and workshop participants.
</p></blockquote>
<p>***</p>
<p>Besides the many tumbles taking place, banks have had lots of security news of late&#8230;</p>
<p>-</p>
<p><a href="http://www.thelocal.se/9822/20080130/">Foiled</a>, but popping through physical and people security is a favorite of mine.</p>
<blockquote><p>
The device, which police described as &#8220;sophisticated and requiring great (technical) skills,&#8221; had apparently been installed during a previous break-in, during which nothing had been stolen from the bank.
</p></blockquote>
<p>-</p>
<p>It <a href="http://www.washingtonpost.com/wp-dyn/content/article/2008/01/11/AR2008011103785.html">looked like</a> looking the part struck again at a bank.</p>
<blockquote><p>
On Wednesday, a man dressed as an armored truck employee with the company AT Systems walked into a BB&#038;T bank in Wheaton about 11 a.m., was handed more than $500,000 in cash and walked out, a source familiar with the case said.</p>
<p>It wasn&#8217;t until the actual AT Systems employees arrived at the bank, at 11501 Georgia Ave., the next day that bank officials realized they&#8217;d been had. &#8220;When the real security guards showed up is when it became known,&#8221; said Richard Wolf, a spokesman with the FBI&#8217;s Baltimore division.
</p></blockquote>
<p>Or not. Now, it <a href="http://www.washingtonpost.com/wp-dyn/content/article/2008/01/14/AR2008011402855.html">sounds like</a> an insider job.</p>
<blockquote><p>
Assistant State&#8217;s Attorney Marybeth Ayres named Elizabeth K. Tarke, a teller at the BB&#038;T branch, as a possible ringleader. Detectives have linked Tarke with Thursday&#8217;s theft at a Wachovia branch in the District, Ayres said.
</p></blockquote>
<blockquote><p>
Detectives talked to other employees and grew dubious about Tarke&#8217;s story, Pak wrote. Other employees said they saw no &#8220;AT&#8221; patch on the  man&#8217;s clothing, just an all-black outfit, with a black hat, gun belt and  semiautomatic handgun. They also didn&#8217;t see a badge, Pak wrote. Bank  video corroborated their accounts, according to the charging documents.
</p></blockquote>
<p>-</p>
<p>Speaking of insiders at a financial (and ignoring write-down scapegoat theories for the moment), <a href="http://online.wsj.com/article_print/SB120115814649013033.html">this</a> sounds stunning.</p>
<blockquote><p>
The bank identified the trader as Jerome Kerviel. Mr. Kerviel, 31, joined Societe Generale in August 2000 and was working as a trader on the futures desk at the bank&#8217;s headquarter near Paris. He was in charge of futures hedging on European equity market indices, known as &#8220;plain vanilla&#8221; futures. The bank said he was able to dupe the bank&#8217;s own security system because he had inside knowledge of the control procedures gained from previous jobs with the bank.</p>
<p>Though Societe Generale says it first learned of what it termed &#8220;massive fraudulent directional positions&#8221; on Jan. 19, it waited until it could close out those trades before going public with the problem.  Winding down the trades, the bank said, resulted in a €4.9 billion write-down, making it potentially the largest loss ever from an alleged rogue trader.
</p></blockquote>
<p>-</p>
<p>Somewhere else, <a href="http://news.bbc.co.uk/1/hi/business/7181741.stm">a little online recon</a> strikes at a bank.</p>
<blockquote><p>
A fraudster walked into a branch of Barclays Bank posing as its chairman Marcus Agius and managed to walk out with £10,000.</p>
<p>The conman is believed to have found Mr Agius&#8217; details online and persuaded call centre staff into issuing a Barclaycard in his name.
</p></blockquote>
<p>***</p>
<p>Finally, some miscellaneous items&#8230;</p>
<p>-</p>
<p>I mentioned <a href="http://d-kriptik.com/blog/2007/12/11/quickies-smell-bot-book-wikipedia-moon/">smell</a> before. Well, <a href="http://www.psychologytoday.com/articles/index.php?term=pto-20071228-000001&#038;print=1">here</a> is some more.</p>
<blockquote><p>
After the men were allowed to change, 49 women sniffed the shirts and specified which odors they found most attractive. Far more often than chance would predict, the women preferred the smell of T-shirts worn by men who were immunologically dissimilar to them. The difference lay in the sequence of more than 100 immune system genes known as the MHC, or major histocompatibility complex. These genes code for proteins that help the immune system recognize pathogens. The smell of their favorite shirts also reminded the women of their past and current boyfriends, suggesting that MHC does indeed influence women&#8217;s dating decisions in real life.
</p></blockquote>
<p>And,</p>
<blockquote><p>
After the men were allowed to change, 49 women sniffed the shirts and specified which odors they found most attractive. Far more often than chance would predict, the women preferred the smell of T-shirts worn by men who were immunologically dissimilar to them. The difference lay in the sequence of more than 100 immune system genes known as the MHC, or major histocompatibility complex. These genes code for proteins that help the immune system recognize pathogens. The smell of their favorite shirts also reminded the women of their past and current boyfriends, suggesting that MHC does indeed influence women&#8217;s dating decisions in real life.
</p></blockquote>
<p>Fear not would be social engineers, we already hack this system.</p>
<blockquote><p>
Since the 20th-century hygiene revolution and the rise of the personal-care industry, however, companies have pitched deodorants, perfumes, and colognes to consumers as the epitome of sex appeal. But instead of furthering our quest to find the perfect mate, such products may actually derail it, say researchers, by masking our true scent and making it difficult for prospects to assess compatibility. &#8220;Humans abuse body smell signals by hiding them, masking them, putting on deodorant,&#8221; says Devendra Singh, a psychologist at the University of Texas. &#8220;The noise-to-signal ratio was much better in primitive society.&#8221;
</p></blockquote>
<p>Oh, and <a href="http://d-kriptik.com/blog/2006/03/30/id-check-openssl-fips-ie-fix-social-device-vi-chart-and-neuro-chips/">don&#8217;t</a> assume that smelling &#8220;good&#8221; is always the way to go. For example, say you want some space on a crowded subway.</p>
<p>-</p>
<p>Remember <a href="http://d-kriptik.com/blog/2006/01/25/funded-audits-of-open-source/">this</a>?</p>
<blockquote><p>
The <a href="http://www.dhs.gov/dhspublic/">DHS</a> is funding security audits of many commonly used pieces of open source software, as noticed by Schneier <a href="http://www.schneier.com/blog/archives/2006/01/dhs_funding_ope.html">here</a> and described in <a href="http://www.eweek.com/">eWeek</a> <a href="http://www.eweek.com/article2/0,1895,1909946,00.asp">here</a>, from which the following excerpt was taken.
</p></blockquote>
<p>If these [<a href="http://www.informationweek.com/management/showArticle.jhtml?articleID=205602299">1</a>,<a href="http://www.techworld.com/security/news/index.cfm?newsID=11086">2</a>] articles are about the same effort, apparently a bit of low-hanging fruit was removed as a result, as noted in <a href="http://www.coverity.com/html/press_story54_01_08_08.html">this</a> press release.</p>
<blockquote><p>
All the software scrutinised was found to have significant numbers of security flaws, Coverity said on Wednesday. Since 2006 the project has helped fix 7,826 open source flaws in 250 projects, out of 50 million lines of code scanned, the company said.
</p></blockquote>
<blockquote><p>
For instance, 236 flaws were uncovered in 450,000 lines of Samba code, of which 228 have been corrected.
</p></blockquote>
<p>So, now some open source projects are <a href="http://www.coverity.com/html/press_story54_01_08_08.html">moving on</a> to the next version <a href="http://scan.coverity.com/">Coverity</a>&#8217;s static analysis tool.</p>
<blockquote><p>
Projects at rung 2 of the Scan ladder have access to a significant upgrade of Coverity Prevent. The first projects to use these new capabilities report a significant increase in the number of identified defects, with some finding as many as 100 new hard-to-find defects than identified in rung 1 of the Scan ladder.
</p></blockquote>
<p>Anyway, I have no idea of what significance the bugs detected by the scans were, but these extra eyes seem like a good thing in general, as does ~7800 less bugs in this open source software.</p>
<p>-</p>
<p>I found <a href="http://well.blogs.nytimes.com/2007/12/26/medical-myths-even-doctors-believe/">this</a> article quite fun.</p>
<blockquote><p>
The study authors, Dr. Rachel C. Vreeman and Dr. Aaron E. Carroll, said that while doctors realize good medicine requires them to constantly learn new things, they often forget to reexamine their existing medical beliefs. “These medical myths are a lighthearted reminder that we can be wrong and need to question what other falsehoods we unwittingly propagate as we practice medicine,&#8217;’ wrote Dr. Vreeman and Dr. Carroll.
</p></blockquote>
<p>And <a href="http://www.bmj.com/cgi/content/full/335/7633/1288">the</a> material from which the article was derived, from which I can quote a concise list of the &#8220;medical myths&#8221; explored.</p>
<blockquote>
<ul>
<li>People should drink at least eight glasses of water a day</li>
<li>We use only 10% of our brains</li>
<li>Hair and fingernails continue to grow after death</li>
<li>Shaving hair causes it to grow back faster, darker, or coarser</li>
<li>Reading in dim light ruins your eyesight</li>
<li>Eating turkey makes people especially drowsy</li>
<li>Mobile phones create considerable electromagnetic interference in hospitals.</li>
</ul>
</blockquote>
<p>&#8220;Food coma.&#8221;</p>
<p>-</p>
<p>Lastly, I poked my head in on <a href="http://www.virgilgallery.com/v2/?ikId=12176">this</a>.</p>
<blockquote><p>
Replicant</p>
<p>Dates: January 10–February 9, 2008<br />
Opening: February 17, 2008<br />
Location: 526 West 26th Street – 4th Floor – Room 416 – New York, NY<br />
Gallery Hours: Tuesday to Saturday 11 am – 6 pm and by appointment</p>
<p>Virgil de Voldère is proud to present Replicant, a group exhibition of four emerging artists. Rather than brood over a technocratic dystopia, herald clean utopian spaces, or take a reactionary stance on biological and environmental issues such as climate change and bioengineering, this exhibition explores potential futures in which imagination, adaptation, and creativity present a positive view of cultural and scientific progress. The artists—Ian Burns, Shane Hope, Gilles Rotzetter, and Scott Wolniak—are wildly divergent in their mediums and methods: the work is both outsourced and handmade, meticulous and low-tech, highly conceptual and grounded in materials.
</p></blockquote>
<p>If you go, I recommend bringing printout of the linked to page (or related) and plan on spending 10 minutes or so, as it is a small room/exhibition.</p>
]]></content:encoded>
			<wfw:commentRss>http://d-kriptik.com/blog/2008/01/31/quickies-fips-banks-misc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>140 trends, zero, etc</title>
		<link>http://d-kriptik.com/blog/2007/12/22/140-trends-zero-etc/</link>
		<comments>http://d-kriptik.com/blog/2007/12/22/140-trends-zero-etc/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 19:11:45 +0000</pubDate>
		<dc:creator>D-Kriptik Support (Andrew Donofrio)</dc:creator>
		
		<category><![CDATA[Crypto]]></category>

		<category><![CDATA[Off-topic]]></category>

		<guid isPermaLink="false">http://d-kriptik.com/blog/2007/12/22/140-trends-zero-etc/</guid>
		<description><![CDATA[On this home stretch of the holiday season here in the USA, I wish everyone a happy holidays!

-

<a href="http://mailman.mit.edu/pipermail/saag/2007q4/002082.html">A post</a> to the SAAG mailing list of interest to the FIPS 140 readers. Also of possible interest to FIPS 140 readers, a couple [<a href="http://www.mail-archive.com/cryptography%40metzdowd.com/msg08428.html">1</a>, <a href="http://www.mail-archive.com/cryptography%40metzdowd.com/msg08434.html">2</a>] of useful posts on Metzger's cryptography mailing list on the old topic of how to prevent the compiler from potentially optimizing away your "zeroizing" memset call in C. The sort answer, take advantage of volatile. Finally, random software that has been popping up on some mailing lists I follow.]]></description>
			<content:encoded><![CDATA[<p>Holiday season is NYC can be a painful time of year, but not for the reasons of which most people think. You see, during the holiday season, any watering holes to which you regularly go will likely throw many a free drink at you. Which leads to a problem - you want to go to all these places and see everyone for the holidays, but you don&#8217;t want to end up being carried home. So, now you either turn down those drink gifts from those around you or you end up in a tortuous state the next morning, both of which can hurt.</p>
<p>Which is to say, on this home stretch of the holiday season here in the USA, I wish everyone a happy holidays!</p>
<p>&#8211;</p>
<p><a href="http://mailman.mit.edu/pipermail/saag/2007q4/002082.html">A post</a> to the SAAG mailing list of interest to the FIPS 140 readers. </p>
<blockquote><p>
This decade many global financial institutions (e.g. banks, insurance firms, credit unions, and so forth) have said that their commercial (re-)insurers are pressuring them to deploy only FIPS-140 compliant algorithms &#038; modes.</p>
<p>In a growing number of cases, there is even pressure from insurers onto major commercial firms, particularly financial firms, to use only equipment (including ordinary routers and switches, not just &#8220;security appliances&#8221;) that actually has obtained a FIPS-140 approval for the cryptographic module inside.</p>
<p>Further, a number of governments other than the US government have declared that implementations using cryptographic modules that have been approved under FIPS-140 are also acceptable for deployment within their country or government or both. The number of countries in this group appears to be growing, and seems visibly larger now than 8 years ago.
</p></blockquote>
<p>These are trends that people in the FIPS 140 arena have been talking about for a while, and I know I have seen and been involved with them by virtue of having had a strong window into &#8220;the vendor going for FIPS 140 validation&#8221; perspective for quite some time now. It is interesting to read someone else&#8217;s encounters with these things in a public forum.</p>
<p>So, besides the normal USA government requirements, support of at least a FIPS-approved algorithm suite has become a baseline requirement found almost everywhere now when cryptography is used, and every so often you even see pushes for FIPS 140 validation outside of the USA government. Given that, it is commonplace these days for standards, products, and such utilizing cryptography to include support for a FIPS-approved algorithm suite. Doing so not only brings into use a very commonly deployed, rigorously studied, and well-known set of algorithms, but it also facilitates products implementing those standards, products, and such in being able to go through the FIPS 140 validation process at some point. This makes even more sense since many of the people working on standards, products, and such utilizing cryptography are employed by companies that have to play in the FIPS 140 arena, and so there is often thought given to the FIPS 140 &#8220;validatibility&#8221; of modules implementing these standards, derived from these products, and such.</p>
<p>With the widespread notoriety of many of the algorithms that get rolled into NIST standards causing tons of eyes to look over these standards very <a href="http://d-kriptik.com/blog/2007/09/28/quickies-social-rngs-remail-moon/">closely</a>, and with things like AES and now <a href="http://d-kriptik.com/blog/2007/11/05/road-to-next-sha-continues-contest-announcement/">the next SHA</a> being derived from open international competitions not to mention modes of operation and such being submitted by the outside world, none of this should come as a surprise. </p>
<p>-</p>
<p>Also of possible interest to FIPS 140 readers, a couple [<a href="http://www.mail-archive.com/cryptography%40metzdowd.com/msg08428.html">1</a>, <a href="http://www.mail-archive.com/cryptography%40metzdowd.com/msg08434.html">2</a>] of useful posts on Metzger&#8217;s cryptography mailing list on the old topic of how to prevent the compiler from potentially optimizing away your &#8220;zeroizing&#8221; memset call in C. The sort answer, take advantage of volatile.</p>
<p>An example of how <a href="http://www.gnupg.org/">GnuPG</a> does this from [<a href="http://www.mail-archive.com/cryptography%40metzdowd.com/msg08428.html">1</a>],</p>
<blockquote>
<pre>
  /* To avoid that a compiler optimizes certain memset calls away, these
     macros may be used instead. */
  #define wipememory2(_ptr,_set,_len) do { \
                volatile char *_vptr=(volatile char *)(_ptr); \
                size_t _vlen=(_len); \
                while(_vlen) { *_vptr=(_set); _vptr++; _vlen--; } \
                    } while(0)
  #define wipememory(_ptr,_len) wipememory2(_ptr,0,_len)
</pre>
</blockquote>
<p>And, [<a href="http://www.mail-archive.com/cryptography%40metzdowd.com/msg08434.html">2</a>] points to <a href="http://msdn2.microsoft.com/en-us/library/ms972826.aspx">this</a> 2002 MSDN article on the topic.</p>
<p>-</p>
<p>Finally, random software that has been popping up on some mailing lists I follow.</p>
<p>I remember using Maple quite a bit in college. </p>
<p><a href="http://www.sagemath.org/">SAGE</a>.</p>
<blockquote><p>
Use SAGE for studying a huge range of mathematics, including algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, and exact linear algebra.
</p></blockquote>
<p>And, I did lots of Lisp there too. </p>
<p><a href="http://clojure.sourceforge.net/">Clojure</a>.</p>
<blockquote><p>
Clojure is a dynamic programming language that targets the Java Virtual Machine. It is designed to be a general-purpose language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Clojure is a compiled language - it compiles directly to JVM bytecode, yet remains completely dynamic. Every feature supported by Clojure is supported at runtime. Clojure provides easy access to the Java frameworks, with optional type hints and type inference, to ensure that calls to Java can avoid reflection.</p>
<p>Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy and a powerful macro system. Clojure is predominantly a functional programming language, and features a rich set of immutable, persistent data structures. When mutable state is needed, Clojure offers a software transactional memory system and reactive Agent system that ensure clean, correct, multithreaded designs.
</p></blockquote>
<p><a href="http://www.iolanguage.com/about/">Io</a>.</p>
<blockquote><p>
Io is a small, prototype-based programming language. The ideas in Io are mostly inspired by Smalltalk (all values are objects), Self (prototype-based), NewtonScript (differential inheritance), Act1 (actors and futures for concurrency), LISP (code is a runtime inspectable/modifiable tree) and Lua (small, embeddable).
</p></blockquote>
<p>Wow, it&#8217;s been 10 years.</p>
<p><a href="http://insecure.org/stf/Nmap-4.50-Release.html">Nmap v4.50</a>.</p>
<blockquote><p>
<b>December 13, 2007 &#8212; Insecure.Org is pleased to announce the immediate, free availability of the Nmap Security Scanner version 4.50 from <a href="http://insecure.org/nmap/">http://insecure.org/nmap/</a>.  Nmap was first released in 1997, so this release celebrates our 10th anniversary.</b>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://d-kriptik.com/blog/2007/12/22/140-trends-zero-etc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Pacha crowd, election beauty, search goodness</title>
		<link>http://d-kriptik.com/blog/2007/12/15/pacha-crowd-election-beauty-search-goodness/</link>
		<comments>http://d-kriptik.com/blog/2007/12/15/pacha-crowd-election-beauty-search-goodness/#comments</comments>
		<pubDate>Sat, 15 Dec 2007 15:49:11 +0000</pubDate>
		<dc:creator>D-Kriptik Support (Andrew Donofrio)</dc:creator>
		
		<category><![CDATA[Off-topic]]></category>

		<guid isPermaLink="false">http://d-kriptik.com/blog/2007/12/15/pacha-crowd-election-beauty-search-goodness/</guid>
		<description><![CDATA[It has been a long time since I wrote a weekend post, as some people have pointed out. Being busy on weekdays looks to have gradually shifted more of my out and about time to weekends, which might be the culprit. And, I guess while the quickies posts might be similar to a weekend post, they just aren't the same enough for some of you. So, let's do this.

-


Ok, let me first get the disappointment out of the way - I don't have any nightlife or other stories I want to write up this time. That said, <a href="http://www.pachanyc.com/">Pacha NYC</a> does seem to be a topic of interest to many, as my thoughts on customer service there have attracted some attention. So, why not comment on the crowd? So, I briefly mentioned height and the results of USA presidential elections in part of <a href="http://d-kriptik.com/blog/2007/02/14/rambling-part-1/">a ramble</a>. Finally, in keeping with the spirit of a weekend post, here is the ever popular look at some interesting search terms that popped up in the logs.]]></description>
			<content:encoded><![CDATA[<p>It has been a long time since I wrote a weekend post, as some people have pointed out. Being busy on weekdays looks to have gradually shifted more of my out and about time to weekends, which might be the culprit. And, I guess while the quickies posts might be similar to a weekend post, they just aren&#8217;t the same enough for some of you. So, let&#8217;s do this.</p>
<p>-</p>
<p>Ok, let me first get the disappointment out of the way - I don&#8217;t have any nightlife or other stories I want to write up this time. </p>
<p>That said, <a href="http://www.pachanyc.com/">Pacha NYC</a> does seem to be a topic of interest to many, as <a href="http://d-kriptik.com/blog/2007/08/22/customer-service-and-pacha-etc/">my thoughts</a> on customer service there have attracted some attention. So, why not comment on the crowd?</p>
<p>As I stated <a href="http://d-kriptik.com/blog/2007/08/22/customer-service-and-pacha-etc/">before</a>, Pacha is big and well-known, which means that lots of people go there and almost every one of them gets in. The result of this often seems to be that there are very positive, very negative, and a whole bunch of neutral people running around inside during peak time, which is to say, you may run into someone that makes you smile but you may also run into someone that makes you frown.</p>
<p>I guess I should qualify my terms a bit. My thoughts on positive, negative, and neutral in this context are something like follows.</p>
<ul>
<li>Positive - there to have fun; respectful; happy; enjoys the music; can handle a crowd.</li>
<li>Negative - rude; angry; beligerent; incoherent; upset by a crowd.</li>
<li>Neutral - just sort of there; meat market.</li>
</ul>
<p>Now, there are three DJs that get me into Pacha routinely, Boris, Victor Calderone (VC), and Danny Tenaglia (dt), and so I will comment on the crowds for these three. </p>
<p>While the neutral people are hard to notice, the positive and negative people do make an impact and their concentrations tend to vary quite a bit across these three DJs when at Pacha. So, here is a breakdown of the crowd for each.</p>
<ul>
<li>Boris - Boris generally has a balanced mix of negative and positive people during peak. As after hours comes in, most negative people head out, leaving a much higher concentration of positive people to negative people, which means a good crowd for after hours.</li>
<li>dt - During peak, the crowd at Tenaglia always seems to be at the extremes, having both the highest concentration of negative people and the highest concentration of positive people. However, once the party rolls over fully to after hours, the dt regulars tend to take over the place. Tenaglia has a &#8220;be yourself&#8221; and let others be themselves motto, which is something the dt regulars have adopted fully, meaning the crowd when after hours kicks into high gear is completely positive and absolutely perfect.</li>
<li>VC - The crowd for Calderone from peak to finish always seems to have the lowest concentration of negative people and a high concentration of positive people. Once after hours kicks in, the few negative people tend to depart, leaving a great crowd.</li>
</ul>
<p>Based solely on crowd, that makes the best bet to go to Pacha when VC is there; however, if you are a late-nighter (like me), then dt pulls ahead.</p>
<p>My recommendation though, forget the crowd, go for the music and fun, and focus on the after hours. All three of these guys play marathon sets (at least 8 hours long), and none of them really kick into high gear until at least 6AM.</p>
<p>-</p>
<p>So, I briefly mentioned height and the results of USA presidential elections in part of <a href="http://d-kriptik.com/blog/2007/02/14/rambling-part-1/">a ramble</a>. </p>
<blockquote><p>
We can play with features here too. Take height, which can both play a role in being judged beautiful and has strong ties to being perceived as a leader. Perhaps this is because physical size played an important role in being a leader way back when and helped with survival. Whatever the cause, there are some interesting statistics about height and power. Just look at the heights of US presidents in general (and even as compared to their opponents - probably one of the best ways to pick which candidate will win an election). And, how tall are the CEOs of major corporations on average?
</p></blockquote>
<p>Now, I did not qualify &#8220;best&#8221; in that comment at all and intended it to be a bit humorous, but the end result may be an incorrect statement. Of course, the general point was to show the influence of physical attributes on our perceptions of people, not to actually mean the most effective way to predict the results of a USA presidential election is answering the question &#8220;which candidate is taller?&#8221; Nevertheless, I have since changed that statement to avoid additional headaches. <img src='http://d-kriptik.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Looking at Wikipedia, there is a discussion of the topic <a href="http://en.wikipedia.org/wiki/List_of_heights_of_United_States_presidential_candidates">here</a>, which gives the heights of the USA presidents and is summed up as follows.</p>
<blockquote><p>
In reality, for the 46 elections in which the height of which both candidates is known, the taller candidate won 25 times (approximately 54 percent of the time), the shorter candidate won 18 times (approximately 39 percent of the time) and the candidates were the same height three times (about 7 percent of the time).[original research?] Therefore, the taller candidate has won the majority of elections, but the tall-short margin of victory is by no means overwhelming.</p>
<p>It should be noted however that in three of the cases where the shorter candidate won, the taller candidate actually received more popular votes but lost in the Electoral College; this happened in 1824, 1888, and 2000 (the other time that the electoral vote winner was not the popular vote winner was in 1876, for which we do not know the height of the loser).[original research?] So of the 46 cases we have data, the taller candidate has won the popular vote 28 times (61 percent), and the shorter candidate only about 15 times (33 percent of them).
</p></blockquote>
<p>I have no idea if the height information is accurate, but, if it is, this boils down to the following&#8230; In USA presidential elections where we know height was different, 58% of the time the taller candidates won the election, and 65% of the time they won the popular vote. Since 1900, in USA presidential elections where we know height was different, 65% of the time the taller candidates won the election, and 69% of the time they won the popular vote. </p>
<p>Clearly, those odds favor the taller candidate, so height is a simple, physical appearance based metric to pick the winner of a USA presidential election with greater than coin flip odds. This seems to make sense, as height is an aspect of physical appearance that effects peoples&#8217; judgments of leadership capabilities. But, let&#8217;s look at another aspect of physical appearance that probably shines through better than height in many media used today - faces.</p>
<p>So, we have <a href="http://www.alittlelab.stir.ac.uk/pubs/Little_07_faces_voting.pdf">this</a> paper.</p>
<blockquote><p>
Human groups are unusual among primates in that our leaders are often democratically selected. Faces affect hiring decisions and could influence voting behavior. Here, we show that facial appearance has important effects on choice of leader. We show that differences in facial shape alone between candidates can predict who wins or loses in an election (Study 1) and that changing context from war time to peace time can affect which face receives the most votes (Study 2). Our studies highlight the role of face shape in voting behavior and the role of personal attributions in face perception. We also show that there may be no general characteristics of faces that can win votes, demonstrating that face traits and information about the environment interact in choice of leader.
</p></blockquote>
<p>With the results&#8230;</p>
<blockquote><p>
Feeding this percentage into the regression models, we found that the models predicted a win for Blair in terms of both popular vote (53.17%) and seats won (56.6%).</p>
<p>Our predictions were relatively accurate, as Blair won 52.13% of the actual two-way share of the popular vote and 64.3% of the split in seats won[...]
</p></blockquote>
<blockquote><p>
The final polling revealed, from a 99% return for the two candidates, that Bush had 51% and Kerry had 48% of votes, very similar to the 56%/44% split here when judges were asked which face they would vote for as the leader of their country.
</p></blockquote>
<p>And <a href="http://www.princeton.edu/~atodorov/Publications/Ballew&#038;Todorov_PNAS2007.pdf">this</a> paper.</p>
<blockquote><p>
Here we show that rapid judgments of competence based solely on the facial appearance of candidates predicted the outcomes of gubernatorial elections, the most important elections in the United States next to the presidential elections. In all experiments, participants were presented with the faces of the winner and the runner-up and asked to decide who is more competent. To ensure that competence judgments were based solely on facial appearance and not on prior person knowledge, judgments for races in which the participant recognized any of the faces were excluded from all analyses. Predictions were as accurate after a 100-ms exposure to the faces of the winner and the runner-up as exposure after 250 ms and unlimited time exposure (Experiment 1). Asking participants to deliberate and make a good judgment dramatically increased the response times and reduced the predictive accuracy of judgments relative to both judgments made after 250 ms of exposure to the faces and judgments made within a response deadline of 2 s (Experiment 2). Finally, competence judgments collected before the elections in 2006 predicted 68.6% of the gubernatorial races and 72.4% of the Senate races (Experiment 3). These effects were independent of the incumbency status of the candidates. The findings suggest that rapid, unreflective judgments of competence from faces can affect voting decisions.
</p></blockquote>
<p>Great, so now we have evidence that facial appearance impacts how we rate someone as a leader too, and this can be used to predict election results. (All of which is right in line with the <a href="http://d-kriptik.com/blog/2007/02/14/rambling-part-1/">original</a> ramble.)</p>
<p>So, lets reduce all of this height and face stuff down to the level of picking candidates by answering a simple question, such as our &#8220;who is taller?&#8221; question.</p>
<p>Perhaps a just as simple and maybe better way to pick who will be elected president than answering &#8220;who is taller?&#8221; is to answer this more general question - who best looks the part? (A little <a href="http://d-kriptik.com/blog/2007/04/20/anon-web-looking-part-door/">lamination</a> goes a long way. <img src='http://d-kriptik.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) And, of course, a consensus answer gives better results than each individual answer here.</p>
<p>Which might also be in line with <a href="http://www.alittlelab.stir.ac.uk/pubs/Little_06_goodisbeuatiful_PAID.pdf">this</a> other paper.</p>
<blockquote><p>
The current study examined whether desired personality influences face preference. Pairs of composite faces were made based on the faces that individuals differing in desired partner personality found most attractive. One composite represented a face most attractive to those desiring a particular trait and the other a face most attractive to those not desiring the same trait. Pairs were presented to different participants to ascertain whether the composites reflected the desired personality of the original raters. For several traits the composites did differ in perceived personality indicating that the personality desired in a partner is reflected in face preference: if a trait is desired then faces perceived to possess that trait are found more attractive than faces which do not possess that trait. These findings cast new light on the ‘‘what is beautiful is good’’ stereotype. What an individual desires in partner reflects what they consider ‘‘good’’, and they find faces reflecting these desired traits as attractive – ‘‘what is good is beautiful’’. Possessing personality traits that are attractive may be causal in making a face attractive.
</p></blockquote>
<p>What is good is beautiful, or what is beautiful is good? However you look at it then beauty is good. </p>
<p>But, <a href="http://homepage.psy.utexas.edu/homepage/group/langloislab/NewFormat/PDFs/Ramsey.JECP.2002.pdf">when</a> do we start to recognize beauty and judge people as attractive or not?</p>
<blockquote><p>
Like adults, young infants prefer attractive to unattractive faces (e.g. Langlois, Roggman, Casey, Ritter, Rieser-Danner &#038; Jenkins, 1987; Slater, von der Schulenburg, Brown, Badenoch, Butterworth, Parsons &#038; Samuels, 1998). Older children and adults stereotype based on facial attractiveness (Eagly, Ashmore, Makhijani &#038; Longo, 1991; Langlois, Kalakanis, Rubenstein, Larson, Hallam &#038; Smooth, 2000). How do preferences for attractive faces develop into stereotypes? Several theories of stereotyping posit that categorization of groups is necessary before positive and negative traits can become linked to the groups (e.g. Tajfel, Billig, Bundy &#038; Flament, 1971; Zebrowitz-McArthur, 1982). We investigated whether or not 6-month-old infants can categorize faces as attractive or unattractive. In Experiment 1, we familiarized infants to unattractive female faces; in Experiment 2, we familiarized infants to attractive female faces and tested both groups of infants on novel faces from the familiar or novel attractiveness category. Results showed that 6-month-olds categorized attractive and unattractive female faces into two different groups of faces. Experiments 3 and 4 confirmed that infants could discriminate among the faces used in Experiments 1 and 2, and therefore categorized the faces based on their similarities in attractiveness rather than because they could not differentiate among the faces. These findings suggest that categorization of facial attractiveness may underlie the development of the ‘beauty is good’ stereotype.
</p></blockquote>
<p>Which brings us to <a href="http://homepage.psy.utexas.edu/homepage/group/langloislab/NewFormat/meta.PDF">this</a> major work that pulls together of a wealth of studies.</p>
<blockquote><p>
Common maxims about beauty suggest that attractiveness is not important in life. In contrast, both fitness-related evolutionary theory and socialization theory suggest that attractiveness influences development an