Threat modeling Duress code data wiping

#mitigation #threatmodeling

The GrapheneOS data wiping function is in the news due to a customer now facing serious legal jeopardy for using it at a border crossing. I don’t know the details of the case not exactly how the duress feature works, but from public knowledge we certainly can talk about learning from this.

There must be better strategies and this is an excellent example of how threat modeling (typically applied to whole systems or components) is a great tool for evaluating design ideas to meet needs effectively. It’s also a great example of why it’s important to involve contributors beyond technical staff alone. Furthermore, it’s a great example of threats exceeding information security and privacy categories (e.g. STRIDE, LINDDUN), in this case the need to include legal threats.

Caveat: IANAL but I think this simplified analysis makes sense; IANAR but the suggested alternative following seems reasonable and at least worth considering as more choices for each individual to choose (I Am Not A Lawyer/Reporter). Immigration examiners have very broad discretion in general so the law does not strictly limit their actions as inspectors.

Here I’m only thinking of the immigration process as one common case. Here’s a simple threat model of the duress passcode initiated function:

While the technical aspects of the design, the residual legal consequences may be significant. Legal risk is very hard to mitigate by technical means, so what alternatives exist?

Now that we know the duress function includes legal risk we can only hope that others learn quickly and stop using this at immigration. To be clear, the feature may be great for other scenarios such as criminal coercion.

It’s important to keep in mind that non-citizens crossing borders typically have fewer rights, including great discretion by authorities so they are much more exposed: I won’t attempt to detail that, but thorough legal mitigation is especially important for them. For example, carrying a reset phone or no phone at all may be deemed suspicious enough for a rigorous examination and questioning or even refusing entry.

One more idea to strengthen these non-technical alternative mitigations is worth mentioning. To mitigate to a degree the potential suspiciousness of no phone or factory reset state, industry organizations or employers of reporters can institute best practice policy suggesting or requiring some of these precautions to document it as standard operating procedure.

As this case shows, threat modeling is the best way I know of to evaluate software features, including other stakeholders, including real world threats in situations where the technology interacts with human factors. Just one more reason to threat model.