From Hacking to Report Writing: An Introduction to Security and Penetration Testing - podcast episode cover

From Hacking to Report Writing: An Introduction to Security and Penetration Testing

Jul 12, 202543 min
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

Provides an introduction to security and penetration testing, offering practical guidance from initial setup to report writing. It covers various types of security tests, including black, white, and gray box approaches, explaining their advantages and disadvantages. The material also discusses vulnerability identification and exploitation, detailing methods such as network scanning with Nmap, password attacks using Hydra and Medusa, and exploiting web application flaws like SQL injection based on the OWASP Top Ten. Furthermore, the text addresses technical preparations for security testers, emphasizing the importance of tools, data handling, and ethical considerations like obtaining proper authorization and liability insurance, all while providing insights into real-world hacking examples and offering advice on becoming a more effective security tester.

You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cyber_security_summary

Get the Book now from Amazon:
https://www.amazon.com/Hacking-Report-Writing-Introduction-Penetration/dp/1484222822?&linkCode=ll1&tag=cvthunderx-20&linkId=638886205c4e28502ab35f8c9564ba04&language=en_US&ref_=as_li_ss_tl


Discover our free courses in tech and cybersecurity, Start learning today:
https://linktr.ee/cybercode_academy

Transcript

Speaker 1

Welcome curious minds to the deep dive. Have you ever paused to consider the silent, relentless battle unfolding every second in our digital world?

Speaker 2

It's a high stakes game. Really, How do the.

Speaker 1

Bad actors, the digital adversaries, how do they manage to slip past our defenses, breach our systems, get their hands on sensitive data? And just as crucially, how do the good guys, the digital defenders, how do they learn to anticipate those moves and lock down systems before it's too late. Today we're plunging right into the heart of that digital struggle. We're talking about security testing with a keen focus on

penetration testing. Our guide for this deep dive is Robert Spenson's insightful book From Hacking to Report Writing, An Introduction to Security and Penetration testing.

Speaker 2

Really good stuff in here.

Speaker 1

Our mission, well, it's to take you on a complete journey right through the life cycle of a security test, from adopting the hacker mindset all the way to crafting that vital report, the one that ultimately helps organizations build robust digital defenses. We'll uncover the how and why behind finding digital weaknesses and believe the insights are pretty profound.

Speaker 3

Yeah. And what's truly fascinating about this field, I think is the delicate balance it strikes. It's really about leveraging offensive techniques, understanding precisely how an attacker thinks and operates, but crucially doing so for entirely defensive purposes. It's using the very tools of compromise to build stronger, more resilient digital walls.

Speaker 1

Absolutely, and to truly grasp why this proactive approach is so vital. Let's anchor ourselves with a real world example. Remember the VTech hack back in November twenty fifteen. This Hong Kong based company. They make electronic learning toys for kids.

They suffered a massive breach. Millions of children's and parents data, user names, passwords, photos, even private messages all stolen and the root causes while a critical database code injection vulnerability and kind of astonishingly unencrypted information, it also highlighted that the toys themselves just weren't designed to communicate securely.

Speaker 3

Right. And what's profoundly alarming about a hack like VTech beyond the sheer volume of data stolen, is that it points to a fundamental flaw like right in the design. This wasn't some super sophisticated zero day exploit. It was about basic security principles just being completely missed ignored. Really, it properly performed security test before that breach, it would almost certainly have uncovered. These frankly glaring weaknesses made the

attack far hard, maybe even prevented it altogether. It's a stark lesson, isn't it, in the value of security by design versus just, you know, security as an afterthought, and.

Speaker 1

That leads us to a fundamental truth. Really, vulnerabilities are well, they're everywhere modern complex computer systems. They're constantly interacting with uncontrolled external systems users. This inherent complexity means achieving one hundred percent security is quite frankly impossible.

Speaker 3

It just is.

Speaker 1

Think of it like this, Maybe imagine a dusty road connecting two villages centuries ago, good enough for simple transport, right, but then as traffic grew, it became a busy city street packed with intersections, crosswalks, strains. All these security features were layered on after the road's core purpose transport was established. In the digital world, security often becomes that afterthought, bolted on instead of being integral to the initial design and it's.

Speaker 3

Crucial to understand it's not just malicious hackers exploiting these weaknesses. Take the Slammer worm two thousand and three. This was the fastest computer worm in history. In fact, something like ninety percent of vulnerable servers online within ten minutes. Ten minutes it brought so many mission critical systems just grinding to a halt, and not because of some cunning new exploit. No, it took advantage of a vulnerability for which a patch

had been readily available for six months. This just drives on the point that basic cyber hygiene like patch management, is incredibly important. Its absence allowed a known fixable weakness to cause just widespread chaos.

Speaker 2

So if we.

Speaker 1

Boil it down, what exactly is a security test? Robert Spenson emphasizes that it's a type of vulnerability assessment where a tester actively takes on the role of a hacker. They meticulously try to break into an organization's IT environment, uncover vulnerabilities, and then importantly provide concrete suggestions for fixing them before a real attack can occur. It's leveraging offensive knowledge for defensive gain, simple as that almost And who are these individuals?

Speaker 2

The ones wielding.

