Most active commenters
  • ChrisMarshallNY(5)

←back to thread

233 points bahaaador | 25 comments | | HN request time: 0.868s | source | bottom

Hi HN! I built Bluetooth USB Peripheral Relay, a tool that lets Bluetooth devices (like keyboards and mice) connect to USB-only hosts using a Raspberry Pi Zero W.

Why? My friend needed a way to use his Bluetooth mouse and keyboard on a PC with Bluetooth disabled due to policy restrictions. This tool acts as a bridge, relaying Bluetooth input over USB. It also lets you use Bluetooth peripherals with older devices that only support USB input.

Tech: Written in Go, optimized for Raspberry Pi Zero W.

I love HN’s community and often lurk here—I’m hoping this project is useful or at least sparks some interesting discussions. Feedback and contributions are welcome!

1. ChrisMarshallNY ◴[] No.42126707[source]
> This project was born out of a desire to help a friend who couldn't use his favorite Bluetooth mouse and keyboard due to Bluetooth being disabled on his work laptop.

Protip: If their company's IT section is like the one at my old company, they are quite unlikely to like this solution, either.

But it's very clever. Kudos.

replies(5): >>42126815 #>>42126875 #>>42127410 #>>42127461 #>>42127923 #
2. bahaaador ◴[] No.42126815[source]
Thank you for sharing your thoughts, I had thought about this as well but came to the conclusion that from the company's perspective, this is no different than connecting a random keyboard bought from Amazon, what do you think?

Another thought around this is that I don't even think there's anything intrinsically insecure about BT as an attack vector but most likely some old policy based on security issues that existed in the early days of Bluetooth. Or at least I don't know of any, but I'm no expert in this so I would love to hear other people's insights here.

replies(2): >>42126869 #>>42127380 #
3. ChrisMarshallNY ◴[] No.42126869[source]
In my experience, the IT section didn't trust anything they didn't approve, themselves. They certainly wouldn't allow us to buy any random device from Amazon.

It sucked. Big time, but they had the clout.

replies(2): >>42126915 #>>42127281 #
4. a1o ◴[] No.42126875[source]
IT departments that are too restrictive will soon find that people have a parallel world executing in Excel sheets and using some external messaging app to keep the company operations running despite IT efforts to ensure it doesn't - I mean to ensure it is "secure"...
replies(3): >>42127031 #>>42127053 #>>42127259 #
5. jchw ◴[] No.42126915{3}[source]
In my experience, I just never asked for permission when I was going to work around an annoying policy. I think while the company IT department will not love you, as long as you don't show up in one of their dashboards, it's pretty unlikely they will care. For years. Even if someone does bug you, I doubt it will amount to much other than being forced to adhere to the policy. As long as you ensure it doesn't look too much like you did it on purpose. (I would at least recommend a nice case for the device and picking innocuous USB IDs. Might be able to make it seem like a reasonable looking product, like a normal wireless keyboard receiver.)

Remote work at startups has largely removed my need for this kind of behavior. Now I'm mostly just mad that I can't always run Linux at work anymore.

replies(1): >>42127167 #
6. Arcanum-XIII ◴[] No.42127031[source]
My CTO is quite adamant that he hates shadow IT. Especially those with mac, full of... well software used by those artsy employees. Or with strange software not validated by the IT.

Well.

Other departments ask for equipment, but only hear no back. Management product like Monday? No. Dedicated solution for jobs they don't understand? Hell no!

It's tough to be part of this. I know security is hard. Budget limit stuff. But we can, and should do better.

replies(3): >>42127337 #>>42127889 #>>42128287 #
7. exe34 ◴[] No.42127053[source]
> "to keep the company operations running despite IT efforts to ensure it doesn't"

Love this!

8. dspillett ◴[] No.42127167{4}[source]
> In my experience, I just never asked for permission when I was going to work around an annoying policy.

Same here, though I've never been in a significantly restrictive place with no authority (in current long-term DayJob I have some involvement in decisions wrt what restrictions are appropriate, and what exceptions to them are appropriate).

If someone is in a truly restrictive environment, they should take care. A deliberate breach of policy could be a job terminating excuse, or at least further justification, if someone wants them out of the way for any other reason, and in such circumstances a workaround and a breach will be seen in the same light.

9. bragr ◴[] No.42127259[source]
There's a name for this: Shadow IT
10. mmsc ◴[] No.42127281{3}[source]
The irony of it is that these types love to then support software and hardware that is full of vulnerabilities. "Oh, our management software/SSL-VPN has just been pwned for the sixth time in two years? Well at least the vendor has a fix and the security team can deal with the problem!" or "well our infrastructure is so poorly managed that a single Bluetooth device could, in fact, take over the whole company!"
11. reaperducer ◴[] No.42127337{3}[source]
My company is the same, but it's not necessarily about it being "hard." It's about not hiring the right people.

My company's IT department is Windows clickops people who hire other Windows clickops people. When something goes wrong that requires the command line, they spend five figures on a consultant to fix it. Ditto for the few dozen Linux machines in the company.

Some of our departments, including mine, run Macs. I can't count the number of times I've had someone from IT tell me "OK, now click 'Start'…" or whatever the Windows convention is these days.

All they'd have to do is hire one guy who knows the command line, and one guy who knows how to support Macs. There must be a hundred people in the IT department, but they keep hiring the same type of people over and over.

