Uncovering the hidden patterns of the consumer electronics industry - DeviceCode
S02:E01

Uncovering the hidden patterns of the consumer electronics industry - DeviceCode

Episode description

“The consumer electronics industry works differently than people actually think”, says Armijn Hemel creator of DeviceCode. Behind the different brands and casings is often the same hardware, created by a single Original Design Manufacturer. But the disclosure of security vulnerabilities is mostly focused on single devices. So when a CVE is published for device A from vendor X it conceals that the security flaw may also exist in a similar device of a different vendor. DeviceCode collects structured technical information about consumer devices to reveal these hidden patterns of the industry in order to improve security.

Demystifying the electronics industry can also be a step toward increasing the local production of electronics. Reasons to opt for local manufacturing are the vulnerability of global supply chains, environmental impact, worker rights, software security and preventing backdoors. A better understanding of the industry could inspire a bottom up approach to a more diversified electronics industry.

Links
DeviceCode repositories:
Code
Data

NGI Zero projects
DeviceCode
And also mentioned: VulnerableCode

If you are interested in Armijn’s knowledge about Open Source Software supply chain management (briefly mentioned at the end of the podcast) watch the NGI Zero webinar with Armijn: Open Source in (Consumer) Electronics Supply Chains (Episode 1 of a 4-part series The Ins and Outs of Open Software Supply Chain)

Other projects and talks mentioned
The Open Wrt hardware device: OpenWrt One

Talks on the hardware supply chain by Andrew “bunnie” Huang
Supply Chain Security: “If I were a Nation State…” at BlueHat IL, 2019.
An Alternative to the American way of Innovation at TEDxPickeringStreet.
NGI Zero webinar about IRIS: (Infra-Red, In-Situ) inspection of silicon.

Download transcript (.srt)
0:00

Welcome to the NGI Zero podcast where we talk to the people who are building the next generation

0:11

internet.

0:12

I'm Ronny Lam.

0:14

And I'm Tessel Renzenbrink.

0:15

We're both from NLnet, a foundation which supports people who are working on free and

0:20

open internet.

0:21

For season two of this podcast, we will be focusing on digital sovereignty through free

0:26

and open source technologies.

0:29

Our guest today is Armijn Hemel.

0:31

He is the owner of Tjaldur Software Governance Solutions and a technical expert in licensed

0:36

compliance engineering.

0:38

He has worked on many projects, some of which have received NGI Zero funding, but the one

0:43

we will be talking about today is DeviceCode, a project that provides structured technical

0:49

information about consumer devices.

0:52

Welcome, Armijn, and thank you for joining us.

0:56

My pleasure to be here.

0:58

We have three question devised to get to know who you are.

1:01

And the first one is, who is the cooler robot?

1:04

Marvin the Paranoid Android or R2D2?

1:07

Ah Bender from Futurama, obviously.

1:12

I'm not surprised you're going for the third option.

1:15

Which license is better?

1:17

The GNU General Public License or the MIT license?

1:21

That really depends on your point of view and what you're trying to achieve.

1:26

They both have their place.

1:28

Pick your favorite operating system, NixOS or Fedora?

1:33

I really don't care as long as it gets the job done.

1:36

So for me, it really is just a tool.

1:38

I'm not really attached to one or the other.

1:44

So as long as it gets the job done, I'm happy.

1:46

For me, computers are just a tool to get stuff done.

1:49

I'm happy for your very diplomatic answers.

1:53

I've been working with lawyers for a long time.

1:55

So that's something that I picked up fairly quickly.

2:02

Let's go to your project.

2:04

Can you tell us something about DeviceCode?

2:07

So DeviceCode is basically a project to index all kinds of information that other people

2:15

on the internet have crowdsourced.

2:17

It's basically information about what is inside consumer electronics devices such as routers,

2:24

wireless network, things, IP cameras, tablets, you name it.

2:31

So that information is basically locked away in all kinds of wikis that people have been

2:40

creating for quite a long time.

2:42

But the biggest problem is that they are...

2:46

So all the information is...

2:48

How should I say that?

2:51

It's spread across quite a few different wikis.

2:56

It's not easy to search.

2:59

They are all suffering from errors, human input errors.

3:03

And so I'm basically trying to consolidate that information and making it easier to unlock.

3:09

So luckily, all of the information on those wikis are either public domain or under Creative

3:14

Commons.

3:16

So the licenses allow me to do that.

3:17

So basically, it's aggregating information from wikis, from various wikis with information

3:24

about consumer electronics devices, consolidating the information and then providing some sort

