frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

US citizen charged after GrapheneOS phone wipes during airport search

https://www.techspot.com/news/113236-us-prosecutors-charge-atlanta-man-after-grapheneos-phone.html
121•eecc•3h ago

Comments

Grimblewald•1h ago
VeraCrypt has a cool function which is a reserved space for a decoy OS.[1] Everything else registers as free space while decrypting to dummy volume. You make the dummy volume look lived in, and forget. provide dummy password, volume decrypts such that only dummy is accessible/readable. give proper password, real OS and FS decrypt and load.

Something like this may need to become the standars over duress pins which should be treated as a fallback or more extreme alternative. Right now, A single choice to reasonably and rightfully protect your privacy reuslts in jail time over something which likely wouldnt have resulted in any issues if superficial compliance was observed.

These goons, even if a branch of a facist regime, are ultimately burocrats with violent options to settle. They aren't doing forensics on your device etc. They have neither means nor knowledge to do so. They just need to tick their boxes. Did the phone unlock? tick. Did our spyware complain? no? tick. Overall appearance of compliance from person? yes? tick. free to go, next!

You just have to find ways to stay safe without agitating their workflow and all is well.

- [1] https://veracrypt.io/en/VeraCrypt%20Hidden%20Operating%20Sys...

gruez•1h ago
>VeraCrypt has a cool function which is a reserved space for a decoy OS.[1] Everything else registers as free space while decrypting to dummy volume. You make the dummy volume look lived in, and forget. provide dummy password, volume decrypts such that only dummy is accessible/readable. give proper password, real OS and FS decrypt and load.

See: https://news.ycombinator.com/item?id=49057812

Implementing it in a convincing way is harder than you think. Moreover if you're under the type of regime that will throw you in jail for not giving up a password, they're probably not going to let you off the hook because they can't definitively prove you have a hidden volume.

Grimblewald•55m ago
I could be wrong, but my understanding is that the dummy OS views the remaining space as legitimate and accessible free space. Using dummy directly is of course dangerous, as you might overwrite sectors with legitimate data, but also, you can access dummy os from secret. so you'd drive dummy from secret to prevent that but can load dummy as main if under duress and it looks fine. Browser, logged into various inconsequential things, random files for inoffensive memes and other human stuff in downloads folder etc. maybe an email account you've signed up to a few newsletters and e-stores that send spam logging in via an email client that auto-launches etc.

Done well, I see no reason it should raise redflags in routine stops, so unless you're being targeted (at which point you've got way bigger problems) it should just seem like you're a run of the mill person who does not use their device to its full capacity, which is the majority of users.

at some point, having any mitigations even present is a problem. At some point being met with a boot password at all is a problem that puts you on a list. I have no solution there other than to not go to those countries or keep dummy hot.

gruez•50m ago
If you read the linked thread, you'd see the reasons are:

1. SSDs (including phones) have TRIM/discard, so you need to disable it, otherwise the hidden volume would get wiped. You going out of your way to disable it is going to be suspicious.

2. Even if the above wasn't an issue, you can't really use the outer os to any meaningful extent, because you run the risk of overwriting the inner volume. That makes your decoy os suspicious. It's not definitive proof you have a hidden volume, but I doubt the authorities would care too much about that.

bigfatkitten•1h ago
Even in places where you can’t be compelled to hand over a password, attempting to deceive the cops will get you thrown in prison just as reliably as destroying evidence.
Grimblewald•1h ago
true, but in that scenario you're going to prison either way. If you legitimately use the dummy for daily driving and hidden for sensitive work, then it's better than nothing.

Obviously a good alternative is a dummy device but it carries similar risks, and the best option is to simply not go to authoritarian shitholes like the USA. Thankfully I've been able to avoid/push for US folks visiting us instead, but honestly the alternatives are as bad.

Its a shit situation where most reasonable actions carry real risks, its up to individuals to choose what is acceptable risk to them, but a dummy os you use as a daily driver for inconsequential work is, to me, an ideal midground.

AngryData•21m ago
Meanwhile cops can and do regularly deceive and lie to citizen and not only don't face any consequences but actively benefit from it.
teravor•50m ago
this will likely fail as block devices aren't dumb anymore, the firmware state will out the hidden volume. counting on the laziness/unsophistication of an adversary isn't a great move.

this problem may be solvable by a purpose-built abstraction where every write no matter what address will look identical to the firmware (naively, a randomized key-value map).