Speaker 1

Digital tools for good or sometimes for ill. The landscape of hackers is incredibly diverse, each with their own motivations, their own methods.

Speaker 2

Okay, so at the highest.

Speaker 1

Level, you've got state sponsored actors. These groups, they strive to operate way below the radar, backed by immense funding national resources, their attacks are increasingly becoming a cornerstone of

national defense. Really, think about China's Unit sixty one three ninety eight, widely believed to have systematically stolen terabytes terabytes trade secrets from US companies, or the infamous stux networm, thought to be a joint US Israel effort right designed not just to steal data, but to physically damine Iran's nuclear centrifuges. That ability to translate digital action into real world physical destruction that really sets some of these operations apart exactly.

Speaker 3

And what's particularly challenging with state sponsored actors is their patients and their persistence. They often conduct these long term campaigns, we call them advanced persistent threads or apts. They brow deep into networks over months, years, sometimes to achieve their objectives. They have virtually unlimited resources, unlimited time. It makes them exceptionally difficult to detect and defend against.

Speaker 1

Okay, so that's one type. Next we encounter computer criminals. These guys are driven primarily by financial gain. They follow the money, and these days that flows heavily through digital transactions. Obviously, think of Alexander andreevag Panin and Hamzabendoladge, the developers of the.

Speaker 2

Spy i botnet.

Speaker 1

They were sentenced to a combine twenty four years for selling malware, malware that stole over three million dollars from like one point four million computers worldwide. Their botnet toolkit made it disturbingly easy for others to commit fraud on a massive scale just by the kit.

Speaker 3

Point click Scary stuff and you have activists, right.

Speaker 2

Activists.

Speaker 1

These individuals are motivated more by protests a desire for public visibility. They use digital tools as a modern form of demonstration. Instead of picket signs, they might use denial of service attacks or website defacement. A striking, even kind of humorous example is a nineteen ninety six CIA website defacement. Remember that visitors were greeted with welcome to the Central Stupidity Agency. That message even made it onto CNN.

Speaker 2

Their goal is.

Speaker 1

Maximum exposure for their message. Whatever it is, getting the message out there is key for them. Then, perhaps the most insidious and maybe the most difficult threat to foresee and manage is the insider. These individuals already possess legitimate access, which often renders traditional perimeter defenses well less effective. Edward Snowden is arguably the most well known insider in history.

While working as a contractor for the NSA, he gained access to and then released an unprecedented amount of classified data, including things like the daily interception of six hundred million communications spying on foreign leaders. Now, regardless of whether you view his actions as whistleblowing or treason, his impact as an insider was a fundamentally changed the conversation around government surveillance, and.

Speaker 3

The difficulty with insiders really lies in that challenge of building trust models. It's tricky. How do you monitor someone who legitimately needs access to sensitive information without creating a surveillance state within your own organization. It requires a different approach to security, one focus more on behavior analysis granular access control rather than just looking at external threats.

Speaker 2

Good point.

Speaker 1

Finally, at the other end of the spectrum, we have script kitties. These are individuals who use pre made tools and scripts written by others, often without a deep understanding of how they work or frankly, the consequences.

Speaker 2

But don't let their lack of technical depth fool you.

Speaker 1

Like someone who doesn't understand the mechanics of a car can still cause an accident, right, a script kitty can reach significant damage. Michael Kelce or Mafia Boy, he was just fourteen years old back in two thousand, launched devastating denial of service attacks against some major websites like Amazon, Fifa, dot Com, eBay, all using easily downloaded tools. He later claimed he was unaware of the dangers, but the impact very real.

Speaker 3

Yeah, underestimating them can be a mistake.

Speaker 1

So when we look across all these categories, state sponsored criminals, activists, insiders, script kds, what's the overarching takeaway? It seems clear that the human element remains the most probable source of intentional disruption in computer systems, whether it's spreading malware, activism, phishing attacks. Understanding these motivations is really key to building effective defenses.

Speaker 3

Absolutely, it's not just about the technology, it's about the people behind it.

Speaker 1

Okay, So now that we have a clearer picture of why security testing matters and who the players are. Let's shift our focus. Let's talk about the art of the penetration test itself. It's actually a highly structured process, from the initial concept right through to the final crucial report. It all kicks off with what Senson calls the initialization phase. This is when an organization first considers a security test. They start asking that fundamental question, how safe.

Speaker 2

Are we really?

Speaker 3

That first step is crucial acknowledging. You need to ask the question exactly.

Speaker 1

From there, a critical step is setting the scope. This needs to be crystal clear, thoroughly verified to prevent what's called scope creep. Imagine a tester hired for, say, for database servers. During reconnaissance, they discover a dozen more insecure servers belonging to other departments if they're then asked to test all of them without adjusting the timeline. While it often leads to lower quality testing overall, you just spread

yourself too thin and linked tightly to scope. There's the absolute necessity of the well they call it the get out of jail free cards.

Speaker 3

Ah. Yes, the essential document it is.

Speaker 1

It's the written, legally binding permission required for a security tester to quote break into an organization systems mimicking a real attacker. It must be signed by someone with proper authority before any testing commences. No signature, no test period, and that.

Speaker 3