3:30

of search interface for it.

3:34

So that's the technical part of it.

3:37

The motivation is different.

3:40

Because yeah, exactly.

3:41

That was what I was going to ask.

3:43

Why?

3:44

Why do we need it?

3:45

So I think that a lot of people are completely unaware of how the consumer electronics industry

3:52

works.

3:53

So they are thinking that when they buy a device from a certain manufacturer, that there

3:58

is a factory with people wearing factory suits with the name of the manufacturer on there,

4:06

making only those devices.

4:07

But that's not how it works.

4:09

Basically a lot of the stuff that you're seeing here in the shops is made in some factory,

4:15

either in China or increasingly Vietnam.

4:19

And where the only thing that is happening is that a label is put on there and a different

4:24

casing and a different package.

4:27

And basically, that's it.

4:29

The core of the devices is usually shared with other devices from other manufacturers.

4:38

So what companies do is they basically contract a so-called original design manufacturer or

4:44

ODM to say like, hey, make this device for us.

4:49

And the brands that you see here, they don't have a lot of influence on what actually is

4:56

installed on the devices.

4:59

So a lot of the people who are, when you go into a shop and you think like, I'm going

5:03

to buy this device from this very reputable brand and I'm not going to buy it from that

5:07

other brand because I don't trust them.

5:10

Usually what you're seeing is like, well, no, it could very well be that those devices

5:15

are exactly the same or very similar.

5:19

And you're basically just enchanted.

5:21

You're being tricked by marketing.

5:25

Because a lot of the devices are basically the same.

5:28

So one funny story is when I was in Taiwan, I visited an ODM there and I saw basically

5:35

boxes of different companies that I know were competitors next to each other.

5:40

And they said, yeah, it's all the same device, just a different casing.

5:43

They're all made here or actually in the factory in China, but they were all made by the Taiwanese

5:49

company.

5:50

Is DeviceCode about hardware, software or both?

5:55

So it's a little bit of both.

5:58

I'm basically trying to index as much information as possible, but the focus is mostly about

6:04

hardware.

6:06

So what chips are being used, which manufacturers are involved.

6:12

But if there is software information available, such as from a boot log, then of course I'm

6:16

going to parse the boot log and see like, hey, this is what I can discover.

6:20

Like, hey, it's this version of Busybox, this version of IP tables, this version of the

6:24

kernel built with this particular SDK and so on.

6:28

Because then I can start comparing devices and see which ones are similar.

6:34

And if I know if they are similar, then I can maybe reason about those devices.

6:41

If I then know like, hey, device A has a CVE associated with it, which ones are fairly

6:48

similar to device A?

6:50

So I can then also see it like, well, perhaps that would be a good candidate to test as

6:56

well for the presence of that CVE.

6:58

Yes.

6:59

So can you go a little bit further into that?

7:02

That it has a lot to do with security, that you want to delve up all this information?

7:06

Well, so one of the biggest gripes I have with the system is that CVEs are very much

7:14

focused on single devices and single manufacturers.

7:19

So they're saying like, device A from vendor X is vulnerable, but it doesn't take into

7:26

account that the device might be similar to another device.

7:31

So people are basically going like, oh, but I don't have that device from that vendor.

7:35

I have a different device from a different vendor, not understanding that it is the same

7:39

device.

7:41

So they get some sort of false sense of security.

7:47

So that's one of the reasons why I wanted to do this, just to uncover the hidden patterns

7:55

that are present in the consumer electronics industry to see, hey, if we know that one

8:03

device is vulnerable and we can find out which ones are coming from the same factory with

8:08

the same software, then we can also say the other devices are also vulnerable and should

8:13

be fixed.

8:14

So in the context of CRA, that could be quite important.

8:17

CRA?

8:19

So the Cyber Resilience Act, it's from the European Union, that is some law, some legislation

8:27

I must say, that should hopefully improve the security of all kinds of devices that

8:32

are coming onto the EU markets.

8:36

So one very prominent reason for you to do this is security.

8:40

Are there also other reasons, maybe for people who want to fix things themselves or?

8:46

Of course, I enjoy digging into data.

8:49

So that's also a motivation to see, hey, how are we being tricked into buying a certain

8:55

device when you can also get the same device somewhere else from a different manufacturer?

9:01

That is also fun.

9:02

But I also like to see, how should I say this?

9:07

I think that for people who want to tinker, it could also be quite important to see if

9:14

they want to buy a certain device.

9:16

That is also an angle for replacement firmwares to see if a device can actually run a certain

9:25

replacement firmware.

