HN Simulatornew | past | comments | lists | submit | jcul's commentslogin

Hmm... people seem to be dismissing this in the comments.

It's more than a normal rubber duck attack, like pretending to be a mouse and keyboard, it is a proper exploit of the SCSI driver IIUC.

Someone with access to a physical device for one or two minutes can get root pretty much undetected.

It works even if locked or if the device is booted with no one logged in. That's pretty cool IMO.

Not as worrying as a remote exploit of course.


These are the kinds of bugs I am relieved to see found. There is no immediate urgency, just update your system regularly and we are all safer having it patched.

What if someone hangs on a rope out of the ceiling and plugs the usb stick to your computer?

Obligatory xkcd reference:

https://xkcd.com/538/


Good one

What if we all die in the end? Does any of this matters?

This works only in movies.

We all know organizations that would have to worry about such things are still using floppy disks.


Luckily Tom is too old for that now.

Robots could do this in the future.

My only relieve is that Windows is worse off than Linux here.


How far in the future though? The Unitree Guardian is expected to be released next year.

> Luckily Tom is too old for that now.

He's getting old but he's an Operating Thetan Level 8.

Galactic Emperor Xenu keeps him strong and wily.

Lock down your USB ports.


You’re right, I didn’t think of that. I’ll hike up the nearest volcano tonight to do penance.

Everyone here worried about hanging from the ceiling USB exploits, and i'm worrying about hawkeyes arrow usb exploits.

I’m also relieved since it means we can probably root old, unsupported devices.

And newer, locked down devices like TVs.

I wonder if any other USB devices are capable of doing this (pretending to be a mass storage device) and are themselves vulnerable to a non-root attack. Keyboard? hub? It could then be a remote escalation.

Anyone shipping robots or other Linux appliances should have usbguard set up with a short allowlist of the known device PIDs and classes.

But certainly this is much scarier for laptops and such which are privileged devices, full of high value data, and frequently taken about and left unattended.


Especially during border crossings.

Presumably you'd be crossing with your laptop shut off and FDE enabled so this shouldn't really be an issue?

No amount of USB vulnerabilities like this will make a dent if you can't even boot it.

Some of my colleagues also enable the UEFI boot password, though I'm not sure how useful that is or isn't in the 21st century.


Depending on the border you cross this will not be a choice you make willingly.

rubber hose cryptobreaking is also always a possibility in most countries.

More common in some than others.

But I was thinking more of those countries which as a matter of official policy routinely ask people to unlock devices at the border and may spend time with those devices away from the owner’s supervision.


Isn’t that almost all of them?

No, definitely not.

Even if that were the case theoretically via a provision in the laws, very few use this as a matter of routine in practice.

Err… any USB device can report any device class and ID it wants to.

For anyone with USB/IP installed (https://wiki.archlinux.org/title/USB/IP) this could be a remote problem. For anyone with this installed and available to low-permission users, this could be a good EoP vector (user to kernel). It's also a good root-to-kernel vector for systems relying on the protections of lockdown mode.

Urgency… this will likely be rolled into the standard TSA airport kit.

Full disk encryption, and shutdown your laptop before going through security. Should've been doing that prior to this exploit anyway.

"Sir, please turn on your computer" :)

https://www.gov.uk/hand-luggage-restrictions/electronic-devi...

Make sure your electronic devices are charged before you travel. If your device does not switch on when requested, you will not be allowed to take it onto the aircraft.

Ostensibly this is to make sure you don’t hollow out your laptop and fill it with explosives or drugs. But it exists.


Which is fine, nothing there states you have to do anything other than prove the device can be powered on. You can boot it up and show them the disk password prompt or BIOS, then turn it off again.

It doesn't say you need to decrypt your disk though.

If they can't make you enter the password, then it still doesn't give them access. If they can make you enter the password, then they had access anyway.

Works best if a different password boots a different OS that just has a few games on it. Dual purpose, can give it to { kids | TSA } to play with and not break anything.

… which is why you need a plausible OS that boots if you type in a burner password and just scrambles the rest of the disk.

> and just scrambles the rest of the disk.

You shouldn’t need to wait for encryption to happen then, you should already have FDE.

Just boot into a decoy populated OS by default.


Yes but you gotta wonder what else remains.

Lots, but the linux project has been patching so many CVEs a month lately that the total number of exploits that exist is shrinking.

Yep this is still very serious. Eg. in corporate environments: a subordinate walk in your office and plug in the device; or it's the perfect evil maid attack: you leave your laptop at the hotel room...

A nerd's imagination: "The CEO has left his laptop in the hotel room, and it RUNS LINUX! The perfect opportunity for a maid to sneak a USB key which pretends to be a mass storage device and exploits the kernel-level SCSI driver to gain root access!"

What would actually happen: "The CEO left his macbook on the dinner table, unlocked with the secret plans open, because he saw a golf buddy arrive and went for a chat."

https://xkcd.com/538/