JSR_FDED•46m ago
What does “block devices aren’t dumb anymore” mean?
greyface-•18m ago
Modern SSDs are log-structured under the hood. The presentation to the host system as a random access block device is an abstraction on top of that, emulating the semantics of spinning rust. Inspecting the underlying log will reveal the location of the hidden area, even if it looks random when read linearly.
vlovich123•11m ago
I’m not so sure that log structure would reveal to you VeraCrypt style hidden volumes. It would only tell you about which blocks are allocated but the whole point is that VeraCrypt would allocate the whole space and within it have hidden space. You wouldn’t be able to infer (at least ethically, but you could lie) whether or not a hidden partition exists because you don’t know if the allocated block is present in the filesystem or was just allocated and never trimmed.
yencabulator•12m ago
SSD/NVMe keep track of what regions are wiped and which contain data that has to be preserved. To hide something in the seemingly-unused space, you have to turn off trim, eat the performance cost, and pretend you had a reason to have turned off trim.
bb88•45m ago
This is always been the dumbest thing about "hidden volumes": It relies upon your adversary not knowing about veracrypt's hidden volume. Which BTW, is plainly ADVERTISED on the web site. The second he knows you have veracode, he will ask for the other encrypted volume.

See also relevant XKCD:

https://xkcd.com/538/

crooked-v•4m ago
This seems like the kind of thing that would put US citizens in way more legal jeopardy than just using a secure phone with a long password, refusing to unlock it, and buying a new one if the officers involved confiscate it out of spite.
amanaplanacanal•1h ago
If they were searching for evidence of a crime, what crime was it?
iAMkenough•1h ago
The crime of disagreeing with the President.
Freedom2•1h ago
That isn't a crime in the US thanks to the first amendment.
iAMkenough•1h ago
Doesn't mean they won't still dump your phone and detain you as long as they can if they see a meme they don't like.

They can detain you for days if you're not white. (Kavanaugh Stop)

_carbyau_•26m ago
> That isn't a crime in the US thanks to the first amendment.

Technically correct is not the same as practically correct.

wildzzz•42m ago
They claimed they were looking for CSAM. There's a border search exception to the fourth amendment that says CBP can search your phone at the border. You aren't required to give them a password (but possibly a fingerprint or facial scan) but they can temporarily sieze it (and do god knows what to it).
Guvante•1h ago
How are they going to prove there was evidence of a crime? While destruction of potential evidence does introduce a certain amount of leeway that doesn't allow going from absolutely nothing to "evidence was on the wiped device".

Most previous court cases involving encrypted devices have required substantial proof that the encrypted device contained incriminating evidence. To be clear "you sent this illegal thing from your house" levels of evidence.

It mostly seems inept, if you are going to push to expand your powers you do it on strong cases where you know what happened. Doing it on weak cases like this gives a judge an opportunity to shut down that without giving you a chance of a meaningful conviction and without that you won't get any benefits...

gruez•57m ago
>How are they going to prove there was evidence of a crime?

They don't have to, only that you destroyed evidence. That's why many people get prosecuted with "obstruction of justice" rather than the actual crime.

>While destruction of potential evidence does introduce a certain amount of leeway that doesn't allow going from absolutely nothing to "evidence was on the wiped device".

So if someone was doing insider trading, and the SEC came knocking, then immediately afterwards they start burning every document they have and microwaving their computers, do you think they should get off the hook? Surely you must think, even if the authorities or society can't a priori know you were guilty, the subsequent activity should be illegal? Note this isn't the same as banning burning documents or microwaving computers, only doing so after you're aware there's an ongoing investigation.

fluidcruft•53m ago
Destroyed evidence of what?
gruez•18m ago
Destroyed materials that might be relevant to an investigation that you know exists.
comrade1234•57m ago
So let them just sieze your device. Don't unlock. You'll get it back in a few months.
teravor•53m ago
maybe write down the duress pin somewhere in your wallet. let them make their own assumptions and erase the alleged evidence on their own.
flerchin•42m ago
I just wouldn't want my dick pics to get out.
sfRattan•39m ago
Ultimately, when you choose to enter a duress PIN that will wipe your device, you have to recognize that choice may have legal consequences. I don't like the amount of power our government has at the national border when it comes to detaining and pressuring citizens, but our Constitution explicitly grants it at least some of the power it now exercises in that context.

If your threat model includes US state actors at the national border, then your security practices need to account for the confiscation of your device at that border without requiring you to willfully wipe the phone and (in the eyes of police and prosecutors) destroy evidence.

That means:

1. Don't travel with anything you can't afford to lose on device. This means setting up travel-specific password managers and hardware keys for a subset of your accounts that you absolutely need to access while abroad, and being prepared to reset those passwords and disable those hardware keys very quickly once home.

2. Review past legal cases against travelers and identify what behaviors the government considers worthy of prosecution or harassment. Your secure setup must function without needing you to engage in those behaviors, even if it is less convenient as a result. This isn't perfect, as the government may decide some new behavior is prosecutable.

3. Consult with a lawyer and review your security procedures from a legal standpoint. All of the above is technical and practical advice, not legal counsel and no substitute for it.

We Americans are fortunate to carry powerful passports and enjoy relatively easy international travel but, for better or worse, that velvet glove covers an iron fist we would be foolish to forget or ignore.

dathinab•36m ago
the funny part is he didn't enter the pin he gave it to them and they entered it..., not sure if it makes any difference but there is a certain irony to it that it was the non warrant based search actions (which might be legal at the border) which lead to the erasure of data
sfRattan•28m ago
Lying to a federal officer is a crime, IIRC, and if the lie results in destruction of evidence, the person who told the lie is probably accountable for both crimes. This isn't a lie with plausible deniability: you have to set a duress PIN, understanding what it does, and then communicate that PIN instead of the unlock PIN.

A duress PIN to wipe the device don't exist to absolve the owner of liability... It exists for when compromising the device could get people the owner cares about killed or disappeared and the owner considers their own liability, disappearance, or death a preferable outcome.

It is an extreme solution for extreme scenarios. People need to be sober in weighing its use.

ChrisArchitect•35m ago
[dupe] Discussion: https://news.ycombinator.com/item?id=49024436
drweevil•30m ago
While I like the idea behind GrapheneOS, I'd rather not place myself in jeopardy of some ridiculous charge like this one. I prefer to travel with a travel device, some inexpensive phone and/or laptop that contains nothing interesting. If they then wish to take it from me because I won't unlock it, then have at it! That said, the situation with respect to our Bill of Rights at the border has gotten ridiculous.
crooked-v•2m ago
The "duress PIN that nigh guarantees destruction of evidence charges" functionality is extremely stupid, but otherwise GrapheneOS on a flagship phone is your best bet for an Android phone that can't be cracked by low-effort attempts, government or otherwise.
dofm•30m ago
Alas the best advice remains: don't cross an international border with anything you wouldn't want a poorly-paid, power-drunk paranoid engaging in motivated reasoning to see.

A well-informed person will know this includes re-entering their own country.

The next thing you should know is how large the zone is in which border police have meaningful jurisdiction. Varies by country.

It is amazing how many people will try silly stuff like travelling for work without a visa.

incompatible•28m ago
One of the GrapheneOS people (I think) suggested keeping a bit of paper in your wallet with the duress pin, perhaps thinly disguised. Then the cops could try it on their own initiative. I suppose they'd become aware of that trick eventually, but then they wouldn't be able to use all those other genuine pins they find.
Verdex•6m ago
This is an interesting idea, but was that GrapheneOS person a lawyer giving legal advice?
MikeNotThePope•23m ago
There needs to be a simple feature to wipe your phone and then restore to a point and time. That’d be really convenient.
anduril22•22m ago
As a citizen the safest way is to just refuse. They can’t refuse entry. Not the same for LPRs.
siilats•8m ago
Having just gone through having to give pin to cbp you just need the apps on your phones to have separate pins so when police unlocks it, they cannot unlock WhatsApp afterwards. Faceid or unique pin. Problem is your phone pin overwrites Face ID
DanHulton•1m ago
If your threat model means you can’t afford for border security to view your device, wipe the damn thing yourself before crossing the border and restore it from an encrypted online backup on the other side.

You’re just carrying a blank phone that you intend to set up and use later, and they can’t force you to install your backup onto a phone.

Now, this is sus as hell, and you’ll probably draw all kinds of extra attention, but if border security wants access to your phone in the first place, you’re already in a weird place.

teravor•4m ago
I don't believe having trim disabled even helps here. smart firmware sees the same address being written to therefore it reassigns it to a different cell. it's a de facto trim.

trimming merely lets the firmware know which mappings it can discard without the reuse of the same address. having more cells available for mapping and wear leveling helps it make better decisions when the SSD starts getting full.

mexicocitinluez•45m ago
> So if someone was doing insider trading, and the SEC came knocking, then immediately afterwards they start burning every document they have and microwaving their computers, do you think they should get off the hook?