Legal documentation the scope that get out of jail free card. It's completely non negotiable. Without it, even the most ethical penetration test could easily be viewed as a and an act. It also protects the client right by clearly defining what is and isn't being tested, manages exteptations, prevents unintended consequences. It's vital for both sides.

Speaker 1

Okay, so when we talk about how much information a tester has at the outset, we often use these color codes for security tests. White box testing means the tester has full access to internal info, network diagrams, maybe source codes and configurations everything. It's very time efficient because you know where to look, but it's less realistic as a true external hacker. Simulation. On the opposite end is black box testing. Here the tester starts with minimal information, maybe

just a company name, truly mimicking an external attacker. This is the most realistic simulation, but as fence And points out, it's often unnecessarily time consuming and therefore expensive.

Speaker 2

There's a lot of guesswork involved, and.

Speaker 3

That guesswork factor in black box testing you can have real consequences. K Spenson tells this story. It's quite something. A black box test where the tester was given just a company name and an emergency contact. That's it. They used old Airon database information that's the registry for IPA addresses to find ips, which led them to believe in IP address and Madrid still belonged to their client. They found a terribly outdated Sambo file sharing service running there,

connected easily with administrators both username and password. Found gigabytes of database backups, payroll user data, even a scanned passport.

Speaker 2

Oh my goodness.

Speaker 3

Yeah, so I called the emergency contact all proud saying we're in and the context is, uh, it's not our servers. Hmmm. Turns out the IP address now belonged to some completely innocent Spanish company. The Airon database information was simply out of date. It's just a powerful reminder that even elementary information like IP ownership needs to be double checked, especially in a black box scenario.

Speaker 1

Well that's a nightmare scenario, seriously, and it really highlights why gray box testing is probably the most common approach.

Speaker 3

When you say, definitely, it strikes that balance.

Speaker 1

Yeah, it provides the tester with some insider information maybe user credentials, network diagrams, but still maintains a realistic simulation of a hacker's perspective.

Speaker 2

Makes it both effective and efficient.

Speaker 3

Exactly best of both worlds often okay.

Speaker 2

But regardless of the testing approach, white black, gray, the ultimate goal is always define vulnerabilities. So what is a vulnerability precisely?

Speaker 3

Well, there are formal definitions out there. ANISA, the European Union Agency for Network and Information Security, they put it pretty succinctly. They define it as the existence of a weakness compromising the security. Simple, okay, a weakness right. The Internet Engineering Task Force the IETF they expand on that a bit. They call it a flaw or weakness exploited to violate the system security policy.

Speaker 1

So, to simplify it even more, it's basically something that makes it possible for someone to force your computer or your system to do something you don't want.

Speaker 2

It to do.

Speaker 3

That's a good way to put it. And these vulnerabilities typically compromise one or more aspects of what we call the CIA triapp ah, the CIA triads, YEP, confidentiality, integrity, and availability. Confidentiality is about keeping information secret right, ensuring only authorized people can access it, pretty straightforward. Integrity ensures information hasn't been tampered with by unauthorized users. Think of, say, an e commerce system, where a vulnerability might let a

customer change other customers order information. That's an integrity violation.

Speaker 2

Got it.

Speaker 3

Availability just means information and systems are accessible when needed, preventing things like a power outage or maybe a distributed denial of service attack from bringing services down. That's an availability issue.

Speaker 1

Confidentiality, integrity, availability. Okay, So how are these vulnerabilities actually uncovered and how do we measure how serious they are?

Speaker 3

Well, it's kind of a continuous process. You can visualize it as a vulnerability wheel almost. It starts with flawed software. Hackers identify bugs in it, Then they might develop exploit code that prompts a vendor response, hopefully a patch, and finally there's the user response applying that patch. Then the cycle starts again with new flaws or mispatches. It's an ongoing cycle of discovery and defense.

Speaker 1

Interesting, and some vendors actually embrace this cycle, don't they by offering bug bounties.

Speaker 3

Exactly. These are slightly unorthodox maybe, but incredibly effective ways for companies to get security reviews from a huge pool of ethical experts. Microsoft, for example, famously paid one researcher one hundred thousand dollars back in twenty fourteen for discovering a pretty significant vulnerability. It incentivizes finding flaws before the bad guys.

Speaker 2

Do one hundred thousand dollars. Wow.

Speaker 1

Okay, Now, a crucial concept here is the zero day exploit.

Speaker 2

What exactly is that.

Speaker 3

H zero days? These are vulnerabilities that are not publicly known and critically for which no patch is available. This leads system administrators with literally zero days to patch because the vendor isn't even aware of the issue yet, or maybe they are but haven't had time to develop and release a.

Speaker 1

Fix, so it's like an open door that nobody knows about except the attacker.

Speaker 3

Pretty much, zero days are the holy grail for attackers because they offer that window of opportunity where defenses are effectively blind. They're highly prized fetch significant sums on the black market sometimes because they're so effective before a vendor can react.

Speaker 1

Okay, that makes sense. So this raises an important question. Once a vulnerability is found, whether it's a zero day or just a known one, how do we measure its seriousness?

Speaker 2

How bad is it?

Speaker 3