9:26

That could also be fun.

9:28

But yeah, my main focus still is security.

9:32

But there are other reasons why other people would want to use this.

9:36

And of course, I don't know.

9:37

So that's the fun thing about it.

9:39

You don't know how other people will use it.

9:42

This season will be about digital sovereignty.

9:46

How can DeviceCode help with digital sovereignty?

9:51

Well, so of course, one thing that you can see is that with DeviceCode, you can uncover

9:59

all of these hidden patterns about how devices are made.

10:04

As soon as you understand how the consumer electronics industry works, then you could

10:11

feel tricked.

10:12

But you can also say, OK, well, but this is something that we can do as well.

10:15

I mean, it is not that complicated.

10:19

So if you look into the industry, what happens usually now is that a company here goes to

10:26

some company in Taiwan, China, Vietnam, and says, I want that device that you have in

10:31

your catalog in blue.

10:33

That's basically how it's done, at least by some companies.

10:38

Then there are other companies and projects that are saying, well, we want to have a certain

10:44

device with certain specifications.

10:46

And by the way, here is the software.

10:49

So the OpenWrt project recently did this with the OpenWrt One.

10:54

They I'm not sure if they designed a board themselves or not, but at least they provided

11:00

the complete software.

11:03

And then the companies in China are basically only manufacturing the boards.

11:08

And you can take this a lot, lot further than you could say, well, you know, just only give

11:14

us the boards and then we will solder their components onto it, or we're going to do everything

11:18

ourselves and all of the great degradations in between.

11:24

Because it's I mean, it will be a challenge to scale and to make it very cheap.

11:29

But technically, it's not impossible.

11:32

There are quite a few companies that are already showing that it can be done.

11:36

So when I think that digital sovereignty is I mean, COVID really showed that we are quite

11:43

vulnerable to that.

11:45

And the current geopolitical situation is also not very encouraging.

11:49

It should actually make us wonder maybe we should do a little bit more here in the EU

11:56

when it comes to manufacturing.

11:58

That would indeed be wise.

12:00

Well, there are a few other things that you can think about.

12:04

So environmental impact, worker rights, software security, all that.

12:11

Just discovering backdoors or preventing backdoors.

12:14

There are many reasons why you should consider doing this.

12:20

Can you expand a little on the labor rights and environmental impact?

12:27

Why should we want to produce more locally to improve those two things?

12:37

I mean, there are parts of the EU where there's still quite a bit of poverty and people

12:43

actually could use a job.

12:45

So that could be a good reason as well.

12:48

Get some more of those jobs back.

12:50

Isn't it also maybe that here in the EU, we have workers rights and that one of the

13:03

consequences of that is that if you keep those workers rights, like paying people fairly,

13:08

for instance, then your product will be more expensive.

13:10

And then we have workers rights, but then we import stuff from other countries where

13:16

they have less workers rights.

13:18

And so we circumvent our own workers rights by still not wanting to pay for it.

13:25

Is that also not a reason to?

13:27

Yeah, but then you would have to decide, do you want to pay more for a device or less?

13:36

What do you care more about?

13:37

And I guess that's an individual choice.

13:41

I wouldn't mind paying a little bit more, but other people might

13:46

want to say, no, I want to have things cheap.

13:48

You have to understand that things have become really, really cheap in the past few decades.

13:54

At least when it comes to consumer electronics, they've become ridiculously cheap.

13:58

And of course, you could do something like that in the EU as well, but you will have to

14:02

scale your industries a lot.

14:04

You really have to produce at scale.

14:07

Otherwise, you can never be as cheap as when

14:09

things are coming from China.

14:11

But even there, it's funny to see that China is becoming too expensive as well.

14:17

So now their factories are moving to Vietnam and Cambodia and all that.

14:22

So it's interesting to see.

14:26

There is a parallel to the clothing industry, isn't it?

14:31

Yes.

14:32

Yeah.

14:33

Clothes used to be fairly expensive.

14:36

Now they are basically the whole fast fashion thing.

14:42

Clothing has become so ridiculously cheap.

14:47

And then you think, well, something is going horribly wrong.

14:53

Yeah.

14:54

We see that there is also a change in the fashion industry where people choose for,

15:02

well, responsible clothing.

15:08

So then you could go for responsible hardware.

15:11

I would be all for it.

15:14

I mean, if you think about it, do we really need to have new routers every few years?

15:20

New IP cameras, maybe?

15:22

I don't know.

15:23

Maybe you just want to get good updates so that they stay secure.

15:29

Yeah.

15:30