Apples and oranges. They presumably already have some sort of evidence in order to get a warrant and are under criminal investigation.

According to the article the agents said it was just a normal part of screening.

gruez•17m ago
>They presumably already have some sort of evidence in order to get a warrant and are under criminal investigation.

What if there was no warrant, and the SEC just came to ask questions?

Guvante•41m ago
They need to prove you destroyed evidence, you have the mens rea component with the deceptive pin code but the defense can simply plainly say they didn't want the police to read their private device.

Your example is fabricated since the justice department didn't even bring forward a specific crime they believe was committed here.

If they charged him with a crime and had evidence his device had evidence of that crime (even if in reality it didn't) that would be a more interesting question.

But again where is the crime?

gruez•19m ago
>with the deceptive pin code but the defense can simply plainly say they didn't want the police to read their private device.

That's as convincing as saying you burned all the documents because you don't want people who break in to read all your financial records. It just happened to start after the SEC came knocking

tamimio•16m ago
You have to prove it is an evidence of a crime to start with, speculation is not a fact. My property, my business, i can smash the phone and no one has anything to do or say unless there’s an undeniable fact that there’s an evidence there and it got destroyed, else, it’s no one’s business.
gruez•10m ago
>Note this isn't the same as banning burning documents or microwaving computers, only doing so after you're aware there's an ongoing investigation.
dannyw•47m ago
The career prosecutors at the DoJ are not the same as a couple years ago. I hope this case ends the same way as the sub sandwich assault.
octoberfranklin•11m ago
If your legal system depends on the benevolence of prosecutors, you've already lost before it began.

Attorneys are supposed to be adversarial. The system's soundness shouldn't depend on anything more than them trying to win and not doing anything illegal.

Before "prosecutor" became an elected/appointed office, prosecutors were independent contractors, hired for a single case only and serving at the pleasure of the Grand Jury. The Grand Jury's job was to decide how to spend the public prosecution budget. "Indictment" meant exactly that "prosecuting this person is a good use of tax dollars" and nothing more. We should go back to that.

crooked-v•6m ago
The comment you're replying to was focused on prosecutorial incompetence, not benevolence.
octoberfranklin•1m ago
Whether to prosecute or not is not an objective question of competence.
malcolmgreaves•5m ago
What law says it’s illegal to lie when you’re not under oath during a court proceeding?
sfRattan•2m ago
18 U.S. Code § 1001 [1]

[1]: https://www.law.cornell.edu/uscode/text/18/1001

dkdcdev•1m ago
https://www.justice.gov/archives/usam/criminal-resource-manu...
digitalPhonix•2m ago
> Lying to a federal officer is a crime

That doesn’t pass the sniff test

bubblethink•31m ago
>destroy evidence

Who said it was evidence? Did a judge authorize or issue a warrant to collect said evidence? Absent that, it's just your property, and you can do with it as you please.

theturtletalks•28m ago
Yes this is different than when law enforcement serve a warrant and the defendant wipes his computer before the agents can get a hold of it. In that case the warrant covers what you destroyed as evidence.

Though during traffic stops, if a defendant disposes of his drugs while on the run, that can also carry a charge of destroying evidence even though no warrant was issued.

IANAL

stemlord•17m ago
Hm but the drugs are only evidence because they're illegal? So the phone owner only destroyed evidence if the phone contained something illegal, but innocent until proben guilty?
bitmasher9•21m ago
You’re way off about when it’s illegal to start destroying your property that the police want to seize during an investigation.
treetalker•20m ago
To me it’s all quite analogous to walking up to, but not crossing, a border with, say, a fruit that’s legal to possess on the side you’re on, but not on the other side, and either eating or throwing away that fruit before crossing.

“Hey! I saw you holding that Mexican pepper in Mexico, and then you threw it in that Mexican trash can before crossing into Texas!”

“Yeah, so?”

nazgul17•1m ago
But that's not what happened here. Here, you were trying to bring the pepper over, got inspected and somehow got rid of it because you were able to be found out.
reenorap•15m ago
Have the duress PIN on sticker on your phone. Maybe put it backwards and don’t say anything to border patrol. Have them try it out and erase the phone and then you can legitimately say you didn’t do anything and they did it themselves.

PGSimCity - How PostgreSQL Works

https://nikolays.github.io/PGSimCity/
57•jonbaer•1h ago•7 comments

Decker, a platform that builds on the legacy of Hypercard and classic macOS

https://beyondloom.com/decker/
221•tosh•7h ago•51 comments

French firefighters face 'pyrocumulonimbus' for first time

https://www.france24.com/en/live-news/20260726-french-firefighters-face-pyrocumulonimbus-for-firs...
176•saaaaaam•7h ago•79 comments

We have proof automation now

https://www.imperialviolet.org/2026/07/26/zstd-lean.html
66•zdw•4h ago•9 comments

Teaching Kids Forth

https://gracefulliberty.com/articles/teaching-kids-forth/
46•rbanffy•3h ago•12 comments

Show HN: Physically accurate black hole you can put in your room

https://blackhole.plav.in
9•aplavin•3d ago•0 comments

Simulate cassette tape audio profiles using FFmpeg

https://github.com/AARomanov1985/Audio-Cassette-Simulation
69•xterminal•5h ago•36 comments

Design is compromise

https://stephango.com/design-is-compromise
191•ankitg12•9h ago•73 comments

Introduction to Data-Oriented Design [pdf]

https://www.gamedevs.org/uploads/introduction-to-data-oriented-design.pdf
103•tosh•7h ago•32 comments

US citizen charged after GrapheneOS phone wipes during airport search

https://www.techspot.com/news/113236-us-prosecutors-charge-atlanta-man-after-grapheneos-phone.html
121•eecc•3h ago•65 comments

Htmx 4.0, the first JavaScript library to release exclusively on the Game Boy

https://swag.htmx.org/en-cad/products/htmx-4-the-game
355•rcy•13h ago•110 comments

I Championed Prediction Markets. Look What They've Become

https://newsletter.platypuseconomics.com/p/i-championed-prediction-markets-look
12•NomNew•1h ago•17 comments

Plasma Tunnels Reveal How Dying Satellites Fall to Earth

https://spectrum.ieee.org/space-debris-atmosphere-burn-up
40•marc__1•5h ago•23 comments

Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs

https://github.com/gmrandazzo/CheapSecurity
102•zeldone•9h ago•22 comments

Fonts In Use – Find out where a font is used

https://fontsinuse.com/
9•open_•1h ago•0 comments

How to Block Some of the Bots

https://nochan.net/b/Internet-Crap/20260606-How-To-Block-Some-Of-The-Bots/
80•Bender•7h ago•87 comments

Show HN: Port Zero – how I learned to stop worrying and love PORT=0

https://portzero.net/
6•octopoc•1h ago•2 comments

How to Write English Prose

https://thelampmagazine.com/blog/how-to-write-english-prose
68•geneticdrifts•8h ago•36 comments

Go Analysis Framework: modular static analysis by go team

https://pkg.go.dev/golang.org/x/tools/go/analysis
178•AbuAssar•13h ago•39 comments

How AST-grep Rewrote Tree-sitter in Rust and Made It 30% Faster

https://astgrep.com/blog/tree-sitter-rust-rewrite
67•herrington_d•7h ago•10 comments

The New AI Superpowers: Focus and Followthrough

https://www.rickmanelius.com/p/the-new-ai-superpowers-focus-and
142•mooreds•12h ago•44 comments

The relay market powering token resellers and fraud

https://vectoral.com/blog/token-relay-market
151•mlenhard•10h ago•92 comments

I learned PCB design, 3D printing and C just to listen to music

https://pentaton.app/blog/2026-07-12-introducing-pentaton-lp/
172•interfeco•3d ago•35 comments

Kill The Cookie Banner

https://killthecookiebanner.eu/
823•rapnie•13h ago•400 comments

I wanted a clock that never needed setting. Things escalated

https://arstechnica.com/gadgets/2026/07/i-wanted-a-clock-that-never-needed-setting-things-escalated/
47•lee_ars•3d ago•42 comments

The Usefulness of Useless Knowledge (1939) [pdf]

https://faculty.lsu.edu/kharms/files/flexner_1939.pdf
17•jxmorris12•3d ago•1 comments

History of John Backus's functional programming project [draft]

https://softwarepreservation.computerhistory.org/FP/
9•cwbuilds•2d ago•1 comments

Jimothy the raccoon has a rare spinal condition. Here's what that means

https://www.popsci.com/science/whats-jimothy-raccoon-condition/
100•speckx•5d ago•52 comments

Show HN: Reverse Minesweeper

https://sunflowersgame.com/
143•pompomsheep•12h ago•49 comments

Using sed to make indexes for books (1997)

https://www.pement.org/sed/make_indexes.txt
49•TMWNN•3d ago•9 comments