Right? The industry standard for that is the Common Vulnerability Scoring System or CVSS. It's basically a zero to ten scale. Higher number means greater severity, more urgent need for attention.

Speaker 2

Okay, zero to ten.

Speaker 3

Yeah. For instance, there was a Microsoft silver Light vulnerability identified as CVE twenty sixteen zero zero zero three four. That CVE just tends for common vulnerabilities and exposures. It's like a global dictionary for known security flaws. Anyway, that silver Light bug scored a high nine point six on the CDSS scale. That signals immediate attention needed because the potential impact is severe.

Speaker 2

Nine point six Yeah, that sounds pretty urgent.

Speaker 1

Okay, So before any hands on hacking actually begins, a security tester needs to make some thorough technical preparations, right.

Speaker 2

What does that involve?

Speaker 3

Absolutely, preparation is key. One vital step is collecting network traffic. This is essential not just for analysis later, but also for legal protection tools like wire shark, which has a nice graphical interface, and tcpdump, which is command line based are indispensable. They capture every single bite of data sent

between the tester's machine and the target system. That traffic can literally be the sloking gun in a legal dispute, or the key to understanding exactly what happened during a test or an attack.

Speaker 1

So it's like recording the whole conversation between the computers precisely.

Speaker 3

It provides an undeniable record of events, crucial for diagnosing issues and also for defending yourself if something goes wrong during a test and questions are asked.

Speaker 2

Makes sense. Note taking is also paramount, I imagine.

Speaker 3

Oh hugely. Yeah, but critically, any sensitive test data, client information, discovered, passwords, vulnerability should always be stored locally, securely. Never ever use cloud based note taking apps like Evernote or simple note for this stuff. You just can't risk processing sensitive client data on third party servers. It's a huge liability.

Speaker 2

Good point, Keep it local.

Speaker 3

Keep it local, keep it encrypted. And saving complex commands you've used, that's just a smart habit. Save time, helps you reproduce your steps, makes reporting easier.

Speaker 2

Okay, and what about the software setup? What tools are essential?

Speaker 3

Well? For efficiency? Pre configured virtual machines, loaded with security tools are really the way to go. Kali Linux, for instance, is basically a Linux distribution built specifically for security work. It comes bundled with well pretty much every imaginable security related tool. As Benson puts.

Speaker 2

It, Kyllie right, heard of that one, and then there's metasploit.

Speaker 3

This is widely regarded as the most impactful penetration testing solution on the planet. It's invaluable for verifying vulnerabilities. It has a huge library of pre built exploits you can use to demonstrate impact safely, not.

Speaker 2

A sploit, okay.

Speaker 3

And when you're dealing with data, especially if you're involved in incident response after a breach, remember the order of volatility.

Speaker 2

Order volatility, what's that.

Speaker 3

It's a forensics principle. It basically tells you what evidence disappears fastest. Data in memory RAM is far more volatile, meaning it's lost much quicker than data sitting on a hard drive. So if you're the first responder to an incident, understanding this tells you what evidence you need to prioritize capturing immediately because it might literally vanish if machine reboots or loses power.

Speaker 1

Ah okay, capture the most fleeting evidence first, got it. That's critical for incident response and to really keep secrets safe during the test itself. Security testers rely heavily on full disk encryption right like file vault for Max or BitLocker for Windows.

Speaker 3

Absolutely non negotiable. Full disc encryption on the testing laptop. Encrypted backups too. And if you absolutely must use cloud storage for some reason, maybe sharing a draft report, manually ENCRYPTO files before they even touch the cloud. Use something strong like PDP or AES encrypt within a ZIP file. Don't rely on the cloud provider's encryptional loan for highly sensitive stuff.

Speaker 1

Right, encrypt it yourself first. And finally, something that sounds may be less technical but is crucial liability insurance.

Speaker 3

Oh indispensable, especially for independent consultants. Spenson mentiones his own one million dollars coverage.

Speaker 2

A million euros.

Speaker 3

Yeah, and why because things can quickly go sideways during a test, even with the best intentions. One wrong move, one unintended system crash, one misconfiguration, and you can be facing a massive lawsuit. That insurance can be a lifesaver financially and professionally. Don't test without it.

Speaker 1

Found advice. Okay, So preparations are done. Insurance is in place. Let's step into the hacking phase of the security test, where the hands on technical work truly begins. This phase generally involves three key steps. Right, identify, exploit, and then report.

Speaker 3

That's the core loop.

Speaker 1

Identify exploit report Okay, First up identifying vulnerabilities. This starts with footprinting, you said, which is passive.

Speaker 3

Right. Footprinting is all about passive information gathering, no direct interaction with the target system. Yet you're using public resources things like intel techniques. May be checking public whois servers for domain registration info, looking at job posting, social media, gathering intelligence before anyone even knows you're looking.

Speaker 2

Okay, reconnaissance from AFAR. Then comes scanning. That's active.

Speaker 3

Yes, scanning is active. Now you're directly probing the target network to map out available hosts and services, and the tool for this is almost always end map. It's the undisputed industry standard network scanner. For very good reason. NMAP can tell you what IP addresses are live, what ports are open, closed, or may be filtered by a firewall.

