Freehackers Union

Some time back I read a rant on the web from Zed Shaw. He was planning to start up the Freehackers Union. This would be a meeting of like minded hackers in big cities around the world. You had to present some hacker project of interest to be able to attend the meetings. He was fed up with the business people getting in the way of true hacking.
Zed is an outspoken guy who lives in New York. Not surprisingly the first Freehackers Union meeting was held in New York. Zed is known for previously working in the financial markets. I think he was an employee at Bear Sterns. He was previously associated with Ruby (and maybe Ruby on Rails). I think he got into too many arguments with the powers that be in the RoR world. Zed talks like a tough guy. This may be due to his surroundings (New York), or perhaps because he knows some martial arts, or maybe even because he thinks he is a tough guy,

Enough about Zed. I listened to the first Freehackers Union audio broadcast from Zed’s web site. It seemed like a big rant about ideas. I guess that was the whole point of the meetings. Most people in the crowd did not present anything that day. There seemed to be a rule that you could not present using PowerPoint (remember that this was about rallying against the business guys).

One presenter had written an Objective C program for the iPhone. He got a lot of applause. There were a bunch of other technical presentations. I heard that there were plans to have such a meeting near my house. Initially it sounded exciting. Doesn’t everyone want to be part of some cool underground and elite group? Unfortunately it appears that the Freehackers Union did not really materialize past the initial New York meeting. Oh well. Maybe it is time to look around for a local 2600 Magazine meetup.

More Crypto API

This week I finished my college course on Java programming. I am hoping this will free up some time to get back to my Black Hat projects. Specifically I have some ideas about the Windows Task Manager control which I have previously written about. I may be posting a new program to enable and disable Task Manager silently. However for now I thought I would talk some more about the Windows Crypto API.

I have written at length regarding Crypto API details that I have reverse engineered by browsing the C header files provided by Microsoft. In addition, I discovered some Crypto API documentation in the Microsoft Developer Network web site. So without further ado, let’s get into some Crypto API details.

The Crypto API supports PKCS #7. Recall that this is a standard published by RSA Laboratories, a division of RSA Data Securities. PKCS #7 covers cryptographic message syntax (CMS) structures. Going back to terminology, a digest is the result of applying a hash to data. The digest is sometimes called the hash itself.

Although “message” is a generic term, it has a more specific meaning within the Crypto API and security. A message is data that has already been encoded. Normally this data has been signed. It includes a certificate.

One goal of the Crypto API are to provide simplified message functions. The functions are very high level. They in turn wrap many lower level messages. They shorten the code required to accomplish security purposes.

Finally I want to define some file extensions used by the Crypto API. The “.cat” files are those with a digital thumbprint. And a “.stl” is a file with a certificate trust list. On that note, I may provide another Crypto API post in the future which covers certificate services. For now I bid you a good day.

Hacker Challenge

Some guy with a name like Akon posted a challenge to the hackers out there. He made key decoder program. His challenge was for programmers to come up with a key generator to match his decoder program. One C++ and one header file were provided as the source of the decoder. This sounded like a simple challenge. However the algorithm within the provided code was difficult to follow. A couple sample working keys were provided to help with the challenge. And a hint was provided that this was a well known encryption algorithm.

I consider myself a relatively experienced C programmer. There was not any C programming language issues I had. I could understand what the code was doing. However like I mentioned earlier, the algorithm was complex. It was too hard for me to keep everything in my head to follow the algorithm.

There was a big discussion in the comments of Reddit about this challenge. Somebody with security insight identified this decoder as decrypting 12345678 under RSA with two public keys. Thus the goal was to factor one of those keys. You could also add one of those keys to a working existing key. I got the feeling that the algorithm in the decoder was a PK algorithm.

Once the RSA was identified, people commented that RSA uses much larger prime numbers than used in this decoder. Thus it should be easier to crack and provide a key generator. The comments led into a general discussion on security. Some people talked about the use of key servers by companies. It was recommended that zero and the letter O should be mapped to the same number to make things easier. It was also mentioned that a dongle cannot guarantee security. This is because a hacker can create a dongle emulator.

Time Poll Hackage

