News for hackers. Stuff that matters.
Re:A mistakenly published password exposed Mercedes-Benz sou... by hoseja on Tuesday January 30, 2024 @04:44AM (#39188135)
Automotive software should be mandated to be open-source.
Re:A mistakenly published password exposed Mercedes-Benz sou... by newsclues on Tuesday January 30, 2024 @06:38AM (#39188914)
I would like to start with forcing them to allow it as a low/no cost option, at least for some models.

Imagine people had the option when buying a car, truck or minivan of having it be open and tinkerable?

Most people won't care, but some hobbyists will. Some companies will love it, some startups might be founded for it. But eventually there will be a killer app, or huge benefit, and it will become more common until it is standard.

I'd imagine certain groups like farmers would jump on buying open source trucks, hoping they can get them to last longer, or repair them cheaper.

Re:A mistakenly published password exposed Mercedes-Benz sou... by jijijijij on Tuesday January 30, 2024 @06:54AM (#39189044)
I am not sure it's manageable for a society, when random people start messing with code controlling breaks and stuff. You'd think that's neatly separated into a single purpose IC, but I fear it isn't. Gonna be a nightmare for insurances and courts.
Re:A mistakenly published password exposed Mercedes-Benz sou... by newsclues on Tuesday January 30, 2024 @07:00AM (#39189089)
There is no software locks to prevent modification to existing mechanical cars that can and are modified to be dangerous and there is inspection processes etc and laws to deal with it. It’s even easier to scan for modified software than look inside an engine.

There are places for safe experimentation like tracks, so I don’t see why this fear isn’t irrational or a ploy for control.

Re:A mistakenly published password exposed Mercedes-Benz sou... by quesera on Tuesday January 30, 2024 @08:17AM (#39189739)
In many US states, there is not even a meaningful safety inspection. In some there is no inspection required at all.

People won't intentionally make their vehicles dangerous, but it's easier to make bad software than to completely bodge a physical repair using manufactured parts.

I don't know how vehicle software works, but hopefully they don't crash like consumer software. Someone here knows the answer -- is there like a supervisory manager/kernel that keeps all the subsystems running? And modular separation so that bad changes to the fuel injection system won't take out the fly-by-wire brakes?

Re:A mistakenly published password exposed Mercedes-Benz sou... by adrianN on Tuesday January 30, 2024 @08:03AM (#39189605)
It’s extremely hard to figure out whether modified software poses a security risk. I wouldn’t trust experts spending long hours to get it right, I certainly wouldn’t trust people at TÜV doing spotchecks to find the bugs.
Re:A mistakenly published password exposed Mercedes-Benz sou... by jacquesm on Tuesday January 30, 2024 @08:04AM (#39189617)
I wouldn't trust the original developers either.
Re:A mistakenly published password exposed Mercedes-Benz sou... by xmcqdpt2 on Tuesday January 30, 2024 @07:41AM (#39189415)
> Imagine people had the option when buying a car, truck or minivan of having it be open and tinkerable?

[...]

> There are places for safe experimentation like tracks, so I don’t see why this fear isn’t irrational or a ploy for control.

I don't think many people track modded minivans. "No the Subaru WRX is my DD, my main track car is a Honda Odyssey"

Re:A mistakenly published password exposed Mercedes-Benz sou... by moffkalast on Tuesday January 30, 2024 @06:56AM (#39189061)
Listening to the recent CES interviews by Jeff Geerling where car manufacturers explain how they see the process, with SOAFEE (the ROS knock off for cars) and other systems where they want software defined vehicles and complete freedom to change anything (and charge for those changes ofc) after they already sell them them it's honestly completely horrifying from the end user perspective.

As much as it would be nice for hobbyists, this is one can 2.0A of worms that needs to be kept as shut as possible by lawmakers.

Re:A mistakenly published password exposed Mercedes-Benz sou... by jesterson on Tuesday January 30, 2024 @06:11AM (#39188713)
Absolutely not. Saying this as a huge proponent of open source.

If it’s the case, each clown garage shop would be able to modify key characteristics of any car. And oh boy they will do it.

Would you fly on aircraft knowing mechanic servicing it last night could have added something funny to the plane you are taking?

Re:A mistakenly published password exposed Mercedes-Benz sou... by chefandy on Tuesday January 30, 2024 @06:34AM (#39188878)
Being closed source doesn’t strike me as an effective mitigation tactic. You can already buy aftermarket ECUs and such, and it’s pretty unlikely the garage would install anything that would invade your privacy more than what the manufacturers have installed. If they were going to do it as a prank or shortcut or misguided enhancement, they can do exactly the same thing with physical parts. I guess I just don’t see the threat vector here. The big benefit seems to be auto manufacturers being able to rely on security through obscurity, which has already failed:

https://news.ycombinator.com/item?id=35452963

Re:A mistakenly published password exposed Mercedes-Benz sou... by jamesrr39 on Tuesday January 30, 2024 @07:14AM (#39189200)
> If it’s the case, each clown garage shop would be able to modify key characteristics of any car. And oh boy they will do it.

Car workshops would modify and compile their own distribution of the car source code? I can't say I have ever been to a workshop where I would imagine anything like that.

Open source here would clearly be a big win for security and bug identifications in cars. Better quality laws to go along with it to protect researchers would naturally be a big positive as well.

For a comparison look to Android. AOSP is open source, and whilst alternative, non-OEM, flavours of Android do exist (GrapheneOS, LineageOS, etc). But you don't see shops that fix or sell phones putting any of these on the phone. And if you did, would it be a security downgrade? I don't think so!

> Would you fly on aircraft knowing mechanic servicing it last night could have added something funny to the plane you are taking?

But... they could have done. Maybe not the software, but mechanically, of course it's possible. Why doesn't it happen though? I guess the same reasons why in general people act responsibly in society.

Re:A mistakenly published password exposed Mercedes-Benz sou... by rurban on Tuesday January 30, 2024 @07:53AM (#39189518)
As clown garage shop I already have access to the ECU, TCU and so on. And can change lots of internal settings. That's what we all did in the first auto-mechanics course.
Re:A mistakenly published password exposed Mercedes-Benz sou... by jesterson on Tuesday January 30, 2024 @08:31PM (#39198571)
You still can’t change many things and that’s great.
Re:A mistakenly published password exposed Mercedes-Benz sou... by rurban on Friday February 02, 2024 @04:02AM (#39226657)
If you have the .A2L file everything is accessible. And I had all.

Thanksfully the clown garage shop doesn't. But CAN access SW is available for most models

Re:A mistakenly published password exposed Mercedes-Benz sou... by p_l on Tuesday January 30, 2024 @08:16AM (#39189735)
The mechanics absolutely could, though.

In fact, it's a core thing in aviation for maintenance, repair, but also modification/changes to be decoupled from vendor.

It's pretty normal for a vendor to not exist for a generation or two while the plane is still in productive work.

Re:A mistakenly published password exposed Mercedes-Benz sou... by jesterson on Tuesday January 30, 2024 @08:31PM (#39198565)
There’s heavy licensing when it comes to aviation. You can’t buy Boeing parts on ebay sold by chinese vendors and install it on aircraft. At least yet.
Re:A mistakenly published password exposed Mercedes-Benz sou... by p_l on Wednesday January 31, 2024 @02:32AM (#39201084)
... well, you can. Sometimes it even involves purser walking cap in hand scrounging up cash for a fuel pump replacement in pretty young 787 otherwise it's not going anywhere.

The main difference is that it's tracked. Licensed, too, but huge part of that licensing is about maintaining the history of the parts and plane, and that mechanics know given plane.

But the only reason you're going to know that a change happened was because the people have been trained to log it down - but there's no physical/computer lockout preventing them.

Re:A mistakenly published password exposed Mercedes-Benz sou... by reedciccio on Tuesday January 30, 2024 @06:21AM (#39188774)
There is a difference between being able to inspect study and modify software for a car and installing modified versions on your or someone else's car. We already have regulations covering radio emissions, this could be the same: modify all you want but you can't install a modified version unless you validate the modifications with a certification authority. Btw, the cyber resilience act in EU will cover these cases.
Re:A mistakenly published password exposed Mercedes-Benz sou... by j-bos on Tuesday January 30, 2024 @08:29AM (#39189855)
Is this a joke? Mechanics can already swap critical parts with substandard replacements or finnagle sensor overrides with some tape. Why should software be so sacrosanct to the manufacturer and not the owner?
Re:A mistakenly published password exposed Mercedes-Benz sou... by hoseja on Tuesday January 30, 2024 @06:50AM (#39189008)
You give the mechanic an opportunity to cut your brakelines too and they don't do it. It's part of the appliance, it should be accessible. Maybe I was imprecise with open-source, I meant more source-available.
Re:A mistakenly published password exposed Mercedes-Benz sou... by theK on Tuesday January 30, 2024 @05:19AM (#39188381)
I've thought about this a couple of times.

In a perfect world, you want to be able to safely ~hack~investigate every part of your car, including the logic that controls its servos, hydraulics, propulsion, etc.

So the whole OS and controler firmware should be open source, right?

It would be awesome but problems arise with qualifying which "devices" this should apply to. Are all self propelled four whelers cars? What about three wheelers? And why make a distinction on wheels? And if propulsion is the driver then I can see dealers suddenly selling you (proprietary) carriages and an added service of mountig an engine on them.

Soon enough you come to the point where absolutely everything needs to be open source. And while I would be happy to be part of that world, I don't really see a tangible way towards it. It just seems there is too much vested interest in defending the right for proprietary software.

The one avenue where there might be a sliver of hope for such an idea is maybe commercial aviation. That field is already overly regulated so it might be doable. There still will be a huge loophole in terms of military vehicles but it still seems vastly more rwalistic than forcing all car companies to opensource everything.

Re:A mistakenly published password exposed Mercedes-Benz sou... by dontlaugh on Tuesday January 30, 2024 @06:23AM (#39188795)
Vehicle categories already exist in all countries, for the purposes of registration, taxation, safety, etc.
Re:A mistakenly published password exposed Mercedes-Benz sou... by eesmith on Tuesday January 30, 2024 @06:37AM (#39188904)
> In a perfect world, you want to be able to safely ~hack~investigate every part of your car

I really don't think the standard "safely ~hack~investigate~" is reasonable, for both practical and policy reasons.

By focusing on an imaginary perfect world, you take focus away from the real word, where we know people do unsafe hacks to their car already, even without touching software, like https://honda-tech.com/articles/crash-kills-man-in-home-buil... .

There is no way to prevent those unsafe hacks that wouldn't also prevent huge numbers of safe hacks which people accept and support as reasonable, and place a huge and undue amount of control into the auto manufacturer.

In the old days of Ma Bell, AT&T tried to prevent Hush-A-Phone from selling a mouthpiece cover designed to make it harder for others to overhear your conversation. AT&T argued that a foreign attachment like that could damage the phone network. A decade later AT&T sued Carterfone for selling an acoustic coupler to a radio, using the same justification of possible damage. AT&T lost both cases, and the latter case is why early personal computer modems were acoustically, not electrically, coupled.

We should not extend that same power to auto manufacturers.

> but problems arise with qualifying which "devices" this should apply to

Which is why this sort of legislation is done in steps. Focus on where it makes the most sense, get experience on how useful it is and what the negative consequences are, and use that experience to judge if anything else should be included.

That's why the Motor Vehicle Owners' Right to Repair Act (see https://en.wikipedia.org/wiki/Motor_Vehicle_Owners'_Right_to... focuses only on motor vehicles, and not the right to repair all machinery and devices.

Re:A mistakenly published password exposed Mercedes-Benz sou... by theK on Tuesday January 30, 2024 @07:31AM (#39189337)
> safely ~hack~investigate

I was more thinking in terms of:

1. Hacking something close source is inherently "unsafe" as you have to reverse engineer it, fuzz it or do something other that could randomly backfire. 2. Hacking something open source is safe(er) as in, you can see the code and the developers intent, maybe even some insightful commentary.

Also, there might be an argument about open source projects being more easy to replace pieces of as you typically can see the whole build stack.

Re:A mistakenly published password exposed Mercedes-Benz sou... by eesmith on Tuesday January 30, 2024 @08:36AM (#39189922)
The safety goals you want in your perfect world are so far beyond what is practical that it seems irrelevant in a discussion about a mandate that auto software be open source.

Please remember that "open source" means access to the source code, plus the right to modify it, plus the right to redistribute it without requiring additional permissions from the copyright holders, plus no restrictions on who may use the software (other than those required by law).

You can have close source with access to the source (often called 'source available'), and even with the right to modify and use those modifications.

A license which is "for noncommercial use only" or "not for use by the military" is not open source, even if the source can otherwise be freely used, modified, and redistributed.

That said, having the source code in any form does not mean things are no longer 'inherently "unsafe"'.

Device drivers are notoriously finicky and depend, for example, on the precise timing of hardware vs. software. Reading the source, even with comments, may not be enough to assume modifications are safe, perhaps because it's obvious to an expert (which you are not) or because the original authors were not aware of the issue.

Nor does open source guarantee you can reproduce the build. The auto manufacturer may use a compiler with different behavior than your compilers. But hoseja called for open source, not reproducible builds of the open source software, so inherently accepts there will be some risks.

Certainly there's less risk with reproducible builds of the open source software, but as I said, these changes are best done in steps. There's no need for the huge step you want in your perfect world. Instead, mandate open source, get experience, and use that experience to guide future changes to public policy. That's how laws generally work.

Re:A mistakenly published password exposed Mercedes-Benz sou... by theK on Tuesday January 30, 2024 @12:04PM (#39192573)
> Reading the source, even with comments, may not be enough to assume modifications are safe

Is it enough to say that the user gets a better chance to judge their impact compared to flipping random registers?

Re:A mistakenly published password exposed Mercedes-Benz sou... by eesmith on Tuesday January 30, 2024 @01:49PM (#39194017)
Sure. Just like it's good to have manufacturer's information on how much torque to use on the engine block bolts rather than guessing based on possibly limited experience.
Re:A mistakenly published password exposed Mercedes-Benz sou... by sauercrowd on Tuesday January 30, 2024 @04:59AM (#39188227)
?

Why?

Re:A mistakenly published password exposed Mercedes-Benz sou... by INTPenis on Tuesday January 30, 2024 @05:15AM (#39188353)
I'm not the person you replied to but I agree, because it's related to public safety.

Same with aviation software.

Anything that deals with public safety should be audited by the public.

Re:A mistakenly published password exposed Mercedes-Benz sou... by mratsim on Tuesday January 30, 2024 @05:26AM (#39188442)
It should be audited by professionals, but available for public reviews / additional audits.

General folks and even most devs do not have the skills to audit code.

Re:A mistakenly published password exposed Mercedes-Benz sou... by INTPenis on Tuesday January 30, 2024 @05:31AM (#39188477)
Nothing prevents the owner of the code to audit it themselves, but everyone else should also be able to.

I think if you release code related to important everyday things like cars, everyone who is able will want to take a look. And you never know who will think outside the box and stumble across something they can then escalate and investigate with other people who are more capable. It happens in open source all the time.

Re:A mistakenly published password exposed Mercedes-Benz sou... by mratsim on Tuesday January 30, 2024 @12:07PM (#39192620)
Auditing your own code doesn't help if you have a blindspot. You will miss it while developing and auditing.

> Everyone who is able will want to take a look.

This is not true. Auditing is very skill intensive and time intensive. There needs to be compensation for it either direct (you pay for professional auditors) or indirect (you're an academic and you get reputation and grants for breaking WPA3, SGX, Mega or SIKE, or fame for breaking the PS3).

You can easily get in a situation with "The Emperor has no clothes" where everyone thought open-source code must have been audited by someone because it's open, when in fact no one did because they didn't care or had no incentives.

Re:A mistakenly published password exposed Mercedes-Benz sou... by realusername on Tuesday January 30, 2024 @06:07AM (#39188683)
We live now in a world where the most qualified people are explicitly not part of the old definition of "qualified professionals"
Re:A mistakenly published password exposed Mercedes-Benz sou... by mratsim on Tuesday January 30, 2024 @12:08PM (#39192637)
What do you mean?
Re:A mistakenly published password exposed Mercedes-Benz sou... by realusername on Tuesday January 30, 2024 @12:30PM (#39192969)
There's a lot of airplane enthusiasts which have very extensive knowledge in the field but never will be included in any of these "qualified professional" lists.

The knowledge nowadays is spread.

Re:A mistakenly published password exposed Mercedes-Benz sou... by mratsim on Tuesday January 30, 2024 @12:50PM (#39193235)
Do they have background in fuzzing or formal verification? That's what you need if you want to make high-assurance software.
Re:A mistakenly published password exposed Mercedes-Benz sou... by realusername on Tuesday January 30, 2024 @01:52PM (#39194050)
I'm sure there's a lot of people specialized in that as well
Re:A mistakenly published password exposed Mercedes-Benz sou... by mratsim on Wednesday January 31, 2024 @01:20AM (#39200616)
There isn't
Re:A mistakenly published password exposed Mercedes-Benz sou... by mratsim on Wednesday January 31, 2024 @01:26AM (#39200651)
And here 2 years to find a buffer overflow vulnerabity in glibc that was found via a fuzzer: https://news.ycombinator.com/item?id=39194093

In a library used on billions of devices.

Re:A mistakenly published password exposed Mercedes-Benz sou... by realusername on Wednesday January 31, 2024 @04:13AM (#39201669)
if that was a private project at some company, it would still probably be there. In the long run openness always win. That's what inevitably happens in a world where the knowledge is accessible to anybody.
Re:A mistakenly published password exposed Mercedes-Benz sou... by mratsim on Wednesday January 31, 2024 @10:44AM (#39205130)
It's a project used by millions of people yet it took 2 years.

What about projects used by 10~50 people?

Re:A mistakenly published password exposed Mercedes-Benz sou... by realusername on Wednesday January 31, 2024 @11:15AM (#39205539)
What kind of strange argument is this? If it wasn't public, it would have never been found at all.

I'm going to trust more a project peer reviewed by the best devs on the planets compared to some homebrew homemade software where the devs allegedly know better than everybody else (and they don't)

Re:A mistakenly published password exposed Mercedes-Benz sou... by mratsim on Wednesday January 31, 2024 @11:54AM (#39206051)
Your argument is that asking for professional auditor is not necessary for open-source code.

My argument is that open-source is not enough when high-assurance is needed and devs or end-user should still ask for a professional audits.

Re:A mistakenly published password exposed Mercedes-Benz sou... by realusername on Wednesday January 31, 2024 @12:39PM (#39206805)
I'm not saying professional auditors are useless, just that they will never reach the feedback you get from peer reviews and are not a replacement for peer reviews anyways.

We're not in the 90s anymore and it's time to acknowledge that the software world and even the world in general has changed. Knowledge is now spread and the most knowledgeable devs aren't working at an audit firm and might not even hold a computer degree!

Re:A mistakenly published password exposed Mercedes-Benz sou... by mratsim on Wednesday January 31, 2024 @02:33PM (#39208234)
The people who found the bug in glibc worked at an audit firm.

Peers aren't enough. Finding vulnerabilities require training and an adversarial mindset that is rare.

There is a reason why in cryptography people say "don't roll your own crypto"

Re:A mistakenly published password exposed Mercedes-Benz sou... by thaumasiotes on Tuesday January 30, 2024 @05:26AM (#39188439)
Maybe we could start with this much less general principle:

Whenever the output of software is offered as evidence against you in court, you should be entitled to the source code of the software.

Re:A mistakenly published password exposed Mercedes-Benz sou... by calgoo on Tuesday January 30, 2024 @05:42AM (#39188541)
The post office workers in the UK who where f-ed over by the government because the software was reporting things incorrectly could really have used this as well. Should all our financial systems be open source too?

Maybe it should be like Copyright or patents, you can keep things private for a while for an advantage, but then you would need to release all code as open source / public domain or similar? It should also be available before that to be reviewed by professionals following a formal process of some sort.

Re:A mistakenly published password exposed Mercedes-Benz sou... by adh636 on Tuesday January 30, 2024 @06:52AM (#39189032)
> Should all our financial systems be open source too?

Yes.

Re:A mistakenly published password exposed Mercedes-Benz sou... by jacquesm on Tuesday January 30, 2024 @05:59AM (#39188635)
That's really a good thing you are on to there.
Re:A mistakenly published password exposed Mercedes-Benz sou... by thaumasiotes on Wednesday January 31, 2024 @01:01AM (#39200507)
More downvotes than upvotes. :/
Re:A mistakenly published password exposed Mercedes-Benz sou... by jacquesm on Wednesday January 31, 2024 @01:27AM (#39200660)
HN doesn't like calls to take responsibility for what we produce. Regulation and responsibility are anathema here. But no worries, the world is fortunately a lot larger than that and little by little the tide seems to be turning towards holding the producers of software accountable for the works they produce, just like every other engineering discipline.

I can't wait.