On the other hand, I do know that innovation is driven by market demands.

15:36

So it's a tricky subject.

15:38

It's a very tricky subject.

15:40

But at least it's something that we can try.

15:43

I wouldn't mind.

15:45

Yeah.

15:46

If we can create that movement, that would be great.

15:49

Why don't manufacturers want to share their technical data?

15:53

Yeah.

15:55

So why don't...

15:57

The parallel is like this with the supermarket.

15:59

If you go for the house brands, of course, they're not going to disclose where they are,

16:03

where they're buying it from, because then you might say like,

16:06

okay, well, you know, with a consumer collective, I could just also go to that factory,

16:10

buy the same thing, get a big discount, just buy in volume and do that.

16:15

So it's that same enchantment.

16:19

Did you think that, okay, you know, I'm buying it from this factory or from this

16:23

manufacturer with this factory and it's...

16:26

If you are basically pulling away the curtain, then it's like, okay, well, you know, I could also do that

16:33

and maybe get a group of people together, like 100,000 or a million people together to just buy a device.

16:43

I mean, of course, they're not going to disclose that.

16:47

As soon as you start digging into the consumer electronics industry, things get interesting.

16:52

Things like with how to get components.

16:55

I think that one of your other beneficiaries of the NGI Zero grants, Andrew "bunnie" Huang,

17:02

he made some very interesting videos about those subjects, about how the industry works,

17:10

the consumer electronics industry in Shenzhen and China works, for example.

17:15

Those are worth watching.

17:17

And why are they worth watching so people know if they...

17:22

Well, you know, yeah, so one of the stories that I heard was mostly about the gray markets, that

17:27

unless you are buying components in bulk, like millions of components, you basically, the component

17:35

factories will not even talk to you.

17:37

And then you have to go to the gray market where quality could be anything from genuine components

17:44

to complete rip-offs.

17:45

You simply don't know.

17:47

So I actually talked with one of my clients a few years back and I mentioned that and he said,

17:52

yeah, I think we actually had some fake components at one point.

18:00

And these were people making, I think, solar panels or solar something.

18:06

It's like stuff that goes into your house and then they're fake components.

18:10

Luckily, they found out before, I think, they were shipped.

18:13

But yeah, that's kind of scary.

18:15

It's like you're going to a market to buy grain and you don't know what you're actually getting

18:20

and then trying to turn that into a bread and you don't know what seeds you have.

18:26

That is indeed very interesting.

18:28

We'll put the links to the videos in the show notes.

18:33

How do people find your data and maybe how can they add to it?

18:42

So what the workflow for DeviceCode currently is, is that I regularly make dumps from the

18:50

various wikis.

18:52

So you can actually go to the website and then just create an export, which will create

18:57

something like a 120 megabyte XML file, GZIP compressed.

19:04

And then I process those and I make the data available in a, myself, in a different GitHub

19:13

repository.

19:14

So people don't have to do that themselves.

19:17

How people can add to the data is I have a mechanism where you can add overlays, so-called

19:23

overlays to the data, which will then automatically be applied when you're viewing the data.

19:28

So the correct way to contribute to the data set would be to create overlays where you're

19:35

overriding or adding data to the data set.

19:40

So you collect data that is gathered by other people and put in wikis, but then that raises

19:47

the question, how do they get the data considering that manufacturers do not want to disclose it?

19:53

Well, a lot of people like screwdrivers.

19:56

So they're basically opening those devices, making pictures, investigating when they're

20:03

for, for example, trying to work on alternative firmware for those devices.

20:08

But a big source is also the FCC in the US.

20:14

So for every device that has a radio, so either WiFi or radio or Bluetooth, ZigBee, you name it,

20:22

every device that has a radio that's coming onto the US market has to be approved by the FCC.

20:30

So companies have to send all kinds of documentation to the FCC, and that usually also includes

20:39

things like pictures of the internals, the externals, and often also the user manuals.

20:48

And those are published in PDF.

20:50

So I download those and then I process those PDFs.

20:55

So that's what I do.

20:56

But a lot of the other people are also doing that.

20:59

So they're basically going through all of the FCC listings, then see like, okay, well,

21:04

this device contains that chip or whatever they can find on the pictures.

21:08

And then they're documenting that.

21:10

So it's a lot of manual labor.

21:12

So it's a ton of manual labor.

21:14

So I'm very happy that the other people are doing it so that I don't have to do it.

21:18

And I only have to reprocess their results, which in itself is also already a challenge.

21:25

There's a lot of cruft.

21:27

