Latest / CyberSecurity Summary / Network Basics for Hackers: How Networks Work and How They Break
Transcript
- 0:00Speaker 1: Imagine a world where every email you send, every video
- 0:04Speaker 1: you stream, all the smart devices in your home, even
- 0:07Speaker 1: your car, they're all speaking this hidden language. It's this
- 0:11Speaker 1: invisible web of connections making our digital lives work. But
- 0:14Speaker 1: what if you could actually understand that language, the nuts
- 0:17Speaker 1: and bolts of it, and crucially see where the weak
- 0:20Speaker 1: spots are.
- 0:21Speaker 2: That's a really powerful idea, because in today's world everything's connected.
- 0:26Speaker 2: Understanding how networks actually function it's not just for the
- 0:30Speaker 2: tech geeks or the security pros anymore, like a critical
- 0:34Speaker 2: way to see what's happening in our digital lives, whether
- 0:36Speaker 2: you're building things, securing them, or just trying to use
- 0:39Speaker 2: the Internet safely exactly.
- 0:41Speaker 1: And that's really our mission today on the deep Dive.
- 0:43Speaker 1: We're going to dig into a foundational guide. It's called
- 0:46Speaker 1: Network Basics for Hackers, written by Occupy the Web. Their website,
- 0:51Speaker 1: hackers Arise is described as a white hat hacker training site,
- 0:56Speaker 1: So the focus is on using these skills for good ethically.
- 1:00Speaker 1: Our goal here is to pull out the most important bits,
- 1:03Speaker 1: those nuggets of knowledge, to give you a shortcut to
- 1:06Speaker 1: really getting how networks operate their flaws and you understand
- 1:10Speaker 1: not just what's happening. But why it's important.
- 1:13Speaker 2: And what's interesting about this source is how it defines
- 1:16Speaker 2: white hat hacker. It's not just about finding flaws for companies.
- 1:19Speaker 2: It talks about being a beacon and warrior for information
- 1:25Speaker 2: freedom and human rights on the Internet.
- 1:27Speaker 1: That's a strong statement.
- 1:28Speaker 2: Yeah, and it even goes into detail about occupyth Web's
- 1:31Speaker 2: documented activities in the Ukraine conflict, things like denial of
- 1:37Speaker 2: service attacks against Russian government sites, finding oligarch yachts, hacking
- 1:41Speaker 2: cameras for war crime evidence, even cyber attacks on Russian
- 1:44Speaker 2: industrial systems, the schodaic stuff, and setting up a cybersecurity
- 1:48Speaker 2: school in Kharkiev. Now, obviously we're just reporting this impartially
- 1:52Speaker 2: as it's laid out in the source material.
- 1:54Speaker 1: Right understood, Okay, so let's get into it. We're started
- 1:56Speaker 1: with the absolute basics, the plumbing, like what is an
- 1:59Speaker 1: IP address really, and we'll go all the way to
- 2:03Speaker 1: well networks in cars, factories, even hacking radio signals. It's
- 2:08Speaker 1: a deep dive into the hidden anatomy of our digital world.
- 2:12Speaker 1: Let's start right at the beginning. IP addresses.
- 2:15Speaker 2: Okay, Yeah, IP addresses they are absolutely fundamental. Think of
- 2:18Speaker 2: it simply as the house address for every single digital device,
- 2:21Speaker 2: your laptop, your phone, your smart fridge. Without that unique address,
- 2:26Speaker 2: data just wouldn't know where to go. Communication breaks down.
- 2:29Speaker 1: So if it's a house number, how's it structured? Most
- 2:32Speaker 1: of us are still on IPv four, right, that's the
- 2:34Speaker 1: thirty two bit one.
- 2:35Speaker 2: That's the one. It's broken into four groups of eight bits.
- 2:37Speaker 2: We call those octets. So you see things like one,
- 2:40Speaker 2: ninety two point one, sixty eight point one, one zero
- 2:42Speaker 2: one each number in there. Each octet can be anything
- 2:45Speaker 2: from zero up to two fifty five. Okay, Now, historically
- 2:48Speaker 2: these were grouped into classes ABC based on the first
- 2:50Speaker 2: few numbers. Helped organize things early on. But the real issue,
- 2:54Speaker 2: the big problem today is we've basically run out of
- 2:56Speaker 2: IPv four addresses. Yeah, there are only about four point
- 3:00Speaker 2: three billion unique addresses possible with that thirty two bit structure,
- 3:04Speaker 2: and we've got what over seven point five billion people
- 3:07Speaker 2: plus way more devices than that. The math just doesn't
- 3:10Speaker 2: work anymore.
- 3:11Speaker 1: So how do we cope. That's where things like private
- 3:13Speaker 1: ips come.
- 3:14Speaker 2: In, exactly. That's one of the clever workarounds. They set
- 3:16Speaker 2: aside specific ranges of IP addresses just for internal use
- 3:20Speaker 2: inside your local area network your land. These are the private.
- 3:23Speaker 1: Ips like one ninety two point one six eight dot
- 3:26Speaker 1: something or ten dots are the common ones.
- 3:28Speaker 2: Yeah, one ninety two point one six eight dot x
- 3:30Speaker 2: dot x, ten dot x dot is and also the
- 3:32Speaker 2: one seventy two point one six dot x dot x range.
- 3:35Speaker 2: Your home router probably signs these to all your devices, which.
- 3:38Speaker 1: Brings up a good question. Then, if my phone is
- 3:41Speaker 1: an internal private IP like one ninety two point one
- 3:43Speaker 1: six eight point one point five, how does it talk
- 3:46Speaker 1: to a website out on the public internet.
- 3:47Speaker 2: Ah? Good question. That involves two key pieces of magic
- 3:51Speaker 2: DHCP and net. First, DCP Dynamic Host Configuration protocol that's
- 3:56Speaker 2: usually running on your router. It automatically hands out those
- 3:58Speaker 2: private IP addresses to divice is joining your network. Often
- 4:01Speaker 2: it's just a temporary lease, so your phone might get
- 4:03Speaker 2: a slightly different private IP next time it connects.
- 4:05Speaker 1: Got it and that.
- 4:06Speaker 2: NAT is network address translation. Think of it as the
- 4:10Speaker 2: translator or the receptionist for your entire network. It lets
- 4:14Speaker 2: all those devices on your internal network, each with its
- 4:16Speaker 2: own private IP. Yeah, share the single public IP address
- 4:20Speaker 2: that your internet provider gives to your router.
- 4:23Speaker 1: Ah. Good.
- 4:24Speaker 2: So When your phone sends a request out, NAT swaps
- 4:27Speaker 2: the private source IP for the router's public IP, keeps
- 4:30Speaker 2: a record, and when the reply comes back, NAT knows
- 4:33Speaker 2: exactly which internal device which private IP to send it
- 4:36Speaker 2: back to, and.
- 4:37Speaker 1: It all just happens automatically, feels seamless to.
- 4:39Speaker 2: Me as the user, completely transparent. That's the beauty of it. Okay,
- 4:44Speaker 2: so we have the house address the IP. What about
- 4:46Speaker 2: the apartment number.
- 4:47Speaker 1: That's whereports come in ports. Right, So the IP gets
- 4:50Speaker 1: dated to the right computer, but the port tells it
- 4:53Speaker 1: which specific program or service on that computer should receive it, exactly.
- 4:58Speaker 2: Like web traffic usually goes to port eighty for standard
- 5:01Speaker 2: HTTP or four to forty three for secure HTTPS. Email
- 5:05Speaker 2: uses different ports, Games use different ports. It directs the
- 5:08Speaker 2: traffic internally.
- 5:09Speaker 1: And how many ports are there? I remember reading it's
- 5:11Speaker 1: a lot.
- 5:12Speaker 2: It is sixty five thousand, five hundred and thirty six
- 5:15Speaker 2: possible ports for each IP address zero through six hundred
- 5:19Speaker 2: and five to five thirty five. The first oneenty twenty
- 5:22Speaker 2: four are often called the well known or common ports
- 5:25Speaker 2: reserved for standard services, and from.
- 5:27Speaker 1: A security angle, knowing which ports are open on a
- 5:29Speaker 1: device is huge, right, that's what tools like map do
- 5:33Speaker 1: absolutely critical.
- 5:34Speaker 2: End MAP scans a target. IP probes these ports and
- 5:37Speaker 2: tells you which ones are open, meaning a service is
- 5:39Speaker 2: listening there. It's often the very first step in reconnaissance,
- 5:42Speaker 2: for a security assessment or for an attacker. It maps
- 5:45Speaker 2: out the potential entry points.
- 5:46Speaker 1: Okay, so IP addresses for location ports for the specific service.
- 5:50Speaker 1: What's the language they're actually speaking? That's TCPIP primarily.
- 5:54Speaker 2: Yes, TCPIP is the dominant suite of protocols for Internet communication.
- 5:58Speaker 2: TCP is Transmission Control protocol and IP is Internet protocol.
- 6:02Speaker 1: And protocols are just agreed upon rules.
- 6:05Speaker 2: For talking, pretty much like a language has grammar and vocabulary.
- 6:08Speaker 2: For networks, these rules ensure devices understand each other. They're
- 6:11Speaker 2: often defined in technical documents called RFC's Requests for Comments.
- 6:15Speaker 1: So the IP part that handles the addressing and routing,
- 6:18Speaker 1: making sure packets get from source AID to destination B correct.
- 6:21Speaker 2: The ipheader within each data packet contains crucial info like
- 6:26Speaker 2: the version is this IPv four or the newer IPv
- 6:29Speaker 2: six and the source and destination IP addresses?
- 6:32Speaker 1: Obviously, what about that TTL field I've heard about? Time
- 6:35Speaker 1: to live?
- 6:35Speaker 2: Ah? Yes, TTL. It's basically a counter that prevents packets
- 6:40Speaker 2: from looping endlessly around the Internet. Each router that handles
- 6:43Speaker 2: the packet decreases the TTL value. If it hits zero,
- 6:47Speaker 2: the packet is discarded. Okay, but here's a neat trick.
- 6:51Speaker 2: Different operating systems often start packets with different default TTL values,
- 6:55Speaker 2: So just by looking at the TTL of incoming packets,
- 6:58Speaker 2: you can sometimes make a pretty good I guess about
- 7:00Speaker 2: the sender's OS, Windows, Linux, Mac OS. It's a passive
- 7:03Speaker 2: fingerprinting technique.
- 7:05Speaker 1: That's clever. Okay, So that's IP. What about the TCP
- 7:08Speaker 1: part you said, Transmission Control Protocol Right.
- 7:10Speaker 2: TCP sits on top of IP and adds reliability. It's
- 7:13Speaker 2: header has fields like source port and destination port. Connecting
- 7:16Speaker 2: back to our port discussion makes sense. But crucially, it
- 7:19Speaker 2: adds sequence numbers and acknowledgment numbers. These ensure that all
- 7:22Speaker 2: the packets arrive and that they get reassembled in the
- 7:25Speaker 2: correct order at the destination. If the center doesn't get
- 7:28Speaker 2: an acknowledgment ack back for a packet it's sent, it
- 7:31Speaker 2: knows to resend it.
- 7:33Speaker 1: So that's why TCP is called connection oriented and reliable
- 7:36Speaker 1: because of that back and forth checking.
- 7:38Speaker 2: Precisely, it establishes a formal connection before sending data and
- 7:42Speaker 2: ensures everything gets there intact.
- 7:44Speaker 1: And what are those TCP flags? Things like s yn
- 7:47Speaker 1: ack fim ah.
- 7:48Speaker 2: The flags. They're like little single bit signals within the
- 7:52Speaker 2: TCP header that manage the state of the connection. S
- 7:55Speaker 2: yn synchronized starts a connection, ack acknowledged, confirms seat of data,
- 8:01Speaker 2: fin finish signals the end of the data transmission.
- 8:04Speaker 1: Okay.
- 8:04Speaker 2: There are others to like RST reset to abruptly kill
- 8:07Speaker 2: a connection, or PSH push and urg urgent. Understanding these
- 8:13Speaker 2: flags is key for analyzing traffic, and attackers can manipulate
- 8:17Speaker 2: them for scanning like an s yn scan or even
- 8:20Speaker 2: trying to bypass firewalls.
- 8:21Speaker 1: And this all starts with the famous three way handshake.
- 8:24Speaker 2: Every single TCP connection. Yes, it's fundamental.
- 8:27Speaker 1: How does that work again?
- 8:28Speaker 2: Simple client sends a s yn packet I want to connect.
- 8:31Speaker 2: Server replies with a s y n ack. Okay, acknowledge
- 8:35Speaker 2: your request, and I also want to sink. Client sends
- 8:37Speaker 2: a final ack, got it connection established? Only then can
- 8:41Speaker 2: the actual data start flowing. S yn s yn ack
- 8:45Speaker 2: three steps, got.
- 8:46Speaker 1: It s y n s y n ack ack.
- 8:50Speaker 2: So TCP is reliable, but has that set up overhead?
- 8:53Speaker 2: What's the alternative?
- 8:54Speaker 1: UDP? UDP user data GRAM protocols the polar opposite in
- 8:58Speaker 1: some ways. It's connectionless, meaning meaning it doesn't do the handshake.
- 9:01Speaker 1: It just sends packets datagrams out toward the destination. No
- 9:05Speaker 1: sequence numbers, no acknowledgements, no guarantee they'll arrive or in
- 9:08Speaker 1: what order.
- 9:08Speaker 2: So why use it?
- 9:09Speaker 1: Sounds risky Because it's fast and efficient, low overhead. It's
- 9:12Speaker 1: perfect for things where losing a tiny bit of data
- 9:14Speaker 1: isn't the end of the world and speed matters more.
- 9:17Speaker 1: Think streaming video or music ah.
- 9:20Speaker 2: Right, a droped frame is barely noticeable exactly, or online gaming. Also,
- 9:25Speaker 2: some really important network services use UDP, like DNS for
- 9:30Speaker 2: looking up domain names, SNMP for network management, and NTP
- 9:34Speaker 2: for time synchronization. They handle reliability at the application layer
- 9:38Speaker 2: if needed.
- 9:38Speaker 1: Okay, that makes sense. Protocols covered. What about the physical
- 9:41Speaker 1: layout how the devices are actually connected.
- 9:44Speaker 2: Network topology right toology how the network is physically or
- 9:48Speaker 2: logically arranged. There are a few classic types. The simplest
- 9:52Speaker 2: is maybe the bus topology like.
- 9:54Speaker 1: An old school ethernet cable everyone plugs into.
- 9:57Speaker 2: Pretty much all devices share a single communication line. It's
- 10:01Speaker 2: cheap and easy to set up, but prone to collisions
- 10:03Speaker 2: if multiple devices talk at once, and if the main
- 10:06Speaker 2: cable breaks, the whole segment goes down.
- 10:08Speaker 1: Not ideal. What's more common now for.
- 10:10Speaker 2: Local area networks definitely the start apology. Every device connects
- 10:13Speaker 2: directly to a central point, usually a switch these days,
- 10:16Speaker 2: historically a hub.
- 10:17Speaker 1: That seems way better for resilience.
- 10:19Speaker 2: It is, if one device is cable fails, it only
- 10:22Speaker 2: affects that one device. The rest of the network keeps working.
- 10:26Speaker 2: It's the standard for most office and home networks.
- 10:28Speaker 1: Okay, any other's worth knowing.
- 10:30Speaker 2: Well, there's the ring topology. Devices are connected in a circle.
- 10:34Speaker 2: Data packets travel around the ring until they reach their destination. Simple,
- 10:38Speaker 2: can be efficient, but like the bus, a single break
- 10:41Speaker 2: in the ring can be catastrophic. Used in some older
- 10:44Speaker 2: network types like token ring.
- 10:46Speaker 1: Right.
- 10:46Speaker 2: And then there's mesh. In a full mesh, every device
- 10:49Speaker 2: connects directly to every other device.
- 10:52Speaker 1: Wow, that sounds complicated, but.
- 10:53Speaker 2: Robust, extremely robust, lots of redundant paths. If one link fails,
- 10:58Speaker 2: data can easily reroute the Internet itself at a high
- 11:01Speaker 2: level functions like a massive mesh network, and interestingly, some
- 11:06Speaker 2: modern peer to peer mobile apps like Brier can create
- 11:10Speaker 2: ad hoc mesh networks using Bluetooth or Wi Fi by
- 11:13Speaker 2: passing the need for central servers.
- 11:15Speaker 1: Fascinating. Okay, so we have protocols topologies. How do we
- 11:18Speaker 1: conceptibly tie all these layers together? That's the OSI model.
- 11:22Speaker 2: Right, ah, the o SI model, the Open System's interconnection model. Yes,
- 11:25Speaker 2: it's a conceptual framework, a way to understand how different
- 11:28Speaker 2: networking tasks are divided into layers, each performing a specific function.
- 11:31Speaker 2: Seven layers in total.
- 11:32Speaker 1: Seven layers. Can you list them? And maybe that mnemonic
- 11:35Speaker 1: I always forget.
- 11:36Speaker 2: Sure from top closest to the user to bottom closest
- 11:40Speaker 2: to the physical wire layer. Seven is applications, six is presentation,
- 11:43Speaker 2: five a session, four is transport, three is network, two
- 11:46Speaker 2: is data link, and one is physical. Okay, the mnemonics
- 11:49Speaker 2: help going down? All people seem to need data processing
- 11:53Speaker 2: going up? Please do not throw sausage pizza away, chezy,
- 11:56Speaker 2: but they work.
- 11:57Speaker 1: Huh. Okay, Please do not throw sausage pizzaway. Physical, data link, network, transport, session, presentation, application.
- 12:04Speaker 2: Got it?
- 12:06Speaker 1: But why is This model useful, especially from a.
- 12:08Speaker 2: Security viewpoint, because different types of attacks target different layers.
- 12:12Speaker 2: Understanding the model helps you categorize threats and defenses.
- 12:15Speaker 1: You give examples sure.
- 12:17Speaker 2: Layer seven application is where you see application specific exploits
- 12:20Speaker 2: like SQL injection on a web app. Layer six presentation
- 12:24Speaker 2: deals with data formatting and encryption. Phishing attacks often try
- 12:27Speaker 2: to trick users at this interface.
- 12:28Speaker 1: Okay.
- 12:29Speaker 2: Layer five session manages connection session hijacking attacks happen here.
- 12:33Speaker 2: Layer four transport, where TCPUDP live is often targeted for
- 12:37Speaker 2: reconnaissance like port scanning. Layer three network, where IP lives
- 12:41Speaker 2: is vulnerable to things like men in the middle attacks
- 12:44Speaker 2: or routing manipulation. Layer two data link MIIC addresses can
- 12:49Speaker 2: see MP spoofing or ARP poisoning. And Layer one physical
- 12:54Speaker 2: is where simple wiretapping or signal jamming occurs.
- 12:57Speaker 1: So the model provides a map for understanding where things
- 12:59Speaker 1: are can go wrong exactly.
- 13:01Speaker 2: It's a foundational concept for network engineers and security pros.
- 13:05Speaker 1: Okay, this is great foundational stuff. Let's shift gears a bit.
- 13:08Speaker 1: We talked about running out of IPv four addresses. How
- 13:10Speaker 1: do we use the ones we have more efficiently than involve.
- 13:13Speaker 2: Subnetting, subnetting, yes, and cid R notation. The main reasons
- 13:17Speaker 2: for subnetting are one to conserve that limited IPv four space,
- 13:21Speaker 2: two to create network segments with a more realistic number
- 13:24Speaker 2: of hosts instead of huge flat networks, and three to
- 13:28Speaker 2: improve performance and security by dividing large networks into smaller,
- 13:32Speaker 2: manageable broadcast domains.
- 13:34Speaker 1: So a subnet is like a network within a network.
- 13:37Speaker 2: That's a perfect way to put it. You take a
- 13:38Speaker 2: larger block of IP addresses assigned to you and break
- 13:40Speaker 2: it down into smaller logical networks.
- 13:42Speaker 1: How does that work technically with the subnet mask?
- 13:45Speaker 2: Right? The subnet mask is another thirty two BET number
- 13:48Speaker 2: that looks like an IP address, like two five five
- 13:51Speaker 2: point two five to five point zero. It's used mathematically,
- 13:54Speaker 2: usually with a binary A and D operation to separate
- 13:56Speaker 2: the network portion of an IP address from the host portion.
- 14:00Speaker 2: Tells devices which part identifies the street network and which
- 14:03Speaker 2: part identifies the house number host on that street.
- 14:06Speaker 1: Okay, and CIDR, that slash notation like twenty.
- 14:08Speaker 2: Four CIR class list inter domain roading is basically shorthand
- 14:12Speaker 2: for the subnet mask. Instead of writing out the full mask,
- 14:14Speaker 2: you just put a slash followed by the number of
- 14:16Speaker 2: bits used for the network portion.
- 14:18Speaker 1: So one nineteen point one six eight point one point
- 14:20Speaker 1: zero two four means the first twenty four bits are
- 14:22Speaker 1: the network.
- 14:23Speaker 2: Part exactly, which corresponds to a subnetmask of two hundred
- 14:26Speaker 2: five five point two FI five five point two five
- 14:28Speaker 2: five point zero eight would be two hundred finty five
- 14:30Speaker 2: point zero point zero and song.
- 14:32Speaker 1: And you can use this to carve up networks.
- 14:33Speaker 2: Absolutely. You could take a standard Class C range like
- 14:37Speaker 2: that twenty four, giving you about two hundred and fifty
- 14:39Speaker 2: four usable host addresses, and decide you need, say six
- 14:43Speaker 2: smaller departments, each needing maybe twenty five hosts. By borrowing
- 14:47Speaker 2: a few bits from the host portion for the network portion,
- 14:50Speaker 2: making it say a twenty seven, you can create multiple
- 14:54Speaker 2: smaller subnets from that original block. It's efficient and helps
- 14:57Speaker 2: organize and secure the network.
- 14:59Speaker 1: Makes sense. Okay, Now, how do we actually see what's
- 15:01Speaker 1: happening on our network? What tools are there besides just theory?
- 15:04Speaker 2: Good question. There are essential command line tools built into
- 15:08Speaker 2: most operating systems. If CANFIG or IP addra on modern
- 15:12Speaker 2: Linux shows your network interface configuration, IP address, MAC address, etc.
- 15:17Speaker 2: Right Ping two, Ping, is fundamental. Sends a simple ECO
- 15:21Speaker 2: request to see if a host is online and how
- 15:23Speaker 2: long it takes to respond. Basic connectivity testing.
- 15:26Speaker 1: What about seeing active connections for that?
- 15:28Speaker 2: Netstat is classic? It shows all the network connections to
- 15:31Speaker 2: and from your machine, TCPUDP, listening, poards, established connections, really
- 15:35Speaker 2: useful for troubleshooting or even spotting suspicious activity like malware
- 15:39Speaker 2: calling home.
- 15:39Speaker 1: Is there a newer version?
- 15:40Speaker 2: Yeah? On Linux, USS socket statistics is generally preferred now,
- 15:45Speaker 2: often faster and provides more detailed information than netstat.
- 15:49Speaker 1: Okay, those are good for looking at my own machines connections.
- 15:52Speaker 1: But yeah, what about seeing all the traffic flowing across
- 15:54Speaker 1: the network segment?
- 15:56Speaker 2: That's sniffing, right, that's network sniffing or packet analysis using
- 16:00Speaker 2: tools called sniffers or packet analyzers. These are incredibly powerful.
- 16:05Speaker 2: Network engineers use them constantly to diagnose problems, forensic investigators
- 16:10Speaker 2: use them to capture digital evidences, and hackers use them
- 16:13Speaker 2: for reconnaissance, finding vulnerabilities, capturing sensitive data if it's unencrypted,
- 16:19Speaker 2: like passwords, session cookies, emails files.
- 16:22Speaker 1: Is this legal? I remember hearing that FBI tool. Ah.
- 16:25Speaker 2: Yeah, the source mentions the FBI's Carnivore system, which was controversial.
- 16:29Speaker 2: Sniffing traffic on a network you don't own or have
- 16:32Speaker 2: permission to monitor is generally illegal in most places, but
- 16:35Speaker 2: for legitimate network administration and security testing on your own networks,
- 16:40Speaker 2: it's an indispensable tool.
- 16:42Speaker 1: What do you need to make it work?
- 16:43Speaker 2: Two main things. First, your computer's network interface card and
- 16:47Speaker 2: I SEE needs to be put into promiscuous mode. Normally,
- 16:52Speaker 2: and I SEE ignores packets not addressed to its specific
- 16:55Speaker 2: and MESSI doaters. Promiscuous mode tells it to grab every
- 16:57Speaker 2: packet it sees on the wire or Wi Fi channel.
- 17:00Speaker 1: Okay.
- 17:00Speaker 2: Second, you need the sniffing software itself, and captured traffic
- 17:04Speaker 2: is usually saved in a standard file format called dot
- 17:07Speaker 2: p cap packet capture, which many different tools can read.
- 17:10Speaker 1: Let's talk tools. The source mentions TCP dump.
- 17:13Speaker 2: TCP dump the classic. It's a command line sniffer that's
- 17:17Speaker 2: been around since the late eighties, available on Linux and
- 17:19Speaker 2: Unix like systems. It's powerful and flexible, though the output
- 17:23Speaker 2: can be a bit raw.
- 17:24Speaker 1: How do you use it?
- 17:25Speaker 2: You can just run TCP dump and it starts showing
- 17:27Speaker 2: packet summary, scrolling by more usefully you use flags SS
- 17:31Speaker 2: specifies the interface to listen on like F zero or
- 17:33Speaker 2: one and zero. AW writs the raw packets to a
- 17:36Speaker 2: dot pcap file for later analysis.
- 17:38Speaker 1: What about filtering? Can it narrow down the traffic?
- 17:41Speaker 2: Absolutely? That's its strength. You can filter by source or destination,
- 17:44Speaker 2: IP address, SRC host or DCS host. You can filter
- 17:48Speaker 2: by port port eighty for web traffic. You can filter
- 17:51Speaker 2: by protocol TCP, UDP, ICP. You can even filter based
- 17:55Speaker 2: on TCP flags, TCPDCP flags and tcps in equals zero
- 17:59Speaker 2: to C only syn.
- 18:01Speaker 1: Packets wow specific very You.
- 18:03Speaker 2: Can combine filters with and or not. The source even
- 18:07Speaker 2: shows examples of filtering for things like clear text passwords,
- 18:10Speaker 2: password or specific user agent strings from web browsers or
- 18:13Speaker 2: session cookies. It requires understanding the protocols, but it lets
- 18:16Speaker 2: you zero in on exactly what you need.
- 18:19Speaker 1: Powerful, but maybe not super user friendly for visualizing things.
- 18:22Speaker 1: What's the go to graphical tool?
- 18:24Speaker 2: That would be wire shark. The source calls it the
- 18:25Speaker 2: de facto standard, and that's accurate. It's graphical, runs on Windows, Mac, Os, Linux,
- 18:30Speaker 2: and it makes analyzing packet captures much easier.
- 18:32Speaker 1: How does it display the data?
- 18:34Speaker 2: It has three main pains. The top PAIN is the
- 18:36Speaker 2: packet list, showing a summary of each captured packet. Click
- 18:39Speaker 2: one there, and the middle pain packet details shows a
- 18:42Speaker 2: decoded breakdown of all the protocol layers and fields within
- 18:45Speaker 2: that packet Ethernet, IP, TCP, application data. The bottom pain
- 18:50Speaker 2: packet bytes shows the raw hexadecimal and ask data.
- 18:54Speaker 1: And filtering in wire Shark.
- 18:55Speaker 2: Also very powerful. You can type display filters directly like
- 18:58Speaker 2: IP dot adr equals one ninety two point one sixty
- 19:01Speaker 2: eight point one point one, or TCP dot port equals
- 19:05Speaker 2: eighty or HTTP contains Facebook. There's also an expression builder
- 19:08Speaker 2: to help create complex filters.
- 19:10Speaker 1: What about seeing a whole conversation like a web request
- 19:13Speaker 1: in its response.
- 19:14Speaker 2: Wireshark makes that super easy with the follow TCP stream
- 19:17Speaker 2: or udpr SSLTLS stream feature. Write click a packet in
- 19:21Speaker 2: a conversation, choose follow, and it opens a new window
- 19:23Speaker 2: showing just the data exchange between those two end points,
- 19:26Speaker 2: reassembled in order. Fantastic for reading HTTP requests, emails, chat
- 19:30Speaker 2: messages if they're unencrypted.
- 19:32Speaker 1: Okay, wire Shark sounds essential for digging into dot pcat files.
- 19:36Speaker 1: Now we know how to see traffic, how do we
- 19:37Speaker 1: control it. How do we block unwanted traffic? Firewalls?
- 19:40Speaker 2: Firewalls, Yeah, your digital gatekeepers absolutely crucial. They can be
- 19:46Speaker 2: software running on a single computer, a host based firewall
- 19:49Speaker 2: protecting just that machine, or a dedicated hardware appliance protecting
- 19:53Speaker 2: an entire network perimeter.
- 19:55Speaker 1: The source focuses on Linux firewalls, specifically iptables right.
- 19:58Speaker 2: Tiptables is the classic built in command line firewall utility
- 20:02Speaker 2: for Linux kernels. Though NF tables is newer, iptables is
- 20:05Speaker 2: still widely used and understood. It's incredibly flexible, but can
- 20:09Speaker 2: be complex.
- 20:10Speaker 1: How does it work conceptually? Tables chains.
- 20:14Speaker 2: It uses a system of tables, chains, and rules. Tables
- 20:18Speaker 2: group rules based on their general purpose. The main one
- 20:21Speaker 2: is the filter table for packet filtering. Others include NAT
- 20:24Speaker 2: for network address translation, mangle for modifying packets, and raw okay,
- 20:29Speaker 2: and chains. Chains are lists of rules within a table
- 20:32Speaker 2: that packets traverse. The key chains in the filter table
- 20:35Speaker 2: are input for packets destined for the firewall host itself,
- 20:38Speaker 2: output for packets originating from the firewall host, and forward
- 20:41Speaker 2: for packets just passing through the firewall like in a router.
- 20:44Speaker 1: So packets flow through these chains and rules are applied exactly.
- 20:47Speaker 2: Each rule has matches conditions the packet must meet, like source, ipe, destination,
- 20:53Speaker 2: port protocol, and a target. What to do if the
- 20:56Speaker 2: packet matches like accept it, drop it silently, reject it
- 21:00Speaker 2: with an error, or log it.
- 21:02Speaker 1: Can you set default actions?
- 21:04Speaker 2: Yes, each chain has a default policy. You could set
- 21:07Speaker 2: the EMPPUT policy to accept allow everything by default, then
- 21:11Speaker 2: add specific drop rules, or more securely, set it to
- 21:15Speaker 2: drop block everything by default, then adds specific accept rules
- 21:18Speaker 2: for needed traffic.
- 21:19Speaker 1: And the order of rules is important.
- 21:21Speaker 2: Critically important. Iptables processes rules in a chain sequentially from
- 21:24Speaker 2: top to bottom. The first rule that matches a packet
- 21:27Speaker 2: determines its fate. So if you want to allow traffic
- 21:30Speaker 2: from a specific IP but block all others, the allow
- 21:33Speaker 2: rule must come before the general block rule.
- 21:35Speaker 1: So you can use it to block specific ips or
- 21:37Speaker 1: whole networks using CIDR, or block access to certain ports.
- 21:40Speaker 2: All of that block incoming SSH from anywhere except your
- 21:43Speaker 2: trusted IP, block outgoing connections to non malicious domains, allow
- 21:47Speaker 2: incoming web traffic only to port eighty and four forty three.
- 21:51Speaker 2: Very granular control.
- 21:52Speaker 1: Okay, that covers wired network defenses. What about the wild
- 21:55Speaker 1: West of wireless Wi Fi.
- 21:57Speaker 2: Ah Wi Fi eight POH two point one one standard.
- 22:00Speaker 2: It's everywhere convenient, but yeah, historically riddled with security issues.
- 22:05Speaker 2: We've come a long way from the original WEP encryption,
- 22:08Speaker 2: which was broken years ago.
- 22:09Speaker 1: WP is basically useless now right completely.
- 22:12Speaker 2: Then came WPA which was better but still flawed. Then
- 22:15Speaker 2: WPA two using AES encryption became the standard for a
- 22:18Speaker 2: long time, pretty strong but not perfect, and now we
- 22:21Speaker 2: have WPA three, which aims to fix some of WP
- 22:24Speaker 2: two's weaknesses.
- 22:25Speaker 1: Let's cover some Wi Fi basics. AP, SSID PSK right.
- 22:29Speaker 2: AP is the access point your wireless router. SSID is
- 22:32Speaker 2: the service set identifier that's the network name you see
- 22:35Speaker 2: and connect to. PSK is the pre shared key, the
- 22:37Speaker 2: password you type in for WPA two WPA.
- 22:40Speaker 1: Three Personal mode BSSID.
- 22:42Speaker 2: BSID is basically the m address of the access points
- 22:45Speaker 2: wireless interface uniquely identifies the AP and.
- 22:48Speaker 1: For hacking Wi Fi, you often need special gear.
- 22:50Speaker 2: Often, yes, specifically a wireless adapter that supports monitor mode
- 22:55Speaker 2: like promiscuous mode, but for Wi Fi letting you see
- 22:58Speaker 2: all nearby traffic. Then crucially, packet injection, the ability to
- 23:03Speaker 2: craft and send your own wireless frames. The source recommends
- 23:06Speaker 2: Alpha brand cards, which are popular for this.
- 23:09Speaker 1: What about common security tips that might not be so secure,
- 23:12Speaker 1: like hiding your SSID.
- 23:14Speaker 2: Hiding the SSAD. Yeah, that provides almost no real security.
- 23:17Speaker 2: Your devices still need to know the SSID to connect,
- 23:20Speaker 2: so they send out probe requests asking for it. A
- 23:23Speaker 2: hacker and monitor mode can just listen for these requests
- 23:25Speaker 2: or the AP's responses and discover the hidden name easily.
- 23:29Speaker 1: And MSc filtering only allowing specific devices.
- 23:33Speaker 2: Same problem security through obscurity, an attacker can just sniff
- 23:37Speaker 2: the traffic, see the MC address of an allowed client,
- 23:40Speaker 2: and then change their own adapter's MC address, spoofing it
- 23:43Speaker 2: with a tool like the changer to match the allowed
- 23:45Speaker 2: one bypass achieved.
- 23:47Speaker 1: Okay, so what are the real attacks against something like
- 23:49Speaker 1: WPA two.
- 23:50Speaker 2: The most common attack against WPA two PSK, the password version,
- 23:54Speaker 2: involves capturing the four way handshake handshake. When a legitimate
- 23:58Speaker 2: client connects to a WA two network, there's a four
- 24:02Speaker 2: step process where the client and AP prove they both
- 24:05Speaker 2: know the password and derive session keys without actually sending
- 24:08Speaker 2: the password in the.
- 24:09Speaker 1: Clear, But you can capture that exchange.
- 24:11Speaker 2: Yes, an attacker puts their card in monitor mode and
- 24:15Speaker 2: uses tools like aero dumping to watch for clients connecting.
- 24:19Speaker 2: Or they can speed things up by sending a de
- 24:22Speaker 2: authentication frame using airplaying to kick a connected client off
- 24:26Speaker 2: the network, forcing them to reconnect and generate a new handshake,
- 24:29Speaker 2: which the attacker captures.
- 24:30Speaker 1: And once you have the handshake, the.
- 24:32Speaker 2: Handshake contains a hash derived from the password. It's not
- 24:35Speaker 2: the password itself, but you can take that captured handshake
- 24:38Speaker 2: and feed it into an offline password cracking tool.
- 24:40Speaker 1: Like hashcat, along with the word list exactly.
- 24:43Speaker 2: Hashcat tries hashing every word in a massive dictionary or
- 24:47Speaker 2: word list, using the network's SSID as part of the process.
- 24:50Speaker 2: Comparing the result to the captured hash, it finds a match. Boom,
- 24:54Speaker 2: You've got the Wi Fi password. Success depends heavily on
- 24:57Speaker 2: the password complexity and the quality of the word list.
- 25:00Speaker 1: Okay, that's the handshake attack. Yeah, what about WPS that buttons.
- 25:03Speaker 1: Some routers have.
- 25:04Speaker 2: WPS Wi Fi protected setup designed for ease of use,
- 25:08Speaker 2: but the initial PI in implementation was a security disaster.
- 25:12Speaker 2: How So, it uses an eight digit PN but it
- 25:15Speaker 2: validates the first four digits separately from the next three.
- 25:18Speaker 2: The last digit is just a check some This means
- 25:21Speaker 2: an attacker only needs to guess a four digit number
- 25:24Speaker 2: ten thousand possibilities, and then a three digit number one
- 25:26Speaker 2: thousand possibilities. That's only eleven thousand total guesses.
- 25:29Speaker 1: Maximum, which is easy to brood force.
- 25:32Speaker 2: Trivial tools like reaver or Bully can try all possible pins,
- 25:36Speaker 2: often in just a few hours, and recover the actual
- 25:38Speaker 2: WPA two password. Many routers still have this vulnerable WPS
- 25:42Speaker 2: enabled by default. Checking the WPS status is often the
- 25:46Speaker 2: first thing an attacker tries.
- 25:47Speaker 1: Thikes, okay, what about the evil twin attack? Sounds nasty?
- 25:50Speaker 1: It is.
- 25:50Speaker 2: It's a man in the middle attack. The attacker sets
- 25:52Speaker 2: up their own fake access point with the exact same
- 25:55Speaker 2: SSID and security settings as the legitimate network you want
- 25:58Speaker 2: to connect to, like a fake cofee shop WiFi exactly.
- 26:02Speaker 2: Then they might use de authentication attacks to kick you
- 26:04Speaker 2: off the real coffee shop WiFi. Your device, seeing the
- 26:08Speaker 2: familiar network name, might automatically reconnect, but this time to
- 26:12Speaker 2: the attacker's fake AP, and then all your Internet traffic
- 26:15Speaker 2: flows through the attacker's machine. If you visit unencrypted websites HGTP.
- 26:20Speaker 2: They can see everything in wireshirk usernames, passwords, anything you type.
- 26:24Speaker 2: Even with HTTPS, they might try SSL stripping or prompt
- 26:28Speaker 2: you with fake login pages. It's very effective in public areas.
- 26:31Speaker 1: You mentioned the authentication attacks. Can they just be used
- 26:34Speaker 1: to knock people offline?
- 26:35Speaker 2: Oh?
- 26:35Speaker 1: Yeah?
- 26:36Speaker 2: Just continuously sending deof frames spoofing the AP's address to
- 26:40Speaker 2: all connected clients basically creates a denial of service attack
- 26:43Speaker 2: for that Wi Fi network. The source even shows a
- 26:46Speaker 2: simple BSA script to automate this, making it persistently annoying.
- 26:49Speaker 1: Is there anything newer attacking WPA two?
- 26:52Speaker 2: Yes. A significant development from twenty eighteen is the PMKID
- 26:56Speaker 2: attack pairwise master key identifier.
- 26:58Speaker 1: How's that different from the handshake cap?
- 27:00Speaker 2: The key difference is you don't need a client to
- 27:02Speaker 2: be connecting or deauthenticate anyone. The attacker can potentially get
- 27:06Speaker 2: the necessary password hash information directly from the access point
- 27:10Speaker 2: itself in the first message, the RSNIE frame it sends
- 27:14Speaker 2: when a client tries.
- 27:15Speaker 1: To associate just one frame needed.
- 27:17Speaker 2: Potentially Yes, Tools like hcx dump tool are used to
- 27:20Speaker 2: request and capture this RSNIE containing the PMKID. Then, just
- 27:26Speaker 2: like the handshake hash. You feed this pmkid data into
- 27:29Speaker 2: hashcat for offline cracking against word lists. It's faster and
- 27:33Speaker 2: stealthier than waiting for a full handshake.
- 27:35Speaker 1: Wi Fi security is a constant cat mask game. What
- 27:38Speaker 1: about Bluetooth? That's everywhere too.
- 27:39Speaker 2: Bluetooth, designed for short range, low power communication, creates small
- 27:43Speaker 2: personal area networks or peconets. Your headphones, speakers, keyboards, fitness trackers, cars.
- 27:49Speaker 1: Yeah, tons of stuff. Are there Linux tools for it?
- 27:51Speaker 2: Basic ones yeah. Hcnfig manages your Bluetooth adapter. H to
- 27:56Speaker 2: tool can scan for nearby devices, and h dump can
- 27:58Speaker 2: sniff Bluetooth traffic similar to TCP dump.
- 28:01Speaker 1: Is Bluetooth secure It seems like it should be, with
- 28:03Speaker 1: pairing and stuff.
- 28:05Speaker 2: It has security features like frequency hopping to avoid interference
- 28:08Speaker 2: and eavesdropping, and pairing involves generating shared keys, but vulnerabilities
- 28:14Speaker 2: have consistently popped up over the years like what Classic
- 28:17Speaker 2: attacks include blue smarfing connecting to a device without permission
- 28:21Speaker 2: to steal data like contacts or calendars. Blue bugging goes
- 28:24Speaker 2: further trying to take full control of the phone. Bluesmac
- 28:28Speaker 2: is a simple denial of service attack.
- 28:30Speaker 1: Anything more recent or severe.
- 28:31Speaker 2: The source highlights the blueborne attack vector, discovered in twenty seventeen.
- 28:36Speaker 2: This was a collection of vulnerabilities affecting billions of unpatched
- 28:39Speaker 2: devices Android, Windows, Linux, older iOS s or did it allow?
- 28:43Speaker 2: It exploited flaws in the Bluetooth implementation, particularly in the
- 28:47Speaker 2: Service Discovery Protocol SDP. Critically, an attacker could trigger these
- 28:52Speaker 2: flaws without needing to pair with the target device, and
- 28:55Speaker 2: often even if the device wasn't set to discoverable mode,
- 28:58Speaker 2: and the impact it could lead to remote code execution,
- 29:01Speaker 2: potentially giving the attacker full control, even kernel level access.
- 29:05Speaker 2: The source demonstrates using a Python script to exploit one
- 29:07Speaker 2: of these volunds and extract memory content from a vulnerable device.
- 29:11Speaker 2: Really serious stuff.
- 29:12Speaker 1: Patching is key, definitely. Okay, let's move into some other crucial,
- 29:16Speaker 1: maybe less obvious, network protocols ARP. Address Resolution Protocol.
- 29:21Speaker 2: ARP essential on local Ethernet networks. Its job is simple
- 29:25Speaker 2: but vital. It translates layer three IP addresses into layer
- 29:28Speaker 2: two MC addresses.
- 29:29Speaker 1: Why is that needed? If my computer knows the IP
- 29:32Speaker 1: address of the printer, why does it need the MC address?
- 29:35Speaker 2: Because on an Ethernet segment, devices ultimately communicate using physical
- 29:39Speaker 2: MC addresses. When your computer wants to send a packet
- 29:42Speaker 2: to the printer's IP, say one ninety two point one
- 29:44Speaker 2: six eight point one point two zero on the same
- 29:47Speaker 2: local network, it first needs to know the printer's hardware
- 29:49Speaker 2: and MAC dress, so it sends out an ARP request
- 29:52Speaker 2: broadcast who has one on two point one sixty eight
- 29:54Speaker 2: point one point one two all, or tell me my
- 29:56Speaker 2: IP in m AC. The printer sees this and replies
- 29:59Speaker 2: with an a RP response one ninety two point one
- 30:02Speaker 2: sixty eight point one point two zero is at MC
- 30:04Speaker 2: address AA BBC d e e ff. Your computer then
- 30:07Speaker 2: stores this mapping and its ARP table or cast.
- 30:09Speaker 1: Oh okay, you can see this table.
- 30:11Speaker 2: YEP the command in Windows or ARPN in Linux will
- 30:15Speaker 2: show you the current IP TOMAC mappings your system knows about.
- 30:19Speaker 1: How do attackers use AARP for reconnaissance?
- 30:22Speaker 2: First off, tools like net Discover send out ARP requests
- 30:26Speaker 2: for every possible IP on the local subnet. Any device
- 30:29Speaker 2: that replies reveals its IP, its MMASS address, and often
- 30:33Speaker 2: the vendor of its network card based on the first
- 30:36Speaker 2: half of the MC address. It's a quick way to
- 30:38Speaker 2: map out all the live hosts on the land, but.
- 30:40Speaker 1: There are attacks too. ARP spoofing big time.
- 30:44Speaker 2: AARP is inherently trusting, it doesn't really authenticate responses. This
- 30:48Speaker 2: makes it vulnerable to ARP spoofing or ARP poisoning, which
- 30:52Speaker 2: is the basis for many Man in the Middle MATM.
- 30:55Speaker 1: Attacks on a land How does that work?
- 30:57Speaker 2: An attacker sends out forged ARP replies. For example, they
- 31:00Speaker 2: tell the victim computer that the router's IP address corresponds
- 31:03Speaker 2: to the attackers MC address, and they tell the router
- 31:05Speaker 2: that the victim's IP address corresponds to the attackers and
- 31:08Speaker 2: mass C address.
- 31:08Speaker 1: So all traffic between the victim and the router now
- 31:11Speaker 1: goes through the attacker precisely.
- 31:13Speaker 2: The attacker sits in the middle relaying the traffic, but
- 31:15Speaker 2: able to read modifier block anything unencrypted. Tools like ettercap
- 31:20Speaker 2: or arpspoof automate this process very effective on switch networks
- 31:23Speaker 2: where simple sniffing doesn't work well.
- 31:25Speaker 1: Scary stuff on the local network. Okay, what about the
- 31:28Speaker 1: global phone book DNS?
- 31:30Speaker 2: Domain Name system DNS absolutely fundamental to how we use
- 31:34Speaker 2: the Internet. It's core job translate human friendly domain names
- 31:38Speaker 2: like www, dot Google dot com into the numerical IP
- 31:41Speaker 2: addresses that computers actually use to connect like one seventy
- 31:44Speaker 2: two point two to one c point one six to
- 31:46Speaker 2: zero point one four to two.
- 31:48Speaker 1: Without it, we b typing numbers all day.
- 31:49Speaker 2: We would And domain names have that hierarchy right at
- 31:52Speaker 2: the top the route, then top level domains dot com,
- 31:55Speaker 2: dot org, dot UK, then second level domains Google, BBC,
- 31:58Speaker 2: and potentially subdomains www, the whole thing together like mail
- 32:02Speaker 2: dot Google dot com is a fully qualified domain name
- 32:05Speaker 2: or FQDN.
- 32:06Speaker 1: Is the old host's file still relevant?
- 32:08Speaker 2: Surprisingly, Yes, that simple text file on your computer echosts
- 32:11Speaker 2: on LinuxMac C Window System thirty two drivers on Windows
- 32:14Speaker 2: contains manual domain to IP mappings, and crucially, your system
- 32:18Speaker 2: checks this file before it makes a DNS query out
- 32:21Speaker 2: to the network.
- 32:21Speaker 1: So you can hijack DNS locally by editing that file.
- 32:25Speaker 1: You could.
- 32:26Speaker 2: Malware sometimes modifies the host's file to redirect users from
- 32:30Speaker 2: legitimate sites like their bank, to malicious fishing sites hosted elsewhere.
- 32:34Speaker 2: It's a simple form of DNS spoofing on a local machine.
- 32:37Speaker 1: But generally DNS is this huge distributed system.
- 32:40Speaker 2: Massively distributed, hierarchical and dynamic. That's why it's so resilient.
- 32:44Speaker 2: It's not just one server, it's a global network of servers.
- 32:47Speaker 2: Key components include the DNS cash on your computer, storing
- 32:51Speaker 2: recent lookups, resolvers, servers often run by your ISP that
- 32:55Speaker 2: handle your queries, Authoritative name servers which hold the actual
- 32:58Speaker 2: records for a domain and the overall name space, and.
- 33:01Speaker 1: The records themselves a cripple amx right.
- 33:04Speaker 2: Domains are organized into zone files, which contain various resource records,
- 33:09Speaker 2: soa startup authority defines administrative info. NS lists the authoritative
- 33:14Speaker 2: name servers. A map's a name to an IPv four address,
- 33:17Speaker 2: quad a maps to an IPv six address. Cname creates
- 33:20Speaker 2: an alias pointing to another name. PTR does the reverse
- 33:23Speaker 2: look up IP to name, and MX mail exchanger tells
- 33:26Speaker 2: email servers where to send mail for that domain. Has
- 33:29Speaker 2: DNS always been secure historically No, It was designed for openness,
- 33:33Speaker 2: not security. Vulnerabilities included fragility. Early versions could be crashed easily,
- 33:40Speaker 2: information leakage attackers could query DNS servers to learn man
- 33:44Speaker 2: internal network structures, DNS recon and denial of service. Taking
- 33:48Speaker 2: down a company's DNS server effectively takes them offline.
- 33:51Speaker 1: What about redirecting traffic.
- 33:53Speaker 2: Malicious zone transfers were a problem, tricking a server into
- 33:57Speaker 2: giving up its entire zone file, and attackers could compromise
- 34:00Speaker 2: DNS servers or registration accounts to change legitimate records, pointing
- 34:03Speaker 2: users to bad sites. The source mentions Iranian state actors
- 34:07Speaker 2: doing this in twenty eighteen twenty nineteen to redirect users
- 34:10Speaker 2: and steal credentials.
- 34:11Speaker 1: Is there a fix?
- 34:12Speaker 2: The main security enhancement is DNSSECNS Security Extensions. It uses
- 34:18Speaker 2: digital signatures to add authentication and integrity to DNS data.
- 34:22Speaker 2: When you get a DNS response, dnssec allows your resolver
- 34:25Speaker 2: to verify that the data came from the legitimate source
- 34:27Speaker 2: and hasn't been tampered with. Adoption is growing, but it's
- 34:30Speaker 2: not universal.
- 34:31Speaker 1: Yet, and you can build your own DNS server. Yeah.
- 34:33Speaker 2: The source gives steps using BND, the most common DNS
- 34:36Speaker 2: server software on Linux. Good way to understand the moving parts.
- 34:40Speaker 1: Okay, moving on SMB server message block. The source seems
- 34:43Speaker 1: to think this one is particularly troublesome.
- 34:46Speaker 2: SMB Yes, it's described as often impenetrable but critical. It's
- 34:50Speaker 2: an application layer protocol, mostly known for file and printer
- 34:54Speaker 2: sharing and Windows networks, but also used for other interprocess communication.
- 34:58Speaker 2: It usually runs over tcpport four five the older dialect
- 35:02Speaker 2: CIFS Common Internet File System is basically SMB version one.
- 35:07Speaker 1: Why is it considered so problematic?
- 35:08Speaker 2: History? It has been a consistent source of major critical
- 35:12Speaker 2: vulnerabilities and Windows for decades. Linux implementations via Samba have
- 35:16Speaker 2: had issues too. These aren't minor bugs. They often lead
- 35:19Speaker 2: to full remote system compromise.
- 35:21Speaker 1: Any famous examples, Oh yeah.
- 35:23Speaker 2: The source specifically calls out MS seventeen zero six seven,
- 35:26Speaker 2: a classic vulnerability exploited by the configure worm, and even
- 35:29Speaker 2: more significantly, MS seventeen zero ten, the vulnerability exploited by
- 35:33Speaker 2: the NSA's eternal Blue tool.
- 35:35Speaker 1: Eternal Blue that was leaked.
- 35:37Speaker 2: Right, leaked by the Shadow Brokers group. Yes, and it
- 35:40Speaker 2: was quickly weaponized in massive ransomware attacks like Wanacry and
- 35:44Speaker 2: Pettianapaedia in twenty seventeen, causing global disruption. Eternal Blue allowed
- 35:49Speaker 2: attackers to gain complete control over unpatched Windows systems simply
- 35:53Speaker 2: by sending malicious SMB packets. It highlights just how dangerous
- 35:57Speaker 2: SMB flaws can be.
- 35:58Speaker 1: Can you practice with SMB? Say?
- 36:00Speaker 2: The source suggests setting up a Samba server on Calley
- 36:03Speaker 2: Linux Samba implements the SMB protocol so you can configure
- 36:06Speaker 2: it to act like a Windows file share, letting you
- 36:09Speaker 2: experiment with tools and techniques in a controlled lab environment.
- 36:12Speaker 1: Good tip, Okay. Another daily protocol SMTP.
- 36:15Speaker 2: For email SMTP simple Mail Transfer Protocol the backbone of
- 36:19Speaker 2: email delivery. It's primarily used for transferring email between mail servers,
- 36:24Speaker 2: mail transfer agents, or MTAs, typically on TCP port twenty five.
- 36:27Speaker 1: How does the whole email process work?
- 36:30Speaker 2: Generally, your email client Mail user agent MUA sends your
- 36:34Speaker 2: outgoing message to your organizations or ISP's mail submission agent MSA.
- 36:40Speaker 2: The MSA then uses SMTP to relay that message to
- 36:43Speaker 2: the recipient's MTA. Finally, the recipient's MTA passes it to
- 36:46Speaker 2: their mail delivery Agent MDA, which puts it in their
- 36:49Speaker 2: inbox for their MUA to retrieve, often using protocols like
- 36:52Speaker 2: POP three or IMAP. SMTP is that server to server
- 36:55Speaker 2: relay part.
- 36:56Speaker 1: Has SMTP had recent security issues too?
- 36:59Speaker 2: Yes? Even major. The source mentions significant vulnerabilities in a
- 37:02Speaker 2: Microsoft Exchange server in twenty twenty one, allegedly exploited by
- 37:06Speaker 2: Chinese state actors, which prompted an unusual response where the
- 37:09Speaker 2: FBI remotely patched vulnerable servers in the US. WOW and XIM,
- 37:13Speaker 2: another very popular mail server software used on Linux Unix,
- 37:17Speaker 2: had critical vulnerabilities in twenty nineteen and twenty twenty that
- 37:19Speaker 2: could allow remote code execution or unauthorized access. Email servers
- 37:23Speaker 2: are high value targets.
- 37:25Speaker 1: How would someone probe? An SMTP server?
- 37:27Speaker 2: Reconnaissance often starts with NMAP. You scan port twenty five
- 37:30Speaker 2: to confirm SMTPS running and identify the server software and
- 37:34Speaker 2: version like Microsoft Exchange EXEM postfix. Then NMAP has specific
- 37:39Speaker 2: scripts NSE scripts that can try to enumerate valid usernames
- 37:43Speaker 2: on the server using VRFY or EXPN commands if enabled,
- 37:47Speaker 2: or even check for known vulnerabilities based on the detected.
- 37:50Speaker 1: Version exploit it.
- 37:51Speaker 2: If a non vulnerability exists like the source describes for
- 37:54Speaker 2: an older EXUM version CVE twenty ten four three fourty four,
- 37:58Speaker 2: you could use a framework like metasp mesaplat has modules
- 38:01Speaker 2: specifically designed to exploit known flaws. In that EXEM example,
- 38:05Speaker 2: successfully exploiting a heat buffer overflow could grant the attacker
- 38:09Speaker 2: a remote shell, potentially with root privileges on the mail server.
- 38:13Speaker 1: Full compromise okay one more standard protocol. The source highlights
- 38:16Speaker 1: has often overlooked SNMP.
- 38:18Speaker 2: SNMP simple network management protocol. The source calls it least
- 38:22Speaker 2: understood yet so vitally important and that's fair. It's used
- 38:26Speaker 2: by network administrators to monitor and manage network devices, routers, switches, servers, printers.
- 38:31Speaker 2: It usually runs on UDP ports one hundred and sixty
- 38:33Speaker 2: one requests and one hundred and sixty two traps notifications.
- 38:37Speaker 1: How does it work? Manage agent exactly?
- 38:39Speaker 2: SNMP managers like a central monitoring station, query SNMP agents
- 38:44Speaker 2: running on the managed devices. The agents gather information requested
- 38:48Speaker 2: by the manager.
- 38:49Speaker 1: Where does the information come from? The MIIB?
- 38:52Speaker 2: The MiB Management information base. It's a hierarchical database structure
- 38:56Speaker 2: defined on each managed device. It contains a ton of
- 38:59Speaker 2: information or orgize using object identifiers ODS, things like device uptime,
- 39:04Speaker 2: network interface statistics, running processes, installed software, user accounts, system
- 39:08Speaker 2: hardware details, potentially very sensitive data.
- 39:11Speaker 1: What's the security issue? Especially with SNMPv one?
- 39:15Speaker 2: SNMP version one had notoriously weak security. Authentication relied solely
- 39:19Speaker 2: on plaintext community strings, which essentially act like passwords. There
- 39:23Speaker 2: are typically two a read only string often default public,
- 39:26Speaker 2: and a read right string often default.
- 39:28Speaker 1: Private public ampress.
- 39:30Speaker 2: Seriously, if devices were left with these defaults, anyone on
- 39:34Speaker 2: the network could potentially query the device using the public
- 39:37Speaker 2: string to extract vast amounts of information from the MIP,
- 39:41Speaker 2: and if the private string was guessable or default, they
- 39:44Speaker 2: could even change configuration settings on the device remotely via
- 39:48Speaker 2: snmps set commands.
- 39:50Speaker 1: How would you find this info?
- 39:51Speaker 2: Tools like splot can dump large sections of the MiB
- 39:54Speaker 2: if you know the community string. Some check is specifically
- 39:58Speaker 2: designed for enumerting. SNMP infoe and tools like one sixty
- 40:01Speaker 2: one are built to rapidly broute force common community strings
- 40:05Speaker 2: against a list of IP addresses.
- 40:07Speaker 1: So SNMP could be a gold mine for attacker doing.
- 40:09Speaker 2: Reconnaissance, absolutely and potentially a way to control devices. The
- 40:13Speaker 2: source even mentions an alleged NSA exploit called extra Bacon,
- 40:16Speaker 2: which targeted a vulnerability in Cisco's SNMP implementation to bypass
- 40:20Speaker 2: firewalls and monitor VPN traffic. It underscores that SNMP, if
- 40:24Speaker 2: not properly secured, using newer versions like SNMPv three with
- 40:28Speaker 2: encryption and strong authentication, can be a major security risk.
- 40:32Speaker 1: Okay, we've covered a lot of the traditional IT network
- 40:35Speaker 1: round Now for the really cutting edge stuff. The source
- 40:38Speaker 1: gets into hacking physical systems, starting with cars automobile networks.
- 40:44Speaker 2: Yeah, this is described as a leading edge area. As
- 40:46Speaker 2: cars get loaded with more electronics, sensors, and connectivity, entertainment,
- 40:50Speaker 2: remote diagnostics, driver assyst their attack surface expands dramatically. Autonomous
- 40:56Speaker 2: vehicles magnify this concern hugely.
- 40:59Speaker 1: What's the main next work inside a car? CANbus?
- 41:02Speaker 2: The CANbus controller area network is the workhorse. It connects
- 41:05Speaker 2: the various electronic control units ECUs and the car engine control, transmission, breaks, airbags,
- 41:10Speaker 2: dashboard entertainment.
- 41:12Speaker 1: And it's vulnerable fundamentally. Yes.
- 41:14Speaker 2: Standard CANbus is a broadcast protocol. Every message sent by
- 41:18Speaker 2: any ECU is seen by all other ECUs. More importantly,
- 41:22Speaker 2: it typically has no built in encryption or authentication at
- 41:25Speaker 2: the protocol level.
- 41:26Speaker 1: No authentication, so you can just inject messages essentially.
- 41:29Speaker 2: Yes, If you gain access to the CANbus you can
- 41:32Speaker 2: potentially send messages pretending to be any ECU. This makes
- 41:36Speaker 2: boofing attacks and man in the middle relatively straightforward compared
- 41:40Speaker 2: to typical IT networks. Access is often gained via the
- 41:43Speaker 2: OBED two port under the dashboard, the same one mechanics
- 41:46Speaker 2: used for diagnostics.
- 41:48Speaker 1: How do people practice this? The source mentions.
- 41:50Speaker 2: Tools for learning. Can U tools is a set of
- 41:53Speaker 2: Linux command line utilities for working with can and ICSM
- 41:57Speaker 2: is an open source instrument cluster simulator, basically a little
- 42:01Speaker 2: video game dashboard that simulates can traffic for things like speed, turn, signals, doors.
- 42:06Speaker 2: You can interact with ICSIM using can utils as if
- 42:09Speaker 2: it were real.
- 42:10Speaker 1: Car networks, so you can try to reverse engineer the
- 42:12Speaker 1: signals exactly.
- 42:13Speaker 2: The source describes the process. Use can sniffer part of
- 42:16Speaker 2: can utils while interacting with the simulator, say pressing the
- 42:19Speaker 2: accelerator pedal, and ICSIM can sniffer highlights which can message
- 42:23Speaker 2: IDs change their data values.
- 42:25Speaker 1: Find the ID for acceleration.
- 42:26Speaker 2: Find the ID in the specific data bytes that control acceleration.
- 42:30Speaker 2: Once you figured that out, you can use cansen to
- 42:33Speaker 2: inject your own message onto the simulated can bus with
- 42:36Speaker 2: that ID in data, telling the car to accelerate. If
- 42:40Speaker 2: you loop the Cansen command, you can effectively take autonomous
- 42:43Speaker 2: control of that function in the simulator.
- 42:45Speaker 1: Like making the simulated car floor.
- 42:46Speaker 2: It exactly, making it go to one hundred milar hour,
- 42:49Speaker 2: turn the wheel, unlocked doors, whatever functions you can reverse
- 42:52Speaker 2: engineer and control via CAN messages. Applying this to real
- 42:56Speaker 2: cars is obviously much more complex and dangerous, but the
- 42:59Speaker 2: principle is the same.
- 43:01Speaker 1: What about key fobs? Can they be hacked?
- 43:03Speaker 2: Keyfobs often use rolling codes now, making simple replay attacks difficult,
- 43:08Speaker 2: But the source details a different technique, Signal amplification relay
- 43:11Speaker 2: attack or SARAH.
- 43:13Speaker 1: How does SARAH work?
- 43:14Speaker 2: It requires two attackers working together, each with a device
- 43:17Speaker 2: that can relay radio signals. Attacker one stands near the car.
- 43:21Speaker 2: Attacker two stands near the owner carrying the keyfob, maybe
- 43:24Speaker 2: outside their house or following them in a store. Attacker
- 43:27Speaker 2: one's device triggers the car to send it's where's the
- 43:30Speaker 2: key signal. This signal is relayed to attacker two's device
- 43:34Speaker 2: near the fob. The fob responds. That response is relayed
- 43:38Speaker 2: back to Attacker one's device near the car. The car
- 43:41Speaker 2: thinks the fob is nearby and unlocks or allows the
- 43:43Speaker 2: ignition to start.
- 43:44Speaker 1: So they just boost the signal range. They don't need
- 43:46Speaker 1: to crack the code exactly.
- 43:47Speaker 2: They don't decrypt anything. They just relay the legitimate encrypted
- 43:51Speaker 2: communication over a much longer distance. The source compares it
- 43:54Speaker 2: to a pass the HASH attack in networking using the
- 43:57Speaker 2: credential without needing to know the under lying secret very
- 44:01Speaker 2: effective against passive keyless entry systems.
- 44:05Speaker 1: Clever and scary. Okay, from cars to even more critical
- 44:08Speaker 1: systems SCATA and ICs industrial control systems.
- 44:12Speaker 2: Satas supervisory control and data acquisition and ICs industrial control systems.
- 44:17Speaker 2: These are the systems running critical infrastructure, power grids, water
- 44:21Speaker 2: treatment plants, oil refineries, manufacturing lines, pipelines. The source rightly
- 44:25Speaker 2: calls securing them the most important and overlooked field. An
- 44:29Speaker 2: attack here can have devastating real world consequences.
- 44:32Speaker 1: How are they different from regular IT networks.
- 44:35Speaker 2: They often use specialized, sometimes proprietary communication protocols designed for
- 44:39Speaker 2: industrial environments, not necessarily with security as the top priority. Initially,
- 44:44Speaker 2: reliability and real time operation were often the main goals.
- 44:47Speaker 2: Protocols like modbus, DNP three, profinet ethernet APE are common.
- 44:52Speaker 2: They also often involve programmable logic controllers PLCs directly interacting
- 44:58Speaker 2: with physical machinery.
- 44:59Speaker 1: The source folk this is on modbus.
- 45:01Speaker 2: Mod Bus is one of the oldest and most widely
- 45:03Speaker 2: used industrial protocols. It's a simple master slave protocol, but
- 45:07Speaker 2: its simplicity is also its weakness.
- 45:09Speaker 1: What are the vulnerabilities?
- 45:10Speaker 2: Big ones standard mod bus has no authentication, any device
- 45:13Speaker 2: can send commands, no encryption, All data is sent in
- 45:17Speaker 2: the clear. The TCPIP version lacks checksums sometimes and no
- 45:21Speaker 2: broadcast suppression. Easy to flood the network with requests, causing
- 45:24Speaker 2: a denial of service.
- 45:26Speaker 1: Can you find these systems online?
- 45:27Speaker 2: Worryingly Yes. Search engines like showdand specialize in finding Internet
- 45:31Speaker 2: connected devices, including industrial controllers. The source shows how to
- 45:34Speaker 2: search showdown for specific Schneider Electric TM two twenty one PLCs,
- 45:39Speaker 2: a common type that are exposed directly to the Internet,
- 45:41Speaker 2: often running.
- 45:42Speaker 1: Mod bus and can you interact with them.
- 45:44Speaker 2: If they're unsecured?
- 45:45Speaker 1: Yes.
- 45:46Speaker 2: The source demonstrates using a command line tool called modbus Clay.
- 45:51Speaker 2: This tool can connect to a mod bus device using
- 45:53Speaker 2: its IP address found DA SHOWDAN and send commands to
- 45:57Speaker 2: read or write values to its internal memory LOOE lotions
- 46:00Speaker 2: called coils and registers.
- 46:02Speaker 1: What does writing to a register do?
- 46:05Speaker 2: It depends on what that register controls in the plc's program.
- 46:08Speaker 2: It could start or stop a motor, open or close
- 46:11Speaker 2: a valve, change a temperature set point, directly manipulating the
- 46:14Speaker 2: physical industrial process.
- 46:16Speaker 1: And the source mentions this was used in the Ukraine conflict.
- 46:19Speaker 2: Yes, it explicitly states that maud Disclin was used often
- 46:22Speaker 2: to disrupt Russian industrial systems during the Ukraine Russia War.
- 46:26Speaker 2: It's presented as a real world example of how knowledge
- 46:28Speaker 2: of these protocols and vulnerabilities can be applied, in this
- 46:31Speaker 2: case for cyber warfare or activism.
- 46:33Speaker 1: Powerful implications. Okay, Last, major area radio frequency hacking with SDR.
- 46:39Speaker 2: SDR software defined radio. This is another fascinating frontier. So
- 46:44Speaker 2: many things communicate wirelessly using radio frequencies RF, Wi Fi, Bluetooth, yes,
- 46:50Speaker 2: but also car keyfobs, garage door openers, drones, baby monitors,
- 46:55Speaker 2: weather stations, aircraft communications, GPS, satellite signals, cellular.
- 46:59Speaker 1: Network Mayer's full of signals completely.
- 47:02Speaker 2: And many of these RF applications, especially older or cheaper ones,
- 47:05Speaker 2: weren't designed with strong security in mind. This opens them
- 47:09Speaker 2: up to sniffing, eavesdropping, replay attacks, recording a signal and
- 47:14Speaker 2: playing it back later like opening a garage door, signal
- 47:17Speaker 2: deception or spoofing, sending fake signals, and jamming or denial
- 47:21Speaker 2: of service.
- 47:21Speaker 1: What does SDR let you do?
- 47:23Speaker 2: Traditionally, working with different radio figurals required different specialized hardware radios.
- 47:28Speaker 2: SDR replaces much of that dedicated hardware with software running
- 47:31Speaker 2: on a computer. You use relatively inexpensive SDR hardware that
- 47:35Speaker 2: just handles the raw radio reception and sometimes transmission, and
- 47:38Speaker 2: the computer software does all the demodulation, filtering, and processing
- 47:42Speaker 2: for different types of signals.
- 47:43Speaker 1: So one piece of hardware can tune into many different.
- 47:45Speaker 2: Things potentially yes, depending on its frequency range and capabilities.
- 47:50Speaker 2: The source mentions popular SDR hardware, the super cheap rtl
- 47:54Speaker 2: SDR dongles receive only great for beginners, the hack RF
- 47:58Speaker 2: one transmit and receive mid range, and higher end options
- 48:02Speaker 2: like blader F or Lime SDR.
- 48:03Speaker 1: Can you give a simple example.
- 48:05Speaker 2: Sure, you can get an RTLSDR for maybe thirty dollars,
- 48:08Speaker 2: plug it into your computer's USB port, install software like
- 48:11Speaker 2: SDR sharp SDR sharp on Windows or g corex on Linux,
- 48:15Speaker 2: attached an antenna, and you can immediately tune into broadcast
- 48:18Speaker 2: FM radio stations just like a regular radio, but seeing
- 48:21Speaker 2: the signal visually on a waterfall display.
- 48:23Speaker 1: Okay, cool, but what about more interesting signals?
- 48:26Speaker 2: The source shows intercepting aircraft communication, air traffic control, and
- 48:29Speaker 2: pilot communications are typically unencrypted AM signals in the VHF airband.
- 48:34Speaker 2: With an SDR and the right software, you can listen
- 48:36Speaker 2: in YEP. Also, aircraft constantly broadcast their position, altitude, speed,
- 48:41Speaker 2: and flight number using a system called ADSB Automatic Dependent
- 48:46Speaker 2: Surveillance Broadcast. This is also unencrypted. Tools like dump ten
- 48:50Speaker 2: ninety used with an SDR can capture these ADSB signals,
- 48:53Speaker 2: decode them, and even plot the planes on a map
- 48:56Speaker 2: like Google Maps in real time. You can build your
- 48:59Speaker 2: own personal flock.
- 49:00Speaker 1: That's amazing. What about the GPS spoofing example.
- 49:03Speaker 2: Ah GPS spoofing. This requires an SDR that can transmit
- 49:07Speaker 2: like the hack or f one. GPS signals from satellites
- 49:10Speaker 2: are actually very weak and unencrypted. Specialized software like GPSSDR
- 49:15Speaker 2: sim can generate a simulated GPS signal data file for
- 49:18Speaker 2: any location on.
- 49:19Speaker 1: Earth, so you can create a fake signal for say
- 49:22Speaker 1: Moscow exactly.
- 49:23Speaker 2: You generate the data file for coordinates in Moscow, then
- 49:26Speaker 2: you use software like hack transfer to transmit that simulated
- 49:29Speaker 2: signal using your hack RF. Any GPS receivers nearby, like smartphones,
- 49:33Speaker 2: might lock onto your stronger fake signal instead of the
- 49:36Speaker 2: real satellite signal.
- 49:37Speaker 1: And think they're in Moscow and.
- 49:38Speaker 2: Think they're physically located in the Kremlin or wherever you chose.
- 49:42Speaker 2: The source smashins potential applications like hiding shroop movements or
- 49:46Speaker 2: spoofing the locations of assets like oligarch yachts during conflicts.
- 49:50Speaker 2: It's a powerful demonstration of manipulating radio frequencies that underpin
- 49:54Speaker 2: critical systems.
- 49:55Speaker 1: Wow, we have really covered an enormous amount of ground today,
- 50:00Speaker 1: from the absolute basics of IPS and TCP, through firewalls,
- 50:05Speaker 1: Wi Fi hacks, all the way to cars, industrial systems,
- 50:09Speaker 1: and now spoofing GPS with radio waves.
- 50:12Speaker 2: It's a huge landscape, isn't it. But understanding these pieces,
- 50:15Speaker 2: even at a high level, gives you such a different
- 50:17Speaker 2: perspective on the technology we use every single day.
- 50:20Speaker 1: Absolutely, and it really drives home that this knowledge isn't
- 50:23Speaker 1: just for hackers in the stereotypical sense. It's for anyone
- 50:26Speaker 1: curious about how this interconnected world actually works for you
- 50:30Speaker 1: listening now, Understanding this stuff helps you navigate it all
- 50:33Speaker 1: more effectively, more securely. It sheds light on the how
- 50:35Speaker 1: and why.
- 50:36Speaker 2: You become a much more informed user, developer, or defender
- 50:39Speaker 2: of these systems. You can ask better questions, spot potential issues,
- 50:43Speaker 2: and appreciate the complexity involved.
- 50:45Speaker 1: Definitely. So to wrap up, let's leave our listeners with
- 50:47Speaker 1: a thought to chew on the source network basics for
- 50:51Speaker 1: hackers offers some cyber warrior wisdom. At the end, it
- 50:55Speaker 1: says knowledge is most valuable when understood and applied. Every adversary,
- 50:59Speaker 1: no matter how how strong and powerful, always has a weakness.
- 51:03Speaker 1: Find the weakness and exploit it.
- 51:04Speaker 2: That's a powerful quote, it is, and.
- 51:07Speaker 1: While it's framed in hacking terms, think about how that
- 51:09Speaker 1: applies more broadly, not just to digital security, but to
- 51:12Speaker 1: understanding any complex system you encounter, any challenge you face,
- 51:17Speaker 1: maybe even any opportunity you want to pursue in your
- 51:19Speaker 1: own life. Where's the underlying structure, Where's the potential leverage point?
- 51:23Speaker 1: Something to think about.