Article View: alt.privacy.anon-server
Article #261419How to decrypt your messages in "a.a.m." with Thunderbird
From: Rooster
Date: Sun, 24 Feb 2013 03:27
Date: Sun, 24 Feb 2013 03:27
434 lines
25632 bytes
25632 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Up to now the only methods I have seen posted here for decrypting messages from the newsgroup "alt.anonymous.messages" have involved making use of separate programs, requiring you to download all these messages with a news client such as Thunderbird, for example, while applying another routine on them with a different program in order to test each of their subjects with your passphrase to determine which message is yours before decrypting it; or else to download all the messages with one program and then to run them through a second procedure en masse, without regard to their subjects, like the script I created for doing so, in order to apply the decryption process on each of them successively. I now have devised another solution, one using only Thunderbird and Enigmail, which therefore works in either Windows or Linux, and requires no separate program besides those already supported with Thunderbird. It is quite simple actually but requires a little preparation to get your system ready. It may not be beneficial for everyone, especially anyone who might have multiple messages encrypted to several different keys, although I have not yet investigated a straightforward method for this particular scenario, but this technique does work quite nicely and efficiently for the case when only one or two keys is to be used for decryption. Of course you would just have to decide for yourself whether this method is convenient to your circumstances and style of working. Furthermore, when I say "efficiently", it is to be understood as a term that must be interpreted individually and comparatively, because what seems efficient to one may not seem so to another. Nevertheless, this method clearly has merit, and for many persons it may be sufficient if not even preferable due to its simplicity. First I want to explain how to prepare your system with the appropriate gpg functionality for use with this technique. If you have Thunderbird and you're reading this message, then you probably already have Enigmail too, which is one of TBird's premier extensions, and this would mean that you also have gpg installed and have some measure of skill in using it because gpg is used by Enigmail as well as by many other programs. It is the de facto standard for public key ciphering. The next question to answer is which version of gpg do you have. There are basically two branches of it: 1.4.x and 2.1.x. You may even have both on your system because they can be used separately or installed together and coexist nicely. They are both maintained currently. I have both too. This method I have figured out and am now explaining makes use of the 1.4.x version. This version of the program is more suited to working in a portable mode than is the 2.1.x branch, which is much larger are normally requires an installation process that integrates more deeply with the OS. A lot of persons prefer the 1.4.x version due to its portability, which they believe makes it more secure and convenient. You can carry it around with you on a USB flash drive, for example, just as you can carry around your keys in your pocket. You can even encrypt its contents. One of the great benefits of using it on a portable drive is that Thunderbird also has a portable version. There is a portable version of Thunderbird officially sanctioned by Mozilla and made for Windows, which is my OS of choice. the 1.4.x version was is ideally designed for using with the PortableApps Programs Manager and set of programs. However, a lot of folks, including me, do not actually use it with the PortableApps installer, and it need not be used in that way. Instead, we prefer to extract the programs to a flash drive and to control their installation and launching ourselves, in a hands-on kind of manner. That is also my approach in this case. It is partially a "control" thing, I suppose. Nevertheless, my description does not deviate in any significant way from the excellent instructions provided here: http://portableapps.com/apps/internet/thunderbird_portable For the Linux guys, you may take comfort in the fact that there is also a way for you to accomplish this objective, namely, to have a portable installation of Thunderbird with a couple of extensions integrated with it, capable of decrypting the messages from "alt.anonymous.messages" without having to use a secondary set of programs, if you like. You will have to work a little harder in order to do so, however, because in order to get the official "regular" version of TBird installed on a portable device, you will need to follow the instructions here: http://kb.mozillazine.org/Running_from_a_USB_drive_(Thunderbird) Those instructions for running it in a portable mode are actually applicable not only to Linux, and it would benefit anyone interested in doing so to take the time to read it. It is not difficult. One of the great things about the PortableApps programs, at least insofar as those we are looking at here, is that they can be installed normally and without any extra fuss without ever touching the PortableApps Programs Manager and launcher. These programs were designed to work together in accordance with a predefined directory structure so that their configurations files, what little there is of them, would work based on their relative paths, not on absolute paths, because, being installed on a removable drive, their absolute paths would likely change when put into different machines. That is to say, they might have a root drive letter of F in one machine, but on another machine they might very well have drive letter G, etc. This relative aspect of their configurations makes it easier for us to work with them, and we can take advantage of it. On the other hand, I should not avoid emphasizing one not so obvious point. Although my description of this technique centers around using a portable installation of Thunderbird, it is not necessary to doing so. This technique will essentially run on either a portable installation or a "regular", full-blown installation of Thunderbird. Even so, I want to take advantage of this opportunity to multitask, and, therefore, I have decided to explain it in the context of a portable installation. Moreover, you may find it convenient to test out the method using a portable installation to begin with since in this way it would less likely intrude on your existing programs. You may also do this in a virtual machine in order to "sandbox" the effects if you like. For sake of discussion here, I am going to assume that we have a USB drive letter F. You need to download the portable Thunderbird from the link I gave above and click on its installer EXE. When it prompts you where to install, you need to point it to install right at the root of the drive, that is, on "f:\". It will create a folder there called ThunderbirdPortable and it will put all its files within it, along with some subfolders. Then, if you do not already have the 1.4.x version, you should download the GPG for TBird Portable, the link for which you will find on that same page I gave you above, which points here: http://downloads.sourceforge.net/portableapps/GPG_for_Thunderbird_Portable_1.4.12.paf.exe?download When you click on its EXE for installation, you should take care to direct it to install immediately "within" f:\thunderbirdportable, which already will have created some gpg subfolders for this purpose, but you needn't aim the GPG Portable installer at any one of them. Simply point it to the thunderbirdportable folder, and let it do the rest. You should now have three folders right inside the ThunderbirdPortable folder and two files, like this: \App \Data \Other help.html thunderbirdportable.exe When it comes time for you to start TBird, you would just click that executable you see there. Now, inside the App folder, you should see these: \AppInfo \Bin \DefaultData \gpg \Thunderbird readme.txt Inside of the gpg folder is where the GPG Portable installer program should have put your "gpg.exe" along with several other related EXE program files, as well as a couple more folders, namely, "Doc" and "gnupg.nls". You should not need to touch any of these files. Now, inside of the DefaultData folder you will see, along with some others, another folder named gpg, but this one has nothing in it except a "readme.txt". I don't believe that this folder should have been made because it seems to have no purpose so far as I have seen. In fact there is even a "readme.txt" file in DefaultData folder, as noted above, explaining that normally you should never need to touch the contents of this folder. Anyway, just leave it as it is and don't mess with it. Now, going back to our original ThunderbirdPortable folder, when you look inside the Data folder, you will see these folders only: \gpg \plugins \profile \settings As you can see, this Data folder is the Windows OS equivalent of %AppData% files. The profile folder is your TBird Portable profile, and that gpg folder is going to be our gpg home directory, or, "--homedir", for this installation of GnuPG. Inside the gpg folder is another "readme.txt" file, with text that merely says, "GPG Settings". Inside this gpg folder we will create our little keyring, etc. At this point you need to export a secret key from your existing gpg keyring, the key which we will use for our example to decrypt your wonderful messages from the "a.a.m." newsgroup. Just do "one" key right now. If you don't have one (shame on you!), then you can create one in Enigmail. When you export it, save the output in ".gpg" or ".asc" extension format. The one you end up using will need to be validly signed, even self-signed, so that it can be used in Enigmail for decryption. It should be signed ahead of time with a trustworthy key, so designated anyway, or be signed in a procedure with Enigmail. You then need to move this key into the folder here, that is: "f:\thunderbirdportable\data\gpg". Now you need to start up Thunderbird! I am not going to tell you that you should be doing all this over the tor network, but that would be a good idea if you hope to maintain anonymity when accessing the newsgroup. How you accomplish this much is your business, and it is outside the purpose of this discussion. Be that as it may, If you intend to do all this over tor, as I would recommend, then you have to decide how you want to have tor installed. You could simply download the Tor Browser Bundle and put it also on your portable drive because it runs nicely this way, totally self-sufficiently without requiring to be "installed" in the Programs folder of Windows or to be written into its registry. It too is portable. Alternatively, you might already have it installed in a folder on your system directory. In either case it will work just fine for our objective. What is of concern to us, however, is whether you have it installed one way or another, or whether you do not intend to do so. If you do not, then you simply need to configure ThunderbirdPortable just as you would configure a "regular" installation of Thunderbird in order to safely access the messages in the newsgroup "a.a.m." The settings you make would be the same for the portable version as you would put into the "regular" version. Conversely, if you plan on using the tor network, then you should also configure this installation of PortableThunderbird to that effect. Likewise, it would have to be configured just as you would have to configure the "regular" version to run on the tor network. The configurations are the SAME. It is not the purpose of "this" discussion to explain how that should be done. Just get it done one way or another at this point so you can proceed. Subsequently, you now need to set up one news account properly in Thunderbird so that it is secure for your needs in order to retrieve messages from "a.a.m." Once again, set it up as you normally would. AFTER you have set up the news account, along with "one" anonymous user identity, which can be anything EXCEPT the ID of the key you intend to use for decryption because you will need to log on to the server to download messages with it, then install the Enigmail extension XPI file with the link from that same site, using the latest version. When installing Enigmail, you need to point it at the "gpg.exe" file as noted above, specifically in our case it would be put here: "f:\thunderbirdportable\app\gpg\gpg.exe". So, from the main menu in TBird use OpenPGP > Preferences > Basic tab, and in the edit box of the section called Files and Directories, you should now put this path and check the box labeled "Override with". Also on that same tab make sure that the checkbox labeled "Never ask for any passphrase" is unchecked. Click the button on that page labeled "Expert Settings", and it should cause some more tabs to appear there. Go then to the Key Selection tab and make sure for now that only the option for "Manually" is selected. Now for the really important part of Enigmail's configuration, go to the Advanced tab. Make sure the box is unchecked labeled "Add Enigmail comment in ..."; UNCHECK the box that says, "Use gpg-agent for passphrases". Then, in the edit box at the lower section of that tab, put this: - --homedir f:\ThunderbirdPortable\Data\gpg --no-emit-version At this point you should save your settings, exit TBird and restart it. Then use the main menu to go to OpenPGP > Key Management, and in its window use File > Import Keys from File. Browse to "F:\ThunderbirdPortable\Data\gpg" and select the key you copied there earlier and import it. This key, you might recall my mentioning, should be one that has messages encrypted to it so that you can test this procedure on your system to verify that you have it all set up right. So, if this key does not have any messages encrypted to it, you need to make one and post it to "a.a.m.", or else you need to delete it from your keyring, which would not end up deleting the file you put there for importing (i.e., you would need to tend to that separately), and go get another key to use. At this point, one way or another, you now should have a single valid key on your keyring in this folder. If you use Explorer in Windows to browse to this folder, you will also see several more files present in it, which were created by the fact that you used the option "--homedir <path>" in the edit box on the Advanced tab in Enigmail Preferences. These files represent your new keyring and its trust database, etc. Notice also that you still have a copy of the key you put there to import. This is an important point, and we shall return to it shortly. Having ONLY this single key on your newly created keyring, you now should use TBird's main menu and go to Tools > Account Settings, make sure that you then have selected the newly created account. (As a matter of fact, this should be the only account created so far.) In the section for the new account, select OpenPGP Security at the bottom of it, and then on the right side of the Window you need to check the box labeled "Enable OpenPGP support for this identity". Below it you have to choose the option for "Use specific OpenPGP key ID" and to click the "Select Key" button. In the subsequent window you should now select the single key that you have in your keyring, and finally you should click the OK button once or twice to get back to TBird's main Window. If you have not already done so, at this point you need to use the new account in TBird to subscribe to the newsgroup "a.a.m.", or whichever one you intend to test with encrypted messages for your key. For testing purposes, it should be one with many messages in it that are encrypted to keys, including keys that are not yours so that you can see it working in a realistic test case. So, also use the menu again at Tools > Account Settings > Synchronization & Storage > "Select newsgroups for offline use" (button), and put a check-mark in the box corresponding to the "a.a.m." newsgroup so that it is now one selected for downloading messages from, not just the headers of messages. The other settings to make in that dialogue window would depend pretty much on your usage situation. the point is that you will want to download these messages for checking them offline, and then you will want the program to delete them afterwards. Here is where you can make your settings to cause it to occur. Alternatively, in the Tbird main program window you can right-click on the name of the newsgroup in the Folders Pane, select Properties and use the tabs for Retention Policy and Synchronization to make your settings and to download the messages now for offline use. The best way for you to get really fine-grain control of how many messages are downloaded and presently made available to you in order to test them offline if for you to use the main menu option at Tools > Account Settings > Server Settings (under your account), and on the right side of that dialogue you should check the box for "Ask me before downloading more than XX messages. This determines how many to be downloaded at any one time when you want to initiate a download. Then, whenever you want to download them, you can go to the main menu option File > Get next XX news messages. When it has finished, use File > Offline > Download/Sync Now, and use the options to go offline after syncing. Okay then (finally!), two more settings to make in preparation for the desired outcome. Firstly, at the main menu option for OpenPGP > "Automatically Decrypt & Verify Messages", you should make sure it is checked. Secondly, at the main menu option OpenPGP > Preferences > Basic tab, in the section for Passphrase settings you should put this to, say, 20 minutes and clear the checkbox labeled "Never ask for any passphrase". It is really important that you keep in mind also where on the main menu for OpenPGP, you can find a sub-item option for "Clear Saved Passphrase". Whenever you click this, it will do just what it says and clear the memory currently of the cached passphrase. If something gets out of whack, you can clear it out, and when you have finished with checking for messages, you can clear it out of memory. Now, at this point you should be good to go. With a bunch of downloaded messages offline from "a.a.m." newsgroup, place your cursor on one end of the listing of messages and begin using the up or down arrow on your keyboard to move through the list from one encrypted message to another. When you get to the very first encrypted message, Enigmail will present you with a popup window to enter a passphrase. You would then type in your passphrase, or if you have a nifty program like Keepass (http://keepass.info/index.html), you can make use of a key combination for automatically entering passwords securely. You only have to enter the passphrase once, then it will remain cached for the duration of time you specified earlier, and you can continue moving through the messages with your arrow keys, one after another. Enigmail will not show you another popup unless you clear the cache or the time expires, but it will simply indicate with each encrypted message that it failed to decrypt until such time as you get to one of your messages, at which point Enigmail will automatically decrypt without further ado. You can decide whether to spend your time reading it right now, or you can use the menu item OpenPGP > "Save Decrypted Message" to save it in your flash drive file system, etc., or you can move it into a local folder inside TBird for keeping up with these messages routinely and later accessing them. Viola! The reason we have to put one and only one key in the keyring file for this procedure to work is that the messages sent to "a.a.m." are mostly made (encrypted) with the option for "--throw-keyids" in order to obfuscate their owners' identities. Enigmail cannot know which key to present for any given encounter, and it will merely grab the first one and let you try it. Failing to provide the right password for the chosen key causes the next key to get tried with another popup, et al., one after another. Using only one key ensures that you enter a correct combination of passphrase and key immediately, and this is what allows it to get cached instead of causing another popup. With it cached, even though it is not the correct combination for the message encountered, you can now quickly skim through the messages without encountering a second popup. When you eventually come across a correct encounter for the key, it simply deciphers it. Once you have passed through all of them, you should remove the cached passphrase using the menu option mentioned previously. On the other hand, we can now consider another opportunity based on this information if you want to use this technique with more than one key in any given session. There would be more than one way to do so, but I want to mention what occurs to me as the least objectionable of them. If I had more than one key to use, and this is the technique I decided upon using, I would consider putting all these keys into the same folder where I had copied the first one, as mentioned above, in "homedir". Then, as just described, I would import one of them in exactly the same manner and use it to test all the messages for this session. Then I would delete this key from my keyring and now import the second key and follow the same procedure once again. Then I would delete this key and, if necessary, do it again with a third key, etc. Doing it like this does not remove them from the folder when they get imported. It is not the most elegant of solutions, but it is not without merit. When I was finished with one session, and if I had multiple keys, I would probably import them en masse into the keyring to store them there only, and delete them from the folder where they were temporarily held during this session. Then, I could export them to this same folder en masse at the start of another session. I might even write a little script to implement these steps simply enough. Certainly it is simple to implement once everything is set up the first time around, which is itself neither cumbersome nor difficult. I especially like the fact that it basically requires nothing more then Thunderbird and Enigmail. Both of these programs are exceptionally well developed, supported and secure. The fewer secondary programs and addons involved in a security procedure, the better off you are. You have less to worry about getting compromised for sure. It is also quite inconspicuous because it is perfectly natural to use Thunderbird to download messages. There is no worry about a rogue program taking your passphrase out over the internet because all the deciphering and testing is done in-house and offline. By putting everything on a USB, which is helpful but not necessary, is also a plus because you can keep everything buttoned down and encrypted right on its drive, and you can take it along with you. I apologize for the length of this post, but not all things can be explained adequately in one or two short paragraphs while at the same time answering as many of your concerns as possible within the scope of my explanation. Security concerns need to be well thought out, and that usually means putting a lot on the table for review up front. If I have overlooked anything, please feel free to bring it to my attention. Thanks. "You are only as secure as your last message." -- Rooster rooster@thechickencoop.net -----BEGIN PGP SIGNATURE----- iQGcBAEBCgAGBQJRKYiKAAoJEOWcBAJ+953TuZ0L/RSt1bpTfi7IPyMtZ0Czvyqa PNeqvufgqK15tLJFIDJXz6qFBfgtLQcdY4s7weMYViuZA4D9AsvOEz6MrNIL3PvH Q+27SQT+cc0+OsCQyKrkDS/FiDbhemhsVguDvTNBxec3+g8SGM3Ksn035z4+Q/Ww xwtFLACWI61RN61plw67LorMDV6B3FW1ixmSKTKd9EFHFjSp4yVvv/XnrWt2L6pO qjCainWvRV5n/h3ITT742CxiE/jKLjvbVUbAXYeAiGGrgnTyEGHzz884LdJifJPL wEvxLCqrOaHZ+yZrRsa8bju7oKGzHgOiQpFb7n3M0bOxNZZL/e+BDbQ5cNlv0C4b ogRNbbS6Baxw+kB7BzPub6fj09og/kxua7GaiPW1jEdeASULutB+0lLYZDJxLU3W RQMlINRtj3C6H5uxJTLf0ma8x63Qe4oqjntKYcsLShQlnGc0R9EAkvKFOHiJ1ll9 lqWXpcRfrd5ZVzr4sJMGqO+iRffLVSk1QljLoiYEKw== =Jy7F -----END PGP SIGNATURE-----
Technical Details
Message-ID:
<5129888F.4080703@thechickencoop.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin1!goblin.stu.neva.ru!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <5129888F.4080703@thechickencoop.net> Subject: How to decrypt your messages in "a.a.m." with Thunderbird Date: Sat, 23 Feb 2013 21:27:11 -0600 From: Rooster <rooster@thechickencoop.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin1!goblin.stu.neva.ru!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mail User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Newsgroups: alt.privacy.anon-server Lines: 435 Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net X-Original-Bytes: 25450