by jacquesm · 3y ago · 0 comments
Porsche could make some real headlines by opening up their ECU code and the code that drives their infotainment systems, would be nice if it was accompanied by schematics and the tools required to read-out and re-program the hardware.
Fat chance that will ever happen because 'safety', 'environment' and a bunch of other fig-leaf excuses.
I have worked in the automotive embedded software industry since 2009 and I have got caught in the safety track in my career. It's a strange place to be, because the basics are extremely simple, yet it takes hundreds if not thousands of man-years to get a modern vehicle reasonable safe just in terms of the electrical system (this includes the software in automotive terms). There are so many ways to make a mistake that could easily result in an accident. Even the window regulators have non-trivial implementation concerns for anti-pinch. Allowing a random hacker to override this is a terrible idea. Now imagine what kind of mess you could do with brakes and steering...
Designing a vehicle to be hackable will very likely lead to an unsafe vehicle.
I believe what I just wrote applies similarly for security too.
Furthermore releasing software for the market, extensive testing is carried out by an independent body to ensure that legislation is followed. Even conceivably simple things such as lighting or headbeam alignment is a pretty large problem domain by itself. Also, so is just the communication standards for diagnostics.
I would say that large changes would be required to transform this industry. In some, protected domains there is use of open source, such as Qt/Linux for HMI, but opening the HMI to be fully hackable is unlikely to happen. There is quite some liability to make the HMI non-distracting.
Obviously the only people that can be trusted with our safety are the manufacturers, because the people whose lives are on the line are irresponsible madmen.
> Designing a vehicle to be hackable will very likely lead to an unsafe vehicle.
Vehicles are hackable, but they're not documented which makes them more dangerous, not less dangerous. Witness comma.ai and others.
You are knowledgeable enough to make them work. Many aren't. Some can't be. Hacking requires knowledge and skill, and most importantly, being contained. Cutting yourself with your self-programmed hackable laser in your garage is unfortunate, but cutting other people is a disaster you can't afford.
> Vehicles are hackable, but they're not documented which makes them more dangerous, not less dangerous. Witness comma.ai and others.
I see two points here.
1. Security through obscurity is bad. That's true, but we have "business" in the play, so that's how it goes. Maybe push for better regulation.
2. comma.ai, an "autopilot", based on reverse engineering, or as you put it, the base product "not documented", thus makes it "more dangerous". No, it's dangerous not because the base product is not documented, but because there's no real autopilot at the moment, and comma.ai is irresponsibly advertising as being able to "drive for hours without driver action". There are many "black box" products with a ToS that forbid reverse engineering. Does that make the product inherently more dangerous too?
Besides, you seem to suggest that, with open products, people can not make things unsafer. That's not true. Some don't know what they are doing when they "hack" things.
In the same way you can't just merrily hack about with a plane. The FAA don't really care that much if you die in your experiment. They do care if the burning wreckage falls on someone minding their own business.
FAA regulations for experimental or kit aircraft are wide open. As are automotive standards, having just helped my buddy get his sand rail DOT certified for use on the road. A tube chassis, '65 Volkswagen rear end and VIN, safety glass and manually-squeezed washer bottle and manually-swung windshield wipers (for the DOT guy, then never used again), un-boosted non-ABS brakes with a cutting brake in the loop, and it's cleared for use on the Interstate if we were crazy enough to do that. It's only the manufacturers who claim they're protecting the public by locking down their designs.
I'd expect that if any ECU software was to be released that we'd finally realize how bad things really are and that there would be a massive amount of work done on making sure these pieces of critical software would be as safe as they could possibly be.
Note that the norm is 'a subset of C deemed to be safe' but that what I've seen of such development would not pass my personal threshold for quality work. In fact, rather the opposite. On the plus side, the hardware people usually know their stuff and realize what is dangerous to pass to the software people so with some luck your vehicle will use an FPGA for any kind of really safety critical stuff (or processors embedded with the relevant hardware, such as ABS and so on).
Tell me about the liability laws in place related to you operating your lathe, or the state-required licensing and insurance that each lathe operator holds.
A machining tool is worlds away from a motor vehicle.
And meanwhile, Tesla gets to beta-test their self driving stuff in public and I can't look at the source code to my ECU to figure out whether or not a certain behavior is by design or an indication that something is broken.
Because I bet you if I buy a new car and discover that I can access its internal components via an API, I will be toying with it.
On any other platform that would never be a problem: found a bug? Just restart the container!
But with a car, this might mean a bug in my code manifesting itself while I'm driving 120 kph. And maybe there's a pedestrian crossing the road and I can't stop in time because the bug makes the brake 60% weaker.
This time however, there's not a restart docker button.
I'm sure if this happens people would be attacking Ferreri viciously the way they pile up on Tesla whenever a douche sleeps at the wheel going 100 kph, even though the company said before that that's not safe.
It's precisely because cars are so dangerous that the code should be open to scrutiny. And of course - at least in the past - the argument has been made that more eyes do not make the bugs more shallow, but in practice if there is an incentive (such as personal safety) people will expend a lot of effort to figure out why stuff goes wrong.
What it would do is to take away any kind of excuse that manufacturers have in those cases where their gear is suspect to claim that their wares are perfect and that it must have been user error. Because I can pretty much guarantee you that if you were to inspect your average automotive code-base that you'd find errors, and not just minor ones. From accidental erroneous emergency braking, untended acceleration to outright malicious ones such as planned obsolescence drivers, emission controls defeat code and so on.
Automotive security is nearly an oxymoron. The reasons for that are simple: the difficulty and expense of attacking a vehicle exceeds the bored grad student/curious tinkerer threshold, and the automotive industry has collectively the worst attitude towards security I've ever encountered.
The depressingly predictable result is that third party automotive security testing is a sport reserved for people who are extremely disinterested in disclosing their methods to you, aka the actual attackers.
This doesn't intuitively make sense to me. At the very least there are probably huge differences between countries when it comes to this?
Aside from the fact that some people would likely love to modify their car in every way possible to use it on the racetrack or whatever private property?
Open access, but secure access to software download could make sense, at least for commodity parts.
When it comes to features with competitive advantage, though, I don't see that OEMs or its suppliers have anything to gain.
Accidentally.
Besides that: it should be fairly obvious that hobbyists are not going to 'accidentally bypass a safety mechanism', they can cut their brake lines as well and they don't generally do this. What you'd see is that the aftermarket would finally be able to produce stuff without dealers in between and people with the 'right' kind of tooling (authorized by the manufacturer) to get your replacement to be recognized by the firmware. Because of course absolutely none of this would ever be used to protect the bottom line. Right?
Also: if anything open sourcing this stuff would likely result in more rather than less safe vehicles, maybe at the expense of a couple of embarrassments. Because I have absolutely no illusion about the people working on these systems professionally to be somehow magically better than the ones that work on them for themselves, after all, they have a pretty big stake in the outcome.
Imagine that, working on your car in a safety related way... replacing brakes, steering housing components, linkages, suspension components tires and so on is all at least - if not more - risky than working on software.
FWIW one of those 'safety features' tried to kill me twice and caused me to let go of my recent car and switch to a 1997 issue vehicle that has behaved quite predictable compared to that modern one. Whose 'safety features' could not be disabled.
I'm not even a tiny bit convinced that making cars hackable would be a detriment to safety. Give me one example of that happening in literally any other sector.
Hyundai and Kia are reportedly so bad that they ended up paying out a large amount of money to compensate owners.
https://www.reuters.com/legal/hyundai-kia-agree-200-million-...
But don't worry, it's been fixed now. Probably.
Tesla just got hit by this a few months back. They had to remove the auto roll-up-windows when you walk away after parking. Apparently they didn't have the sensors or hardware to do it safely.
It should be a basic right no matter how "terrible" a idea it is. We bought it, we should have full control. Void the warranty or something.
I'd rather have a tarball with hard to parse code and weird tooling than nothing at all. But - as I said - I have no illusions about this and see it as a marketing effort.
Yes, having the whole machinery available as FOSS would be awesome and I'd like to live & work in a world in which this is the norm (Hello, Star Trek?). But all this requires very talented people, many of whom studied and racked up student debt, want something to eat and a place to stay. We first need another paradigm shift to make this kind niche open work sustainable.
Oh, and if you ever find yourself in a car with critical components not checked with that kind of toolchain: I strongly recommended getting out of there asap ;-) For all the excellent people building that software, there will always be some who'd be better writing mobile apps instead (or anything else that cannot kill people).
(btw: You asked me about the setpoints of the 12k 3P Deye inverters a while ago: Seems to work nice for me with my basic "just the inverter + PV + battery" setup. Though some people report trouble when using AC coupling with another inverter; in that case the Deye seems to swing more around the setpoint).
I realize how complex those toolchains are (and how many parties would have to sign off on a release) but what amazes me more is that we are willing to trust these manufacturers on their say-so. Because chances are their interests and our interests are not aligned, as the diesel scandal has clearly proven. And I would not be at all surprised if there were more such scandals but we just haven't uncovered them.
Given what the Asahilinux people and some other very talented individuals have done in the FOSS movement, combined with the fact that half the world is powered by open source including for many mission critical and safety critical applications I'm pretty sure we could handle vehicles as well.
Nice to see your setup works well!
Yeah, but VW and Porsche are into selling cars not OSS so their priorities are aligned with that.
Think of it from the bean-counter's perspective, which run these companies: why would they invest resources into sharing your SW as OSS if that's not gonna sell more cars?
In a way, the German OEMs have been trying to do so, but mostly via different standardization efforts (OpenSCENARIO for example) so that they can easily change suppliers.
https://de.wikipedia.org/wiki/Entwicklungsdienstleister#Top_...
Nobody is buying a car based on the manufacturer's love of open source software above other factors. "I really liked the size of the X3, but went with a Macan because Porsche loves open source software." Said no one ever.
I got briefly excited that Porsche was going to make this happen.