It can often identify the services running on those open ports, and even make a decent guess at the operating system it's like taking an X ray of the network perimeter.

Speaker 2

En MAP got it. And you mentioned an anecdote earlier about finding something unexpected during a scan the black box.

Speaker 3

Ah, yeah, that was sensence story. During a scan and MAPP found this mysterious device, no name, no logo, root password unknown, but it was clearly recording incoming calls for a call center and MAP revealed it was running a web server on an unusual port. The client had insisted on a true hacker test, a full assault or nothing. Yeah.

So the tester, kind of bracing the role of a clueless script kitty for a moment, found publicly available proof of concept code for a known Apache vulnerability CVE twenty eleven three one ninety two, known as a patche killer. They ran the code against that black box's web server, and much to their surprise, the Apache server crashed spectacularly, took down the entire call center system that relied on it.

Speaker 2

Oh wow, chaos, I bet total chaos.

Speaker 3

Apparently manager's running around, But it was a vivid, albeit disruptive reminder of the importance of that get out of jail free card and the potential impact of even known older vulnerabilities on critical systems.

Speaker 2

Definitely illustrates the point.

Speaker 1

Okay, so after scanning with n MAP, what's next in identification.

Speaker 3

NIX comes enumeration is deeper probe. Now you're trying to map the services you found during scanning to known vulnerabilities. Get more detail. Tools like fearce can perform DNS brute forcing to find subdomains. The harvester can scrape search engines and other sources to pull out email addresses associated with the domain, and resources like netcraft are fantastic. They gather extensive web presence information, historical IP addresses, hosting companies, domain registrars,

technologies used on a website. It's all about building a detailed picture of the target.

Speaker 1

Okay, Digging deeper and another critical part of identification you mentioned is checking for data from hacked sites.

Speaker 3

Yeah, this is crucial. We've all heard of major breaches, right like the Ashley Madison hack. Member profiles were leaked online, caused immense embarrassment, blackmail attempts, tragically, even suicides were linked to it. So resources like Troy hunts Have I been pwned? Website are invaluable. You can check if your email addresses or addresses associated with the target organization have been compromised

in known data breaches. That leaked data often contains passwords that people reuse elsewhere.

Speaker 1

Right, password reuse is a huge problem. Okay, So once vulnerabilities are identified through footprinting, scanning, enumeration, checking breach data, the next step is exploitation. This is the actual act of gaining unauthorized access exactly.

Speaker 3

This is where you try to leverage the weakness as you've found.

Speaker 1

And password attacks seem like a common starting point. You called it the holy grail of authentication.

Speaker 3

They often are because if you can get valid credentials, you can often walk right in.

Speaker 2

Yeah.

Speaker 3

Brute force attacks are a key technique here. Tools like Hydra or another one called Medusa can systematically try thousands, millions, even billions of password combinations against the log in prompt. They can target various services FDP, SSH, HTTP, basic off databases like my sqel, remote desktop, RDP, Windows file shares, SMB, just hammering away with dictionaries of common passwords or character combinations.

Speaker 2

And these can be online or offline attacks.

Speaker 3

Right correct, Online attacks try to log in directly to the live service. They're slower and risk account lockouts. Offline attacks are where you've already obtained password hashes, maybe from a database dump or that ht password file we mentioned. Cracking hash is offline is much faster because you're not limited by network speed or log in attempt swaddles.

Speaker 1

Okay, so to protect against this, hashing passwords is critical. But just hashing isn't enough anymore. You need salting.

Speaker 3

Absolutely. Hashing is just the first step. It's a one way function. Like creating a fingerprint for the password. You run password one two three through an algorithm like SAHA two five six, you get a unique looking string of characters. You can't easily go back from the hash to password one two three, But if two users have the same passwords, they'll have the same hash without salt. Attackers used to use pre computed rainbow tables massive databases of common passwords

and their corresponding hashes to crack these very quickly. That's where salting comes in. Before you hash the password, you add a unique random value, the salt, to it. Each user gets a different salt. So now even if two users have the same password password one two three, their stored hashes will be completely different because their salts are different. Spens and puts it vividly. Too much salt can make any rainbow fade. It renders those pre computed rainbow tables.

Useless attackers are forced to generate new tables for each unique salt or brute force each salted hash individually, which is computationally way way more expensive practically impossible on a large scale.

Speaker 1

So salting makes a massive difference. What should people use?

Speaker 3

Algorithms like b crypt or ar gone two are considered very solid foundations for secure password storage today. They incorporate salting and are designed to be slow, making brute forcing even harder. MD five and SAHA one for passwords absolutely not anymore.

Speaker 2

Okay, be crypt. Good tip.

Speaker 1

And here's something you mentioned earlier that seems related, but simpler default accounts and their passwords.

Speaker 2

That's still a thing.

Speaker 3

Shockingly, yes, it's amazing how many devices, routers, printers, webcams, industrial control systems still ship with incredibly simple, well known to fault credentials. Spenson uses the example of many Netgear devices shipping with admin as the username and password is the password. It's the absolute equivalent of building a Fort Knox like secure house but leaving the front door wide open with the key labeled key hanging.

Speaker 2