I wish it was unique to my company, but there was an identical situation where I worked a few years ago.

12. wongarsu ◴[] No.42127380[source]
Secure bluetooth requires manufacturers to get the cryptography right. Even big brands like Logitech have gotten that wrong in recent memory, allowing attackers both to decrypt what you type [1] and to inject keystrokes [2]. And these are long-lived devices, even if vulnerabilities get patched in newer devices there are still plenty of 5 year old or older mice and keyboards with outdated firmware floating around. Not to mention the possibility of 0-days known to your attacker.

Wired connections are inherently more difficult to attack. In security critical applications banning bluetooth is perfectly reasonable.

[1] https://www.youtube.com/watch?v=GRJ7i2J_Y80

[2] https://www.youtube.com/watch?v=EksyCO0DzYs

replies(1): >>42127500 #
13. bongodongobob ◴[] No.42127410[source]
No, it's just a USB device at that point. Unless they are against USB mice and keyboards, it's fine.
replies(2): >>42127666 #>>42128263 #
14. baq ◴[] No.42127461[source]
The clever IT department will put hot glue in all USB ports.
replies(1): >>42127549 #
15. prmoustache ◴[] No.42127500{3}[source]
Same with keyboards and mouses which use insecure usb radio receivers. This company policy doesn't really prevent that.

The best way to correctly fight Shadow IT is to provide equipment and services so good nobody would even care using something else.

replies(2): >>42127662 #>>42127951 #
16. Eisenstein ◴[] No.42127549[source]
99% IPA will make it removable easily without dissolving it and will not damage any of the electronics.
17. wongarsu ◴[] No.42127662{4}[source]
I'm always a proponent of just spending some money on your office equipment. Even a $90 mouse and $200 keyboard costs less than a tenth of a percent of salary of an average office worker, never mind developer (amortized over a very conservative 5 year lifespan). Give people the option to choose between 2-3 sanctioned models, throw in some vertical mice and split keyboard options and you can even brag about how much you care about your employees' health.

Some people will always want to bring their own equipment, but a lot of it is caused by penny pinching or lack of options

replies(1): >>42128705 #
18. tiagod ◴[] No.42127666[source]
It's a USB device that types stuff sent through the air into the computer. For example, if the BT keyboard is vulnerable, you just opened a door for an attacker to remotely type things into the company laptop. I don't think it has the same risk profile as a wired keyboard
19. atoav ◴[] No.42127889{3}[source]
As someone who has worked in IT support: The problem is that people using that shadow IT will come running when they produce real tangible damage, because they lose data or some totally ridculous workflow stops working and you now have to reverse engineer some undocumented database format to extract at least the most urgent data. I am not a fan of IT GESTAPO, and everything should be measured, butbif I learned one thing it is that people will do the dumbest, riskiest shit if left tontheir own devices.

Also: if you work with certain customer data a good way to not only loose your job, but a ton of money would be to e.g. put that data into your shadow IT that might be running on some servers somewhere. E.g. people constantly asked us to use Zoom "because it is free and works", but we were in the public sector and a contract with them that guaruantueed the privacy of our clients would have costed a significant fraction of our yearly IT budget — and we are required by law to have such a contract.

When you then ask those people if they want to part with that money suddenly nobody is so adamant anymore.

replies(1): >>42128298 #
20. ◴[] No.42127923[source]
21. kelvinjps10 ◴[] No.42127951{4}[source]
But what they offer is crap, I like that my company let's me change the equipment
22. ChrisMarshallNY ◴[] No.42128263[source]
Our IT would not allow any USB that wasn't purchased through them, to be connected to the machine.

This was especially true for memory sticks, but keyboards, and even bus-powered things like fans (or nerf turrets) would get banned.

They had the power to get you fired, if you crossed them.

They did not like my team, because we were the only ones in the building, that knew what bullshitters they were.

23. ChrisMarshallNY ◴[] No.42128287{3}[source]
We wrote optimized C++ software.

We had all kinds of scary tech, like custom-compiled metrics software from Intel.

They insisted that all of our machines run their malwa- er, security software.

It would totally screw up our measurements.

24. ChrisMarshallNY ◴[] No.42128298{4}[source]
This is true. I suspect that a lot of these massive breaches, was because some less-technical person loaded the customer data onto an unsecured AWS instance, while they were running measurements on it.
25. vel0city ◴[] No.42128705{5}[source]
> Give people the option to choose between 2-3 sanctioned models

It quickly grows past the 2-3 sanctioned models. Everyone wants something not on the list, lots of bickering of "why was that model chosen?", etc. Well that pre-approved model is $150, this is only $175. Bob got that $175 model, this is only $200, it's not that much. Jenny got that $200 model, this is only $250. Jenny's got a $250 keyboard? I gotta upgrade, here's this $300 model... Wait did the company just buy Bill a 55" 4K display? I need that too...

Suddenly your $150/person budget has exploded to replace everyone's equipment for $1,000+ otherwise it's just not fair someone else got more.

Personally I'm fine with me buying and owning my own kb+m. Maybe give a once a year or two office hardware stipend or whatever. Then otherwise make basic stuff available for free. If you're wanting a $200 keyboard you're probably wanting a particular $200 keyboard, and it's probably not one of those 2-3 approved models.