-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oxford Semiconductor OXUF943SE #14
Comments
reallymine does recognize the bridge chip, but it can't decrypt a drive that uses it. If you can run both the Thanks a lot for this in the meantime! :D |
What is the difficulty with this chip? With the key, I think I could do it on linux |
@themaddoctor there is no difficulty, I just need a sample of encrypted data (not the key sector) so I know what operations to perform on the bytes to properly decrypt it. |
I might be getting some from a "client" this week. Will let you know. |
Sorry for the lack of response, I kind of gave up on the drive (for now). Last I tried, I couldn't get |
ncococola, what OS do you have? If linux or Mac, then you can use dd to get the |
The "client" I was talking about has the OXUF chip, but the keyblock is not on the disk. |
Maybe the problem is that you "initialized" it on your OSX system. |
andlabs, have you examined the firmware for the OXUF chip? Do you know the algorithm that it uses to generate a new DEK for the "quick erase" feature? |
If I can get a newer version of IDA I could... |
If you do, I might be able to find a way to get the factory-set DEK for drives without an accessible keyblock. I did it for the JMS538S over the weekend. Had to simulate the PRNG from the chip and the one used at the factory. (The Norwegian group has such a method for JMS and INIC chips.) |
You really are the Mad doctor
…On Mar 23, 2017 6:07 PM, "themaddoctor" ***@***.***> wrote:
If you do, I *might* be able to find a way to get the factory-set DEK for
drives without an accessible keyblock. I did it for the JMS538S over the
weekend. Had to simulate the PRNG from the chip and the one used at the
factory. (The Norwegian group has such a method for JMS and INIC chips.)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQE6xf44yKlsbuWb-WOLFiXS6CV914x4ks5rovsvgaJpZM4Kasb7>
.
|
So I finally have a real live PLX drive to examine. Here is the keyblock: 00000000 53 49 6e 45 01 00 00 00 06 00 64 01 b2 73 84 00 |SInE......d.²s..| There is a copy of the old keyblock (actually identical because no pw set) 8 sectors later. Sorry, I don't know the sector number yet. Here is the first sector (encrypted): 00000000 b4 54 d9 50 68 03 c2 df f0 f1 c7 2d 6a 86 b9 0e |´TÙPh.ÂßðñÇ-j.¹.| To decrypt, I had to do this:
|
(You should wrap those hexdumps in Markdown code blocks to prevent formatting weirdness. Have three backticks on their own line at the start and again at the end.) |
|
After I have #38 confirmed I'll go through this. |
@ncocacola are you still working with this disk? Can you run this script to look for the keyblock?
Save it as "findkeyblock.sh" and run like this: sudo bash findkeyblock.sh /dev/sdX where you replace "sdX" with the name of your WD disk on your system ('cat /proc/partitions' can help you find the name). |
Is this issue ever get resolved? I have a similar Oxford chipset as the OP's drive with 1TB WD. I ran reallymine and it all returns "key sector not found". I retrieved a few part of the disk with dd to search for the key starting bit "SInE" but didn't see any. The "dumpfirst" and "dumplast" files don't have them either. I also ran those shell scripts without success as in nothing found. The drive has not been format or initialized but it was taken out the case and put in another and plugged it in a windows machine and run a recovery scan before realizing it was encrypted. I make a backup with ddrescue before attempted the reallymine and other stuffs. The drive seems to work fine with no error reading it. Thanks for any help. |
The keyblock might be in the service area modules, or it might be on one of the ROM chips. To look in the SA modules, there is a tool called HDDSuperTool. You'll have to google it. If the keyblock were on the data area, it would be sector 1953524608 or 1953524616 (sectors are 512 bytes; first sector is 0). |
Thanks Themaddoctor. Search through those sectors and the modules dumped from HDDSuperTool and didn't find anything. Thanks. |
We can talk about the MBR after you find your key |
@themaddoctor the script you provided a few posts above, is it meant to be run on the HDD while it is in it's enclosure, or if you take it out and connect it directly? I ask because, in my case, the HDD has a rather strange layout when it's directly connected to the PC.
Also, is the SInE marker supposed to be sector/LBA aligned? I searched for the marker on the entire HDD but found no offset that is at the begging of the sector/LBA. |
Maybe run the script as instructed? |
Sorry, I did not see the mention in the PDF, but even so, I ran the script and it dumped a all zero block, because of the layout (and the fact that it dumps the last offset if no magic bytes found)... The last 37 sectors of the HDD look like this. The 4MB search area is before that, so it mostly looks at zeros. This is why I asked. |
Then to answer your question, the SInE is sector-aligned if your sectors are 512 bytes. It is not aligned to blocks of megabyte size. If the keyblock is not in the unencrypted portion of the disk at the end, then the next place to look is in the service-area modules. See my comments above. If it is not there, then the keyblock may be stored in one of the chips. I'm sorry, but I didn't make it this hard; blame WD. |
For a 4TB drive, I would expect the keyblock (if it is on the user area of the disk) at sector 0x1D1C0BB80 |
I have a 2TB WD MyBook whose SATA-USB bridge is dead. I can only get the drive recognised and initialised by OS X if I use this docking station, but since the data is decrypted, I can't really do much with it.
The chip on the bridge says Oxford Semiconductor OXUF943SE, but I understand that this is not supported/recognised by
reallymine
at the moment.Can I help in get this implemented in any way?
The text was updated successfully, but these errors were encountered: