8 ms·
I want hardware switches for: 1. firmware updating 2. write-enable for disk contents 3. turning the microphone on 4. turning the camera on In a surprise de
by WalterBright 5y ago
I want hardware switches for:
1. firmware updating
2. write-enable for disk contents
3. turning the microphone on
4. turning the camera on
In a surprise development, the webcam I just bought comes with a flip-up lens cap. Yay! It's Nexigo, they deserve a shout-out for this. But in the Dept of Half-Assed Features, the lens cap does not disable the microphone, so I still have to unplug it when not in use.
- bjt2n3904 5y agoA "firmware update" hardware switch is challenging to implement. A "read only" switch means you have to separate your firmware and your configuration into two separate storage devices. Hardware switches are easier for microphones and cameras, because you literally cut the power for a device.
- Scoundreller 5y agoChallenging, but almost always possible. Most flash chips have a write-enable line that you can put a switch on. Usually have to cut a trace but often can avoid soldering right to the legs by following traces. Was a common thing to do to receivers (“Integrated Receiver Decoders”) back in the paytv days. Thankfully they had firmware on a parallel eeprom and config stuff on a smaller serial eeprom (that could handle 1m writes instead of 1k writes). Receivers could have a lot of wires especially after they implemented some lock-detection that had to be countered with some 74ac logic that could disrupt the 2nd step of starting a write job. Should be doable for something like a router or cable modem, but maybe not on something like these WD drives. Like a mod chip without having to worry about the vendor trying to counter you. Of course you’re still screwed if something is only non-persistent but at least any issues are resolved with a simple reboot.
- ComputerGuru 5y ago> A "firmware update" hardware switch is challenging to implement. No, it’s not. The actual low-level chip on the flash has a separate pin that must be connected to ground to enable writes.
- bjt2n3904 5y agoI'll tell you what! You make an embedded Linux device with a read only partition based on a hardware switch. You figure out all the bugs that are caused by software not being able to write temporary files to disk. You figure out how to do configuration management on a separate system with something more complicated than a ten line YAML file. Want to change your password? That's /etc/shadow -- did you some how rig that up to be writeable, while the rest of /etc was not? Also, since I presume your management decided to not let the users have root, because of course they did... You'll need to resort to software tricks to make sure the user can't change the root password. Oh, and remember. No software read only tricks. Hardware switch. Please let me know when you finish, I'll help audit your system. Last edit: To all the reply guys, yes. I know it's possible. My statement is it isn't easy, and there are many challenges. (Especially compared with the simplicity of a power cut switch to a webcam.) I can make you a microcontroller with a firmware update switch that blinks a light. By the time you scale that up to a full fledged embedded Linux system with a board designed in house, with weird hardware that is keeping you back on Linux 3.16 because nobody knows how to port your drivers, with cryptographically signed updates, fault tolerant firmware slots, and a nasty stack of software developed by web devs that can't fathom why they can't write to disk, that has to interoperate with legacy hardware and systems, that has a management bureaucracy that can't understand why it's taking so long to implement the new media server plugin, and devices in the field aren't getting automatic updates... No. No it's not easy. Part way through, management will kill the project, you'll end up with a switch that's read in software, and eventually wind up on the front of HN as someone who did security wrong. But by all means, take your "easy" idea to WD and tell them you'll have it working on their devices by Q1 2022.
- ComputerGuru 5y agoI’ve already done it, and it’s not that hard. Others have done more. It’s the best way to avoid SD card or flash write wear. My production devices default to read-only mode and must have a dip switch toggled before any changes persist beyond the shadow ram-resident overlay that resets at power cycle. (Aside: As for my idea of a configuration system, I’ve developed entire [incremental!] build systems that take a kernel source tree and configuration files and generate fully boot-ready images with drivers, packages, and even GUI support down to specifying the themes and customizing panel layouts, and more via a fully declarative syntax. The images have been booted on commodity hardware not under our control spanning some twenty-plus years of technology on more than a 100k machines. This is HN: not everyone is merely an armchair expert in whatever the topic of discussion is for today. It can be beneficial to assume expertise is out there and seek it rather than deny things are possible.)
- edoceo 5y agoChallenging? I think you mean fun.
- LeifCarrotson 5y agoThe firmware and configuration are already split into several devices. These machines have Arm Cortex A9 and similar processors that go through several stages to start up: First, some internal boot ROM, likely with fuses burned in for the particular IO configuration, reads a bootloader (likely Das U-boot) from external flash memory. That first-stage bootloader initializes the parallel/SPI NAND/NOR flash interface and DRAM controllers, and then launches the second-stage bootloader. The second-stage bootloader uses those memory controllers to read the firmware image out of memory into RAM, then executes it. If you want to update the firmware - more precisely, to change the location or signature of the image that should be loaded by the second-stage bootloader - it would be trivial to add a check for a GPIO switch to allow or deny changes.
- caleblloyd 5y agoI recently bought USB off/on switches [1] for the external webcam and microphone on my desktop. I think they control the power line and not the data lines, but they do the trick. Reduces port fatigue and USB orientation frustration. [1] https://www.amazon.com/gp/aw/d/B08M44D79T https://www.amazon.com/gp/aw/d/B08M44D79T
- jareklupinski 5y agofunny story, i just spent a day troubleshooting why a microcontroller would not reset after cutting its power lines turns out it was leeching power from another still-active device through its data pins! there was not enough power flowing through this way to actually do something, but there was enough to keep the brownout detector from kicking in and resetting the chip
- formerly_proven 5y agoI mirrored the pinout of an AVR once and spent a few hours debugging why ISP wasn't working (so I unsocketed it for programming) and all the pins were wrong. It worked just fine pulling ground and Vcc from the I/O pins just opposite. These are of course fairly low-power 1.8-5 V devices, so when run on 5 V there is a huge margin for the supply voltage.
- phaker 5y agoYou were powering it through the protection diodes. Some 10-15 years ago someone built dirt simple radio tags this way. Just a microcontroller, with a capacitor and an antenna trace connected to some io pin. I loved that hack.
- myself248 5y agohttps://scanlime.org/2008/09/using-an-avr-as-an-rfid-tag/ https://scanlime.org/2008/09/using-an-avr-as-an-rfid-tag/
- 5y ago
- reaperducer 5y ago2. write-enable for disk contents It's funny how such basic things from the past were thrown away. Every floppy disk ever had this. However, i also believe that if such a thing existed for modern gear, it would only be used by 1% of people, and even then, mostly accidentally, resulting in millions of trouble tickets. So I'm not sure what the compromise is.
- WalterBright 5y agoI don't buy the argument that if not everyone uses it, nobody should get it. BTW, I would read TV repair manuals as a kid (yes, weird). There was always the "check to see if it is plugged in". Plugging TVs in made a lot of money for service people. I see similar things in car manuals for car won't start. "Put gas in it." Edit: This was back in the days when you could repair a TV with a soldering iron and a screwdriver. Every hardware store had a tube testing machine. I'd have fun by randomly swapping the tubes that fit in the same socket and seeing what effect that would have on the TV's operation.
- Stratoscope 5y agoAnd of course, blow the dust out of the connector! https://devblogs.microsoft.com/oldnewthing/20040303-00/?p=40423 https://devblogs.microsoft.com/oldnewthing/20040303-00/?p=40... I was also the family "TV tube test person" as a kid. I must have been around 6 or 7. For the young'uns, TV sets used to have tubes and hand-soldered point-to-point circuitry. Just like an ENIAC, a tube TV would always "go on the fritz" as the tubes burned out. My dad showed me how to pull out all the tubes, and we would put them in a cigar box and go to the little corner grocery, which had a tube tester in front. I would dial up all the settings for each tube and test it, and we would buy replacements for the bad ones. Take them back home and I would plug them in, and the TV worked again! Dad was always generous and made sure I got credit for it. BTW did you ever get to discharge the high voltage connection to the picture tube with a screwdriver and wire with alligator clips? One clip to chassis ground, the other to the screwdriver, then slip the screwdriver under the rubber insulated connector, and BANG! https://en.wikipedia.org/wiki/ENIAC https://en.wikipedia.org/wiki/ENIAC https://en.wikipedia.org/wiki/Vacuum_tube https://en.wikipedia.org/wiki/Vacuum_tube
- luke2m 5y agoMy new Lenovo has a built in camera cover which was a nice surprise, but only a software hotkey for the mic.
- fsflover 5y ago> I want hardware switches for Here you go: https://puri.sm/security/ https://puri.sm/security/.
- folmar 5y agoAlso PinePhone.
- pengaru 5y agopinephone's hardware switches are kind of an afterthought and not particularly accessible, being behind the battery cover in the form of a tiny block of DIP switches better suited to one-time configuration.
- fsflover 5y agoExactly. With Pinephone, you will not be able to switch on your microphone while receiving a phone call, unlike with Librem 5.
- adolph 5y agoBug or feature is that?
- fsflover 5y agoDepends on whether you need a microphone during a phone call.
- dotancohen 5y agoIt's usually the wife calling, and during those calls she's not listening to a word I say anyway.
- jackpirate 5y ago> 3. turning the microphone on Most people are surprised that speakers can be used as microphones by "running them in reverse", and so you also need a hardware switch for your speakers to maintain privacy.
- zootboy 5y agoWhile technically true, in most real life situations, this is not possible to exploit. If the speakers have an amplifier in line with them, they will not work in reverse. If the speakers are built in to a laptop, the driver circuitry will not allow them to work in reverse. Pretty much the only way this might be possible is if you had an audio port that was capable of functioning as both a TRS output and a TRS input (not a TRRS "headset" port), and had a set of headphones plugged into said port, and had a piece of malicious software that was able to reconfigure the port to act as an input.
- WalterBright 5y agoWhen I was a boy I'd hook up a speaker to a phono input, which made a great PA system! An even longer wire attached to the phono input turned any amplifier into an AM radio. A simple intercom is just two speakers, one on each end, wired together in a loop.
- pengaru 5y agoNice! In my childhood I took apart a broken WalkMan and discovered if I connected a random ~8" loudspeaker driver in the tape head's place, I could eavesdrop on my siblings and parents from across the house by placing the speaker against the walls or floor, complete with volume control and everything. It was incredibly sensitive, and infuriating to learn how much everyone was constantly lying and talking behind eachother's backs at that age.
- gruez 5y ago>and had a piece of malicious software that was able to reconfigure the port to act as an input. That's actually a feature of many realtek sound drivers. https://www.reaper-x.com/2012/02/13/how-to-remap-retasking-realtek-onboard-jacks-ports/ https://www.reaper-x.com/2012/02/13/how-to-remap-retasking-r...
- agilob 5y ago>3. turning the microphone on instead we have undocumented microphones for 'future purposes'. Thanks Google
- hsbauauvhabzb 5y agoAny chance of a citation on this? I’m interested in reading more.
- ManBlanket 5y agoMy workstation came equipped with a removable piece of masking tape I found in the supply closet.
- elric 5y agoMicrophones are ... tricky. I remember seeing a proof of concept of using laptop speakers as a microphone. And more recently, I read about using the mouse to "listen" in on the environment. Apparently the sensors in mice are sensitive enough to detect a lot of vibration. Not good enough to listen in on a conversation, but give it time ...
- laurent92 5y agoAh, the flip-up for the camera. Still records your voice and keystrokes, proof-of-concepts have demonstrated it is possible to capture passwords using sounds. Also the driver can contain malware, and anyway the camera itself can be on battery even if unplugged and use 5G now that the billing is per-data and not per-sim, or Sigfox networks, all of this for less than 10€ of component out of a 80€ webcam. I really don’t understand why switches are not proposed by the largest vendors.
- brokenmachine 5y ago>I really don’t understand why switches are not proposed by the largest vendors. Because paying customers don't understand or care about privacy. Facebook is still a thing. Let that sink in.
- sundvor 5y agoMy Streamdeck is great for turning microphone off at a system level. Coupled with eg OBS Studio and using virtual camera as source, where you can have several scenes available for quick switching in a pinch, you get a much better control for meetings. I highly recommend them for remote working software engineers; the macros are amazing (eg start camera, lights, open meeting software in one go - then another to shut it all down). You will still need to double check that all the mappings haven't changed for whatever reason, from time to time. (I'm on Win20/WSL2).
- Sniffnoy 5y agoDon't forget hardware switch for wireless networking. Laptops used to come with that...
- dotancohen 5y agoThe problem with the wifi switches was support. You would not believe how common it is for someone to flip those small switches accidentally and not even know its there. Then the support calls come in for wireless issues. The answer to "Did you check the wifi switch?" is almost always "What wifi switch?".
- duskwuff 5y agoAnd it only got worse when that moved to soft switches (e.g. "press Fn-F6 to toggle wifi"). Typically the on-screen feedback would only work in DOS, or would depend on a weird vendor utility, so there might not be any obvious indication when you switched it off.