13 points mr-anjaneyam 2 days ago 21 comments

Hey HN, I built Emittr because, i frequently deal with air-gapped or locked-down systems where USB storage is disabled and third party software cannot be installed. Nobody blocks a physical keyboard, so i used the Linux Kernel's USB gadget subsystem (ConfigFS at /dev/hidg0) to turn a rooted android phone to a real USB HID Keyboard and mouse. 1. No installation on target device. It talks to motherboard USB controller, so it works in every locked down OS as well, BIOS, GRUB, etc. 2. Out of band bridge : we don't store passwords or authenticators on rooted phone. Emittr exposes a web UI on LAN, so we can send keystrokes from our main phones. 3. Types long scripts (chatgpt debuggings), SSH keys or passwords at ~1000 WPM without touching the host's clipboard. 4. OS can see this only as a genuine HID keyboard/mouse. Zero host footprint as no drivers, software or background scripts on target machine. 5. Uses USB-IF 0x0238 via on-screen joysticks instead of synthetic Shift + Scroll hacks.

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.

atmanactive 2 days ago | parent

While we're on the subject, for non-rooted phones, I can recommend InputStick.

mr-anjaneyam 1 day ago | parent

Yes. Thanks for the suggestion. It is a readymade hardware, pretty easy to use. My app's motive is to repurpose.

minekaz3333 1 day ago | parent

Except Qubes OS. It of course blocks USB keyboards by default. You can enable USB devices (filtered by device ID, USB controller/port, ...) if you want.

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.

mr-anjaneyam 1 day ago | parent

Cool, I haven't heard of this default in Qubes. Plus, Emittr exposes itself as legitimate dell keyboard(configurable). So most of the non-paranoid devices can accept.

_Microft 22 hours ago | parent

And is that really a good idea? These systems might be airgapped for good reason.

mr-anjaneyam 7 hours ago | parent

This doesn't break the containment. This comes handy when it's needed to type some complex scripts chatgpt gives to debug. once our work is done, we can plug out to respect the airgap

thereader12 34 minutes ago | parent

I mean entering a complex script from an ai very well may introduce a virus that otherwise wouldn't be possible. And if the android can connect to the internet, then hasn't containment been broken?

mr-anjaneyam 9 minutes ago | parent

This can type script to the machine, if the machine is offline then any curl type commands will definitely fail. By complex scripts - i meant lengthy or not typing friendly scripts

exe34 20 minutes ago | parent

luxuryballs 51 minutes ago | parent

hey don't tell! I opted against sharing my fun versions of this approach for a reason :)

mr-anjaneyam 12 minutes ago | parent

Haha! Now you made me more curious. I'll take the hint though :)

lefra 47 minutes ago | parent

If I went to the extreme of air-gapping a machine, I'd make sure that anyone trying to plug a phone to it gets fired on the spot.

recursive-call 31 minutes ago | parent

This. One of the main selling points being that a security audit won't catch your usage of the device really makes this whole thing feel shady. I'm sure spies will love it.

leonidasrup 12 minutes ago | parent

I have seen computers in some air-gapped high security areas where all USB ports were physically disabled - filled with glue. Of course there were very strict rules about not bringing in any kind of unregistered electronic devices (also any dangerous objects, knives or even screwdrivers) and entries to this facilities were controlled by security personnel with metal detectors.

jasode 38 minutes ago | parent

>, so it works in every locked down OS as well, BIOS, GRUB, etc.

Fyi... Apple MacBook laptops and iPhones block USB peripherals (including keyboards) unless the password is entered on the real builtin keyboard or touchscreen to approve it.

Supposedly, Apple does this to prevent gadgets like yours from brute-forcing passwords.

GuB-42 31 minutes ago | parent

So, it essentially turns the phone into a "BadUSB" device.

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...

arde 18 minutes ago | parent

Now, if it could also use the camera to forward video it would turn into a full KVM-over-IP. Or it could parse the camera input for text output or automation. Or it could use STT for its input, so it would enable easy verbal interaction with any device.

Fe2O3 10 minutes ago | parent

> Placeholder. Actual demo soon

That's all I needed to see.