3 ms·
If so, it's a recipe for disaster. Easy enough to booby trap discreetly to delete things if not accessed the 'correct' way. Maybe this is to show that this ap
by bennyp101 5y ago
If so, it's a recipe for disaster.
Easy enough to booby trap discreetly to delete things if not accessed the 'correct' way.
Maybe this is to show that this approach is so crazy that it could never work (hence the written reports to gather data), and that they do
actually need <insert some crazy power> here in order to do it properly because "we tried to do it the nice way and it didnt work"
- rapht 5y ago> Easy enough to booby trap discreetly to delete things if not accessed the 'correct' way. Exactly! If I had anything to hide, I'd make sure to give them the 'correct" password that will wipe out selected data from the device.
- yawaworht1978 5y agoCan you elaborate how you would do that on a mobile device, laptop/pc? Would you run different partitions? Can it be done by giving them one wrong password which will trigger a disc erasure? Serious question, as I wouldn't know how to do that.
- klyrs 5y agoThe easiest solution I see is to write a custom screen-lock for Linux. That could be defeated by a simple reboot, but the hapless roommate in this scenario wouldn't know to do that. For example, insert your filesystem-nuke (perhaps with an attempts counter) around line 78 of main.rs here https://github.com/akermu/rlock https://github.com/akermu/rlock
- hatboxreappoint 5y agoNot quite the same but a hidden veracrypt volume [0] would easily circumvent this law. [0] https://veracrypt.eu/en/docs/hidden-volume/ https://veracrypt.eu/en/docs/hidden-volume/
- MertsA 5y agoLook into PAM configuration. In particular I think you'd probably want some combination of pam_faillock and pam_exec. pam_exec can be used to call some arbitrary script to wipe your disks and possibly be extra evil and call flashrom to even wipe the firmware beforehand.
- d110af5ccf 5y ago> wipe your disks Actually wiping the disk would take way too long. Assuming that you're running Linux and that all connected drives are fully encrypted: overwrite all keyfiles in a secure manner (ie flushing all caches and etc), write random garbage to the entirety of RAM, and trigger the equivalent of `halt -ff` (note the double --force). Potentially of interest: `__noreturn machine_real_restart` in reboot.c (https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5c4c173d3639d4772966/arch/x86/kernel/reboot.c#L97 https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5...) Bonus points for additionally finding a way to trigger the "secure erase" firmware feature of all attached devices as part of the above sequence. That's likely to prove a bit tricky though since that feature is generally locked out (for obvious reasons) once you leave the bootloader.
- MertsA 5y agoBy "wipe your disks" I meant issue a secure erase assuming you have a SSD like Intel's where it would overwrite an encryption key and be done in short order. The contents of RAM in this scenario shouldn't be particularly vulnerable. If they're trying random passwords on the actual machine without any attempt to preserve the disks beforehand there's zero chance they're about to take the machine apart and extract what's left in RAM before it's gone. >Potentially of interest: `__noreturn machine_real_restart` in reboot.c Just write "b" to /proc/sysrq-trigger, it'll immediately trigger an ungraceful reboot without trying to unmount filesystems or flush the cache.
- RealStickman_ 5y agoHow exactly would you create this booby trap? I'm not aware of anything that could do that, apart from VeraCrypt hidden volumes maybe.
- coolspot 5y agoBoth iOS and Android have a setting to wipe the device after N unsuccessful attempts to enter passcode.
- bccdee 5y agoDeleting probably wouldn't be the best approach, because (a) the drive could just be duplicated before-hand, (b) they'd know you'd done it. Better just to buy a bunch of USB sticks, wipe 'em all with random noise, use a couple for mundane files, and use a couple for sensitive files — deniably encrypted so as to look like random noise. Then, you can plausibly deny that they contain any sensitive files. The real issue here is that we shouldn't need to use these sorts of measures. No one will do this unless they're a software professional with something to hide, and "having nothing to hide" doesn't mean you're not still entitled to privacy.
- DistressedDrone 5y ago> (b) they'd know you'd done it. That depends entirely on how exactly you do it. And knowing something and being able to prove it are two very different things.
- philipov 5y agoIt's fine, just have the legislature pass a Bill of Attainder that declares the thing you know is a proven fact, and you're peachy. It worked great in the Trial of Thomas Wentworth.
- tablespoon 5y ago> Better just to buy a bunch of USB sticks, wipe 'em all with random noise, use a couple for mundane files, and use a couple for sensitive files — deniably encrypted so as to look like random noise. Then, you can plausibly deny that they contain any sensitive files. You're creating a situation where you have a set of encrypted and non-encrypted devices that are indistinguishable, and expecting the police to let you off. But there's nothing stopping someone with only encrypted devices to claim the same thing. I'd be worried that approach would fail either by 1) the police calling your bluff, or 2) indefinitely holding you in jail for contempt of court until you decrypt a drive that has un-decryptable random data.
- dorgo 5y agoEventually it will become illigal to have randomly generated data stored somewhere.