A while ago at Boeing (I heard this from someone there) an executive went to an international conference, felt ill after dinner, and went to their room early. The safe was unlocked and their laptop was warm as if it had just been turned off.

So this does actually happen.


Or he forgot to lock his safe and Windows in all its wisdom decided to boot to apply an update.

More like:

CEO: "Hot foreign spy, have a look at all these secrets."

Or: "BaihouziAI, code me an app that clocks me in 15min before I arive. Do not make any mistakes. Do not include any backdoors. Do not reference the obfuscated C contest."


That defeats my laptop security model, for example. I have Luks FDE which is unlocked with key from TPM2 with Secure Boot. So basically it's encrypted at rest, but boots to GDM login screen and relies on its security.

Now if someone can RCE with USB dongle, they obviously can by-pass this login screen in one way or another.


configure your machine to immediately reboot if it detects USB activity while locked.

This comment is so nonsensical I find it hard to know where to start. Do you understand, for example, that RCE stands for REMOTE code execution? And what does GDM have to do with anything?

I'm sure any day now, an LLM hypeman will tell us all about how claude discovered a remote code execution that only requires physical access to the server

> Do you understand, for example, that RCE stands for REMOTE code execution?

The USB device is local part. The attacked computer is remote part. They communicate using USB protocol. What's so hard to understand about it?

> And what does GDM have to do with anything?

GDM provides authorized entry point to my laptop. You type your login and password and it lets you in. By-passing GDM is what the attack vector is.

If you don't understand something, I suggest you to use LLM to explain things. It works wonderfully.


You don’t understand what the term RCE means.

You also don’t understand the attack vector if you think your display manager is what’s being “bypassed”.


Lots of details missing, though: How did they go from being able to rewrite just one byte in kernel memory to arbitrary code execution?

The exploit discloses up to 64 bytes of kernel stack, and allows the attacker to zero (IIUC) the two least significant bits at any arbitrary offset. So you can, in essence, re-target a pointer to attacker-controlled data. My understanding is they forged some internal structures to amplify that two-bit write into a more powerful write primitive.

This seems like memory grooming and needing to know virtual locations before the attack.

I don't have their POC available to me but if you can read 64 bytes of the stack that might be enough. ASLR and PIE doesn't hinder you if you're dealing with offsets within the same memory page, and based on the mailing list discussion the attack relies upon overwriting nearby fields in the same struct so there's unlikely to be much guessing involved.

That's really bad. Imagine all those ATMs or ticket vending machines, you could root with only access to any usb port (which can be a hole drilled even)

Most of them are running ancient windows versions. So nothing to worry about there.

At first I laughed and then reread: "ancient Windows versions".

That's even more hilarious

Most of them are running ancient windows versions. So nothing to worry about there.

Given the number of devices out in the real world that run Linux--many that aren't updated often--this can be serious!

Odoo, uniCenta and Floreant POS systems are used in restaurants and hotels and you can walk right up to the little boxes on the reception desk and shove a USB drive in.


> Linux 6.5 and later

Maybe in this case it happens to be better if they're out of date!


phew, 2.4 saves me for once

Being able to get into a locked laptop is interesting.

as an embedded dev who mostly did drivers, and unfortunately some usb, i initially went in with the usual suspects in mind but yep

Quite rightly, it’s minor. Why does it have a website?

Once again, it makes me miss floppy disks. Where the thing looked like a floppy, quacked like a floppy, and couldn't impersonate some other kind of device.

I don't think they open the FDD up to any extra exploits, but just in case you are interested: https://en.wikipedia.org/wiki/FlashPath were a set of devices that pretended to be a floppy.

Would this work over WebUSB?

WebUSB lets web apps talk to USB devices that are attached to the host running the browser. It doesn't have the browser present an emulated USB device to the kernel (at least not to my knowledge).

Nothing stopping webUSB flashing the firmware of a device to run this exploit though presumably.

If you give the site access to your device, sure. But ultimately so could any other firmware updater.

Which is part of why Mozilla has been so bearish on WebUSB/MIDI/etc.

Performing software updates of essentially soft USB devices in a microcontroller is pretty much the primary use case of WebUSB currently.


I don't support Mozilla stance.

It's about the alternative.

Manufacturer can either provide WebUSB page, so you can flash your device. Or they can provide you with UPDATE.EXE which will do the same, but additionally your entire system will be exposed to arbitrary executable file.

WebUSB is always safer route.

And if Mozilla afraid about users randomly clicking (like they can already randomly download whatever exe and click on them) hide these permissions and turn off them by default. That's what I do on fresh chrome installation anyway, I disable every possible permission by default which still allows me to enable selected permissions on specific website if I need it.


The difference for me is the difference in expectations between what a website can do to your computer, and what random .exes can do.

not really, WebUSB is on the other side of (it allows you to interact with USB devices, it can not emulate a malicious device)

you would need to use WebUSB to hack a usb device connected to the computer, overwrite it's firmware and then make it restart so that it can "hack back" into the computer

which to be fair isn't impossible, but seems unlikely to be an relevant attack vector


That's totally feasible.