Next to it just admin password unbelievable, always change defaults. Okay, let's talk about web applications specifically.

Speaker 1

A crucial guide here is the OAS top ten list right definitely OAS.

Speaker 3

The Open Web Application Security Project publishes this list regularly. It aims to raise awareness about the most critical security risks facing web applications. It's essential reading for developers and testers.

Speaker 1

Let's run through a few key types from the list, maybe with examples.

Speaker 2

How about injection flaws?

Speaker 3

Right? Injection is a huge category. This is where untrusted input from a user gets sent to an interpreter like a database or the operating system shell as part of a command or query without being properly cleaned first. The classic example is seql injection. Imagine a website login form.

Instead of typing their user name and attacker types something like anna or R one one anna or R one one one one Yeah, the single quote breaks out of the expected username string or R one is one is a condition that's always true, and the often comments out the rest of the original SEQL query, which might have checked the password if the website code just blindly sticks that input into its database query the database might interpret one ones as true for every row, so instead of

just returning and as details, it can return all user names and maybe they're hashed passwords from the user table.

Speaker 2

Wow, just from typing that into the username box exactly.

Speaker 3

It shows how a single seemingly innocuous input field can become a literal doorway into your entire database if you don't do proper input validation and use parameterized queries. All the hacker needs is a web browser and some knowledge of SQL.

Speaker 1

Okay, SQL injection scary. What about broken authentication and session management?

Speaker 3

This covers a whole range of issues that let attackers compromise passwords, keys, session tokens, basically anything that lets them in person and eight legitimate users spensin highlights an example of a web app where the session cookie, the little piece of data that keeps you logged in, was set to expire way off in the future, like in.

Speaker 2

Twenty seventeen, twenty seventeen years later.

Speaker 1

Yeah, So if user just close their browser without explicitly logging out, anyone else who could access that browser later, maybe on a shared computer, could potentially just reopen it and still be logged in as that user. They could piggyback on the old session. Another related issue he found was just poorly protected passwords, like discovering a database table where user passwords were stored in clear text, no hashing,

no salting, just plain text. If a hacker gets access to that database, it's game over instantly for every single user.

Speaker 3

Clear text passwords. That's just wow, basic stuff missed. Again. It's astonishing how often these fundamental authentication problems persist. These aren't obscure attacks. They're often basic design flaws or misconfigurations known for decades. Sometimes the biggest threats are the most obvious ones, just waiting to be found.

Speaker 1

Okay, next, positive data exposure? What does that cover?

Speaker 3

This happens when applications don't properly protect sensitive data like financial info, health records, credentials, leading to its accidental exposure. Tools called URL fuzzers, like one named folder Boulder, can automatically probe web servers for hidden or forgotten files and directories. Spenson describes using one to find and dot ht password a file just sitting there on a web server. That file often contains usernames and hashed passwords. For basic web.

Speaker 2

Authentication, finding password files just lying around.

Speaker 3

Yeah, sometimes configuration files or backup files get left in web accessible locations by mistake. And related to this is clear text communication setting sensitive data without encryption. You talked about wire Shark. The network's Niver Stenson showed how easily it could intercept log ins if they weren't encrypted using HTTPS. He saw Dave's password transmitted as baseball in plain text.

Speaker 2

Just baseball flying across the network exactly now.

Speaker 3

To intercept that traffic usually requires the attacker to be on the same network and maybe use techniques like ARP poisoning, digitally tricking computers into setting traffic their way, or setting up a man in the middle MITM attack, maybe via a road Wi Fi hotspot. But if the log in isn't encrypted, once they intercept it, the password is right.

Speaker 2

There hg TTPs everywhere is key? Then all right? What a security misconfiguration sounds broad?

Speaker 3

It is broad, but very common. This covers a wide range of issues. Unpacked servers running software with known flaws, leaving default accounts enabled overleave, verbose error messages that leak information, exposing configuration files that dot ahgpasswood file discovery. We just mentioned. That's both sensitive data exposure and potentially a security misconfiguration

if it shouldn't have been web accessible. Stunts in details, taking that found dot hd passwoot file, figuring out a used apaches version of MDFI hashing, which is weak, and then using a powerful offline hashtracking tool called hashcat with big password dictionary and dot crack. The password for the root user in that file turned out to be ADC one.

Speaker 1

Two three one two three for root Oh dear yep.

Speaker 3

Again not a complex hack targeting the hashing algorithm itself, but just exploiting a terrible password choice combined with an exposed hash file. Critical oversight.

Speaker 2

Okay, one more from OAS cross site request forgery or CSRF. This one sounds complicated.

Speaker 3

It can seem tricky, but the concept is powerful. It's sometimes called a one click attack or session writing. Imagine Maria is logged into her online bank account in one browser tab, then in another tab, she visits a news website that unfortunately has been hacked. Unbeknownst to Maria, the hacked news site contains some hidden malicious HTML code, maybe an image tag who source src is actually a URL that performs an action on her bank's website, like a

transfer exactly. The malicious code tricks Maria's browser into automatically sending a request to her bank's site to transfer funds. Because Maria is already logged into her bank, her browser

automatically includes her session cookie with that request. The request might look legitimate to the bank it came from Maria's browser with her valid session cookie, but the crucial part, like the transfer to account number variable, has been sneakily set by the hacker's code on the malicious news site, so.

Speaker 1

The bank thinks Maria wanted to send money to the hacker precisely.

Speaker 3

Even though Maria didn't click anything on the bank site to initiate it, the request was forged by the other site she visited. All the hacker needs is from Maria to visit their compromised site while she's logged into the vulnerable target site the bank.

Speaker 2

That's sneaky. How do you sites defend against that?

Speaker 3

Good defenses involve things like anti CSRF tokens unique unpredictable values to the website, embeds in its forms, and checks upon submission. The attacker on the other site won't know the correct token value from Maria's session. B SSRF highlights how actions can be triggered across sites if defenses aren't robust.

Speaker 2

Okay, so those are some heavy hitters from oas.

Speaker 1

If you're listening and thinking, wow, I'd like to try this, But legally, where can people practice?

Speaker 3

Great question? There are excellent legal resources. The damn Vulnerable Web a DVWA is a PHP MI SQL web application specifically designed to be full of common vulnerabilities for practice. Google also has something called the Firing Range, which is a test bed for web vulnerabilities. And participating in legitimate bug bounty programs on platforms like hacker one or bug

crowd is another great way. Companies want you to find flaws in their systems within the rules of the program and will often pay you for it.

Speaker 1

Practice legally absolutely Okay, So the hacking phase, identify and exploit is done. Now comes what you said is arguably the most important.

Speaker 2

Part the report.

Speaker 3

Without a doubt, the final report is a culmination of everything. It's not something to be thrown together at the last minute. It really needs to be a continuous effort documenting findings as you go.

Speaker 2

What makes a good report structure.

Speaker 3

Clarity, and audience awareness are key. It needs an executive summary, short non technical, high level for the managers and decision makers. What are the biggest risks, what's the business impact? What needs to happen? Then it needs detailed technical to descriptions for the IT team exactly what vulnerabilities were found, how are they exploited? Include screenshots, logs, reproduction steps, and most importantly, clear actionable recommendations. Not just fix this, but how to

fix it? Prioritize based on risk. Spinson suggests always asking yourself, if I was the manager receiving this, what kind of report would I want? What would help me actually get things fixed?

Speaker 1

That's a great perspective and delivery. These reports contain super sensitive findings.

Speaker 3

It's extremely sensitive, so deliver securely. Don't just email it unencrypted. A common method is to put the report in an encrypted ZIP file using strong AES encryption, not weak legacy zip crypto all right, Then send an encrypted file via one channel like email, and the password via a completely separate channel like a phone call or secure message. Minimize

the risk of interception. You know, the art of reporting is really about translating that technical jargon into actionable business intelligence. A truly excellent report tells a story. Here's what we found. Here's what it means to your business in terms of risk, and here's exactly what you need to do about it. The goal isn't just to point out flaws, but to empower the organization to fix them effectively.

Speaker 2

Right, making it useful.

Speaker 1

Now there's the often overlooked cost of security. How do you even put a price tag on a potential vulnerability or a breach that hasn't happened yet.

Speaker 2

It seems abstract.

Speaker 3

It is abstract, but you can try to quantify. One method is calculating the annualized loss expectancy or AL. The formula is basically AL equal a single loss expectancy SL times the annualized rate of occurrence.

Speaker 2

RO SLA times arka break that down.

Speaker 3

SL is how much you estimate a single incident would cost you lost revenue orcovery, cost, finds, reputation damage, all of it. AR is how many times you expect that incident to happen per year, maybe based on historical data, industry trends, threat intelligence. Multiplying them gives you the ale an estimate of how much that specific risk might cost

you annually. It's definitely an educated guess, as Fenson calls it, but it helps put a financial figure on future risks, and that's incredibly helpful for justifying security investments the leadership who think in terms of dollars and cents.

Speaker 1

Okay ali, that's a useful concept. Now, when presenting these findings, say in a meeting, you stress the importance of an understandable presentation, spends and suggests the WOP time model.

Speaker 2

What's that you know?

Speaker 3

Wappytai ites is a handy acronym to structure your presentation. W is for way Why security testing important for this organization? Start with the context. A is for approach, How did you conduct the test? What was the scope? White box, black box, gray box? P is for problems? What did you actually find the key vulnerabilities? I is for impact? What do these problems mean? What's the risk to the business? Use that CIA triad. Maybe T is for things to correct?

What are the specific recommendations practical steps including maybe organizational issues not just technical fixes. And the final eye is for is everything clear? Leave plenty of time for questions. Make sure the audience understands the findings and the path forward.

Speaker 2

WTI why approach, problems, impact, things to correct? Is it clear? I like that it covers all the bases exactly, and.

Speaker 3

The real challenge in that presentation is precisely that balance we talked about earlier. You need enough technical detail for the engineers in the room to understand how to fix things, but you need to keep the executive summary concise and focus on business impact for the leadership. You might lose one or two members of the audience briefly over some deep technical detail, and that's probably okay, but you absolutely

cannot lose the whole room. The goal is to inform and guide action, not just overwhelm people with technical jargon.

Speaker 1

Right and speaking recommendations, Svenson makes a point about one essential, yet maybe sometimes boring recommendation almost always suggest patching.

Speaker 3

Oh absolutely, it sounds basic, but it's fundamental. Patching known vulnerabilities is oxen the easiest and cheapest way to keep the average hacker at base. He puts it, if systems are kept up to date free from those publicly known, often easily exploitable flaws, they become exponentially harder for the average attacker. The script kitties even many criminals to breach. It's foundational cybersecurity hygiene. Don't skip the basics.

Speaker 1

It seems so obvious, but the slammer room example showed how often it gets missed. Okay, you mentioned anecdotes. Spenson shares one about finding a password that's just memorable. Tell us about James and I love drugs.

Speaker 3

Ah. Yes, that was a classic illustration of multiple failures. The tester was looking at a payroll management system apparently called James. They found an unsecured admin debug page, which first off shouldn't have been accessible. This debug page listed all the system user names and their corresponding password hashes.

Big mistake number two. Just for fun really, and to drive home the point about weak security, the tester took the password hash belonging to the system administrator, the guy who should know better, and just googled it.

Speaker 2

Googled the hash.

Speaker 3

Yep, sometimes people post cracked hashes online in forums or password lists, and bingo, Google returned a result showing the clear text password associated with that hash. The unwilling system administrator's password was I love drugs.

Speaker 1

I love drugs for the admin of a payroll system on my word exactly.

Speaker 3

It just vividly illustrates multiple critical failures. The deep bug page shouldn't have been there. Passwords shouldn't have been hashed with a weak or unsalted algorithm that allowed for easy look up, and of course the password itself was terrible. A painful but powerful lesson in basic security controls.

Speaker 2

Unforgettable though, Okay. As you start to wrap up.

Speaker 1

For those listening who might be considering a career in security testing or maybe just want to sharpen their own digital defense skills, Spenson offers some great advice. Let's quickly cover five of his ten tips to become a better security tester.

Speaker 3

Sounds good.

Speaker 2

First, learn how to program, even.

Speaker 3

A little bit hugely helpful. Even understanding a simple Python script like one that probes web servers quote printing profoundly helps you grasp how exploit code actually works, how vulnerabilities arise in code. You don't need to be a master developer, but basic coding literacy is a massive advantage. Okay.

Speaker 2

Second, learn to spot the shape that breaks the pattern? What does that mean?

Speaker 3

This goes beyond just technical flaws found by scanners. It's about developing an intuition for things that just seem off inappropriate configurations. Organizational oversights. Svenson recounts finding an employee's personal French language website running on a company server inside the corporate network during a test. A vulnerability scanner wouldn't flag that as a technical flaw, but from an organizational security perspective,

that's a huge red flag. It requires looking beyond the automated tools and developing a sense for what simply doesn't belong right.

Speaker 2

Context matters. Third, tap into the noise.

Speaker 3

Stay updated constantly. The security landscape changes daily. You need to stay relentlessly updated with it. Security news, new vulnerabilities, attack techniques sites like crebsonsecurity dot com, Schneier on Security, Schneier dot com, reading blogs, following researchers on social media, attending conferences. It's crucial for staying.

Speaker 2

Current, continuous learning.

Speaker 1

Fourth, watch the movie War Games seriously huh yes.

Speaker 3

Svenson suggests it partly for historical context about hacking culture, but also, he says, for storytelling inspiration when writing your reports. A good security report, like a good movie, tells a compelling story, in this case, a story of risk and how to mitigate it. Make it engaging interesting.

Speaker 1

Take and Fifth, know that old vulnerabilities never get old, meaning.

Speaker 3

The basics still matter immensely. Default credentials like that admin password example still shockingly common years after they should have been eradicated. Unpashed systems, simple misconfigurations, these old vulnerabilities are often still the most effective attack fextures because they are so frequently overlooked. It truly is, as he says, akin to building a secure house while leaving the front door unlocked. Master the fundamentals.

Speaker 2

Great tips.

Speaker 1

Okay, and that really wraps up our deep dive into the fascinating and sometimes frankly scary world of security testing. We've journeyed from understanding the diverse motivations of hackers and the threats they pose, all the way through the meticulous process of idea identifying, exploiting, and most importantly, reporting vulnerabilities to help organizations build stronger digital defenses.

Speaker 3

Yeah, this deep dive really reinforces that security isn't a one time fix. It's not a product you buy. It's an ongoing, evolving process. It demands continuous learning, vigilance, and definitely critical thinking in the face of just ever increasing information and constantly evolving threats.

Speaker 1

Absolutely, so, as you go about your day, maybe take a moment to mul over this provocative thought. What old, seemingly harmless vulnerability might be lurking in a system you rely on every day. Maybe that router in your house, that app on your phone just waiting for someone to try those surprisingly common default credentials.

Speaker 2

Perhaps it's worth taking.

Speaker 1

A deep dive into your own digital habits and security posture. We certainly hope this exploration has encouraged continued learning and awareness in your own digital life.

Speaker 2

Thanks for joining us on the deep dive.

Transcript source: Provided by creator in RSS feed: download file
For the best experience, listen in Metacast app for iOS or Android