Latest / CyberSecurity Summary / The IoT Hacker's Handbook: A Practical Guide to Hacking the Internet of Things
Transcript
- 0:00Speaker 1: Welcome to the deep dive. Today. We're jumping into something
- 0:02Speaker 1: that's well, probably all around you right now, the Internet
- 0:06Speaker 1: of things IoT. Think about it, you're smart speaker, your
- 0:10Speaker 1: fitness tracker, maybe even medical devices. They're super convenient, right,
- 0:13Speaker 1: but they also open up a whole new world of
- 0:16Speaker 1: well potential problems vulnerabilities. So our mission today is to
- 0:22Speaker 1: really get into the weeds of IoT security. It's fascinating stuff,
- 0:26Speaker 1: sometimes a bit unsettling. We're using the IoT Hackers Handbook
- 0:30Speaker 1: as our guide here, kind of a shortcut to understanding
- 0:33Speaker 1: why these things are often insecure and how security pros
- 0:36Speaker 1: and yeah, the bad guys too figure out how to
- 0:37Speaker 1: break into them. By the end of this you'll have
- 0:39Speaker 1: a much better handle on the tech behind your smart world,
- 0:42Speaker 1: way more than just a news headline. Ready to dive in.
- 0:45Speaker 1: All right, So where did this all kick off, this
- 0:46Speaker 1: idea of connecting everything, Well, the.
- 0:48Speaker 2: Term internet of things actually goes back to Kevin Ashty.
- 0:51Speaker 2: He was thinking about RFID, you know, tracking physical.
- 0:54Speaker 1: Stuff RFID right, like in inventory tags exactly.
- 0:58Speaker 2: But then fast forward to June two thousand, LG actually
- 1:03Speaker 2: launched an Internet connected fridge, the Internet digital dios maybe
- 1:07Speaker 2: the first real IoT device.
- 1:09Speaker 1: And internet fridge in two thousand.
- 1:10Speaker 2: Wow. Yeah, bit ahead of its time maybe, But the
- 1:13Speaker 2: real sort of tipping point when people really noticed was
- 1:17Speaker 2: probably the nests hrmostat ah nest I remember that right
- 1:21Speaker 2: when Google bought them at twenty eleven for was a
- 1:24Speaker 2: three point two billion dollars That really signaled, wait, this
- 1:28Speaker 2: is happening, this is a revolution.
- 1:29Speaker 1: So the money started flowing and everyone wanted.
- 1:31Speaker 2: In pretty much. And the thing is, policymakers, regulators, they
- 1:36Speaker 2: just couldn't keep up with how fast it was growing.
- 1:38Speaker 2: So you had this massive adoption of devices, but often
- 1:41Speaker 2: without any real strict quality controls or safety rules.
- 1:45Speaker 1: Meaning developers could kind of ignore security largely.
- 1:49Speaker 2: Yeah, the pressure was just to get products out the
- 1:51Speaker 2: door fast. Security was often.
- 1:52Speaker 1: An afterthought until something big happened to us exactly.
- 1:55Speaker 2: The big wake up call was the Maria botnet twenty
- 1:58Speaker 2: sixteen that was genuinely alarming. Maria basically went after internet
- 2:02Speaker 2: connected cameras, cheap ones. Mostly. It was brutally simple, really,
- 2:07Speaker 2: it just tried common default user names and passwords like
- 2:11Speaker 2: admin and pass. They're king defaults on millions of devices.
- 2:15Speaker 2: It was like millions of front doors just left unlocked,
- 2:18Speaker 2: and once it got in, it took over Liberia's entire internet,
- 2:21Speaker 2: the whole country, whole country. Yeah, and then launched this
- 2:24Speaker 2: massive DDoS attack distributed denial of service against DIN, a
- 2:28Speaker 2: big internet infrastructure company that took down huge sites GitHub, Twitter, Reddit, Netflix,
- 2:35Speaker 2: you name it all because of default passwords on cheap cameras.
- 2:38Speaker 1: That's staggering. It shows how interconnected everything is and how
- 2:41Speaker 1: weak links can cause chaos.
- 2:43Speaker 2: Precisely, it was a systemic failure, not just a few
- 2:46Speaker 2: bad devices.
- 2:47Speaker 1: Has security gotten better since.
- 2:49Speaker 2: Then, It's improved definitely slowly, but I wouldn't say devices
- 2:53Speaker 2: are extremely safe even now, not by a long shot.
- 2:56Speaker 2: We've seen researchers do things like takeover Phillips HU smart
- 3:00Speaker 2: lights using drones. Drones how they found encryption keys just
- 3:04Speaker 2: hard coded into the firmware, easy to grab, and they
- 3:07Speaker 2: use zigbie the wireless protocol to spread the infection.
- 3:10Speaker 1: So one light infects the next, YEP.
- 3:13Speaker 2: And even earlier, back in twenty thirteen, Natistan Johnny showed
- 3:16Speaker 2: he could cause permanent blackouts just by replaying old network messages.
- 3:22Speaker 2: He just needed the device's m ASSE address, which isn't
- 3:24Speaker 2: hard to get and could spoof commands. Basic stuff really
- 3:28Speaker 2: but effective, which is.
- 3:29Speaker 1: Worrying because these devices collect so much data about us.
- 3:32Speaker 2: Right, absolutely, really intimate data, sometimes health data, what you
- 3:36Speaker 2: do in your home. It's a huge privacy risk if
- 3:38Speaker 2: they get hacked. But on the flip side, all these
- 3:41Speaker 2: incidents have created a real demand for IoT security experts,
- 3:45Speaker 2: people who know how to build this stuff securely, and
- 3:47Speaker 2: people who know how to break.
- 3:48Speaker 1: It the ethical hackers right, and.
- 3:50Speaker 2: Companies are finally starting to offer bug bounties more often,
- 3:54Speaker 2: paying researchers to find flaws before the criminals do.
- 3:57Speaker 1: Okay, So it sounds like the rapid growth and lack
- 3:59Speaker 1: of early overst so I created a bit of a mess.
- 4:01Speaker 1: Maybe the best way to understand the risks is to
- 4:03Speaker 1: look at some specific example some of those headline grabbing hacks.
- 4:08Speaker 1: Let's start with the Nest thermistat. Again, you mentioned it earlier.
- 4:10Speaker 2: Right, the Nest. So researchers found you could crash it,
- 4:14Speaker 2: make it reboot just by sending specific Bluetooth signals.
- 4:17Speaker 1: Just crash it. What's the big deal?
- 4:19Speaker 2: Well, it created about a ninety second window where the thermistat
- 4:22Speaker 2: was offline. Okay, and if you had a nest security
- 4:25Speaker 2: camera link to it. That camera might also be affected
- 4:28Speaker 2: or delayed. Ninety seconds could be enough for a burglar
- 4:31Speaker 2: to slip past undetected.
- 4:33Speaker 1: Ah. I see, so a security device actually created an
- 4:35Speaker 1: insecurity exactly.
- 4:37Speaker 2: Then there were those Phillips Hugh lights. We mentioned the
- 4:40Speaker 2: drone attack exploiting the hard coded Zigbie.
- 4:42Speaker 1: Keys right, the self spreading worm.
- 4:44Speaker 2: Yep, and also that replay attack causing permanent blackouts that
- 4:48Speaker 2: was also targeting Phillips gear exploiting easily guessable device IDs.
- 4:53Speaker 1: It seems like basic communications security was often missing often.
- 4:56Speaker 2: Yes, look at the lift at smart Bold. Another research
- 5:00Speaker 2: Alex Chapman found he could inject malicious packets. He could
- 5:03Speaker 2: actually decrypt the owner's Wi Fi password from the.
- 5:06Speaker 1: Bulb get the Wi Fi password from a light bulb.
- 5:09Speaker 2: Yeah, the key was he dumped the firmware, the bulb
- 5:12Speaker 2: software using a hardware technique called JTAG, and right there
- 5:15Speaker 2: in the code the AES encryption key, the initialization vector,
- 5:19Speaker 2: everything needed to break the security. Wow.
- 5:22Speaker 1: Okay, that's bad, but maybe not as viscerally scary as
- 5:25Speaker 1: the GP pack.
- 5:26Speaker 2: Ah. The jeep pack twenty fifteen, That one really got
- 5:29Speaker 2: people's attention. Doctor Charlie Miller and Chris Vallisek.
- 5:32Speaker 1: Legends what did they do exactly? I remember the headlines,
- 5:34Speaker 1: but the details.
- 5:36Speaker 2: They remotely took control of a Jeep Cherokee while it
- 5:39Speaker 2: was driving miles away. They found a vulnerability in the
- 5:43Speaker 2: U Connect infotainment system, specifically an open network port Port
- 5:47Speaker 2: six six sixty seven running something called DBUS over IP,
- 5:51Speaker 2: and through that they found a service that let them
- 5:53Speaker 2: run their own code on the car's system, giving them
- 5:55Speaker 2: control of the steering, brakes, headlights, transmission, wipers, radio, everything
- 6:01Speaker 2: while someone was driving out on the highway.
- 6:03Speaker 1: That is terrifying, actual physical danger from a software flaw.
- 6:07Speaker 2: Absolutely. It led to a recall of one point four
- 6:10Speaker 2: million vehicles. It showed that IoT security wasn't just about
- 6:13Speaker 2: data theft. It could be about physical safety.
- 6:15Speaker 1: And it's not just cars or light bulbs. You mentioned
- 6:18Speaker 1: medical devices, right.
- 6:19Speaker 2: Jay Radcliffe found a major issue with a Johnson and
- 6:23Speaker 2: Johnson insulin pump, the Anima's one Touch pain. It communicated
- 6:27Speaker 2: wirelessly but in clear text.
- 6:30Speaker 1: No encryption for an insulin pump.
- 6:32Speaker 2: That sounds critically extremely It meant someone nearby could capture
- 6:37Speaker 2: the commands, maybe modify them and replay them. They could
- 6:40Speaker 2: potentially change the insulin dosage delivered to a patient that
- 6:43Speaker 2: could be lethal. Potentially. Yes. Thankfully, the vendor did patch
- 6:47Speaker 2: it relatively quickly, within about five months, but it highlighted
- 6:51Speaker 2: the risks in critical health devices.
- 6:53Speaker 1: Even things like smart door locks have had problems.
- 6:56Speaker 2: Oh yeah, tons of issues. One researcher, Jay Max, looked
- 6:59Speaker 2: at the August smart lock. He found a way for
- 7:02Speaker 2: someone with guest access to become an administrator. Oh just
- 7:05Speaker 2: by intercepting the network traffic and changing a value from
- 7:08Speaker 2: user to super user. Simple as that. Plus the firmware
- 7:12Speaker 2: wasn't signed, meaning you could modify it and to bypassed
- 7:15Speaker 2: some standard security check to other locks. Other researchers found
- 7:18Speaker 2: locks sending passwords and plaintext over the network yep, or
- 7:22Speaker 2: vulnerable to replay attacks, or using ridiculously weak hard coded
- 7:27Speaker 2: encryption keys. One Dana loock model literally used the key
- 7:33Speaker 2: this this secret, this the secret.
- 7:35Speaker 1: You can't make this stuff.
- 7:36Speaker 2: Up, you really can't. The pattern is just surprisingly weak
- 7:40Speaker 2: security practices in many.
- 7:41Speaker 1: Cases, even smart guns. That sounds like something from a.
- 7:43Speaker 2: Movie, It does, but it's real. Tracking point makes smart rifles,
- 7:47Speaker 2: you know, with computer raided targeting. Researchers Runas Sandvik and
- 7:51Speaker 2: Michael Auger found they could get admin access through a
- 7:54Speaker 2: physical port called art okay.
- 7:56Speaker 1: And what could they do from there?
- 7:58Speaker 2: They could launch network attacks to mess with the rifle's calculations.
- 8:01Speaker 2: Change the wind velocity value or the bulletweight parameter.
- 8:04Speaker 1: So the rifle would calculate the wrong shot.
- 8:07Speaker 2: Exactly, making the shoot or miss without them even knowing.
- 8:10Speaker 2: Why imagine the implications.
- 8:11Speaker 1: Yeah, and you mentioned another one with magnets.
- 8:14Speaker 2: Ah, right, the Armatix IP one smart gun. It had
- 8:18Speaker 2: a safety feature linked to a special watch. Another researcher
- 8:21Speaker 2: poor bypassed it using yes, just strong magnets. He could
- 8:26Speaker 2: manipulate the firing mechanism directly, proving that sometimes a really
- 8:29Speaker 2: low tech attack works just fine against poorly designed high
- 8:33Speaker 2: tech security.
- 8:34Speaker 1: So, looking at all these different examples, what's the common thread?
- 8:37Speaker 2: I think what's fascinating and worrying is how it shows
- 8:39Speaker 2: every part of an IoT device can be a weak
- 8:41Speaker 2: point if it's not secured properly. The hardware itself, the firmware,
- 8:45Speaker 2: the mobile app, the cloud service it talks to, the
- 8:48Speaker 2: radio signals, any single component can be the point of failure.
- 8:52Speaker 2: It's the whole chain.
- 8:53Speaker 1: Okay, so we've seen what goes wrong, But why why
- 8:56Speaker 1: are these vulnerabilities so common? What are the root causes?
- 8:59Speaker 2: That's the crucial quest if we actually want to fix things,
- 9:01Speaker 2: And there's several big reasons. One huge one is fragmentation.
- 9:04Speaker 2: Fragmentation means the sheer number of different ways these devices
- 9:07Speaker 2: talk to each other ZIGB Bluetooth, low energy, z wave,
- 9:11Speaker 2: Wi Fi, Laura six to low PAN, dozens of protocols
- 9:15Speaker 2: and software.
- 9:16Speaker 1: Frameworks like a tower of Babbel for devices.
- 9:18Speaker 2: Kinda yeah, it creates enormous complexity. There's no single standard
- 9:22Speaker 2: everyone follows, and this lack of standardization makes it way
- 9:27Speaker 2: easier for flaws to creep in. Plus, a lot of
- 9:30Speaker 2: developers just grab a popular framework and kind of assume
- 9:32Speaker 2: it's secure out of the box, which is often a
- 9:36Speaker 2: really dangerous assumption.
- 9:37Speaker 1: So the variety itself is a problem.
- 9:39Speaker 2: What else, A big one is simply a lack of
- 9:41Speaker 2: security awareness among developers. You mean they don't care. Not
- 9:44Speaker 2: necessarily that they don't care, but they're often under immense
- 9:47Speaker 2: pressure to ship products quickly. Deadlines are tight, and they
- 9:52Speaker 2: might just not be trained or aware of the specific
- 9:55Speaker 2: security pitfalls and IoT how hardware interacts with software, how
- 9:59Speaker 2: RADI protocols can be abused. It's a specialized field.
- 10:03Speaker 1: So they need better training and maybe stricter guidelines.
- 10:05Speaker 2: Definitely regular security training, clear coding rules, security checklists baked
- 10:10Speaker 2: into the development cycle. That's essential.
- 10:13Speaker 1: Okay, what other factors?
- 10:14Speaker 2: Another issue is what you might call a lack of
- 10:17Speaker 2: a macro perspective. A macro perspective, yeah, meaning teams often
- 10:21Speaker 2: focus too much on securing just one piece of the puzzle,
- 10:25Speaker 2: Like they'll pentis the mobile app, but they won't look
- 10:28Speaker 2: closely at how the app, the device, and the cloud
- 10:30Speaker 2: all interact.
- 10:31Speaker 1: Ah, so they miss the vulnerabilities that emerge from the
- 10:35Speaker 1: connections between components exactly.
- 10:37Speaker 2: They miss the forest for the trees. You need to
- 10:40Speaker 2: look at the entire system architecture end to end and
- 10:42Speaker 2: do proper threat modeling to see how everything connects and
- 10:45Speaker 2: where the real risks lie.
- 10:46Speaker 1: That makes sense. It's the Internet of things, after all,
- 10:49Speaker 1: the connections matter.
- 10:50Speaker 2: Right. Then there are supply chain issues.
- 10:52Speaker 1: Supply chain like where the parts come from precisely.
- 10:55Speaker 2: Think about how a complex device gets made. You might
- 10:58Speaker 2: have one company making the process or another. The Wi
- 11:01Speaker 2: Fi chip another, assembling it, another distributing it. Every step
- 11:05Speaker 2: in that chain, every vendor involved, is an opportunity for
- 11:08Speaker 2: a vulnerability to be introduced, either accidentally or maybe even deliberately.
- 11:13Speaker 2: A backdoor could be slipped in at any point.
- 11:16Speaker 1: Wow, that's complex. How do you even secure that?
- 11:19Speaker 2: It's incredibly difficult. It requires a lot of trust and verification,
- 11:22Speaker 2: which is hard to achieve globally.
- 11:24Speaker 1: Okay, any other major causes.
- 11:26Speaker 2: One last big one is the use of insecure frameworks
- 11:30Speaker 2: and third party libraries.
- 11:31Speaker 1: So developers using pre written code that's already flawed exactly.
- 11:36Speaker 2: It's very common to grab existing code samples or libraries
- 11:40Speaker 2: to speed up development. But if that code you're importing
- 11:43Speaker 2: has vulnerabilities, well, now your product has those vulnerabilities too.
- 11:47Speaker 2: And again, the business pressure to launch quickly often means
- 11:50Speaker 2: proper security vetting of these third party components gets pushed.
- 11:53Speaker 1: To the back burner until there's a breach.
- 11:55Speaker 2: Until there's a breach. Sadly, that's often the trigger for
- 11:59Speaker 2: taking it seriously.
- 12:00Speaker 1: So putting it all together, it's a mix of complexities,
- 12:03Speaker 1: speed to market pressure, lack of awareness, and issues baked
- 12:07Speaker 1: into the whole process of building these things that.
- 12:09Speaker 2: Sums it up pretty well. It's a complex ecosystem with
- 12:11Speaker 2: security challenges at almost every level.
- 12:14Speaker 1: Which, as you said, creates a huge demand for people
- 12:17Speaker 1: who can find these flaws. The security professionals, the pen testers.
- 12:20Speaker 1: How did they actually do it? What's their process?
- 12:22Speaker 2: Right? So, an IoT penetration test or pentest is different
- 12:25Speaker 2: from just testing a website or a regular application. It's
- 12:28Speaker 2: about assessing everything the physical device, the firmware inside it,
- 12:32Speaker 2: the radio communications, the mobile app, the cloud back end.
- 12:37Speaker 2: The whole solution.
- 12:38Speaker 1: Sounds comprehensive, it has to.
- 12:39Speaker 2: Be, And interestingly, you often need multiple physical devices for
- 12:43Speaker 2: testing because some techniques like physically taking chips off the
- 12:47Speaker 2: board are well destructive. You might break a device or
- 12:51Speaker 2: two finding vulnerabilities.
- 12:53Speaker 1: Okay, so where do they start?
- 12:54Speaker 2: The absolute foundation is a tax surface mapping. This is
- 12:58Speaker 2: the recon phase. You gather as much in from possible
- 13:00Speaker 2: before you even touch the device. Read the manuals, check
- 13:03Speaker 2: the vendor's website, look for patents, search for previous research
- 13:07Speaker 2: on similar devices, anything you can find.
- 13:09Speaker 1: What kind of info are you looking for?
- 13:11Speaker 2: Q details like what processor, cpu architectures it use, what
- 13:15Speaker 2: communication protocols, Wi Fi, bl zigbie, Is there a mobile app.
- 13:19Speaker 2: How does it get firmware updates? Does it have USB ports,
- 13:22Speaker 2: FD card slots, any hardware ports? Visible?
- 13:25Speaker 1: Building a complete picture, yes exactly.
- 13:28Speaker 2: You can generally break down the attack surface into three
- 13:30Speaker 2: big areas. First, the embedded device itself the thing. Can
- 13:33Speaker 2: you open it? Are the debug ports inside like art
- 13:36Speaker 2: or jtag? Can you dump the firmware directly from a
- 13:39Speaker 2: chip is authentication week? Second the firmware software and applications.
- 13:44Speaker 2: This is where traditional pen testing skills come in more
- 13:47Speaker 2: analyzing the mobile app, the web dashboard if there is one,
- 13:50Speaker 2: checking network services like SSH or FDP that might be
- 13:53Speaker 2: running on the device, looking for hard coded passwords, weak authentication,
- 13:57Speaker 2: logic flaws. And Third the radio communications. This is often
- 14:02Speaker 2: overlooked by developers. Wi Fi security yes, but also ble
- 14:06Speaker 2: zigb Z wave Laura. Can you sniff the traffic as
- 14:09Speaker 2: it encrypted? Can you jam the signal? Can you perform
- 14:12Speaker 2: replay attacks?
- 14:12Speaker 1: So you map out all these potential entry points right.
- 14:15Speaker 2: The goal is to create an architectural diagram, show all
- 14:17Speaker 2: the components how they talk to each other, and then
- 14:20Speaker 2: list every potential way an attacker might try to get
- 14:22Speaker 2: in every attack vector.
- 14:23Speaker 1: You mentioned something earlier about sec IDs.
- 14:26Speaker 2: Ah Yes, a really practical tip. Almost every device that
- 14:30Speaker 2: transmits radio waves has to have an SECID never printed
- 14:33Speaker 2: on it somewhere. If you take that ID and search
- 14:36Speaker 2: for it on the FCC website, specifically sites like sccside
- 14:40Speaker 2: dot io, it's often a gold mine.
- 14:42Speaker 1: Why what's there?
- 14:44Speaker 2: You can find internal photos of the device before it's
- 14:46Speaker 2: even released, sometimes detailed documents test reports. For example, looking
- 14:51Speaker 2: up the FCCID for an edmax IP camera revealed internal
- 14:55Speaker 2: photos clearly showing four little pads on the circuit board
- 14:58Speaker 2: that strongly suggested a u AT interface, a key debug port,
- 15:02Speaker 2: public information giving you a clue for hardware hacking.
- 15:04Speaker 1: That's clever, using public data to find hidden doors.
- 15:07Speaker 2: Okay, so once you've mapped the attack surface, what's next?
- 15:10Speaker 2: You mentioned getting physical to tear down exactly?
- 15:12Speaker 1: This is often where the real fun begins for hardware hackers,
- 15:15Speaker 1: getting physical with the device, trying it open.
- 15:17Speaker 2: Pretty much, the main goals here are things like extracting
- 15:21Speaker 2: the firmware directly from memory chips, maybe getting a rootshell
- 15:25Speaker 2: or command prompt on the device through a hidden port,
- 15:27Speaker 2: connecting debuggers to see what the code is doing live,
- 15:30Speaker 2: sometimes even modifying the hardware or writing custom firmware. And yeah,
- 15:35Speaker 2: as I said, you need spare devices because you might
- 15:37Speaker 2: break things.
- 15:38Speaker 1: So how do you start the physical analysis? First?
- 15:41Speaker 2: Is just external inspection. Look closely at the outside, what
- 15:45Speaker 2: buttons are there, any obvious ports, ethernet, USBSD card, what
- 15:49Speaker 2: kind of display does it have? Power requirements? And critically
- 15:53Speaker 2: look for those certification labels like the STCID. Even note
- 15:56Speaker 2: the type of screws holding it together. Sometimes you need
- 15:59Speaker 2: special screwdriver just to get inside.
- 16:01Speaker 1: Like on Apple devices.
- 16:02Speaker 2: Exactly ped loavescrews, torques. Knowing that tells you something. For instance,
- 16:07Speaker 2: looking at an old Navman GPS, you might note it
- 16:09Speaker 2: runs Windows, CE has a Samsung ARM processor and see
- 16:12Speaker 2: the USB, port, SD slot, et cetera. All clues.
- 16:15Speaker 1: Then you actually open it up.
- 16:16Speaker 2: Yeah, carefully. This is the internal inspection. You're looking at
- 16:19Speaker 2: the printed circuit board PCB, identifying the main chips, the CPU, RAM,
- 16:24Speaker 2: flash memory, where the firmware lives. You're also hunting for connectors, antennas,
- 16:28Speaker 2: and especially those debug interfaces. We talked about pins or
- 16:31Speaker 2: pads for your JTAG SPI. These are often the keys
- 16:35Speaker 2: to unlocking the device.
- 16:36Speaker 1: And those fcc ID lookups help here too massively.
- 16:40Speaker 2: Again, that FCC database SCCI dot io is amazing. You
- 16:44Speaker 2: might see internal photos there that clearly label the CPU
- 16:47Speaker 2: model or show exactly where the ur pads are, saving
- 16:50Speaker 2: you a ton of guesswork, like.
- 16:52Speaker 1: Finding the blueprint before you pick the lock.
- 16:53Speaker 2: Precisely that edmax camera example. Again, the SEC filing basically
- 16:57Speaker 2: pointed right to the r pads, a huge headstar for
- 17:00Speaker 2: anyone wanting to connect to it.
- 17:01Speaker 1: Okay, so you've found these internal ports like u ART,
- 17:04Speaker 1: how do you actually use them? How do you talk
- 17:06Speaker 1: to the device's insights?
- 17:07Speaker 2: Right? That's where understanding these low level communication protocols is key.
- 17:11Speaker 2: Let's start with u ART Universal Asynchronous Receival Transmitter.
- 17:14Speaker 1: Okay, what is it?
- 17:16Speaker 2: Simply, it's a really common, simple way for chips to
- 17:19Speaker 2: talk serially one bit after another. It doesn't need a
- 17:21Speaker 2: shared clock signal, which makes it easy to implement. Think
- 17:24Speaker 2: of it like a basic direct serial chat line between components.
- 17:28Speaker 1: And how do you exploit it?
- 17:29Speaker 2: First, you need to identify the pins on the circuit
- 17:31Speaker 2: board ground G and D, transmit TX, receive RX and
- 17:36Speaker 2: sometimes power VCC. You can often find these using.
- 17:40Speaker 1: A multimeter testing voltages and continuity exactly.
- 17:43Speaker 2: Yeah, Then you need a tool to connect your computer
- 17:45Speaker 2: to these pins, something like an FTDI adapter or a
- 17:49Speaker 2: specialized tool like the Adify badge works well. You connect
- 17:52Speaker 2: your tools TX to the devices RX, RX to TX
- 17:56Speaker 2: and ground to ground. You usually leave the VCC power
- 17:59Speaker 2: pin disconnected. Why because the device is usually already powered on.
- 18:02Speaker 2: You don't want to feed it extra voltage. Then you
- 18:05Speaker 2: need to figure out the speed the bod rate they're
- 18:07Speaker 2: talking at. There are tools like bodrate dot PI that
- 18:09Speaker 2: can automatically detect this.
- 18:11Speaker 1: Okay, you've got the pins, the speed, then what Then?
- 18:14Speaker 2: You just use a simple terminal program on your computer
- 18:17Speaker 2: like screen or Mini coom, connect to the serial port
- 18:19Speaker 2: provided by your tool, and very often, especially on cheaper
- 18:22Speaker 2: or older devices, you'll just get dropped straight into a
- 18:25Speaker 2: command prompt, often a rootshell.
- 18:27Speaker 1: Meaning full administrative control, no password needed.
- 18:30Speaker 2: Yep, an unauthenticated root shell over art. It's a surprisingly
- 18:36Speaker 2: common and critical vulnerability. We found this on that Atmax
- 18:39Speaker 2: camera for example, instant root access just by soldering three wires.
- 18:43Speaker 1: Wow, okay, what about other protocols you mentioned I two
- 18:46Speaker 1: C right, IT two.
- 18:47Speaker 2: C integrated circuit. There is another common one, but it's
- 18:50Speaker 2: a bus protocol, meaning multiple chips can share the same
- 18:53Speaker 2: two wires SDA for data and SEL for the clock signal.
- 18:58Speaker 1: So it's like a little internal network kind of.
- 19:00Speaker 2: Yeah. It's used for slower communication between components like e
- 19:04Speaker 2: proms small memory chips that store configuration data, real time clocks, sensors,
- 19:08Speaker 2: things like that.
- 19:09Speaker 1: And how is that useful for hacking?
- 19:11Speaker 2: Well, if important data like settings or maybe even keys
- 19:15Speaker 2: are stored in an e PROM chip that uses IT
- 19:17Speaker 2: two C, you can often read or write directly to
- 19:20Speaker 2: that chip. You'd find that chip on the board, look
- 19:22Speaker 2: up its data sheet to understand how to talk to it.
- 19:24Speaker 2: Connect your tool against something like the adify badge using
- 19:27Speaker 2: clips or an.
- 19:28Speaker 1: Adapter directly onto the chip yep, clip.
- 19:30Speaker 2: Right onto the legs. If possible, then you use software
- 19:33Speaker 2: like scripts often called I two C PROM dot PI
- 19:35Speaker 2: or similar to communicate over I two C and dump
- 19:38Speaker 2: the contents of the memory or even write new data
- 19:41Speaker 2: back to.
- 19:41Speaker 1: It, so you could potentially change device settings stored in
- 19:44Speaker 1: that memory exactly.
- 19:45Speaker 2: Maybe disable a security feature, or extract some sensitive configuration data.
- 19:49Speaker 1: Okay, one more SPI.
- 19:51Speaker 2: SPI Serial Peripheral interface another bus protocol generally faster than
- 19:55Speaker 2: I two C. It uses separate lines for data going
- 19:58Speaker 2: in OSI master out, slave in and data coming out
- 20:02Speaker 2: misomaster enslave out, plus a clock SK and a chip
- 20:06Speaker 2: select line SS to choose which device you're talking to.
- 20:09Speaker 1: Faster, more wires. What's his main use case in hacking?
- 20:12Speaker 2: The big one for SPI is often dumping the entire
- 20:15Speaker 2: firmware directly from the main flash.
- 20:16Speaker 1: Memory chip AH getting the device's brain out precisely.
- 20:21Speaker 2: Many devices store their operating system and all their software
- 20:24Speaker 2: on a flash chip that communicates using SPI, so similar
- 20:28Speaker 2: process find the chip, identify the SPI pins, mobiles, MISO, skcs,
- 20:34Speaker 2: VCCG and D connect your tool, and then use a
- 20:37Speaker 2: utility like spyflash dot PI. I often use with tools
- 20:41Speaker 2: like the ATIFI badge or flashroom to read the entire
- 20:44Speaker 2: contents of.
- 20:44Speaker 1: That chip, and that gives you the firmware file exactly.
- 20:47Speaker 2: You get a binary file containing everything. For example, on
- 20:50Speaker 2: a device like the WRT node router, you can use
- 20:53Speaker 2: SPI to pull the full OpenWrt firmware off its flash chip.
- 20:56Speaker 2: Then you can start analyzing that firmware offline.
- 20:59Speaker 1: So these low level portocols r at I two ce SPI.
- 21:02Speaker 1: They're like the secret back doors into the device's hardware,
- 21:05Speaker 1: letting you get shells or extract the firmware.
- 21:07Speaker 2: That's a good way to put it. They bypass a
- 21:08Speaker 2: lot of the normal software security because you're talking directly
- 21:11Speaker 2: to the hardware components.
- 21:12Speaker 1: Which leads perfectly into the next stage. You got the
- 21:15Speaker 1: firmware file, Now, what how do you crack that open?
- 21:17Speaker 2: Right? So you've managed to get the firmware, either by
- 21:19Speaker 2: downloading it, sniffing it during an update, or dumping it
- 21:22Speaker 2: via hardware like SBI. Now the real analysis begins, and
- 21:27Speaker 2: having that firmware file is huge for a security researcher.
- 21:31Speaker 2: It's arguably the most critical component because it lets you
- 21:33Speaker 2: understand the device's logic, find vulnerabilities, look for secrets, all
- 21:38Speaker 2: without needing the physical device anymore potentially.
- 21:41Speaker 1: So first step is usually unpacking it. You mentioned it's
- 21:43Speaker 1: often compressed exactly.
- 21:45Speaker 2: Firmware files are often archives containing a file system, bootloaders,
- 21:48Speaker 2: maybe a kernel. You can try manually analyzing it first,
- 21:52Speaker 2: use tools like file to see what type of file
- 21:54Speaker 2: it is, strings to look for readable text, hex dump
- 21:56Speaker 2: to look at the raw bytes. Sometimes you can spot
- 21:59Speaker 2: signatures of and filesystems like squash fs. Just by looking
- 22:02Speaker 2: at the hex you might see the magic bytes.
- 22:04Speaker 1: H excludes in the raw data.
- 22:06Speaker 2: Yeah, and if you find something like squash fs, you
- 22:09Speaker 2: can use tools like dd to carve out that section
- 22:12Speaker 2: of the firmware file and then use unsquash to extract
- 22:15Speaker 2: the actual filesystem.
- 22:16Speaker 1: Sounds a bit involved? Is there an easier way?
- 22:19Speaker 2: Oh? Yeah? The go to tool here is binwalk. It's fantastic.
- 22:22Speaker 1: Binwalk. What does it do?
- 22:23Speaker 2: It automatically scans firmware files for known file signatures, compression types,
- 22:28Speaker 2: executable code, everything. You just run binwalk on the firmware file,
- 22:32Speaker 2: it'll tell you okay, at this offset there's a header.
- 22:35Speaker 2: At this offset, there's a squash fs filesystem. At this
- 22:38Speaker 2: offset maybe some GFFS two data.
- 22:41Speaker 1: It maps out the structure exactly.
- 22:43Speaker 2: And even better, you can run binwalk de for extract
- 22:47Speaker 2: and it will try to automatically carve out and extract
- 22:50Speaker 2: everything it finds into a folder. Usually gives you a
- 22:53Speaker 2: firmware dot extracted directory containing the filesystem like squashroot. Super convenient.
- 22:58Speaker 1: Okay, so now you have the filesystem laid out, what
- 23:00Speaker 1: are you looking for.
- 23:01Speaker 2: Inside one of The first things is hard coded secrets, passwords,
- 23:05Speaker 2: API keys, private encryption keys. Developers sometimes mistakenly embed these
- 23:11Speaker 2: directly into scripts or configuration files.
- 23:13Speaker 1: You just search for them pretty much.
- 23:15Speaker 2: You'd use rep to search recursively through the entire extract
- 23:18Speaker 2: and file system for keywords like password, key, secret, admin token,
- 23:23Speaker 2: or maybe specific service names like Telnet FDP, and.
- 23:26Speaker 1: You might find default credentials.
- 23:28Speaker 2: Absolutely, you might find a script like telnetdat dot ashesh
- 23:33Speaker 2: that starts the Telnet service with a default login like
- 23:36Speaker 2: root and password happens all the time.
- 23:38Speaker 1: Okay, but what if bin walk can't extract anything? What
- 23:41Speaker 1: if the firmware just looks like random data.
- 23:43Speaker 2: Ah, that's a strong sign it might be encrypted or
- 23:47Speaker 2: maybe heavily obfuscated, So gameover not necessarily. First step is
- 23:52Speaker 2: often to look at the entropy. How random the data looks.
- 23:56Speaker 2: Tools can measure this. High entropy suggests encryption or compression.
- 24:00Speaker 2: Then you might use hext se again to look at
- 24:02Speaker 2: the raw bytes. Even with encryption, sometimes you can spot.
- 24:05Speaker 1: Patterns, patterns and encrypted data.
- 24:07Speaker 2: How especially with simpler encryption methods like xor if the
- 24:11Speaker 2: same key is used repeatedly, you might see repeating byte
- 24:13Speaker 2: patterns in the ciphertext. You might even be able to
- 24:16Speaker 2: guess the key length, or if you're lucky and have
- 24:18Speaker 2: some known plaintext like a standard file header that should
- 24:21Speaker 2: be there, you could potentially deduce the xor key itself.
- 24:24Speaker 1: So you figure out the key.
- 24:25Speaker 2: Then you can write a simple script, maybe in Python,
- 24:27Speaker 2: to apply the xor operation with that key to the
- 24:30Speaker 2: entire encrypted firmware file and hopefully out pops the decrypted.
- 24:34Speaker 1: Firmware and then binwok can work on it exactly.
- 24:37Speaker 2: Once it's decrypted, you run binwalk again, extract the file
- 24:40Speaker 2: system and continue your analysis, maybe dive deeper into specific
- 24:44Speaker 2: executable files using reverse engineering tools like guedro or radar
- 24:48Speaker 2: two to understand their logic.
- 24:50Speaker 1: Okay, this is getting deep. What about actually running the
- 24:52Speaker 1: code you find? Can you do that?
- 24:54Speaker 2: Yes? But it's tricky because IoT devices use different process
- 24:58Speaker 2: or architectures. Arm mips are common, not the by eighty
- 25:03Speaker 2: six your laptop.
- 25:04Speaker 1: Uses, so the code won't run directly on your computer.
- 25:07Speaker 2: Correct, But we can use emulation. The most common tool
- 25:11Speaker 2: for this is keemu U. Yeah, keemu provides userspace emulation.
- 25:15Speaker 2: You can take say a memo binary from the firmware
- 25:18Speaker 2: and run it on your by eighty six Linux machine
- 25:20Speaker 2: using Chemo mipsel static. You copy the right chemostatic binary
- 25:24Speaker 2: into the extracted firmware's filesystem, then use a command called
- 25:28Speaker 2: troot to make that extracted directory act like the root
- 25:31Speaker 2: file system. Now, inside that trute environment, you can run
- 25:34Speaker 2: the firmware's own programs like it's BusyBox shell or other
- 25:37Speaker 2: utilities using chemu behind.
- 25:39Speaker 1: The scenes, so you can interact with the device's software
- 25:41Speaker 1: environment without the device exactly.
- 25:43Speaker 2: Yeah, but that's just running individual programs. What's even more
- 25:46Speaker 2: powerful is full system emulation. There are specialized toolkits, like
- 25:51Speaker 2: the Firmware Analysis Toolkit FAT or Fermidine designed to emulate
- 25:56Speaker 2: the entire firmware image. What's the advantage of that It
- 25:59Speaker 2: tries to boot the whole emulated device, It sets up
- 26:02Speaker 2: networking start services. It means you can often access the
- 26:06Speaker 2: device's web interface through your browser, interact with its network
- 26:10Speaker 2: services attached debuggers. It's like having a virtual version of
- 26:13Speaker 2: the physical device running.
- 26:14Speaker 1: That sounds incredibly useful for testing find web vulnerabilities network flaws.
- 26:19Speaker 2: Absolutely, you could test a netgear firmware, for example, emulate
- 26:23Speaker 2: it with FAT and then access its weblogin page. Maybe
- 26:26Speaker 2: try default credentials like admin passwork.
- 26:28Speaker 1: Okay, one more thing here, backdooring firmware. Can you actually
- 26:31Speaker 1: modify the firmware to ad malicious stuff?
- 26:34Speaker 2: Yes, if the device doesn't have proper security checks in place,
- 26:38Speaker 2: specifically if it doesn't verify the digital signature of the
- 26:41Speaker 2: firmware before installing it.
- 26:43Speaker 1: So if there's no signature check, then.
- 26:45Speaker 2: You can unpack the firmware, modify it, and repack it.
- 26:49Speaker 2: There are tools like the Firmware Modkit FMK that help
- 26:52Speaker 2: with this. You could, for instance, compile a small program
- 26:55Speaker 2: that opens a bindshell basically listens on a network port
- 26:58Speaker 2: for incoming connections backdoor exactly. You'd need to cross compile
- 27:02Speaker 2: it for the device's architecture, say metpass. Tools like build
- 27:06Speaker 2: root can help with that. Then you inject your compiled
- 27:08Speaker 2: backdoor program into the firmware's file system, maybe modify a
- 27:12Speaker 2: startup script system dot SHA or some so your backdoor
- 27:15Speaker 2: runs automatically when the device boots. Then you use fnk's
- 27:19Speaker 2: build firmware dosh script to repack it all into a
- 27:22Speaker 2: new firmware file.
- 27:23Speaker 1: And then flash that malicious firmware onto the device yep.
- 27:26Speaker 2: If it accepts it because it's not checking signatures, the
- 27:29Speaker 2: device reboots and your back door starts listening. You can
- 27:32Speaker 2: then connect to it over the network, maybe using maps
- 27:34Speaker 2: netcat and get a remote shell full control.
- 27:37Speaker 1: That's quite powerful both for finding flaws and for creating
- 27:41Speaker 1: compromised devices.
- 27:42Speaker 2: Definitely, and there are even automated tools like firm walker
- 27:46Speaker 2: that can scan an extracted firmware file system and automatically
- 27:50Speaker 2: flagged potential issues hard coded keys, weak permissions, known vulnerable scripts,
- 27:55Speaker 2: generates a quick report.
- 27:56Speaker 1: So firmware analysis is really about dissecting the devices brain,
- 28:00Speaker 1: finding secrets, understanding its logic, and sometimes even modifying it.
- 28:04Speaker 2: That's the essence of it. It's a critical part of
- 28:07Speaker 2: IoT security assessment.
- 28:08Speaker 1: Okay, we've covered the hardware, the firmware. What about the
- 28:12Speaker 1: invisible part the radio waves? How do devices talk wirelessly
- 28:17Speaker 1: and how is that exploited?
- 28:18Speaker 2: Ah? The radio communications? Yeah, this is often a really
- 28:21Speaker 2: fruitful area for finding vulnerabilities, partly because it's less understood
- 28:24Speaker 2: by many developers and it's literally invisible.
- 28:27Speaker 1: So how do security researchers see these invisible signals?
- 28:30Speaker 2: The key technology here is software defined radio or SDR.
- 28:34Speaker 1: SDR. What's the basic idea?
- 28:36Speaker 2: Instead of needing dedicated physical hardware for every different type
- 28:40Speaker 2: of radio signal like an FM radio, a Wi Fi card,
- 28:43Speaker 2: a Bluetooth chip, SDR lets you do most of the processing, receiving, transmitting,
- 28:48Speaker 2: demodulating in software used relatively cheap, flexible radio hardware connected
- 28:53Speaker 2: to your computer, and then powerful software handles the specifics
- 28:57Speaker 2: of the radio protocol you're interested in.
- 28:59Speaker 1: So one piece of hardware can act like many different
- 29:01Speaker 1: radios exactly.
- 29:02Speaker 2: It gives you incredible flexibility. For a basic lab, you
- 29:05Speaker 2: might use Ubuntu Linux hardware. Why is something like the
- 29:08Speaker 2: RTL SDR dongle is super cheap maybe twenty dollars great
- 29:12Speaker 2: for receiving signals. For transmitting and receiving over a wider range,
- 29:16Speaker 2: the hack RF is popular, though more expensive. Then you
- 29:20Speaker 2: use software like GQRX for visualizing signals, GNU Radio for
- 29:24Speaker 2: complex processing, and various command line tools specific to your hardware.
- 29:28Speaker 1: Okay, so you have the gear, how do you figure
- 29:30Speaker 1: out what frequency a target device is?
- 29:32Speaker 2: Even using good question? Sometimes it's easy. Open up a
- 29:35Speaker 2: simple device like a garage door keyfob, and you might
- 29:38Speaker 2: literally see the frequency like four hundred and thirty three megahertz,
- 29:41Speaker 2: print it on a component called.
- 29:42Speaker 1: An oscillator, look inside the hardware right.
- 29:45Speaker 2: Or as we discussed, use the SCCID. Look up a
- 29:48Speaker 2: device like a wireless weather station on SECSID dot io
- 29:52Speaker 2: using its ID, and the public filings will often tell
- 29:54Speaker 2: you the exact operating frequency, say four hundred and thirty
- 29:57Speaker 2: three point nine two mable hertz using public infogas YEP,
- 30:00Speaker 2: and then you use your SDR software like GQRX to
- 30:03Speaker 2: confirm it. You tune near that frequency and look for
- 30:06Speaker 2: spikes in the spectrum display or signals in the waterfall
- 30:09Speaker 2: view that appear when the device transmits. That lets you
- 30:12Speaker 2: pinpoint the exact frequency like maybe four hundred and thirty
- 30:14Speaker 2: three point eighty nine seven mitlhertz for that keyfob.
- 30:17Speaker 1: So you've found the frequency, you can see the signal.
- 30:21Speaker 1: How do you understand what it's saying? How do you
- 30:22Speaker 1: decode the data?
- 30:23Speaker 2: It depends on the complexity For many simple devices keyfobs,
- 30:27Speaker 2: weather sensors, high pressure monitors. There's an amazing tool called
- 30:30Speaker 2: ARDL four three three. It has built in decoders for
- 30:33Speaker 2: hundreds of common devices. You just run it and when
- 30:35Speaker 2: your keyfob transmits eard L four three three. You might
- 30:38Speaker 2: recognize the signal and just print out the decoded data
- 30:40Speaker 2: like the button code being sent. That sounds easy for
- 30:42Speaker 2: simple things it often is, but for more complex or
- 30:45Speaker 2: unknown signals you need to do more work, often using G.
- 30:47Speaker 1: In your radio, the complex processing software.
- 30:50Speaker 2: Right, you build a flow graph in G in your radio.
- 30:53Speaker 2: You start with an SDR source block to capture the signal.
- 30:56Speaker 2: Then you might add blocks to filter it, convert it,
- 30:58Speaker 2: amplify it. You save into a file. You can then
- 31:01Speaker 2: open that save signal file, maybe a dot wave file
- 31:05Speaker 2: in an audio editor like Audacity.
- 31:07Speaker 1: Audacity for radio signals.
- 31:09Speaker 2: Yes, If you record the signal's amplitude, you can often
- 31:12Speaker 2: visually analyze the waveform Inaudacity. You look for patterns is
- 31:16Speaker 2: it on off keying okay, where pulses represent data or
- 31:20Speaker 2: frequency shift king FSK for simple okay, like from that
- 31:23Speaker 2: weather station. You might see short pulses for digital zeros
- 31:26Speaker 2: and longer pulses for ones. You can literally just measure
- 31:29Speaker 2: the pulse widths and manually decode the binary data packet.
- 31:33Speaker 1: Wow. Manual decoding that reveals the actual data.
- 31:36Speaker 2: Yep. You might decode a packet containing the station's ID
- 31:39Speaker 2: the temperature, humidity, maybe a checksum.
- 31:42Speaker 1: Okay, decoding is one thing. What about replaying those signals
- 31:44Speaker 1: you mentioned that earlier.
- 31:46Speaker 2: Replay attacks are very powerful, especially if the target device
- 31:49Speaker 2: doesn't have good protection against them, like sequence numbers or
- 31:52Speaker 2: proper checks them CRCs.
- 31:53Speaker 1: Meaning it just accepts any valid looking command A hears.
- 31:57Speaker 2: Pretty much. So you use SDR hardware capable of transmitting
- 32:01Speaker 2: like the hacker F. You first use it to capture
- 32:03Speaker 2: a legitimate radio packet, say the signal scent when you
- 32:06Speaker 2: press the unlocked button on a car FIP, save that
- 32:08Speaker 2: captured signal to a file. Then you just use the
- 32:11Speaker 2: hack RF again to transmit the contents of that file.
- 32:14Speaker 2: If the car doesn't have replay protection, and many older
- 32:16Speaker 2: ones didn't, it will hear that replayed unlocked signal.
- 32:19Speaker 1: And unlocked simple but effective.
- 32:22Speaker 2: Very You can even use simpler hardware like an Arduino
- 32:25Speaker 2: micro controller connected to a cheap four hundred thirty three
- 32:27Speaker 2: milihertz transmitter module for basic replay attacks on some systems.
- 32:31Speaker 1: Okay, let's talk about specific protocols. ZIGB common in smart homes.
- 32:35Speaker 2: Right, very common. It's based on the IEEO two point
- 32:38Speaker 2: one five point four standard operates usually around two point
- 32:41Speaker 2: four gigger heerts globally and forms mesh networks where devices
- 32:45Speaker 2: can relay messages for each other mesh network.
- 32:47Speaker 1: Okay, and how do you attack sigby?
- 32:49Speaker 2: First? You need hardware that can sniff zigby traffic, things
- 32:53Speaker 2: like specially flashed at mil ars, raven USB sticks, or
- 32:56Speaker 2: dedicated devices like the API mode often used with the
- 32:59Speaker 2: killer B frame. Killer be cool name, Yeah, it's a
- 33:02Speaker 2: popular Python framework. You start by using a tool like
- 33:05Speaker 2: zib stumbler from killerb to scan the sixteen possible Zigbee
- 33:09Speaker 2: channels and find which channel your target network is using.
- 33:13Speaker 1: Find the right frequency right.
- 33:14Speaker 2: Once you know the channel, say channel twenty, you use
- 33:17Speaker 2: an tool like zibi dump or zib wire shark which
- 33:20Speaker 2: integrates with wire shark, to just capture all the packets
- 33:22Speaker 2: flying around on that.
- 33:23Speaker 1: Channel and what might you see?
- 33:25Speaker 2: If the communication isn't properly encrypted, which sometimes happens during
- 33:29Speaker 2: initial device pairing or with poorly implemented systems, you might
- 33:33Speaker 2: see sensitive data in clear text. We've seen examples where
- 33:37Speaker 2: sniffing the pairing process of a vulnerable zigbi lock revealed the.
- 33:41Speaker 1: Network key, the master key for that whole network.
- 33:44Speaker 2: Yep, just by passively listening.
- 33:46Speaker 1: And replay attacks. Do they work? On Zigbe?
- 33:48Speaker 2: They can take the Phillips Hughes smart hub example. Again,
- 33:52Speaker 2: using specialized Zigbie tools, researchers were able to capture the
- 33:55Speaker 2: commands sent from the mobile app to change a light
- 33:57Speaker 2: bulb's color. Because the system it didn't properly check if
- 34:01Speaker 2: the command was fresh or unique. They could simply replay
- 34:04Speaker 2: that captured packet later and the bulb would change color
- 34:06Speaker 2: again without any reauthentication needed from the app.
- 34:09Speaker 1: Control without credentials, just by replaying old messages exactly. Okay,
- 34:13Speaker 1: last Radio one Bluetooth Low Energy or BLE that's everywhere now,
- 34:18Speaker 1: fitness trackers, headphones, everywhere.
- 34:21Speaker 2: Its big advantages are low power use and simplicity, making
- 34:24Speaker 2: it ideal for battery powered gadgets. It's used in healthcare,
- 34:28Speaker 2: smart homes, wearables, tons of applications.
- 34:30Speaker 1: How does it work? Briefly?
- 34:32Speaker 2: BLE devices advertise their presence when you connect. They expose
- 34:35Speaker 2: things called services and characteristics. Think of services as categories
- 34:39Speaker 2: of function like heart rate or battery level, and characteristics
- 34:42Speaker 2: as the actual data points or controls within those services,
- 34:45Speaker 2: like the heart rate value or a command to turn
- 34:48Speaker 2: something on off. These are identified by unis numbers called UUIDs.
- 34:53Speaker 1: So interacting with the BLE device means reading or writing
- 34:56Speaker 1: these characteristics pretty much.
- 34:59Speaker 2: First, you need a BLE dongle on your computer. Then
- 35:02Speaker 2: you use tools like h tool s scan on Linux
- 35:05Speaker 2: to scan for nearby BLE devices. You'll see their names
- 35:09Speaker 2: and MTh addresses BDA d DR find your target right.
- 35:13Speaker 2: Then you use a tool like gad tool to connect
- 35:15Speaker 2: to the device using its address. Once connected, you can
- 35:18Speaker 2: use commands like primary to list its services and char
- 35:21Speaker 2: desk to list the characteristics within those services along with
- 35:25Speaker 2: their unique handles short addresses.
- 35:27Speaker 1: And then you manipulate them.
- 35:28Speaker 2: Yep, you can read the current value of a characteristic
- 35:31Speaker 2: using shar red and and its handle number, or more interestingly,
- 35:34Speaker 2: you can write a new value using char rate rec
- 35:37Speaker 2: the handle number and the new value in hexdesimal.
- 35:40Speaker 1: Give me an example.
- 35:41Speaker 2: Okay, say you have a simple BLEI tag tracker that
- 35:44Speaker 2: beeps if you get too far from your phone. Maybe
- 35:47Speaker 2: it disconnects too easily. You might find a characteristic related
- 35:51Speaker 2: to connection parameters. You read its current value, then write
- 35:54Speaker 2: a new value to try and keep it connected longer.
- 35:57Speaker 2: Or on a proximity beacon might be an alert level
- 36:01Speaker 2: characteristic standard ui D zero by two AO six six.
- 36:05Speaker 2: You could write the value ero one to its handle
- 36:07Speaker 2: to make the beacon start buzzing, or two to make
- 36:10Speaker 2: it buzz louder. You're directly controlling the device by writing
- 36:14Speaker 2: to these characteristics.
- 36:15Speaker 1: That seems quite powerful. What about sniffing and replaying.
- 36:18Speaker 2: BLE also possible? You need specialized hardware for reliable sniffing,
- 36:22Speaker 2: like the ubertooth.
- 36:22Speaker 1: One ubertooth another cool name.
- 36:25Speaker 2: Yeah, you run uberto buttlef to follow connections from a
- 36:28Speaker 2: specific device address and dump the captured packets to a PCC.
- 36:31Speaker 1: File and analyze that file exactly.
- 36:33Speaker 2: Open it. In wire shark, you can filter for BLE
- 36:36Speaker 2: attribute protocol att packets which contain the read write requests
- 36:40Speaker 2: for characteristics. You can see the handles being accessed and
- 36:42Speaker 2: the data values being exchanged.
- 36:44Speaker 1: So you could see the exact hex value sent to
- 36:46Speaker 1: turn a smart light red precisely.
- 36:49Speaker 2: Wider shark would show you the right request packet, the
- 36:52Speaker 2: handle for the color characteristic, and the RGB values being
- 36:55Speaker 2: sent oug fs zero zero zero for.
- 36:58Speaker 1: Red, and then you could just replay that value yourself.
- 37:00Speaker 2: Yep, go back to gat tool, connect to the light
- 37:03Speaker 2: and use charwright rec with the correct handle and that
- 37:06Speaker 2: ff zero zero zero value and the light should turn red.
- 37:10Speaker 2: You've replicated the command without needing the original app. There
- 37:13Speaker 2: are even guy tools like BTL Juice that try to
- 37:16Speaker 2: automate this sniffing and replaying in real time.
- 37:19Speaker 1: So across all these radio protocols, the themes seem to
- 37:22Speaker 1: be sniffing unencrypted data, finding wheak keys, and exploiting replay vulnerabilities.
- 37:27Speaker 2: Those are definitely some of the most common attack vectors
- 37:29Speaker 2: in the radio space.
- 37:30Speaker 1: For IoT Wow, we've covered a lot of ground from
- 37:34Speaker 1: the very beginnings of IoT and why it grew so insecurely.
- 37:37Speaker 2: Right the wild West phase and the lack of initial oversight.
- 37:40Speaker 1: To looking at specific sometimes scary hacks like the jeep
- 37:43Speaker 1: or the insulin pump.
- 37:44Speaker 2: Learning from those past mistakes is crucial.
- 37:46Speaker 1: Then digging into the root causes fragmentation, developer awareness, supply.
- 37:50Speaker 2: Chains, understanding the why behind the vulnerabilities, and.
- 37:54Speaker 1: Then we got into the actual techniques, the pentester's process,
- 37:57Speaker 1: mapping the attack surface.
- 37:58Speaker 2: The importance of that in reconnaissance.
- 38:00Speaker 1: The hardware tear downs, finding those secret ports like yort.
- 38:04Speaker 2: Getting physical with the device often the first step to deep.
- 38:08Speaker 1: Access, exploiting it two C and SPI to grab data
- 38:12Speaker 1: or even the entire firmware.
- 38:14Speaker 2: Speaking of those low level hardware languages.
- 38:16Speaker 1: Then diving deep into that firmware, extracting it, finding secrets,
- 38:19Speaker 1: emulating it, even backdooring.
- 38:21Speaker 2: It, analyzing the device's brain.
- 38:23Speaker 1: And finally exploring the invisible world of radio waves with
- 38:27Speaker 1: SDR decoding signals, replaying commands over zigbie and ble.
- 38:32Speaker 2: Listening to the airwaves often a treasure trove of flaws.
- 38:36Speaker 2: It's been quite a journey through the layers of IoT security,
- 38:39Speaker 2: and hopefully this deep dive gives you a much more
- 38:41Speaker 2: solid grasp of why these devices can be risky and
- 38:44Speaker 2: the clever, sometimes complex ways these risks are uncovered and exploited.
- 38:48Speaker 2: We wanted to make this complex field feel a bit
- 38:50Speaker 2: more accessible.
- 38:51Speaker 1: Absolutely, you now have a much clearer picture of what's
- 38:55Speaker 1: going on under the hood of all those smart devices
- 38:57Speaker 1: you interact with every single day. And this knowledge isn't
- 39:01Speaker 1: just for the tech experts, right, It's really about being
- 39:03Speaker 1: a smarter, more critical consumer in this super connected world we.
- 39:07Speaker 2: Live in now, exactly, and maybe it leads you with
- 39:10Speaker 2: the final thought to consider what other devices in your life.
- 39:13Speaker 2: Things that seem totally ordinary or harmless might have surprising
- 39:17Speaker 2: hidden layers or vulnerabilities, just waiting for someone to take
- 39:20Speaker 2: a deep dive, or for a flaw to be found.