As soon as people start adding data to Wikis, invariably you get cruft there.

21:34

People make mistakes or the Wiki doesn't fit their purpose.

21:39

So it's like, okay, well, I really want to add this data.

21:42

I'm just going to put it in this field.

21:45

And then it will show up on the website just like I want, but it's not structured data then

21:51

at that point.

21:52

So there's a lot of parsing, a lot of brushing up the data.

22:00

So fixing spelling mistakes, you name it.

22:04

That's a lot of the work that I'm actually doing.

22:08

Well, it's impressive that you're collecting it all.

22:14

Well, it's mostly a lot of work.

22:18

It's a lot of work.

22:19

Technically, it's not very challenging, but it's just a lot of work.

22:24

Noble then, that you're putting the effort in.

22:27

Yeah, well, that would probably be a better description than impressive.

22:33

Stubborn might also be a good description.

22:38

Have you had feedback from other users, from manufacturers?

22:44

Maybe about what you're doing.

22:48

I might imagine that a manufacturer that shows up in your database might think,

22:56

maybe I have to improve on some things.

23:00

No, no, no feedback at all.

23:03

Also not from users?

23:05

No, so it's for some reason that the people who are using my projects,

23:10

they are using them silently,

23:12

which is that also happens with my other open source projects.

23:17

I know that people are using them, but they hardly give any feedback.

23:20

Maybe it's because they're mostly in the legal realm.

23:24

Should we make a general call that if you use armijn's projects, then send him a ping?

23:30

I think they will just silently ignore that.

23:36

And that's fine.

23:37

That's fine.

23:39

Yeah, because it's about the results, right?

23:42

That's why you're doing this.

23:44

I'm also making the software mostly for myself, just because I find it interesting.

23:50

And also to make things more secure, because that's a nice little bridge to VulnerableCode.

23:57

Because you say that DeviceCode, the data collected there can feed into VulnerableCode,

24:06

which is another project that is funded by NGI Zero.

24:11

Can you tell a bit about how these projects work together?

24:16

So how they will work together.

24:17

Yes. So it basically comes back to what I said earlier, that if you have a certain device

24:24

and you want to know if your device is close to another device that has a known vulnerability,

24:31

then the end goal is that with DeviceCode you can do that.

24:34

And then as soon as you know the vulnerabilities or what software is running,

24:40

on the device or on a similar device, then you can start querying VulnerableCode

24:46

to see like, hey, is this stuff vulnerable? Do we have a known security bug?

24:51

So it's basically another, and it's like an indirect way to look in,

24:56

to see if your device is vulnerable.

25:00

Because VulnerableCode is a database of vulnerable code.

25:06

It's mostly about indexing vulnerabilities for software.

25:10

Not so much the hardware side.

25:11

So this basically is taking care of the hardware side to see

25:16

is your device similar to a device that we know has vulnerable software on it?

25:24

That would be the right description.

25:27

Yeah, that's super interesting because like you said in the beginning,

25:31

then you can cover a lot more ground finding the vulnerabilities in all the devices.

25:39

That's the idea.

25:40

Yeah.

25:41

Nice.

25:42

Tapping into this, I think it could better Right To Repair laws,

25:46

change the situation where it's so hard to receive information about the device.

25:52

And what information should be demanded from manufacturers?

26:00

So I think that if you're looking at the legislation right now in the EU,

26:06

I don't think that you really have to go through a very thorough

26:14

checking process, just like with the FCC.

26:17

So I think that they only have to do something like the CE mark.

26:22

And basically that's it.

26:23

And I'm not even sure if the CE mark is self-certification or not.

26:30

So I just don't know that much about certification.

26:33

But something like that would already help.

26:36

Like, okay, you know, whenever we get something that's put onto the EU market,

26:42

we want to know, just like give us a Hardware Bill Of Materials or pictures from the inside.

26:47

That would already help because right now you're basically getting like,

26:53

hey, here's a device.

26:54

It has a CE mark.

26:55

That's it.

26:57

And we don't mean the China Export mark, right?

27:00

Isn't that a bit of a hoax?

27:04

I thought that was a hoax.

27:07

That was fake.

27:08

At least that's what I read.

27:10

But no, I'm just meant to show this CE mark.

27:14

I don't think that...

27:16

I think that there's a lot of stuff there that we could basically just copy from the US,

27:23

like the requirements like the FCC has.

27:27

That would already help quite a bit.

27:30

I'm actually surprised hearing this, you know, that you can just basically sell a black box

27:36

and are not, you know, forced to disclose what's in there, how to fix it,