Have you heard the news of this hack? Time magazine put out an online poll of the most influential person in government, science, and technology. One of the founders behind the 4chan bulletin board coded an auto voting application. The result was that the founder got to the top of the rankings in the poll. In addition, if you take the first letter of each of the first 21 names in the rankings, it spells out “Marble Cake Also The Game.”

At first this seemed a bit random. There seem to be differing opinions on what this marble cake refers to. On the one hand it connotes something nasty. It also seems to be the name of an IRC Channel which put out a video against Scientology.

The real story here is the auto voting application. Time originally made it so you could only vote once from an IP address. However the 4chan dude was running IPv6. And it seems the Time site did not recognizes the IPv6 address correctly. That led him to write an app using Delphi which got around the restriction. It uses proxies to make it appear as if you are voting from different IP addresses. That sounds sweet.

I have heard some people say that Time really does not care about this hack. Last time I checked, the 4chan founder was still at the top of the rankings. However the first 21 names no longer spell out anything interesting. Maybe Time disrupted the order to show everyone who is boss. Or perhaps another hacker messed up the first hack for the heck of it.

Conflicker a Hoax?

It seems last month you could not help but hear about the Conflicker virus. This was one of the most talked about worms of the year. It is also known as the Downadup Worm. There are 3 known variants of the worm. Initially people did not know what to expect of the worm. Eventually I heard that it would take over your computer and make it some hacker's slave.

I found it interesting what various authorities were saying about Conflicker. Symmantec said it was serious. McAfee said it was over hyped, but that you should not assume that you were safe. F-Secure said the thing would not cause any visible damage. Finally the USA Today said Conflicker was no small threat.

In general, I determined that you would be ok if your computer was up to date. You are better off if you are behind a firewall like most home users are. It would help if you had intrusion detection software such as ZoneAlarm installed and configured. You can help prevent infection by choosing strong passwords for Windows admin accounts, and by disabling autorun.

Initially there were reports that there may be as many as 15 million infections on April 1st. In retrospect, this seems to be more of an April Fools joke. The date came and went without incident. I wonder what was really behind all the hysteria. At least it got me to download the latest security patches from Microsoft for my Windows box.

New Program - TaskCtrl

Late one night I was visiting web sites I should not have been. Wouldn't you know it? Some sort of malware got installed on my PC. The system tray had a troublesome icon which kept telling me that I had been infected. Web pages started having extra links in them to virus removal sites. To top it off, my Windows Task Manager became disabled. This was some ambitious malware.

I am a programmer. So I decided to write a program to give me control over whether I can run the Windows Task Manager or not. This is just a key and a value that is stored in the registry. Thus my TaskCtrl program was born. I wanted to quickly code this and share it with you. Therefore I relied on my good old C++ programming skills. This program is provided free of charge.

TaskCtrl first comes up and shows you whether the Windows Task Manager is enabled or disabled. You can change this state by clicking on the radio buttons. This will immediately either enable or disable Windows Task Manager for you. I also added a button that brings you back to my Black of Hat blog. You never know. Maybe my program will make its way to some people who do not read my site. Enjoy this little treat. I plan to find some more time to get back to writing and distributing useful software here.

Cryptographic Service Providers

The Microsoft design in the Crypto API makes use of Cryptographic Service Providers (CSPs). Your application talks to the Crypto API. The Crypto API in turn filters your calls, and passes the requests to a CSP. You application never directly calls the CSP. You pass in a handle to refer to objects in the CSP. The CSP does all the work and retains public and private keys in memory. These keys are stored in containers. The CSPs are implemented as Windows DLLs.

There are a number of different CSPs which are provided by Microsoft. The simplest one is the Microsoft Base CSP. It comes with the distribution of the Crypto API. It is a general purpose CSP. It supports digital signatures and data encryption. It uses an RSA public key algorithm.

Microsoft also has an Enhanced CSP. It supports everything in the Base CSP. In addition, it uses longer keys. It provides more options for encryption algorithms. For example, you can choose Triple DES encryption.

You can write a CSP yourself. It is a normal Windows DLL. It must expose the cryptoSPI entry points. For those functions you do not wish to implement, expose the function, but just return E_NOTIMPL. Microsoft recommends that you put all of the code for your CSP in a single DLL. The install of your CSP must register itself with Windows using the registry. Your CSP must be signed every time it is built. It also has to be signed by Microsoft.