r/programming • • Jul 14 '19

Australian programmers could be fired by their companies for implementing government backdoors

https://tendaily.com.au/amp/news/australia/a181206zli/if-encryption-laws-go-through-australia-may-lose-apple-20181206
3.6k Upvotes

414 comments sorted by

View all comments

Show parent comments

191

u/jarail Jul 14 '19

Only if the company catches you adding the backdoors. Last I checked, the law can obligate employees not to disclose it to their employer. Government just needs to ask the engineer who else they need to coerce, eg a dev, code reviewer, QA, and manager.

Needless to say, I wouldn't want this law anywhere near one of my projects.

0

u/[deleted] Jul 14 '19

[deleted]

71

u/Googol30 Jul 14 '19

0

u/[deleted] Jul 14 '19

[deleted]

4

u/01binary Jul 15 '19

Blessed be the fruit.

49

u/[deleted] Jul 14 '19 edited Jul 14 '19

Let's all have personal warrant canaries, it'll be fun !

Edit : it's actually illegal in Australia as per another comment below...

6

u/bch8 Jul 15 '19

What is a personal warrant canary?

12

u/wildcarde815 Jul 15 '19

Basically you place a statement on your service / site / etc stating you have never been asked by law enforcement to do X. If the canary is removed it's implied that X has happened.

1

u/bch8 Jul 15 '19

Thank you

36

u/cballowe Jul 14 '19

What happens if the companies don't have any engineers in Australia with the authority to commit the necessary changes? Even giant companies tend to have much smaller teams of experts reviewing any changes to crypto focused code and frequent audits/fuzzing/etc. Getting something through without members of that team involved would be difficult.

The government approaching a random engineer and demanding a particular back door wouldn't get very far. (And if the internal controls are so weak that they could get it done, they're also at risk of someone writing a system to skim fractions of a cent from transactions.

62

u/thedonkeyvote Jul 14 '19

In the lead up to this one of our politicians said “The laws of mathematics don’t apply here”, so I think it’s reasonable that their understanding of this doesn’t go that far.

8

u/AberrantRambler Jul 15 '19

Well if we’re not going to be following the laws of math I’ll give you a way better deal than the engineer down the street - if you pay me 150% of the total budget then I’ll do it in 50% of the time it could possibly take.

That’s over twice the productivity for less than half the cost, if my non-mathematical calculations are correct.

→ More replies (5)

10

u/OtherwiseDevice Jul 15 '19

In the company I work for, a change like this going unnoticed would be pretty nuts and we are a big multi billion dollar corporation with thousands of engineers

10

u/Aetheus Jul 15 '19

Not saying this isn't possible, but I imagine they'd need to "recruit" more than a single engineer to pull it off at most companies.

Between Git history, CICD logs, and code reviews ... Everything can be inspected by somebody, and has to be approved by somebody else.

15

u/isavegas Jul 15 '19

You don't target the developers. You target DBAs, DevOps, and datacenter employees. You can do anything from patching CI images to inject code during the build phase to installing/replacing whatever sneaky hardware the government hands you. You wouldn't even need to know what's in it or what it does, much less know how to program a backdoor.

→ More replies (2)

0

u/[deleted] Jul 15 '19

[deleted]

5

u/Ma1eficent Jul 15 '19

Please, you don't put it in the normal codebase, you write something that edits the package on the machine so git history and centralized codeviewing places look perfectly normal. You deploy manually and it takes an actual thorough audit of the machines you've deployed to in order to discover your backdoor. And that's just basic covering of tracks.

1

u/wildcarde815 Jul 15 '19

assuming you want to implement it competently.

2

u/Ma1eficent Jul 15 '19

Submitting to code review is disclosure and illegal though.

3

u/etcetica Jul 15 '19

Not to mention I - as another engineer who might be in the dark about this - comes across this code at some later point and go "what the fuck is this shit?! There's no unit tests for this and no documentation, no feature requirements or ticket in JIRA, and a sketchy review trail?

god I love newbies

7

u/not_a_reposted_meme Jul 14 '19

Code reviewer haha.

1

u/AndyDentPerth Aug 06 '19

I worked on a 3D CAD product for an Australian company. We couldn't even commit code without it passing manual review, as well as the unit test suite. Yeah, some code reviewers exist.

→ More replies (2)