27:46

what software it runs.

27:47

And actually, if you think about it, it's quite absurd.

27:51

It is.

27:52

But there is also a logical conclusion, a direct logical conclusion from how the whole

28:00

industry works and how consumers want to have really cheap stuff.

28:04

So just to give a bit of an idea when a device is put onto the market,

28:11

it's made in China, goes into boxes, goes onto a ship with a bit of luck.

28:16

It doesn't get shot in the Red Sea.

28:17

And then it arrives in the Rotterdam Harbor 40 days later, and then it's unloaded and

28:24

rushed to the shops.

28:26

And a lot of the stuff in the consumer electronics market is basically winner takes all.

28:34

So what you see is that very often during the Christmas season or Black Friday, you name it,

28:41

there's new devices that are being announced, put into the shop.

28:46

And what you very often see is that the manufacturers will have similar devices.

28:51

A lot of the things is basically winner takes all.

28:54

Most of the sales happen in the first one to three months that a device is on the shelf.

29:01

And if you're basically a month later than your competition because you had to go through all of

29:08

those checks, basically it means that you lost.

29:11

So that is basically because we are addicted to very cheap devices.

29:22

That is basically the logical conclusion.

29:25

I mean, they have to take shortcuts somewhere.

29:28

Yeah.

29:29

So if we want to improve this industry, then consumers also have to really look at themselves

29:37

and make some changes in their behavior.

29:41

As with most of these problems, all players have to have to make changes.

29:48

Some sacrifices will have to be made.

29:50

Will people be willing to make them?

29:53

I don't know.

29:54

But as I said earlier, it's worth trying.

29:56

Maybe we can pull it off.

29:57

That would be fantastic.

30:02

Like you say, a lot of it isn't even really known with people.

30:06

So at least it helps a bit if you become aware that it works like this.

30:14

But if you can buy components in bulk or create them in bulk and do the manufacturing here

30:19

and just do it in some of the poorer parts of the EU where wages aren't that very high yet,

30:27

then maybe we can match the price as we are currently paying in China.

30:35

Or decide to pay a bit more and buy a bit less.

30:39

Yeah, that's also a possibility.

30:43

Not sure how the economics would work, but that's something that we probably will have to try out.

30:51

How can we change this?

30:53

How can we...

30:55

Do we have to raise the public maybe?

30:59

Or do we need legislation to change this?

31:08

So I think that there's a multi-pronged approach here.

31:11

I think that the first step would be more awareness.

31:14

That's where DeviceCode could help.

31:18

Just basically pulling back the curtain and then showing like,

31:21

hey, the industry is working in a different way that people actually don't know about.

31:26

That's one thing.

31:27

Legislation, the things that I said, like having something similar to FCC

31:38

and to disclose those documents, that would already help.

31:42

So, but do we need specific legislation?

31:46

Oh, gosh.

31:49

It's a difficult subject.

31:52

There are a few things that we could do fairly easily, but I could...

31:55

Basically describe my ideal, if that would help.

31:59

Yeah, sure.

31:59

That would help.

32:01

So my ideal would be that every device that's coming onto the market

32:07

is basically sent to some sort of lab first.

32:10

Ideally not a commercial lab, but just like some sort of government institution.

32:16

And basically it's torn apart completely.

32:20

And it's documented and it goes into some sort of central database

32:24

where you're basically documenting everything about the device.

32:29

Like Hardware Bill of Materials, you rip apart the firmware,

32:33

and then you are doing continuous testing on the software and just keeping track of it.

32:39

And it doesn't even have to be adversarial to the manufacturer where you're saying,

32:45

oh, we're going to do this.

32:47

To the manufacturer where you're saying, oh, we're going to catch all of your security bugs

32:53

and then we're going to punish you for it.

32:54

It could be very much a cooperative effort.

32:57

It's like, hey, we found a bug in your software, so maybe you want to fix that.

33:03

Or not maybe you want to fix that, you want to fix this, or you have to fix this.

33:07

Otherwise we'll fine you.

33:09

And I know we're going back into punishing.

33:11

But yeah, something like that would be my ideal,

33:17

where everything that comes onto the EU market is basically checked.

33:22

So Armijn, as Ronny also said, this season we really want to look into digital autonomy

33:33

or digital sovereignty.

33:37

Not only for nation states or something, but also for users, of course,

33:41

that people have more influence over their own digital life.

33:46

And one of the things that is a part of that is that you create things more locally,

33:53

so that you're less dependent on global supply chains and stuff like that.

33:58

If you, with your knowledge of the industry, if you had to think about

