Latest / CyberCode Academy / Course 47 - SCADA Security Architect (CSSA) | Episode 4: ICS Reconnaissance & Scanning Techniques
Transcript
- 0:00Speaker 1: Welcome to the Deep Dive. So right now, running the
- 0:03Speaker 1: world all around you, there is this hidden, almost invisible map.
- 0:08Speaker 2: Right.
- 0:09Speaker 1: And we're not talking about a map of streets or
- 0:12Speaker 1: topography or subway lines or anything like that.
- 0:14Speaker 2: Yeah, exactly.
- 0:16Speaker 1: This is a map of the digital infrastructure that is
- 0:19Speaker 1: literally keeping modern society functioning.
- 0:21Speaker 2: I mean, think about the water treatment plants, the factory floors,
- 0:24Speaker 2: the massive databases, even the routers directing all.
- 0:28Speaker 1: Of this traffic. It is all connected. It all has
- 0:31Speaker 1: a blueprint. And today, we're going to show you exactly
- 0:34Speaker 1: how cybersecurity professionals and, well, attackers actually steal that map.
- 0:39Speaker 2: Yeah. And we are focusing specifically on how this mapping
- 0:42Speaker 2: process applies to some of the most fragile high-stakes networks
- 0:46Speaker 2: out there, which are industrial control systems.
- 0:49Speaker 1: Right. You will often hear these referred to as ICS
- 0:52Speaker 1: or SCADA environments. Exactly.
- 0:54Speaker 2: And information gathering in these spaces, it's never just a
- 0:57Speaker 2: single dramatic hack like you see in the movies.
- 0:59Speaker 1: No.
- 1:00Speaker 2: It is a calculated methodology. You progress from entirely passive observation,
- 1:06Speaker 2: where you operate like a ghost, to active interrogation, uncovering
- 1:10Speaker 2: hardware details, software versions, and internal network protocols.
- 1:14Speaker 1: Right. Before you ever touch a target network, before a
- 1:18Speaker 1: single packet is routed their way, you look at what
- 1:21Speaker 1: they are freely broadcasting to the world.
- 1:23Speaker 2: Yeah, exactly.
- 1:24Speaker 1: So imagine you are standing a mile away from a
- 1:26Speaker 1: target building with a pair of high-powered binoculars. You aren't trespassing.
- 1:30Speaker 1: You haven't picked a lock.
- 1:31Speaker 2: You're just looking.
- 1:32Speaker 1: Right. You are simply writing down what is exposed through
- 1:35Speaker 1: the open windows. And the technical term for this is
- 1:38Speaker 1: open source intelligence or OSINT. Right. OSINT.
- 1:42Speaker 2: And the first tool you pull out of that binocular
- 1:44Speaker 2: kit is often just, well, standard search engines. Yeah.
- 1:48Speaker 1: Which is referred to in the industry as Google hacking.
- 1:50Speaker 2: It sounds super sophisticated, but you are just creating specially
- 1:54Speaker 2: crafted queries using targeted keywords and advanced search operators.
- 1:59Speaker 1: You just type it right into the search bar.
- 2:00Speaker 2: Basically, yeah. By knowing how to ask Google to filter
- 2:04Speaker 2: for specific file types or text strings buried in error pages,
- 2:08Speaker 2: you can reveal a staggering amount of hidden system information.
- 2:12Speaker 1: Stuff that administrators never intended to make public in the
- 2:15Speaker 1: first place.
- 2:15Speaker 2: Exactly. But, you know, Google searches the World Wide Web,
- 2:19Speaker 2: the indexed pages we all use for shopping and reading.
- 2:22Speaker 2: To look deeper, you pull out a totally different tool. Right.
- 2:26Speaker 1: Enter Shodan.
- 2:28Speaker 2: Oh yeah, Shodan.
- 2:29Speaker 1: Because Shodan doesn't search webpages. It searches the internet itself.
- 2:34Speaker 2: Right. It systematically scans the entire IPv4 address space 24
- 2:38Speaker 2: hours a day, collecting banner information on every single internet-connected
- 2:43Speaker 2: device it can reach.
- 2:44Speaker 1: And the scale of Shodan is, well, it's difficult to overstate.
- 2:48Speaker 2: It really is. To scan the entire internet so quickly,
- 2:51Speaker 2: it uses asynchronous stateless scanning.
- 2:54Speaker 1: Which means.
- 2:55Speaker 2: Well, instead of politely knocking on a door, waiting for
- 2:58Speaker 2: an answer and having a full conversation before moving to
- 3:01Speaker 2: the next house, Shodan just blasts out millions of tiny
- 3:05Speaker 2: requests simultaneously.
- 3:07Speaker 1: Just shotgunning the whole Internet.
- 3:08Speaker 2: Yeah. And it simply records whatever echoes back. I mean,
- 3:12Speaker 2: there is a reason CNN dubbed it the scariest security
- 3:16Speaker 2: search engine on the Internet.
- 3:17Speaker 1: Seriously. And the crazy thing is you literally just type
- 3:20Speaker 1: in specific queries to find industrial hardware. Right.
- 3:23Speaker 2: For instance, you can search RCA Modbus or Somatic plus HMI.
- 3:27Speaker 1: And HMI stands for Human Machine Interface, right?
- 3:30Speaker 2: Yeah. Essentially the control screen for a physical factory machine.
- 3:34Speaker 2: You can also search Somatic plus S7.
- 3:36Speaker 1: And the sheer volume of exposed critical infrastructure is just,
- 3:40Speaker 1: it's the most alarming part.
- 3:42Speaker 2: Oh, absolutely. Back in 2012, there was this research initiative
- 3:45Speaker 2: called Project Shine, which stood for Shodan Intelligence Extraction. Right.
- 3:50Speaker 1: I remember reading about that.
- 3:51Speaker 2: They discovered approximately 7,200 internet-facing devices that were directly tied
- 3:56Speaker 2: to critical control systems located just inside the United States alone.
- 4:00Speaker 1: Which is wild. That just seems like a massive architectural oversight.
- 4:04Speaker 1: It is. Why on earth would a critical system like
- 4:07Speaker 1: a water pump or a municipal power grid ever be
- 4:10Speaker 1: visible to a public search engine in the first place?
- 4:12Speaker 1: These are physical systems. They shouldn't be connected to the
- 4:14Speaker 1: open web.
- 4:15Speaker 2: You're right. They shouldn't. But it comes down to a
- 4:17Speaker 2: fundamental misunderstanding of Internet exposure mixed with, well, the desire
- 4:22Speaker 2: for efficiency. Right.
- 4:23Speaker 1: Convenience always wins.
- 4:24Speaker 2: Exactly. Historically, these systems were completely air-gapped, meaning there was
- 4:29Speaker 2: a literal physical separation between the factory network and the
- 4:33Speaker 2: outside world.
- 4:34Speaker 1: Right. Totally isolated.
- 4:36Speaker 2: But over the last two decades, engineers and executives... They
- 4:39Speaker 2: wanted remote access. They wanted to monitor pipeline pressure from
- 4:43Speaker 2: a laptop at corporate headquarters.
- 4:45Speaker 1: Ah, so they poked a hole in the defense.
- 4:47Speaker 2: Exactly. They poked a hole in their firewall to allow
- 4:50Speaker 2: that remote connection, assuming no one else would find it.
- 4:54Speaker 2: They forgot that if you can access it remotely, an
- 4:56Speaker 2: automated scanner like Shodan will inevitably index it. Wow.
- 5:00Speaker 1: Okay, so we've seen what's dangling out of the windows
- 5:03Speaker 1: facing the public street. Now we need the floor plan
- 5:06Speaker 1: of the building itself.
- 5:07Speaker 2: Right, getting inside.
- 5:09Speaker 1: To find out the target's internal layout, we go after
- 5:11Speaker 1: the network's own directory, which is DNS.
- 5:14Speaker 2: The domain name system.
- 5:16Speaker 1: Fundamentally, DNS is like the helpful operator of the internet.
- 5:19Speaker 2: Because humans are terrible at remembering long strings of numbers.
- 5:22Speaker 1: Yeah, exactly.
- 5:23Speaker 2: So DNS associates a human-readable hostname to an IP address.
- 5:27Speaker 2: You ask the DNS server a question, the server responds
- 5:30Speaker 2: with an IP address, and your computer blindly browses to it.
- 5:34Speaker 1: All right. And calling the operator and asking for one
- 5:37Speaker 1: specific person's phone number is normal traffic.
- 5:39Speaker 2: Yep.
- 5:40Speaker 1: But if you are mapping a network, you don't want
- 5:42Speaker 1: just one number. You want the whole directory.
- 5:44Speaker 2: Right. You want everything.
- 5:45Speaker 1: And the vulnerability you leverage here is called a zone transfer. Yes.
- 5:49Speaker 2: The zone transfer.
- 5:50Speaker 1: If normal DNS is asking for one number, a zone
- 5:54Speaker 1: transfer is tricking the operator into handing you the entire
- 5:56Speaker 1: city's printed phone book.
- 5:58Speaker 2: That's a great way to put it. The mechanics rely
- 6:00Speaker 2: on how large networks maintain redundancy. A large organization will
- 6:04Speaker 2: have a primary DNS server and then several backup secondary servers.
- 6:08Speaker 1: Just in case the main one goes down.
- 6:10Speaker 2: Exactly. The primary server shares its entire database, the zone file,
- 6:15Speaker 2: with those secondary servers to keep everything synchronized.
- 6:18Speaker 1: Okay, so to steal the map.
- 6:20Speaker 2: You simply send a request acting as one of those
- 6:22Speaker 2: backup servers. If the primary DNS server's access controls are misconfigured,
- 6:27Speaker 2: it just hands the entire zone file over to you.
- 6:30Speaker 1: Just like that. And mechanically, this traffic looks very different
- 6:33Speaker 1: from a standard query, which is vital if you're trying
- 6:36Speaker 1: to avoid detection, right? Right.
- 6:38Speaker 2: Standard DNS queries use UDP port 53.
- 6:41Speaker 1: Because UDP is a fast, connectionless protocol.
- 6:44Speaker 2: Yeah, it's fire and forget traffic. Perfect for a quick,
- 6:47Speaker 2: what's this IP kind of question. Firewalls generally let UDP
- 6:51Speaker 2: 53 pass blindly because it's assumed to be harmless standard traffic.
- 6:55Speaker 1: But a whole zone file is a massive amount of data,
- 6:58Speaker 1: so it cannot use UDP.
- 7:00Speaker 2: Exactly. Zone transfers require TCP port 53, which establishes a reliable,
- 7:05Speaker 2: error-checked data stream.
- 7:07Speaker 1: So from a defensive standpoint, a firewall should instantly flag
- 7:10Speaker 1: an external IP address, suddenly opening a massive TCP data
- 7:14Speaker 1: stream on port 53.
- 7:15Speaker 2: Oh, it's a massive red flag. Yep, because administrators often
- 7:19Speaker 2: blanket allow all port 53 traffic, these zone transfers frequently
- 7:23Speaker 2: slip right through.
- 7:24Speaker 1: Unbelievable. And once you download this printed phone book, you
- 7:28Speaker 1: have an incredible advantage. You get all the resource records.
- 7:31Speaker 2: You really get everything.
- 7:32Speaker 1: You receive the SOA or start of authority records detailing
- 7:36Speaker 1: the primary name server and the domain administrator's email. You
- 7:40Speaker 1: get the NS or name server records. Yep. And you
- 7:43Speaker 1: get the A records, which map out the actual IP
- 7:45Speaker 1: addresses for every internal host. And the MX records, which
- 7:49Speaker 1: pinpoint exactly where their mail exchanges are located.
- 7:53Speaker 2: I mean, it basically hands you the entire skeleton of
- 7:55Speaker 2: the organization. Right.
- 7:57Speaker 1: And the tools to execute this are universally available, aren't they?
- 8:00Speaker 2: Oh, yeah. On Windows, you have NSLookup. It is a
- 8:03Speaker 2: bit clunky, but it is built into the operating system.
- 8:07Speaker 1: How does that work?
- 8:07Speaker 2: You connect to the server and use the command ls-d domain.com
- 8:11Speaker 2: to request a dump of the zone. Okay.
- 8:14Speaker 1: But for a more powerful approach, you use DIG, the
- 8:16Speaker 1: domain information grouper. Yeah.
- 8:18Speaker 2: DIG is a Unix-based command line tool. It gives you
- 8:21Speaker 2: precise control over exactly what type of records you are
- 8:23Speaker 2: requesting and And it formats the output much more cleanly
- 8:26Speaker 2: for analysis.
- 8:27Speaker 1: Okay. So now we have the IP addresses and the
- 8:30Speaker 1: names of the machines inside the network.
- 8:32Speaker 2: Right.
- 8:33Speaker 1: But an IP address is just a location. It doesn't
- 8:35Speaker 1: tell us if that machine is a harmless office printer
- 8:39Speaker 1: or a critical water pressure valve.
- 8:40Speaker 2: Exactly. To figure out what the machine is actually doing
- 8:43Speaker 2: and how it is configured, we have to look at
- 8:45Speaker 2: the management protocols.
- 8:47Speaker 1: And in almost every enterprise network, looking at management means
- 8:50Speaker 1: targeting SNMP, the Simple Network Management Protocol.
- 8:54Speaker 2: Right, SNMP. It operates on a client-server architecture, though in
- 8:58Speaker 2: this context they are called managers and agents.
- 9:01Speaker 1: Okay, break that down for us.
- 9:03Speaker 2: So the agents are tiny pieces of software running directly
- 9:06Speaker 2: on the devices. The factory floor controllers, the routers, the switches.
- 9:10Speaker 2: These agents continuously collect hardware and network information.
- 9:14Speaker 1: And the managers?
- 9:15Speaker 2: The managers are the central servers that periodically pull those
- 9:18Speaker 2: agents to gather the data, ultimately populating a centralized dashboard
- 9:22Speaker 2: for the IT administrators.
- 9:24Speaker 1: Okay, so those agents are storing a massive trove of
- 9:27Speaker 1: valuable configuration data.
- 9:29Speaker 2: Oh, absolutely. They organize this data in a relational database
- 9:33Speaker 2: on the device itself, known as a MIB, or Management
- 9:36Speaker 2: Information Base.
- 9:38Speaker 1: MIB, got it.
- 9:39Speaker 2: Inside that MIB, specific variables, like a machine's operating temperature,
- 9:43Speaker 2: its routing table, or its fan speed, are organized by
- 9:47Speaker 2: long strings of dotted integers called OIDs, or Object Identifiers.
- 9:51Speaker 1: So those OIDs function like a numerical file directory.
- 9:55Speaker 2: Exactly. It looks like an IP address that just keeps going,
- 9:58Speaker 2: such as 1.3.6. and so on.
- 10:01Speaker 1: Right. And that numerical standardization ensures a manager made by
- 10:05Speaker 1: Cisco can effortlessly pull data from an agent made by Siemens.
- 10:10Speaker 2: Yep. To actually communicate and move that data, the manager
- 10:14Speaker 2: and the agent use PDUs, or protocol data units.
- 10:18Speaker 1: And looking at how this conversation happens, these PDUs are
- 10:21Speaker 1: basically a menu of commands, right?
- 10:23Speaker 2: Exactly. You have the get request, where the manager asks
- 10:26Speaker 2: for a specific OID value. You have the get next request,
- 10:30Speaker 2: which allows the manager to walk down the database list sequentially.
- 10:33Speaker 1: Okay, what about changing things?
- 10:36Speaker 2: That's the set request. It is incredibly powerful because it
- 10:39Speaker 2: allows the manager to actively change a configuration on the device.
- 10:42Speaker 1: And then standing apart from the rest, you have the trap.
- 10:45Speaker 2: Right, the trap flips the communication flow entirely. The get,
- 10:48Speaker 2: get next, and set commands are all initiated by the
- 10:51Speaker 2: manager polling the agent.
- 10:53Speaker 1: So the manager is asking the questions. Yes.
- 10:55Speaker 2: But the trap is an emergency alert initiated from the
- 10:58Speaker 2: device back to the manager.
- 11:00Speaker 1: Oh, okay. So the device uses a trap to say, hey,
- 11:03Speaker 1: my temperature just exceeded safety limits. You need to know
- 11:06Speaker 1: this instantly. Exactly.
- 11:08Speaker 2: And network-wise, most of this communication, the gets and sets,
- 11:12Speaker 2: run over UDP port 161. The emergency traps are sent
- 11:16Speaker 2: to the manager on UDP port 162.
- 11:18Speaker 1: Okay, looking at the security model for this architecture, it
- 11:22Speaker 1: appears the entire configuration is guarded by a single plaintext string.
- 11:26Speaker 2: Yeah, that's pretty wild.
- 11:27Speaker 1: I mean, are you saying that the only thing protecting
- 11:29Speaker 1: these highly sensitive critical infrastructure devices is a plaintext password
- 11:33Speaker 1: shared by everyone which defaults to the word public or private?
- 11:37Speaker 2: It is entirely true, and it is a widely known
- 11:40Speaker 2: vulnerability in the industry. These passwords are called community strings.
- 11:44Speaker 1: Wow. Yeah.
- 11:46Speaker 2: If an attacker discovers the public community string, they gain
- 11:49Speaker 2: read access. They can see the entire MIB, revealing exactly
- 11:52Speaker 2: what the device is and how it is operating.
- 11:54Speaker 1: And what if they get the private string?
- 11:57Speaker 2: If they discover the private string, they gain read and
- 12:00Speaker 2: write access. By issuing a set command, they can alter
- 12:04Speaker 2: the device's configuration. They effectively own the machine.
- 12:07Speaker 1: That seems utterly reckless. Why would critical infrastructure rely on
- 12:11Speaker 1: a security model from the 1980s?
- 12:14Speaker 2: Well, it is a combination of technical debt and the
- 12:16Speaker 2: prioritization of uptime over security. SNMP version 1 was designed
- 12:21Speaker 2: in 1988. Right.
- 12:22Speaker 1: The dark ages of the internet.
- 12:25Speaker 2: Exactly. At that time, getting different machines to talk to
- 12:28Speaker 2: each other at all was a miracle. Security wasn't even
- 12:31Speaker 2: part of the threat model.
- 12:33Speaker 1: But surely there's a newer version.
- 12:36Speaker 2: There is. In 1999, the industry introduced SNMP version 3,
- 12:40Speaker 2: which features robust authentication and encryption. But patching or upgrading
- 12:45Speaker 2: a live factory floor is dangerous and very expensive.
- 12:48Speaker 1: Ah, so in legacy ICS environments, administrators simply leave SNMP
- 12:53Speaker 1: version 1 running because it works.
- 12:55Speaker 2: Yep. If it ain't broke, don't fix it is a
- 12:58Speaker 2: huge problem here. Right.
- 12:59Speaker 1: But because it is plain text and unencrypted, attackers can
- 13:03Speaker 1: easily brute force these community strings.
- 13:05Speaker 2: Oh, effortlessly. There are dedicated tools like NN161 designed specifically
- 13:11Speaker 2: to rapidly guess SNMP passwords.
- 13:13Speaker 1: And once they find the string, they perform SNMP walking, right?
- 13:17Speaker 2: Yeah, sequentially querying every single OID to dump the entire database.
- 13:22Speaker 2: And even if administrators change the default password, they often
- 13:25Speaker 2: use highly predictable patterns.
- 13:28Speaker 1: Like appending the word public to the company name. Exactly.
- 13:32Speaker 2: So look at where we are now. You've gathered public
- 13:34Speaker 2: OSINT passively. You've downloaded the internal DNS floor plan. And
- 13:38Speaker 2: you've intercepted the SNMP management traffic to see how the
- 13:42Speaker 2: machines are configured. Right.
- 13:43Speaker 1: We know the layout.
- 13:45Speaker 2: So now you must move to active network discovery. You
- 13:48Speaker 2: have to physically touch the devices on the network to
- 13:51Speaker 2: see if they are alive and what ports are open.
- 13:53Speaker 1: And active discovery starts with the most fundamental tool in networking,
- 13:57Speaker 1: which is the ping sweep. Right. You send an ICMP
- 14:00Speaker 1: echo request, which is a type 8 message, and you
- 14:03Speaker 1: wait for the machine to reply with an echo reply,
- 14:05Speaker 1: a type 0. It is the digital equivalent of playing
- 14:08Speaker 1: Marco Polo to see who is in the pool.
- 14:10Speaker 2: That's a great analogy. But here's a catch. In a
- 14:13Speaker 2: traditional IT network, a ping sweep is harmless. In an
- 14:17Speaker 2: ICS or SCADA network, it can cause catastrophic physical damage.
- 14:21Speaker 1: Yeah, this is a crucial distinction. There is a documented
- 14:24Speaker 1: real-world example where an IT team performed a standard ping
- 14:28Speaker 1: sweep on an ICS network, and the resulting traffic caused
- 14:31Speaker 1: a legacy system controlling the creation of integrated circuits to
- 14:35Speaker 1: completely lock up.
- 14:36Speaker 2: Yeah, completely panic the system.
- 14:38Speaker 1: It ended up destroying the physical materials on the line
- 14:40Speaker 1: and causing $ 50, 000 in damage. Just from a ping.
- 14:44Speaker 2: Right. And to understand why a simple ping sweep crashes
- 14:47Speaker 2: a factory machine, you have to look at the hardware.
- 14:49Speaker 1: Okay, let's get into it.
- 14:50Speaker 2: These legacy programmable logic controllers, or PLCs, run on very old,
- 14:55Speaker 2: single-threaded processors. They were engineered to perform one hyper-specific physical task,
- 15:01Speaker 2: like monitoring of valve pressure every 10 milliseconds.
- 15:04Speaker 1: So they don't multitask well.
- 15:05Speaker 2: They don't multitask at all. When you suddenly flood that
- 15:08Speaker 2: network interface with ICMP requests... The processor halts the physical
- 15:12Speaker 2: safety relay to process the network traffic. It panics, misses
- 15:17Speaker 2: its physical timing window, and the whole system hangs.
- 15:19Speaker 1: Wow. Which means when you use the undisputed king of
- 15:22Speaker 1: network reconnaissance, NMAP, you have to understand exactly how its
- 15:26Speaker 1: packets interact with the environment.
- 15:28Speaker 2: Absolutely.
- 15:29Speaker 1: Let's look at a standard NMAP TCP Connect scan. It
- 15:32Speaker 1: performs a full three-way handshake. Right. It sends a SYN
- 15:35Speaker 1: packet to synchronize, waits for the SYNAC acknowledgement from the target,
- 15:39Speaker 1: sends an ACK back to finalize the connection and then
- 15:41Speaker 1: immediately drops it.
- 15:43Speaker 2: Now, a TCP connect scan is highly reliable, but it
- 15:46Speaker 2: is incredibly noisy. Firewalls and intrusion detection systems are specifically
- 15:51Speaker 2: watching for that exact sequence of handshakes.
- 15:53Speaker 1: It is the digital equivalent of walking up to the
- 15:56Speaker 1: front gate, shaking the security guard's hand, showing your ID,
- 15:59Speaker 1: and then suddenly sprinting away.
- 16:00Speaker 2: Yeah, exactly. The guard logs your presence immediately.
- 16:05Speaker 1: And NMAP analyzes the responses to tell you exactly what
- 16:08Speaker 1: state the ports are in, right? It categorizes them into
- 16:10Speaker 1: six states. Yes.
- 16:12Speaker 2: Open, closed, and filtered.
- 16:15Speaker 1: Filtered means a firewall is actively dropping your probes, so
- 16:18Speaker 1: NMAP can't tell what is behind.
- 16:20Speaker 2: It, right?
- 16:20Speaker 1: Exactly.
- 16:22Speaker 2: Then there's unfiltered, open filtered, and closed filtered. And NMAP's
- 16:26Speaker 2: utility goes far beyond basic port scanning. Right.
- 16:29Speaker 1: It includes the NSE, the NMAP scripting engine.
- 16:32Speaker 2: Yeah, it actually features scripts built specifically to interrogate industrial
- 16:36Speaker 2: control systems.
- 16:37Speaker 1: Like what?
- 16:38Speaker 2: Well, scripts like Modbus-Discover and S7-Info can extract deep hardware information,
- 16:45Speaker 2: firmware versions, and module details right out of the factory controllers.
- 16:49Speaker 1: That's incredibly powerful. But if a simple ping sweep can
- 16:53Speaker 1: cost $ 50, 000, unleashing a barrage of NMAP scripts on a
- 16:57Speaker 1: factory floor is a recipe for a blackout.
- 17:00Speaker 2: Which is why mastering NMAP requires utilizing its timing templates.
- 17:04Speaker 2: You must use slow scan options designed to protect fragile targets, polite, sneaky,
- 17:09Speaker 2: and paranoid modes.
- 17:11Speaker 1: Right. And the paranoid timing template actually spaces the packets
- 17:14Speaker 1: out over time.
- 17:15Speaker 2: Yes. You manually set scan delays, commanding NMAP to only
- 17:19Speaker 2: send one single probe per second. This prevents those single-threaded
- 17:23Speaker 2: PLCs from being overwhelmed.
- 17:25Speaker 1: And you must absolutely avoid the slash SC flag, right? Oh, definitely.
- 17:30Speaker 2: That flag automatically runs a barrage of default scripts, which
- 17:34Speaker 2: is way too aggressive. And you never use intense version
- 17:37Speaker 2: detection against legacy equipment.
- 17:39Speaker 1: Okay. But what if even a slow MMAP scan poses
- 17:42Speaker 1: too much risk to the physical equipment?
- 17:45Speaker 2: Then you pivot to alternative methodologies. You use a tool
- 17:48Speaker 2: like NetDiscover, which is entirely passive.
- 17:50Speaker 1: Passive, meaning it doesn't send anything. Exactly.
- 17:53Speaker 2: It works by listening to ARP traffic, the address resolution protocol.
- 17:58Speaker 2: Devices naturally broadcast ARP requests to the network asking, who
- 18:01Speaker 2: has this IP address? Please tell my MAC address.
- 18:04Speaker 1: Ah, so NetDiscover simply sits on the wire and logs
- 18:07Speaker 1: these broadcasts.
- 18:09Speaker 2: Yeah, building a complete map of the active host without
- 18:11Speaker 2: ever sending a single packet itself.
- 18:13Speaker 1: That's smart. But for active scanning that is inherently safer,
- 18:17Speaker 1: you'd rely on highly targeted ICS-specific scanners like PLC scan, right?
- 18:23Speaker 2: Correct. Instead of blindly knocking on every single port like
- 18:27Speaker 2: NMAT might, PLC scan only queries the exact ports used
- 18:30Speaker 2: by industrial equipment.
- 18:32Speaker 1: Stuff like Siemens port 102 and Modbus port 502.
- 18:36Speaker 2: Yes. It limits the interaction to the bare minimum required
- 18:39Speaker 2: to verify the device. Because, you know, it requires extreme precision.
- 18:44Speaker 1: Yeah, you are interrogating an ecosystem that was built for
- 18:47Speaker 1: physical reliability, not digital resilience. Exactly.
- 18:50Speaker 2: Wow.
- 18:53Speaker 1: Okay, so we've covered the complete methodology here.
- 18:55Speaker 2: We really have.
- 18:57Speaker 1: You start as a distant observer, utilizing Shodan to index
- 19:00Speaker 1: the misconfigurations exposed to the public internet. Then you trick
- 19:05Speaker 1: the DNS servers into performing a zone transfer, handing over
- 19:08Speaker 1: the entire internal floor plan.
- 19:10Speaker 2: Right.
- 19:11Speaker 1: Then you intercept the management traffic, leveraging plain text SNMP
- 19:14Speaker 1: community strings to view the device configurations. Yep. And finally,
- 19:19Speaker 1: you carefully navigate the internal network, using passive ARP discovery
- 19:23Speaker 1: and perfectly timed paranoid NMAP scans to map the physical
- 19:27Speaker 1: hardware without crashing the plant.
- 19:29Speaker 2: It is a logical progression from open source intelligence all
- 19:32Speaker 2: the way to deep active network manipulation.
- 19:35Speaker 1: So to reinforce everything you've learned today, consider this quick
- 19:39Speaker 1: review question for you to think about. Imagine you are
- 19:42Speaker 1: tasked with mapping a highly fragile factory network. Which plaintext
- 19:47Speaker 1: protocol from the 1980s should you immediately investigate to find
- 19:51Speaker 1: configuration data? And why must you avoid running a standard
- 19:55Speaker 1: full-speed NMAP scan against the PLCs on the floor?
- 19:58Speaker 2: That's a great question to test what we've talked about.
- 20:01Speaker 2: The answer really lies in understanding the constraints of the environment.
- 20:05Speaker 1: Absolutely.
- 20:06Speaker 2: And to leave you with a final thought on this process,
- 20:09Speaker 2: Consider the deep duality of the protocols we have discussed today.
- 20:13Speaker 2: The exact same mechanisms used by engineers to keep the
- 20:15Speaker 2: lights on and the water flowing, the DNS directories, the
- 20:19Speaker 2: SNMP managers, the network polling. Those are the very mechanisms
- 20:24Speaker 2: leveraged to compromise them. The architecture of the internet is
- 20:27Speaker 2: inherently neutral. It's just tools.
- 20:30Speaker 1: It really all comes down to who is asking the questions.
- 20:33Speaker 1: And suddenly that hidden invisible map running the world around
- 20:37Speaker 1: you doesn't feel so invisible anymore. Thanks for joining us
- 20:41Speaker 1: on this deep dive.