Latest / CyberSecurity Summary / The Art of Network Penetration Testing: How to take over any company in the world
Transcript
- 0:00Speaker 1: Welcome back to the deep Dive. Today. We're kracking open
- 0:03Speaker 1: a really fascinating stack of sources. It's excerpts from a
- 0:06Speaker 1: book called The Art of Network Penetration Testing. And this
- 0:10Speaker 1: isn't a theory, right, it's like a practical guide on
- 0:12Speaker 1: how the pros simulate cyber attacks on company networks.
- 0:16Speaker 2: That's exactly it. Our deep dive today is basically pulling
- 0:19Speaker 2: back the curtain on how ethical hackers operate. We're trying
- 0:22Speaker 2: to understand, you know, what does a network penetration test?
- 0:25Speaker 2: Why do companies even need them? And maybe the most
- 0:28Speaker 2: interesting part the actual steps, the phases and techniques they use.
- 0:33Speaker 2: It's all straight from this how to guide.
- 0:36Speaker 1: So it's like we're getting the attackers playbook, but you know,
- 0:39Speaker 1: used for.
- 0:39Speaker 2: Defense precisely the core idea and the source really emphasizes
- 0:44Speaker 2: this is simulating how a real adversary thinks and acts,
- 0:48Speaker 2: trying to find those security weaknesses before the bad guys do.
- 0:51Speaker 1: The book uses that analogy, doesn't it hiring a professional adversary?
- 0:55Speaker 2: It does, and it's kind of surprising how much the
- 0:57Speaker 2: whole process can feel like like planning movie heist.
- 1:00Speaker 1: Huh okay, I like that you.
- 1:02Speaker 2: Know, mapping the place out, finding entry points, moving around,
- 1:07Speaker 2: just replace laser grids with firewalls. Maybe we'll walk through
- 1:10Speaker 2: all that, the planning, getting in, moving deeper, and then
- 1:13Speaker 2: the reporting. Lots of interesting stuff here.
- 1:15Speaker 1: Okay, let's definitely unpack this. So first things first, what
- 1:19Speaker 1: exactly is a penetration test a pentist?
- 1:23Speaker 2: Well, think of it as an authorized simulated attack. The
- 1:26Speaker 2: goal isn't just scanning passively, it's actively trying to exploit weaknesses,
- 1:31Speaker 2: you know, just like a real attacker.
- 1:33Speaker 1: Would, so actively trying to break in, essentially exactly.
- 1:36Speaker 2: And the book points out sometimes these tests are done
- 1:39Speaker 2: almost secretly, like the client's security team might not even
- 1:43Speaker 2: know what's happening until they get the final report.
- 1:45Speaker 1: Wow, okay, trying to sneak past the guards, that's the idea.
- 1:48Speaker 2: You're adopting that malicious mindset. But here's a really important
- 1:51Speaker 2: point the book makes early on. A pentist isn't very
- 1:54Speaker 2: useful if the company's basic security, their hygiene is just
- 1:59Speaker 2: bad house. So well, if you've got what they call
- 2:02Speaker 2: low hanging fruit everywhere, default passwords not changed, people sharing logins,
- 2:07Speaker 2: everyone having admin rights, critical patches missing, ye appentis is
- 2:12Speaker 2: just going to find all those really obvious things first.
- 2:15Speaker 1: So like, if you haven't even locked the front door,
- 2:18Speaker 1: don't pay someone fancy to tell you the front door's unlocked.
- 2:21Speaker 2: That's a perfect way to put it. Fix the absolute
- 2:24Speaker 2: basics first. Default passwords, for instance, The source says they're
- 2:28Speaker 2: shockingly common and attackers actively look for them because they're
- 2:31Speaker 2: such easy wins.
- 2:32Speaker 1: It makes total sense. Fix the big holes before you
- 2:35Speaker 1: check for tiny cracks now. The book also mentions for
- 2:38Speaker 1: anyone wanting to learn this stuff, setting up a lab.
- 2:41Speaker 2: Oh definitely, learning by doing is crucial. The source suggests
- 2:45Speaker 2: using something like the Capsule Core Pentest project. It gives
- 2:48Speaker 2: you a pre built credit environment to practice on. Okay,
- 2:51Speaker 2: and for your own machine, the attacker machine, they strongly
- 2:55Speaker 2: recommend starting with Linux Opuntu for example. So many of
- 2:58Speaker 2: the standard pen testing tools are built for Linux. They
- 3:01Speaker 2: just run better there.
- 3:02Speaker 1: Right, Getting the tools and the environment set up kind
- 3:05Speaker 1: of step zero.
- 3:06Speaker 2: Absolutely, you need that stable tool rich setup Linux is
- 3:10Speaker 2: really fundamental for this kind of work.
- 3:12Speaker 1: Okay, So let's get into the actual process. The book
- 3:14Speaker 1: lays out a pretty standard four phase approach for specifically
- 3:18Speaker 1: internal network penetration tests or ionpts.
- 3:22Speaker 2: That's right, And interestingly, they mentioned a typical IMPT can
- 3:26Speaker 2: often wrap up within a normal forty hour work week.
- 3:30Speaker 1: Really okay, Yeah.
- 3:31Speaker 2: These four phases are basically the attackers playbook once they're
- 3:34Speaker 2: inside the network perimeter. Yeah, even if that initial inside
- 3:37Speaker 2: access is just simulated for the test itself.
- 3:40Speaker 1: Gotcha. So phase one, if we're sticking with the heist analogy,
- 3:43Speaker 1: this sounds like the planning, the recon phase casing the
- 3:46Speaker 1: joint exactly.
- 3:47Speaker 2: That Phase one is all about information gathering. The main
- 3:50Speaker 2: goal is to map out the target's attack surface. You
- 3:53Speaker 2: need to figure out, Okay, what systems are actually alive
- 3:56Speaker 2: on this network, what services are they running, where the
- 3:59Speaker 2: potential entry point?
- 4:00Speaker 1: How you even start finding systems? Networks can be huge.
- 4:02Speaker 2: That's the host discovery part. You're looking for live machines
- 4:06Speaker 2: within whatever IP range you've been given, or you're trying
- 4:09Speaker 2: to discover the source. Talks about different scopes. Here, white
- 4:13Speaker 2: box where the client gives you a list of targets, sure,
- 4:16Speaker 2: black box where you basically start blind, and gray box,
- 4:19Speaker 2: which is somewhere in between. Maybe you get some IP ranges.
- 4:23Speaker 2: But here's a really interesting point from the book. Even
- 4:25Speaker 2: in a white box test where the client gives you
- 4:28Speaker 2: a list. Experienced PEN testers often still scan the whole
- 4:31Speaker 2: range anyway. Why is that because clients frequently miss systems
- 4:36Speaker 2: on their own network inventories.
- 4:37Speaker 1: No kidding, so their own map might be wrong. That's
- 4:40Speaker 1: a big deal, it really is.
- 4:41Speaker 2: It shows why this kind of independent testing is so
- 4:43Speaker 2: valuable for techniques. You've got simple stuff like ping, but
- 4:48Speaker 2: mostly you're using powerful tools like ENMP. The book mentions
- 4:52Speaker 2: specific n MAP options like at PN to assume hosts
- 4:56Speaker 2: or up or things like min rate to speed up
- 4:58Speaker 2: the scanning significantly to cover faster exactly. They also mentioned
- 5:02Speaker 2: maybe sniffing network traffic with wireshark, looking for hosts talking,
- 5:06Speaker 2: or even hunting for hidden subnets if the scope allows.
- 5:09Speaker 1: Okay, so you found the live machines. What's next in
- 5:12Speaker 1: this info gathering phase.
- 5:14Speaker 2: Necktub is service discovery. So now you know who's home,
- 5:17Speaker 2: you need to figure out what doors are open on
- 5:19Speaker 2: those houses and what's behind.
- 5:22Speaker 1: Them doors being ports right.
- 5:24Speaker 2: Finding which services are running on which ports across that
- 5:27Speaker 2: whole range zero to six, five, five, three five, and
- 5:30Speaker 2: figuring out what the service is. Is it a web server,
- 5:33Speaker 2: a database, something.
- 5:35Speaker 1: Else, like checking the signs on the shops and you're
- 5:37Speaker 1: building analogy earlier.
- 5:38Speaker 2: Exactly, and many services advertise themselves with service banners. It's
- 5:42Speaker 2: like that sign telling you the software name and maybe
- 5:45Speaker 2: even the version number. Tools like Curl can grab this
- 5:47Speaker 2: from web servers, for example, and getting that version info.
- 5:51Speaker 2: That's gold for an attacker looking for known exploits.
- 5:54Speaker 1: And end map is key here too for finding the
- 5:56Speaker 1: open ports.
- 5:57Speaker 2: Oh. Absolutely, enmap is your main cool for port scanning.
- 6:01Speaker 2: You're looking for common ones twenty two for Ssh, eighty
- 6:04Speaker 2: and four forty three for web three three eighty nine
- 6:06Speaker 2: for Windows Remote desktop. The source gets practical tips on
- 6:10Speaker 2: how to parse end map's output, maybe using command line
- 6:12Speaker 2: tools like rep or cut to filter results my filter.
- 6:15Speaker 2: So you can create specific target lists for the next step,
- 6:17Speaker 2: like okay, here's a list of just the web servers
- 6:20Speaker 2: or just the systems. Running Microsoft Seql helps you focus
- 6:23Speaker 2: your efforts.
- 6:23Speaker 1: Which leads to vulnerability discovery. Now you know what services
- 6:27Speaker 1: are running. Time to check if the locks on those doors.
- 6:29Speaker 2: Are weak precisely, Now you analyze those identified services for
- 6:33Speaker 2: known weaknesses. Is there an authentication problem, a configuration mistake?
- 6:38Speaker 2: Is it missing critical security patches?
- 6:40Speaker 1: Oh?
- 6:40Speaker 2: Okay, And this is where pintesting really differs from just
- 6:43Speaker 2: running say an SS or Qualis scan. Those tools often
- 6:47Speaker 2: flag potential issues based on version numbers, known cvs.
- 6:51Speaker 1: Right, theoretical problems.
- 6:52Speaker 2: Yeah, ap Pennus focuses on finding things that are actually
- 6:55Speaker 2: exploitable in that specific environment. Can I really use this
- 6:57Speaker 2: weakness to get in?
- 6:58Speaker 1: Like finding a specific old software version with a known
- 7:01Speaker 1: working exploit.
- 7:03Speaker 2: Exactly That and missing patches are a huge one. The
- 7:06Speaker 2: book uses MS seventeen zero ten the eternal Blue vulnerability
- 7:10Speaker 2: as a prime example. It's famous from twenty seventeen, but
- 7:13Speaker 2: the source says finding system still missing this patch is
- 7:16Speaker 2: often an easy quick win for attackers.
- 7:19Speaker 1: Still wow, yep.
- 7:21Speaker 2: You can even use tools within frameworks like metasploit to
- 7:24Speaker 2: specifically check for it. Finding Eternal Blue unpatched that's a
- 7:28Speaker 2: major red flag.
- 7:29Speaker 1: One of the things like weak passwords authentication issues.
- 7:32Speaker 2: Oh, absolutely critical. The source talks a lot about guessing
- 7:35Speaker 2: or brute forcing passwords, trying default credentials, building clients. Specific
- 7:39Speaker 2: word lists may be based on the company name They
- 7:42Speaker 2: mentioned using metasploit modules again to hammer login prompts for
- 7:45Speaker 2: databases like MSCL or myceycle or even VNC remote access services,
- 7:49Speaker 2: which sometimes don't lock accounts after too many bad guesses. Yikes.
- 7:53Speaker 2: And here's another surprising bit. The book notes that successful
- 7:56Speaker 2: password guessing often leads logs, but companies frequently do monitor
- 8:00Speaker 2: those logs closely enough, or they ignore the alerts.
- 8:03Speaker 1: So the alarm is ringing but nobody's listening.
- 8:05Speaker 2: Per pick analogy. Then you've got configuration vulnerabilities. Services just
- 8:09Speaker 2: set up insecurely, maybe using default settings. The book suggests
- 8:13Speaker 2: a cool tool called web shot.
- 8:15Speaker 1: What does that do?
- 8:16Speaker 2: It takes screenshots of lots of web servers really quickly,
- 8:20Speaker 2: helps you visually scan and spot potentially interesting things, maybe
- 8:24Speaker 2: an old admin interface or specific platforms like Apache, Tomcat
- 8:28Speaker 2: or Jenkins which are known to have remote code execution
- 8:32Speaker 2: possibilities if you can guess their admin passwords.
- 8:35Speaker 1: So Phase one is really about building this incredibly detailed
- 8:38Speaker 1: map of the network's weak spots, understanding the landscape exactly.
- 8:42Speaker 2: It's deep reconnaissance lets you make an informed decision about
- 8:45Speaker 2: the path of least resistance, which vulnerability looks most promising
- 8:49Speaker 2: to get you that initial access, rather than just you know,
- 8:52Speaker 2: randomly trying stuff.
- 8:53Speaker 1: Okay, map complete weak points identified. Phase two focus penetration.
- 8:57Speaker 1: Now the heist crew actually makes their move right getting
- 9:00Speaker 1: inside the building.
- 9:01Speaker 2: That's the goal, precisely gain that initial foothold. You're actively
- 9:05Speaker 2: exploiting one or more of those vulnerabilities found in phase
- 9:08Speaker 2: one to get remote control, usually called getting a shell.
- 9:11Speaker 1: How does that work attacking a web server for.
- 9:13Speaker 2: Example, Well, say you found weak admin credentials on that
- 9:17Speaker 2: Tomcat or Jenkin server. You might be able to achieve
- 9:20Speaker 2: remote code execution RCE, basically tricking the server into running
- 9:25Speaker 2: your commands. Okay, for Tomcap, maybe you upload a malicious
- 9:29Speaker 2: web application file a war file through the admin panel.
- 9:33Speaker 2: That file then runs and gives you a command prompt
- 9:35Speaker 2: on the.
- 9:35Speaker 1: Server, a shell.
- 9:36Speaker 2: A shell. Yeah. Now, the source distinguishes between interactive shells
- 9:40Speaker 2: like a normal command prompt and non interactive ones, which
- 9:43Speaker 2: can be more limited. They even list some safe commands
- 9:46Speaker 2: you can usually run in those limited shells, like ipconfig
- 9:48Speaker 2: to check network settings, task lists to see processes, or
- 9:52Speaker 2: during kat to look at files.
- 9:54Speaker 1: So you might not get full easy control right away.
- 9:57Speaker 2: It depends on the exploit and the shell you get back.
- 10:00Speaker 2: Sometimes even limited access is enough. Here's a really clever
- 10:03Speaker 2: Windows trick. The book details the sticky keys back door.
- 10:06Speaker 1: Sticky keys like the accessibility feature.
- 10:08Speaker 2: Exactly, you replace the program that runs when you hit
- 10:12Speaker 2: shift five times sets dot ex with the command prompt
- 10:15Speaker 2: cmd dot ex. If you have remote desktop access RDB
- 10:20Speaker 2: and the right permissions to swap the files. Uh huh,
- 10:23Speaker 2: you can hit shift five times at the Windows login
- 10:25Speaker 2: screen and instead of sticky keys options, you get a
- 10:28Speaker 2: system level command prompt.
- 10:29Speaker 1: Whoo, that's disius, there really is.
- 10:33Speaker 2: The book mentions you might need tools like cackles dot
- 10:35Speaker 2: ex first to mess with file permissions to allow the replacement.
- 10:39Speaker 1: Okay, what about attacking databases like that ms sql example, if.
- 10:43Speaker 2: You found credentials in phase one, maybe that's SAFF password
- 10:45Speaker 2: one combo. The source uses as an example. You connect
- 10:49Speaker 2: to the database now if a specific stored procedure called
- 10:52Speaker 2: xpcmd shell is enabled, which shouldn't be usually. Why not
- 10:55Speaker 2: because it lets you run operating system commands directly from
- 10:58Speaker 2: the database. So you could type CQ commands that execute
- 11:01Speaker 2: WAMI or if config on the underlying server. You definitely
- 11:04Speaker 2: check what account the d B service itself is running,
- 11:06Speaker 2: asked to see how much power you just got?
- 11:07Speaker 1: Gotcha? And if you found that eternal blue vulnerability MS
- 11:12Speaker 1: seventeen M zero ten zero, that's.
- 11:15Speaker 2: Often a much more direct route. You'd use a pre
- 11:17Speaker 2: built exploit module like MS one CO ten p XC
- 11:20Speaker 2: and metasploit pointed at the vulnerable machine, run it and
- 11:24Speaker 2: often boom you get a show.
- 11:25Speaker 1: And you mentioned some shells are better than others.
- 11:27Speaker 2: Materpreter, Yeah, Interpreter is metasploits enhanced shell. It has a
- 11:31Speaker 2: lot more built in capabilities, specifically for the next phases
- 11:35Speaker 2: of the attack post exploitation. Simple commands like EPs in
- 11:39Speaker 2: Interpreter let you see running processes and crucially who's logged
- 11:42Speaker 2: in the source gives an example of spotting a domain
- 11:46Speaker 2: user capsule Cartian logged in via RDP this.
- 11:49Speaker 1: Way, so you can see other users on the system exactly.
- 11:52Speaker 2: Interpreter also lets you easily run more advanced modules, and
- 11:55Speaker 2: you can even generate custom versions of the Materpreter payload
- 11:58Speaker 2: using tools like m venom to try and evade antivirus.
- 12:01Speaker 1: So summing up phase two, it's all about getting that
- 12:04Speaker 1: first access that beachhead and maybe compromising multiple systems quickly
- 12:08Speaker 1: if possible.
- 12:09Speaker 2: That's the core idea. Get inside established presence. The more
- 12:13Speaker 2: systems you initially compromise, the better your chances of finding
- 12:16Speaker 2: useful information like credentials or finding a path that leads
- 12:20Speaker 2: deeper into the network. For Phase three, okay.
- 12:23Speaker 1: We're in. We have shells on one or more machines.
- 12:26Speaker 1: Phase three post exploitation and privileged escalation. Back to the heist.
- 12:31Speaker 1: The crews inside now they're moving around looking for the vault,
- 12:33Speaker 1: getting keys to restricted areas.
- 12:35Speaker 2: Perfect analogy. That's exactly what this phase is about. The
- 12:39Speaker 2: key goals here, according to the source, are maintain reliable
- 12:43Speaker 2: re entry, harvest credentials, maybe install more permanent back doors,
- 12:47Speaker 2: and move laterally jump from system.
- 12:49Speaker 1: To system maintaining re entry. That sounds important. You don't
- 12:52Speaker 1: want your shell to just die if the user logs
- 12:55Speaker 1: off or rebooths.
- 12:55Speaker 2: Precisely, you need persistence. For Windows. The book talks about
- 12:59Speaker 2: using a meterpretcript called persistence. It can set up a
- 13:02Speaker 2: simple backdoor, maybe a VBScript that runs automatically on startup
- 13:06Speaker 2: and connects back to your attack machine. Very and the
- 13:09Speaker 2: Sorts mays a critical ethical point here. You must keep
- 13:11Speaker 2: detailed notes of everything you installed or change so you
- 13:14Speaker 2: can clean it up perfectly. Later for Linux or Uni
- 13:18Speaker 2: X systems. They talk about using kron job scheduled tasks,
- 13:21Speaker 2: maybe to automatically set up reverse SSH tunnels, using pre
- 13:25Speaker 2: shared keys for passwordless access back.
- 13:28Speaker 1: In okay, persistence covered. What about credential harvesting finding usernames
- 13:32Speaker 1: and passwords?
- 13:33Speaker 2: This is huge. It's like finding spare keys lying around
- 13:36Speaker 2: the building. On Windows, the go to tool is mimicats,
- 13:39Speaker 2: often run through metasploids KB extension. It's famous for being
- 13:43Speaker 2: able to dump clear text passwords directly from the computer's
- 13:46Speaker 2: memory if they're stored there. Commands like tspkg or w
- 13:49Speaker 2: digest do this.
- 13:50Speaker 1: Clear text passwords and memory often Yes.
- 13:54Speaker 2: You can also try to grab cash domain credentials hashes
- 13:56Speaker 2: of passwords for users who've logged into that box before,
- 13:59Speaker 2: using formats like mscash two. On Linux unn the X,
- 14:02Speaker 2: you might check the user's commandhistoryfile dot bash history. People
- 14:06Speaker 2: sometimes type passwords on a command.
- 14:07Speaker 1: Line Oh wow, seriously it happens.
- 14:10Speaker 2: Or you grab the password hashes from the ETCA shadow file,
- 14:13Speaker 2: which stores them in a hashed format.
- 14:14Speaker 1: So you're grabbing credentials from memory history.
- 14:18Speaker 2: What else searching the filesystem itself, looking for configuration files
- 14:22Speaker 2: where developers might have hard coded passwords. The source list's
- 14:26Speaker 2: common examples web dot ca fig for asp, dot net apps,
- 14:29Speaker 2: tomcatusers dot xml for tomcat, can figure out ink dot php.
- 14:33Speaker 2: For some PHP apps, you'd use system search commands like
- 14:37Speaker 2: find star on Windows or grap on Linux to hunt
- 14:39Speaker 2: for keywords like password or PWD within files.
- 14:43Speaker 1: Okay, so now you've potentially got a collection of usernames,
- 14:45Speaker 1: maybe some clear text passwords, and a bunch of password hashes.
- 14:49Speaker 1: What do you do with the hashes?
- 14:50Speaker 2: You try to crack them using tools like John the Ripper.
- 14:53Speaker 2: The book explains the difference between brute force cracking trying
- 14:56Speaker 2: every single combination, which is super slow for strong passwords,
- 14:59Speaker 2: and dictionary attacks.
- 15:00Speaker 1: Using lists of common passwords.
- 15:02Speaker 2: Exactly like the famous Rocky dot txt list. Dictionary attacks
- 15:06Speaker 2: are surprisingly effective against weaker common passwords. The source mentions
- 15:09Speaker 2: cracking the hash for that user t in and finding
- 15:11Speaker 2: the password was password eighty two to two, pretty common format.
- 15:15Speaker 1: Okay, so cracked passwords or harvested clear text ones, Now
- 15:18Speaker 1: you can move laterly.
- 15:20Speaker 2: Yes, that's lateral movement. You take those credentials or even
- 15:24Speaker 2: just to hashes and use them to log in to
- 15:26Speaker 2: other computers on the network that you couldn't access before.
- 15:30Speaker 2: For Windows, the source highlights a really powerful technique called
- 15:33Speaker 2: pass the hash pa'ss the hash Yeah. Tools like crack map,
- 15:36Speaker 2: exec CME or Metasploit's smug in module let you authenticate
- 15:42Speaker 2: to other Windows machines using just the user's password hash.
- 15:46Speaker 2: You don't even need to crack it to the plain
- 15:47Speaker 2: text password first.
- 15:48Speaker 1: That's incredible. You just need the hash fingerprint, not the
- 15:51Speaker 1: actual key.
- 15:52Speaker 2: Essentially, yes, it works because of how Windows authentication protocols
- 15:56Speaker 2: can operate, so as you're moving laterally, you're also constantly
- 16:00Speaker 2: looking for privileged escalation.
- 16:01Speaker 1: Opportunities getting more power on the machines you land on.
- 16:04Speaker 2: Right going from a regular user to administrator on Windows
- 16:07Speaker 2: or to the root user on Linux. On Linux unax,
- 16:11Speaker 2: the source mentions looking for misconfigured SUID binaries. These are
- 16:14Speaker 2: special programs that run with the permissions of the file's owner,
- 16:18Speaker 2: not the user running it. The password command is a
- 16:21Speaker 2: classic example. It needs root privileges to change the password
- 16:25Speaker 2: file even when run by a normal user. If you
- 16:28Speaker 2: find a custom program mistakenly set with SUID and owned
- 16:31Speaker 2: by rout, you might be able to exploit it to
- 16:33Speaker 2: become route. The book even gives an example of potentially
- 16:36Speaker 2: backdooring the ETSETA password file itself this way to add
- 16:40Speaker 2: a new root level user.
- 16:41Speaker 1: Okay, so you're moving sideways, grabbing more power. What's the
- 16:45Speaker 1: ultimate goal?
- 16:45Speaker 2: Usually in most corporate environments using Windows Active directory, the
- 16:49Speaker 2: ultimate prize is domain administrator privileges. That's basically the keys
- 16:53Speaker 2: to the entire kingdom full control.
- 16:55Speaker 1: How do you get there?
- 16:57Speaker 2: Well, first you need to identify who the domain admins are,
- 17:00Speaker 2: like net group domain admins. Domain can list them. Then
- 17:03Speaker 2: you need to figure out where they might be logged
- 17:05Speaker 2: in currently, maybe using commands like hinsta on servers you
- 17:09Speaker 2: already have access to.
- 17:10Speaker 1: Okay, find the admins, fine, where they are? Then what?
- 17:13Speaker 2: Then? You try to compromise that session or machine. Maybe
- 17:16Speaker 2: you can impersonate their logged in session using tools like
- 17:19Speaker 2: Metasplois incognito. Or maybe you get lucky and use mimicats
- 17:23Speaker 2: on the machine where a domain admin is logged in
- 17:26Speaker 2: and steal their password or hash right out of memory.
- 17:28Speaker 1: So target the admins directly? Is there another way?
- 17:32Speaker 2: Yes? The real holy grail, as the source calls it,
- 17:35Speaker 2: is getting your hands on the NTDs dotd it file
- 17:38Speaker 2: from a domain controller.
- 17:39Speaker 1: The domain controller that's the main server for the Windows domain.
- 17:43Speaker 2: Exactly, and that NTBs dotd it file it contains the
- 17:46Speaker 2: password hashes for every single user and computer in the
- 17:49Speaker 2: entire domain. It could be thousands.
- 17:51Speaker 1: Wow, but isn't that file locked super tight by the OS.
- 17:54Speaker 2: It is while the domain controller is running. You can't
- 17:57Speaker 2: just copy it. So the book describes the standard TECHNIQE
- 18:00Speaker 2: using volume shadow copies VSC.
- 18:02Speaker 1: Shadow copies like the system backups.
- 18:04Speaker 2: Kind of yeah. You can use a built in Windows
- 18:06Speaker 2: command VS and flyming and create shadow to create a
- 18:09Speaker 2: point in time snapshot of the domain controller's hard drive.
- 18:12Speaker 2: This snapshot acts like a separate mounted volume, like plugging in.
- 18:16Speaker 1: A USB drive that has a copy of the system
- 18:18Speaker 1: files from a moment ago.
- 18:19Speaker 2: Exactly like that. And crucially, the files on this shadow
- 18:22Speaker 2: copy aren't locked by the live operating system, so you
- 18:26Speaker 2: can just copy the NTDs dot dt file from the
- 18:28Speaker 2: shadow copy. You also need one other file from the
- 18:30Speaker 2: shadow copy, the System registry hive.
- 18:32Speaker 1: Why that one?
- 18:33Speaker 2: You need the system hive because it contains the key
- 18:36Speaker 2: required to decrypt the hashes stored in NTDs dot d.
- 18:39Speaker 2: Once you have both files NTDs dot D and system.
- 18:43Speaker 2: You take them offline to your attack machine. Then you
- 18:46Speaker 2: use tools like secret stump dot PUI from a toolkit
- 18:49Speaker 2: called impack it. You feed it those two files and
- 18:52Speaker 2: it extracts all the domain passwerd hashes.
- 18:54Speaker 1: All of them thousands, potentially game over basically pretty much.
- 18:57Speaker 2: With all those hashes, you can use past the hash
- 18:59Speaker 2: to access almost anything or start cracking the important ones.
- 19:03Speaker 2: So yeah, Phase three is really about leveraging that initial access,
- 19:06Speaker 2: moving strategically, escalating privileges, and aiming for that total control
- 19:10Speaker 2: to show maximum potential impact.
- 19:12Speaker 1: Okay, incredible, We've planned the heist, reached the building, moved
- 19:16Speaker 1: through it, grab the crown jewels. Phase four documentation. This
- 19:22Speaker 1: isn't the part where the heist crew vanishes, is it.
- 19:24Speaker 2: No? Quite the opposite. This phase is absolutely critical. The
- 19:28Speaker 2: goal here is to deliver real value back to the client,
- 19:31Speaker 2: and you need to clearly report exactly how you got in,
- 19:34Speaker 2: what you found, what the risks are, and most importantly,
- 19:36Speaker 2: how they can fix it. The book really stresses this.
- 19:39Speaker 2: You need meticulous notes during the test. You can't write
- 19:42Speaker 2: a good report weeks later from memory.
- 19:44Speaker 1: Makes sense. What goes into this report. What are the
- 19:47Speaker 1: key sections?
- 19:47Speaker 2: The source lays out the standard components. First, the executive summary,
- 19:51Speaker 2: high level, non technical for managers, for leadership. It answers
- 19:55Speaker 2: the basic questions, who did the test, what was the scope,
- 19:59Speaker 2: what were the major find When did it happen? And
- 20:01Speaker 2: why does it matter? The how comes later?
- 20:03Speaker 1: Got it? Big picture first exactly?
- 20:05Speaker 2: Then the engagement methodology. This explains your approach. Was it whitebox,
- 20:09Speaker 2: gray box, black box? It outlines the four phases you followed.
- 20:12Speaker 2: After that comes the attack narrative, the story of the
- 20:15Speaker 2: heist exactly. It's the step by step story of your
- 20:18Speaker 2: specific compromise. How did you get that first shell? What
- 20:21Speaker 2: credentials did you find? How did you move from machine
- 20:24Speaker 2: AID to machine B? How did you eventually get domain admin?
- 20:27Speaker 2: If you did it.
- 20:28Speaker 1: Reads like a narrative, okay, that makes it understandable.
- 20:30Speaker 2: Then you have the core technical details. The technical observations
- 20:34Speaker 2: are findings. Each finding needs structure. The source suggests severity
- 20:39Speaker 2: like high, medium, low. High usually means direct compromise or
- 20:43Speaker 2: a clear path to it, a clear title. The observation itself.
- 20:47Speaker 2: The example found default Tomcat admin password, The impact what
- 20:50Speaker 2: an attacker could do gain make code execution on the server, evidence, screenshots,
- 20:56Speaker 2: command output to prove it assets affected, which specific servers
- 21:00Speaker 2: ips and finally a recommendation and what's.
- 21:03Speaker 1: The philosophy behind what counts as a finding?
- 21:06Speaker 2: This is important. The book emphasizes finding should be based
- 21:09Speaker 2: on demonstrable compromise or a clear attack path you successfully
- 21:13Speaker 2: executed or validated. It's not usually about just listing minor
- 21:16Speaker 2: best practice deviations like maybe an old SSL cipher being enabled,
- 21:19Speaker 2: unless you could actually leverage that weakness somehow during your attack.
- 21:22Speaker 1: So focus on what an attacker could really do, not
- 21:26Speaker 1: just theoretical stuff exactly.
- 21:27Speaker 2: It's about proven risk and the recommendations need to be actionable.
- 21:32Speaker 2: Update this software and force stronger password complexity, disable xpcmd shell.
- 21:38Speaker 2: One key ethical point the source makes is not to
- 21:40Speaker 2: recommend specific vendor products unless that was part of the agreement.
- 21:44Speaker 2: You identify the type of control needed, not push a
- 21:47Speaker 2: particular brand.
- 21:48Speaker 1: And supporting infogos and appendices.
- 21:50Speaker 2: Yeah, things like how you define severity levels, the full
- 21:53Speaker 2: list of live hosts and open ports you found, maybe
- 21:56Speaker 2: a list of the tools used, references all the supporting data.
- 21:59Speaker 1: Okay, that's comprehensive. And one last really crucial step. The
- 22:03Speaker 1: book mentions cleanup absolutely critical.
- 22:06Speaker 2: Responsible pen testing means leaving the client's environment exactly as
- 22:09Speaker 2: you found it or arguably slightly more secure. By removing
- 22:12Speaker 2: any tools or changes you made, you cannot leave them
- 22:15Speaker 2: more vulnerable.
- 22:15Speaker 1: What does cleanup involve?
- 22:16Speaker 2: It means killing all your active sessions and shells, Removing
- 22:20Speaker 2: any files you uploaded, any backdoors you installed, like that
- 22:23Speaker 2: persistent script or the sticky keys hack, Reversing any configuration
- 22:27Speaker 2: changes you made, like if you had to enable xpcmd
- 22:30Speaker 2: shell to prove a point you disabled it again, delete
- 22:33Speaker 2: any temporary shares you created. It's about meticulous housekeeping.
- 22:37Speaker 1: Got it, leave no trace except for the report exactly.
- 22:41Speaker 1: So wow, we've really walked through that entire simulated attack
- 22:45Speaker 1: life cycle based on this guide, from the initial planning
- 22:48Speaker 1: and discovery, finding those weak spots, getting that foothold, moving
- 22:51Speaker 1: laterally and escalating privileges, potentially gaining full control, and then
- 22:56Speaker 1: crucially documenting it all so the organization can actually improve.
- 23:00Speaker 2: It's a really powerful process when done right. And that
- 23:03Speaker 2: core takeaway which the source hits on again and again,
- 23:06Speaker 2: is that understanding how an attacker thinks and operates, which
- 23:09Speaker 2: is what a good pentis simulates is probably the best
- 23:12Speaker 2: way to figure out how to build effective defenses. And
- 23:14Speaker 2: that low hanging fruit we talked about at the start,
- 23:17Speaker 2: default passwords, missing patches, it's not just theory. The book
- 23:21Speaker 2: makes it clear that's often the actual way attackers get
- 23:24Speaker 2: their first foothold basic security hygiene, getting the fundamentals right.
- 23:28Speaker 2: It really does go an incredibly long way.
- 23:31Speaker 1: It is pretty striking, isn't it. How finding just one mistake,
- 23:34Speaker 1: one oversight, that default password, that unpatched vulnerability like eternal
- 23:39Speaker 1: Blue can potentially unravel the security of an entire network
- 23:43Speaker 1: Using the kinds of techniques laid out here. It really
- 23:46Speaker 1: underscores that old saying defenders have to be right every time,
- 23:48Speaker 1: attackers only need to be right once.
- 23:50Speaker 2: It's a sobering reality for anyone in defense. Yeah, but
- 23:53Speaker 2: understanding the attack paths makes defense much smarter.
- 23:57Speaker 1: Absolutely so for you listening to this, thinking about this
- 24:00Speaker 1: whole process, the reconnaissance, the exploitation, the lateral movement, the
- 24:04Speaker 1: sheer power of finding just one open door. What single
- 24:08Speaker 1: security practice maybe in your own work or even personal setup,
- 24:11Speaker 1: feels like it might be that potential weak point, that
- 24:14Speaker 1: one thing that maybe deserves a closer look after hearing
- 24:16Speaker 1: all this something to definitely think about after this deep
- 24:19Speaker 1: dive into the art and science of network penetration testing.