34:06

how we could produce things more locally, what kind of steps would you take?

34:14

So I basically foresee five steps.

34:20

So first is that you are basically going to create the software locally.

34:30

And then after you've done that, you go to some ODM and say,

34:34

make these particular devices for us and use our own software.

34:40

This is already doable because there are companies doing this.

34:46

I mean, that's not very complicated.

34:52

That is something that you could basically do within six months, a year.

34:59

They basically have some sort of open source firmware project and say,

35:02

for a particular kind of device, saying, we're going to talk with the manufacturer

35:10

to create devices for us with a certain specification,

35:13

but we are going to provide the software.

35:15

They already have the software parts covered.

35:19

Then the next step is that you would be doing the manufacturing locally,

35:24

where you're saying, hey, well, you know, we're going to,

35:27

or not the manufacturing, but the assembly locally,

35:30

where you're going to a manufacturer and say, we want you to create these PCBs,

35:36

so the printed circuit boards.

35:39

And then you're going to buy all of the components somewhere else.

35:42

And then you're going to do the assembly locally in the EU.

35:46

Then you already have a little bit more control,

35:49

for example, over which components you buy and where.

35:53

And then you can take that further and further.

35:56

You could go for the, you could go for the,

36:01

to actually make the circuit boards in the EU as well.

36:05

And then step by step, you basically go to replacing every single component

36:10

with something that has been produced locally.

36:12

One of the things that worries me a little bit is that if you are looking at the plans

36:18

where politicians are going like, we need to have a EU chip industry,

36:23

where they're really focusing on the major chips and the CPUs.

36:29

But there's a lot more going on on a device.

36:32

There are connectors, there are LEDs, there are capacitors,

36:39

even screws, things like that.

36:41

Are we actually thinking about those as well?

36:44

So I fear that sometimes their focus is a little bit too narrow.

36:50

But eventually what I think is we could already start with the software

36:55

and then gradually we could basically move the whole industry back to the EU.

37:01

It should be possible.

37:03

So there are already quite a few companies that are doing assembly in the EU

37:07

or who are producing PCBs in the EU.

37:12

But the only thing that they're not doing is creating all of the individual components,

37:17

like the chips, like the screws.

37:19

So that would be basically the gold standard to do everything here.

37:25

But there are many intermediate steps that we could already do

37:28

and I think we can already do within a few years.

37:33

And if we do all of that, what would that mean for the price points of the end product?

37:42

It depends on how much you can scale.

37:45

Yes, of course.

37:46

Because these are economies of scale.

37:49

So if you can produce a lot, then things will become cheaper.

37:54

Yeah, and the same counts for producing the chips

37:59

and all the other semiconductors that are needed for this.

38:04

Yeah, it's all about scale.

38:07

I heard you had a question, Tessel.

38:11

I was thinking it's interesting what you said, Armijn.

38:16

So the politicians are really looking at the most difficult chip they want to make here

38:21

and you're actually proposing the opposite route to start with stuff

38:26

that we can start basically with today, like writing our own software,

38:30

which we're already doing today.

38:34

So I think that's a good way to start.

38:36

I think it's interesting, especially if

38:41

you look at the amount of money

38:47

that is made free for that bring our chips home.

38:54

You could also put that kind of money and

38:57

effort into a more grounds up approach

38:59

that you propose.

39:07

I find it interesting.

39:09

Yeah, so if you look at the chips industry, you will see that

39:15

actually not everything is coming from China.

39:17

So if you're looking at NAND chips, I think 80% is coming from South Korea.

39:23

Hard disks were mostly coming from Thailand.

39:26

LEDs from Japan.

39:28

So it's not everything is coming from China, but there are a few companies that are making

39:34

stuff that we need and they're also on the other side of the globe.

39:40

I think it's a bit of a tougher challenge than people think,

39:44

but we definitely could start from the grounds up and incrementally replace everything.

39:52

Should be doable.

39:54

Not easy, but it should be doable.

39:56

And I really like that your project, DeviceCode,

40:01

sort of it's for security, as you explained, but it's also to draw away this curtain

40:07

and to show how the industry works so that we can get a better understanding of,

40:13

well, if we want to change it, then, well, we have to understand how it works

40:19

and DeviceCode really helps with it.

40:21

So thank you for making that project.

40:23

That's my goal.

40:24

Thank you for funding.

40:28

Yes, funding.

40:30

We had to ask you, Armijn, how did NGI Zero funding help DeviceCode?

40:36

Well, this is something that I would never be able to justify commercially,

40:44