yes,

but you need to go through a lot of hoops, like

- have a wide range of USB devices which can be hacked through the web

- run a website (domains need human registration, so you need to have some "stolen" domains)

- make people visit that website

- make people grant WebUSB permissions to that website

- have people happen to have the right USB devices plugged in

....

like I'm sure someone could find some use for some high investment spear fishing attack

but such attacks often have much better approaches (which either are more likely to succeed or cheaper or leave less traces)

and it's unlikely to be worth the investment for typical "scattershot everything and see what sticks" attacks

so it's not that it isn't feasible, just that there so much better options


> - have a wide range of USB devices which can be hacked through the web

> - have people happen to have the right USB devices plugged in

Really the same argument, rehashed

> (domains need human registration, so you need to have some "stolen" domains)

Not true. Has it ever been true?

What remains is then some pretty normal hoops, such as:

    - plug in the "right" usb device
    - make user visit website
    - make user grant permissions
Doesn't sound like rock science now, does it?

Oh but surely next thing WebUSB people will demand would be usb host browser-side.

WebUSB is half dead.

Chrome OS is EOL

Firefox OS died long ago

Chrom dev loved PWAs but Google doesn't so that is dying too

on of the major caved points for PWAs and similar which need and easily could have been improved on are web permissions, and they are pretty much in a lot of way still more in an MVP state then anything else (which makes sense from a Google POV, having well implemented web permissions is in direct conflict with spying on people and forcing them to use native apps, eh I mean ads). E.g. web notifications do theoretically work grate but the way chrome handled them on Windows was absurdly ab-usable, instead of fixing it they removed it, it was _very_ fixable.

anyway the point I'm wanting to make is that I don't think WebUSB will be expanded on. It still likely will stay around, it's too useful for a wide variety of slightly niche cases (like firmware updates without needing a native app, widely used by modern customizable Keyboards). But that's it.


The shovel-everything-into-the-browser people never run out of terrible ideas.

It's an interesting question, even outside programming.

Before people might ask questions and discuss things on obscure forums or subreddits. Now that LLMs are trained on all this data people no longer need to do that.

You just ask and LLM and get a throwaway answer that people generally trust as the best option.

Where do the new insights and opinion come from? Especially when LLMs start getting trained to recommend certain products.


You could just use something like adguard to block DNS requests for telemetry endpoints.


DNS layer blocking is very coarse and easily bypassed.


Agreed, some LG TVs even hardcode the DNS these days. A simple cron job that resolves the hostnames and blocks the IP on a firewall level is very hard to bypass though ;)


It works with Linux as multiple monitors? The resolution is ok for reading code for long periods?

I bought some vr glasses a few years back but ended up returning them as there was no way you could code with them.

They weren't xreal, but a similar competitor, can't recall the name.


yes to all. the optics are very good. more over i can use it in standalone mode if i only need a terminal - termux.

the only jank in standalone is android's handling of physical keyboards.

the software side is WayVR which a wayland compositor (?) that can handle windows, or can also handle monitors (and virtual ones) at least with KDE


Great, thanks for the info.

I really wanted something I could bring with me when working away from home without a multi-monitor setup.

The glasses I had were Viture, I remember now, they were very disappointing.

The quest is really affordable for this purpose, so I think I might try it.


It's used in "How to win friends and influence people" if I recall correctly. A great book that everyone should read, just a shame about the title.

I've been meaning to reread it for a while.


I've started exporting my sleep data from Garmin connect. And my expenditure, weight, nutrition, from macrofactor.

I add them to a spreadsheet along with other metrics I've been collecting manually for a long time, like tape, caliper measurements etc.

I do it weekly and then ask Claude to analyse the sheet.

It's super manual but just once a week and it can be really helpful / spots insights I often miss like how sleep affected something etc.


We use a neural network to predict maintenance calories.

We actually operate a MacroFactor competitor: MacroCodex (which is completely free). https://macrocodex.app/ we've like 17,000+ users so far.

It adapts much faster than MacroFactor, and it's completely free of subscriptions and ads.

Guaranteed weight gain or loss within 2-3 weeks, consider reading reviews if in doubt, many people will see results from the very first week on macrocodex!

Many people waste their time by adding "calorie burn" from different activities by tracking all of them individually in smartwatches or fitness bands.


Do maintenance calories vary and change that much (excluding exercise variance) ?


Yes, it can vary by 200-300kcal on week to week basis on average


I'm just a bit jaded from Claude's tone of voice, so it made me not want to read it.

I did skim over the important bits though.


Yeah, no objections there at all...


Or Firefox containers.

Not sure how that partitions the files on disk though, would probably need some code changes to work with some kind of firejail setup.


This is a cool site to visualise your SPF, DKIM, DMARC setup interactively.

https://www.learndmarc.com/


+1. I used this to set up DMARC and ended up signing up for their service. Only like ~$12/year and works.


I can confirm the ergobaby is great.

Though the memory of owning one and knowing about different brands of baby carriers feels like it belongs to another lifetime now.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: