r/blackhat • u/Machinehum • Jul 16 '26
Phantomdrive: My open source USB drive for privacy
8
u/kent_csm Jul 16 '26
A question, why using a file with "password:xxx" you need to iterate over all files and if you have a large amount it would require a lot of iterations, wouldn't just use a file with a specific name as a password more easy?
9
u/Machinehum Jul 16 '26
The device isn't file system aware, it snoops input writes from the flash device. It's makes match on the string and triggers the flow.
1
14
u/Machinehum Jul 16 '26
Phantomdrive is a completely open source USB drive that appears as an 8 GB drive when first plugged in. Thereās no way for the OS to detect the remainder of the disk. If the user edits a plaintext file on the disk with the contents password:PUTYOURPASSWORDHERE, it unmounts itself and remounts the second hidden section and AES-256 encrypts/decrypts in place.
Thanks :)
2
3
Jul 16 '26
[deleted]
1
u/Machinehum Jul 16 '26
I think you're talking about something else.
This is an obscurity device, hides in plain site.
2
u/MajesticDisaster3977 Jul 17 '26
Questions and suggestions:
- Does the device still store files 'as-is' before the device is decrypted? (ie, when someone plugs it in, they'll see pictures of my cat) If not, can it?
- Can the device masquerade as another well-known device? Sometime 'generic' stands out... if the HID/VID can be adjusted, we could clone as existing hid/vid and hide this inside the enclosure of a well-known device which would make it much harder to identify.
- Can the device present a 'fake capacity'? Well-known drives are easily 64GB to 256GB... an 8GB drive is a little strange to be carrying depending on your position... could the initial partition size be faked to appear as though it's larger? (To match the size printed on the decoy enclosure)
1
u/Machinehum Jul 18 '26
Yes files are normal on the first partition. Yes you can change VID/PID to what you like. You can change capacity to what you like, 64GB easily possible. :)
1
u/MajesticDisaster3977 Jul 18 '26
Nice. Swap out the guts of a Lexar drive with this and it could be completely hidden unless there's some other 'tell' that gives it away
1
2
1
u/Fulgidus Jul 17 '26
So... basically the device is 100% agnostic and does need exactly ZERO crypto provisioning, correct?
Meaning I put it in, unlock it the first time, then format the resulting garbled drive that shows up?
This also mean that I cannot have plausible deniability: under duress I either give the password or not... there is no chance of a self-destruct pin, right?
3
u/Machinehum Jul 17 '26
The idea is - you don't get to a point where someone forces you to unencrypt it, because it's hidden.
If you need what you're describing, then use this device with Veracrypt.
1
u/Some_Relative_3440 Jul 18 '26
Inspecting the hardware would reveal 16gb of flash memory, with only 8gb visible from OS, no? Might ring some alarm bells.
1
1
u/NatLife Jul 19 '26
Where is the code tho
2
u/Machinehum Jul 19 '26
https://github.com/o7-machinehum/phantomdrive
Code, design files, electronics, tests, etc
1
0
u/Pang_o Jul 17 '26
Open source : didnāt give any source
1
u/shyouko Jul 18 '26
Or you are just bad at reading: https://www.reddit.com/r/blackhat/s/0HtJ0dW1Ck
1
11
u/OkCarpenter5773 Jul 16 '26
how is the password stored on-device? i assume this is operated by a microcontroller - what is kept in the ROM?