because there's simply no market for this.

40:48

I wouldn't want to say labor of love, but it's,

40:50

it's pretty much a labor of love.

40:54

So this is not something where you would say, like, hey, I'm just going to do this

40:59

and try to sell this as a commercial service.

41:01

It's not going to happen.

41:03

So this is one of those things that are in the digital commons

41:06

that people are not paying any attention to,

41:09

and that no one would ever fund otherwise.

41:14

Even though there is a lot of valuable information in there,

41:17

it would not be otherwise, it would not be funded.

41:21

So that's where the NGI Zero funding really helped.

41:26

Yeah, it's really nice to hear that.

41:30

And important to point it out that there are a lot of things needed in the world

41:35

that will not be paid for by the market,

41:38

and that we have to put our collective money to make sure it happens anyway.

41:46

Yeah, and I mean, if public money would be made available,

41:52

what should be the role of free and open source?

41:59

Well, I think that if you would fund all of this stuff,

42:04

then I think that free software should be front and center.

42:09

Even though most, if you start looking into those devices,

42:12

they are already almost all the software on it is open source anyway.

42:17

A lot of this, a lot of the secret sauce is just a very tiny layer.

42:23

So if you start peeling everything back,

42:27

then you will already see that with at least with a lot of devices,

42:30

it's already open source.

42:32

Whether or not the manufacturers are being licensed compliant is a second question.

42:37

But, I mean, of course, you're going to have to do this as open source.

42:44

I mean, I don't see any other way.

42:49

Just to emphasize this point,

42:53

because you have a lot of knowledge of what kind of software runs on these devices and stuff.

42:58

And are you saying that, say, 90% of it is open source already?

43:04

So it depends a little bit on what kind of devices you're talking about.

43:08

In most cases, it's closer to 100%.

43:10

And it's just the web UI that is a little bit different.

43:15

But most of the devices, 90-95%.

43:19

Yeah, easily.

43:21

But then comes the second question.

43:23

How much of that is updatable?

43:26

Ooh, that actually is a good question.

43:30

A few years ago, I looked into some sort of, I think it was an IP camera from China,

43:38

where actually the software was burned in ROM.

43:40

So it was not even updatable.

43:42

And there were security bugs in it.

43:44

I mean, that's just ridiculous.

43:47

So you could not even, maybe you could update it if you would completely desolder the chip

43:52

and then replace the chip or I don't know what, but it was madness.

43:57

Complete madness.

44:00

Not something the general public would do.

44:02

Oh, no, not something that software engineers would do either.

44:07

Did you have nightmares that night?

44:10

Because I think knowing you Armijn, that you must have been so horrified when you saw that.

44:17

Well, it was mostly my client's issue, so not mine.

44:21

So no, I was not horrified, but more like, okay, I'm going to keep this in mind

44:25

and not buy from that manufacturer.

44:28

But move that camera away from your bedroom.

44:31

Well, it was not, I actually didn't look at it physically.

44:34

It's just that one of my clients sold it and they were being sued in Germany.

44:39

Then I looked into it, it's like, oh, well, wait, this software cannot be updated

44:44

to actually mitigate the whole issue.

44:50

So yeah, fun, fun.

44:52

I mean, but apart from software being in ROM,

44:57

it could also be that there is no update process or...

45:02

Yeah, I think that when we are talking about update processes,

45:08

I think we could spend a few more podcasts on that.

45:13

And this is not about that because we're talking today about DeviceCode.

45:17

I think you're more now leaning to one of your other projects.

45:22

Possibly, so let's not go there today.

45:27

So, Armijn, we think this was a really interesting conversation and you showed us

45:35

quite some insights into how the manufacturing processes work and what's wrong with them,

45:43

how we can improve them.

45:46

So that was all very interesting.

45:48

We want to thank you for creating DeviceCode as a project of love, as you called it.

45:55

And also really want to thank you for being on this podcast with us.

46:00

So thank you for being here.

46:02

My pleasure.

46:03

Yeah, and where can we share the love?

46:06

Where can users share the love with you?

46:10

So there are two GitHub repositories.

46:13

So one of them is in my GitHub, which is...

46:17

You just have to type in my username.

46:19

Maybe we should just put a link in the show notes.

46:24

And then, or you just type in Armijn GitHub DeviceCode in your favorite search engine.

46:30

And then there's also another repository called DeviceCode Data,

46:33

where you can get the pre-generated set of data

46:39

and then you can start playing with the data immediately.

46:42

Amazing.

46:43

Yeah.

46:44

Thank you so much.