58 points · by mr-anjaneyam · 1w ago · 64 comments
Feel free to check the work and try if you have a rooted android handy. GitHub: https://github.com/mr-anjaneyam/Emittr Webpage: https://emittr.srianjaneyam.me/
I'm planning to record and add few demos in various scenarios (Windows, macOS, android, linux, bios) and devices (Phone, PC, TV, STB, Kiosk).
Happy to answer any questions and would love to hear your suggestions, feature ideas or edge cases.
Fyi... Apple MacBook laptops and iPhones block USB peripherals (including keyboards) unless the password is first entered on the real builtin keyboard or touchscreen to approve it.
Supposedly, Apple does this to prevent gadgets like yours from brute-forcing passwords.
I wanted to do this with a Flipper Zero on a locked-down system but I refrained, a keyboard firing a script at 1000 WPM really looks like an attack, and I don't want to do something that looks like an attack on a system that is not mine.
It doesn't mean it is not useful, in fact, it may be too useful, that's the problem...
Of course it does.
Depending on threat model (do you trust the network?), that seems less secure than keeping credentials on-device.
The other is a small self-contained computer with multiple airwave capabilities, some of its protections removed (rooting), all in an obsolete system (an old Android phone) which is itself a hive of vulnerabilities for anybody that gets access to it physical or digital.
If that was brought into my workplace there'd be serious discussions.
That is not a criticism of your creative work here, just an acknowledgement that a portion of workplaces would not take this lightly. Most who that applies to, should know, but it's still worth mentioning.
This is shady. It's also an issue a lot of people may not be aware of. It's best to call attention to holes lest someone fall in one. Anyone maintaining a serious air-gapped system should already be strictly controlling who has physical access to the machine. But there are a lot of less serious but very vulnerable targets that admins would be wise to consider this sort of thing. Retail displays, road signs, kiosks, etc.
Just because trespassing is a crime doesn't mean it's still not wise to lock your doors.
Some of us do: https://usbguard.github.io/
Even better: USB controllers are PCI-passed-through to dedicated (disposable) VM(s), so Linux kernel bugs don't expose your system to untrusted USB devices. Same with network devices, etc.
You don't protect against that with software, but with careful supply-chain control, a faraday cage, and an armed guard who detains anyone attempting something funny.
Neither the "host OS" (no such thing really, Qubes OS is based on Xen hypervisor) or any other VM even sees the physical USB controller, let alone anything plugged into it.
This is of course a very weak protection, since a bad actor can MITM the real device.
It is conceptually similar to sticky-MAC protections, except those raise a very loud alarm that requires admin intervention when the attacker goofs. I suspect you're not shutting down the USB port on rule violation.
> This is of course a very weak protection
Not a protection at all, the opposite. Like a network firewall: block everything by default and enable what the user wants.
By default you have zero allowed USB devices (not even a host USB controller) in a laptop setting (built in keyboards are mostly PS/2, pointing devices, wifi, etc. are PCI devices).
Best part is even if you need some USB devices in some task specific virtual machines, you still don't give the whole controller to the VM, but just the device with a USB-over-ethernet like mechanism.
> I suspect you're not shutting down the USB port on rule violation
There is no port to shut down. The host OS and the task specific VMs don't ever see the USB controller and it's ports.
USB ID is conceptually similar to network “sticky mac”, in that only approved (unauthenticated) device identifiers are allowed on the bus: others see their traffic bit-binned.
The problem is of course that the identifier is sent in plain text, and is not device-bound (an attacker can spoof it).
So the very simplest attack on such systems is to put an interposer between the trusted device and the bus, capture the “trusted” ID, and use it to impersonate.
This is relevant to OS security because rubber ducky attacks can send key streams that do all sorts of fun things.
The network analogue here— sticky mac—- can actually be made tenable; any errors in interposing will result in a loud alarm in the NOC (port gets ERR_SHUTDOWN), and you can use 802.1x. USB device ID has no equivalent: it’s just an ID, and should not be relied upon for (false) security.
That's all I needed to see.