Got success with kernel based encryption filter!
First of all we would like to announce that, during the development, we realized that this project will not be a simple port of truecrypt to Mac OS X, but this will provide a multiple enciphered disks support encryption platform for the Apple operating system.
Why?
Because OSXCRYPT will be an open platform, open to all the developer of encryption systems such as LUKS, LOOP-AES, PGPDISK, TRUECRYPT, etc, etc .
The platform will provide a dynamic kernel extension along with an installer and a easy to use cocoa interface.
The OSXCRYPT platform will support as a first encrypted volume technology the truecrypt file based images but the end goal is to provide to Mac OS X users full access to most of the file based volume encryption system around the net.
Today we successfully tested the encryption filter (with a simple XOR, but it’s enough for testing!) and the communication between user space and kernel space. Below more details to test it.
The next goals to be reached are:
- Parameters communications between user space and kernel space (required to initialize the encryption systems running in kernel space)
- truecrypt encryption volume logic porting inside the kernel extension as a module of OSXCRYPT- Implementation of user interface with cocoa framework
- Documentation of the system
- Beta release (required for beta testing)
We invite everyone to test the basic kernel module encrypting (with a simple and unsecure XOR) the volumes with “ANTANI” (Please consider that this module work at “Partition level” but that we will implement the “Disk level” enciphering later):
Download the Kernel module for Mac OS X 10.4
Download the Kernel module for Mac OS X 10.5
For using the demo please follow these simple instructions:
- Unzip the Kernel Extension
unzip XorMediaFilterScheme.10.4.kext.zip
or for Leopard
unzip XorMediaFilterScheme.10.5.kext.zip - Open a terminal and change the ownership of the extension
sudo chown -R root:wheel XorMediaFilterScheme.kext - Create a DMG image (It can be Apple-Partition based or EFI-GPT Based)
Apple-Parition Based:
hdiutil create -megabytes 15 -partitionType N3XorFiltered test.dmg
EFI-GPT Based:
hdiutil create -layout GPTSPUD -megabytes 15 -partitionType 392CD6BE-F7EF-4F1C-A6FD-D360DA33A466 test.dmg - Load the kernel module:
sudo kextload -t XorMediaFilterScheme.kext Attach the DMG
hdiutil attach -nomount test.dmg
You should get something like:
(Apple-Partition)
/dev/diskX Applepartitiontable
/dev/diskXs1 Applepartitionmap
/dev/diskXs2 N3XorFiltered
/dev/diskXs2s1 Apple_HFS(GPT-Partition)
/dev/diskX GUIDpartitionscheme
/dev/diskXs1 392CD6BE-F7EF-4F1C-A6FD-D360DA33A466
/dev/diskXs1s1 AppleHFS
We are interested in the latest entry, the “AppleHFS” one.- Format in HFS+ the partition:
newfshfs -v “Volume Antani” /dev/rdiskXs?s1 (note the ‘r’ (bsdism), where “?” it’s the partition N3Xor_Filter or 392…) - Unmount the previously created DMG:
hdiutil detach /dev/diskX - OK, now you can mount the newly XOR’ed “Antani” image Double click on the “test.dmg”, copy a lot of data on it (so you can test for memory leaks, but we copied inside and played several DIVX), unmount and remount it as you like.
WARNING
This is an alpha release component and, even if it seems very stable, doesn’t use it for privacy protection and does not put on it important data.
Comments
15 Responses to “Got success with kernel based encryption filter!”
OSXCrypt.org is Digg proof thanks to caching by WP Super Cache!

I really appreciate your effort to provide an open encrypted platform for Mac OS X.
A base for the implementation of already available encrypted volume systems it’s important for Mac users.
Great idea!
-prz
Hi,
Seems like instead of “to port the entire application [Truecrypt] in native MacOs X”, you/your developer is now making a “a multiple enciphered disks support encryption platform for the Apple operating system”. This does not sound like what was discussed on fundable.com. IMHO, it sounds like you are just now (Dec. 16) changing your direction of your project (I suspect) to separate & distance yourselves from the Truecrypt developers (who have announced their own version of TC for OS X). I’m not writing this out of malice, but out of concern; I was very close to donating myself, but refrained due to concerns of just such an issue arising. My opinion (and suggestion)? Give what money that is left BACK to the donators. Instead of making a OS x Version of Truecrypt yourselves, you have instead succeeded (IHMO) in cajoling/embarassing the original TC devs into releasing one of their own (which, no offense, is what everyone wanted to begin with). OSXCRYPT is NOT TRUECRYPT. The donors gave their money for the latter, NOT the former. Please be respectful of your benefactor’s wishes. TIA, I look forward to your reply.
I was enthusiastic about the idea of someone developing a Truecrypt porting, but you guys rocks!
Instead of simply delivering a TrueCrypt lil’ prog you developed a full featured kernel based encryption filter!
I know some of you will not understand it, but with this little code ANYONE will be able to crate encryption engines which can PLUG IN INTO the prog!
I REALLY think this thing alone is FAR MORE IMPORTANT that the Truecrypt stuff!
And again, I saw that Truecrypt will release in January 2008 with a MAC version, but honestly “WTF?!?!? WHO CARES?!?!?”. Now we can have ANY encryption on mac with a minimum effort!
Thanks, lastknight and all! You brightened my day!
Oh, a final word: I suggest you give the unused monies back, or donate them to truecrypt.org (at the donor’s discretion, of course
@A Concerned Truecrypt User
Dear user,
porting Truecrypt is our main concern and chances are good that we’ll deliver BEFORE the Truecrypt guys. I smell something in being silent for three years and magically coming out just today.
Porting Truecrypt must be done in the correct way, a way that will consent in the future (btw) to develope a drop-in truecrypt replacement of FileVault, for example.
Right now I’ve been contacting the contributors at every step, and no one told me they wanted their money back. If someone feels betrayed, please be free to tell us and we’ll proceed accordingly.
We think that creating an OPEN framework is far more intelligent that inventing the wheel at every step.
We WILL deliver the truecrypt version BEFORE others, but we’ll code it WELL and SOUNDLY the first time.
And please, we’ll take orders about money and the direction of the project from the founers only.
@Core Team:
Thanks for a quick reply.
If the funders (ie. donors) are really as supportive of your choice as you say, then I’m content let this thread rest. Good luck and best wishes on your endeavor!
I understand and respect that you will only take input about the direction of this project from the founders, that’s fine. I’ve simply utilized the ‘Leave a Comment’ link, and done just that… my comments are, of course, just my opinion, and I don’t post here expecting you to change anything just because of one unnamed guy’s post on your project’s blog
Great! The only thing missing on OS X til now was: TrueCrypt. Really, keep this up!
About 3 weeks since this post… any progress?
One Month… yet nothing? Any news?
I appreciate any progress, and will candidate for any beta testing.
Bye
C.
Hello,
I am willing to donate handsomely, if I am convinced that a full-disk-encryption for Mac OS X Leopard will be achieved (hopefully inside Q1-2008)
Other than being a privacy-minded individual, I am also ashamed in being an Apple fan, when today, January-2008 - every commercial operating-system has software-package that offers full-disk-encryption (including boot-partition).
That includes many UNIX Distros (with GELI or GBDE),all Linux dist (with Pointsec/Checkpoint), and of course, any Windows Platform (with PointSec/BitLocker/GuardianEdge and others). Hell, even Symbian and PocketPC/WindowsMobile are fully supported with PointSec and few of other startups.
It almost looks like Apple has some secret alliance with “uncle Sam”…. Seriously!
On another note - it is possible to get a MacBook that supports 2.5″ drives (unlike MacBook Air) and get a Seagate or Hitachi Full-Disk-Encryption (FDE) drive, and setup OS X on that drive. BUT the non-Air MacBook weighs a ton….. and their proprietary FDE technology is not open source
P.S. if the original TrueCrypt developers are closer to accomplishing the task, I think its wiser donating to them directly, helping them out. I really don’t know how to get involved, if someone has a clue - please let me know.
I too would like to hear of any progress. Also, there is mention made to a mailing list. Where does one sign up?
1 week left in Jan 08 and no news of Truecrypt 5.0 yet and also no further news on OSXcrypt… guess there are going to be some delay?
Great work that you have done! I really appreciate someone coming up with a viable alternative to FileVault on OS X. And a WDE capable software at that! What joy!
Cheers,
.:ralf:.
Thanks for sharing
Hello, I was looking around for a while searching for what is data encryption and I happened upon this site and your post regarding uccess with kernel based encryption filter! : OSXCrypt.org - Truecrypt for MAC, I will definitely this to my what is data encryption bookmarks!