Latest / CyberCode Academy / Course 46 - CompTIA Cybersecurity Analyst | Episode 32: Secure Software Development
Transcript
- 0:00Speaker 1: So you interact with software every single day.
- 0:04Speaker 2: Oh, absolutely. Constantly. Right.
- 0:06Speaker 1: And think about the invisible trust you place in it.
- 0:08Speaker 1: Like you trust the alarm app on your phone to
- 0:11Speaker 1: wake you up for that critical meeting.
- 0:12Speaker 2: Or you trust the navigation system to get you through
- 0:14Speaker 2: a city you don't know.
- 0:15Speaker 1: Exactly. And most importantly, you trust a banking application with
- 0:19Speaker 1: your entire life savings.
- 0:21Speaker 2: But have you ever stopped to wonder how an abstract, idea-like,
- 0:25Speaker 2: literally just a thought floating around in a programmer's head...
- 0:29Speaker 2: actually transforms into a secure functioning reality.
- 0:33Speaker 1: It really is a massive leap. I mean, going from
- 0:35Speaker 1: a blank whiteboard to a complex architecture that manages billions
- 0:38Speaker 1: of dollars isn't just about typing lines of code.
- 0:41Speaker 2: Yeah, there's a lot more to it.
- 0:42Speaker 1: So much more. It involves a massive amount of friction.
- 0:45Speaker 1: And in our current era of just absolute information overload,
- 0:49Speaker 1: understanding how software is actually constructed is really the key
- 0:52Speaker 1: to understanding why some systems thrive and others, well, fail spectacularly.
- 0:57Speaker 2: And that friction is exactly what this deep dive is
- 0:59Speaker 2: all about. We are going to explore the life cycle
- 1:02Speaker 2: of software development.
- 1:03Speaker 1: The whole journey, right, from that messy whiteboard sketch all
- 1:07Speaker 1: the way to a global deployment. We're going to examine
- 1:10Speaker 1: the different rhythms that teams use to pace their work
- 1:14Speaker 1: and discover why slapping security on at the very end
- 1:17Speaker 1: is basically the most expensive mistake a company can make.
- 1:20Speaker 2: It is a painful lesson that so many companies are
- 1:22Speaker 2: still learning, honestly.
- 1:23Speaker 1: Oh, I bet.
- 1:24Speaker 2: But... There is a roadmap to navigate this, a methodology
- 1:29Speaker 2: designed to catch those catastrophic failures before they happen.
- 1:32Speaker 1: Okay, let's unpack this. Because to really understand software, we
- 1:37Speaker 1: first have to understand the fundamental roadmap everyone follows.
- 1:40Speaker 2: Right, formally or informally.
- 1:42Speaker 1: Yeah, it's called the Software Development Life Cycle, or the SDLC.
- 1:46Speaker 1: And looking at the concepts, it sounds exactly like building
- 1:49Speaker 1: a house.
- 1:50Speaker 2: Oh, that's a good way to look at it.
- 1:51Speaker 1: Yeah, like there are eight phases. Phase one is planning,
- 1:54Speaker 1: which is basically the feasibility check. Like deciding to build
- 1:58Speaker 1: a custom house versus just buying one that's already on
- 2:00Speaker 1: the market.
- 2:00Speaker 2: Exactly. Is it cheaper to build custom accounting software or
- 2:04Speaker 2: just buy QuickBooks off the shelf? You have to know
- 2:06Speaker 2: if it's mathematically worth starting. Right.
- 2:09Speaker 1: And then phase two is requirements, which would be the
- 2:11Speaker 1: family's wish list. Like it must track expenses or it
- 2:15Speaker 1: must be secure.
- 2:16Speaker 2: Which is where things get tricky.
- 2:18Speaker 1: Why is that?
- 2:19Speaker 2: Well, because a business leader's definition of secure means nothing
- 2:22Speaker 2: to a computer. During phase three, the design phase, you
- 2:26Speaker 2: have to translate that wish list into an architect's blueprint.
- 2:30Speaker 1: So no coding yet.
- 2:30Speaker 2: No coding yet. This is where you whiteboard the data flows.
- 2:34Speaker 2: And this is exactly where security professionals have to intervene.
- 2:37Speaker 2: If you don't explicitly require, say, AES-256 encryption, the programmers
- 2:42Speaker 2: just won't build it.
- 2:44Speaker 1: Wait, let me pause you there. Yeah. We hear terms
- 2:46Speaker 1: like AES-256 thrown around a lot.
- 2:48Speaker 2: Uh-huh.
- 2:49Speaker 1: What does that actually mean for the blueprint?
- 2:50Speaker 2: Well, AES stands for Advanced Encryption Standard, and 256 is
- 2:54Speaker 2: the key size, so 256 bits.
- 2:56Speaker 1: Okay.
- 2:56Speaker 2: It basically means you're scrambling data using math so complex
- 3:00Speaker 2: that even if all the supercomputers on Earth work together,
- 3:03Speaker 2: the sun would literally burn out before they could guess
- 3:06Speaker 2: the key.
- 3:06Speaker 1: Wow. Okay, that is secure.
- 3:08Speaker 2: Right, but you can't just sprinkle that on later. You
- 3:11Speaker 2: have to design the database architecture to handle that heavy
- 3:14Speaker 2: mathematical lifting from day one.
- 3:16Speaker 1: Got it. So that's the design phase. Then phase four
- 3:19Speaker 1: is coding, which is pouring the concrete. Programmers actually writing
- 3:23Speaker 1: the code.
- 3:24Speaker 2: And testing individual units as they go.
- 3:27Speaker 1: Which bleeds into phase five, testing. Formal user acceptance, right?
- 3:31Speaker 2: Yeah, handing a beta version to real users to see
- 3:34Speaker 2: if it crashes when they click a button too fast.
- 3:36Speaker 1: And phase six is training and transition. So teaching the
- 3:39Speaker 1: staff and going live. But here's where I need to
- 3:42Speaker 1: push back.
- 3:43Speaker 2: Okay, what is it?
- 3:43Speaker 1: Phase seven is operations and maintenance. And I'm reading that
- 3:47Speaker 1: this accounts for up to 70% of a software's entire
- 3:51Speaker 1: life cycle.
- 3:52Speaker 2: Yeah, that's accurate.
- 3:53Speaker 1: Wait, 70% is just operations and maintenance. Why is the
- 3:56Speaker 1: vast majority of software's life spent just fixing and running it?
- 4:01Speaker 2: What's fascinating here is that maintenance is where the software
- 4:04Speaker 2: actually collides with the real world.
- 4:06Speaker 1: What do you mean?
- 4:06Speaker 2: Well, the operating system it runs on updates. new cyber
- 4:09Speaker 2: threats emerge every single day. So maintenance isn't just fixing typos.
- 4:13Speaker 2: It's actively keeping the software alive.
- 4:15Speaker 1: Oh, I see. It's the friction between the code and reality.
- 4:18Speaker 2: Precisely. And this is exactly why building security during that
- 4:23Speaker 2: early requirements phase is so vital. If you wait until
- 4:26Speaker 2: phase seven to realize you have a vulnerability, the cost
- 4:29Speaker 2: is astronomical.
- 4:30Speaker 1: Because it's live. Exactly.
- 4:33Speaker 2: Fixing it means taking live systems offline, reverse engineering code,
- 4:37Speaker 2: and redeploying it globally. It's a nightmare.
- 4:40Speaker 1: Makes sense. And then finally, phase eight is end of life.
- 4:44Speaker 1: Retiring the software.
- 4:45Speaker 2: Yep. The inevitable end.
- 4:46Speaker 1: But the timeline on this is wild. Like the example
- 4:49Speaker 1: of Windows XP came out in 2001 and Microsoft supported
- 4:53Speaker 1: it for an unprecedented 13 years all the way to 2014.
- 4:56Speaker 2: Purely because users absolutely loved it. Right.
- 4:59Speaker 1: They stubbornly refused to migrate to Windows Vista. People just
- 5:02Speaker 1: dug their heels in.
- 5:03Speaker 2: It's true. Microsoft essentially had to wait until people tolerated
- 5:06Speaker 2: Windows 7 before they could pull the plug. It's a
- 5:08Speaker 2: very human element of tech.
- 5:10Speaker 1: Definitely. So, okay, we've got the eight phases of what
- 5:13Speaker 1: needs to happen. But now we have to figure out
- 5:16Speaker 1: how teams actually pace this journey.
- 5:18Speaker 2: The development models. Right.
- 5:20Speaker 1: And the framework they choose completely changes the product. Let's
- 5:23Speaker 1: start with the formal one, waterfall.
- 5:26Speaker 2: Ah, the classic.
- 5:27Speaker 1: Yeah, it sounds like putting a train on tracks. It's
- 5:29Speaker 1: highly predictable. One phase completely finishes before the next one starts.
- 5:34Speaker 1: But you can't steer.
- 5:35Speaker 2: That is a perfect analogy. You do all your planning
- 5:37Speaker 2: up front. But if you realize halfway through that the
- 5:40Speaker 2: market changed, you're stuck on those tracks.
- 5:43Speaker 1: And then there's the model, which takes that linear track
- 5:46Speaker 1: and pairs rigorous testing with every single phase.
- 5:49Speaker 2: Right. You design the architecture. You test the architecture. It's
- 5:52Speaker 2: very costly and slow. But if you're building software for
- 5:55Speaker 2: a pacemaker, you want the V model.
- 5:57Speaker 1: Absolute perfection over speed.
- 5:58Speaker 2: Exactly.
- 5:59Speaker 1: But for more flexibility, there's the spiral model, right? Looping
- 6:03Speaker 1: around to build slightly better prototypes each time.
- 6:06Speaker 2: Biting off small chunks and adjusting based on feedback, yeah.
- 6:09Speaker 1: But here's where it gets really interesting. Because taking that
- 6:12Speaker 1: iterative concept further gives us the rock star of the
- 6:15Speaker 1: tech world, Agile.
- 6:17Speaker 2: Agile completely shifted the industry. Right.
- 6:20Speaker 1: If Waterfall is putting a train on tracks, Agile is
- 6:23Speaker 1: like driving a Jeep off-road. You adapt to the terrain
- 6:26Speaker 1: as you go.
- 6:26Speaker 2: Yes. It values people over process and responding to change
- 6:32Speaker 2: over following solid plans.
- 6:34Speaker 1: Like if you're building accounting software and realize halfway through
- 6:37Speaker 1: that nobody prints paper checks anymore.
- 6:38Speaker 2: You don't keep building the check printer. Right.
- 6:41Speaker 1: Agile lets you instantly pivot to coding credit card transfers
- 6:44Speaker 1: the next morning.
- 6:45Speaker 2: Exactly. And they do this using sprints, these 15 to
- 6:48Speaker 2: 30 day bursts of focus coding.
- 6:50Speaker 1: And backlogs, right? Those giant walls of post-it notes.
- 6:54Speaker 2: Yep. Backlogs are the wish list. And developers use planning
- 6:57Speaker 2: poker to estimate the time it takes to code a feature. Okay.
- 7:01Speaker 1: I have to push back here, though.
- 7:02Speaker 2: Go for it.
- 7:03Speaker 1: You have developers playing planning poker, making up time estimates,
- 7:06Speaker 1: using sticky note user stories. And avoiding solid documentation. Doesn't
- 7:12Speaker 1: Agile's lack of solid plans just inevitably lead to total chaos?
- 7:16Speaker 2: It sounds like it. But if we connect this to
- 7:18Speaker 2: the bigger picture, Agile isn't chaos at all. It's measured flexibility.
- 7:23Speaker 1: Measure how?
- 7:23Speaker 2: Through velocity tracking. If a team estimates they can do
- 7:26Speaker 2: 40 points of work in a sprint but only finish 30,
- 7:30Speaker 2: their velocity is tracked. The manager knows instantly.
- 7:33Speaker 1: Oh, so there is strict oversight.
- 7:35Speaker 2: Very strict. It's called time boxing. Every task has a
- 7:39Speaker 2: strict time limit. It keeps teams hyper-accountable without locking them
- 7:43Speaker 2: into obsolete multi-year contracts.
- 7:45Speaker 1: Okay, that makes a lot of sense. Now, if Agile
- 7:47Speaker 1: is the Jeep, the last two models are just the
- 7:49Speaker 1: Wild West.
- 7:50Speaker 2: Oh, RAD and Big Bang?
- 7:52Speaker 1: Yes. Rapid application development, prototype heavy, basically no planning. And
- 7:57Speaker 1: the Big Bang model, where you literally just sit down
- 7:59Speaker 1: and start typing code.
- 8:00Speaker 2: Which is great for one or two people in a garage.
- 8:02Speaker 1: But disastrous for a company trying to build, like, Microsoft Windows.
- 8:06Speaker 2: Exactly. It just won't scale.
- 8:07Speaker 1: So whether you're driving a train or an off-road Jeep,
- 8:10Speaker 1: a crash is a crash. If the underlying code isn't
- 8:13Speaker 1: secure from day one, the entire project is a liability.
- 8:16Speaker 2: Security is the foundation. It really is.
- 8:19Speaker 1: Let's break down how programmers actually bulletproof the code. Step
- 8:23Speaker 1: one is user validation. Basically, never trust user input.
- 8:27Speaker 2: Never, because if you expect a user to type $ 100
- 8:31Speaker 2: into a box and someone types in malicious database commands instead.
- 8:34Speaker 1: That's a SQL injection.
- 8:35Speaker 2: Exactly. If the code doesn't filter that out, the database
- 8:38Speaker 2: might just read it, execute it, and hand over all
- 8:40Speaker 2: your passwords. The program shouldn't break just because of bad input.
- 8:44Speaker 1: Okay, so validate the input. Next is error messages. They
- 8:48Speaker 1: need to be helpful, but not too helpful.
- 8:52Speaker 2: Very important balance there.
- 8:53Speaker 1: Wait, so... What does this all mean? You're telling me
- 8:56Speaker 1: that being too helpful to a user with an error
- 8:58Speaker 1: message is actually a security risk. How does that work?
- 9:02Speaker 2: This raises an important question about how hackers operate. They
- 9:05Speaker 2: use overly descriptive error messages to reverse engineer your infrastructure.
- 9:09Speaker 1: Like how?
- 9:10Speaker 2: Well, if your error says the SQL database at IP
- 9:13Speaker 2: address 192.168.1.5 failed, you just handed the attacker a map
- 9:18Speaker 2: of your internal network. Oh, wow.
- 9:20Speaker 1: They're just poking the system to see what it spits back.
- 9:22Speaker 2: Exactly. You just want it to say... Login failed. Don't
- 9:26Speaker 2: give them anything to work with.
- 9:27Speaker 1: That is sneaky, but brilliant. Okay, next up is availability
- 9:32Speaker 1: and scalability, preventing denial of service attacks, or DOS.
- 9:36Speaker 2: Right, where a flood of fake traffic tries to crash
- 9:39Speaker 2: your app.
- 9:39Speaker 1: And the solution is scaling up with cloud resources, right,
- 9:42Speaker 1: like AWS or Azure.
- 9:44Speaker 2: Yes, dynamic cloud scaling. If a botnet hits you with
- 9:47Speaker 2: a million requests, the cloud instantly spins up dozens of
- 9:51Speaker 2: virtual servers to absorb the blow and keeps the app online,
- 9:55Speaker 2: and then scales back down when it's over.
- 9:57Speaker 1: That's amazing. Then we have encryption and ID. We touched
- 10:00Speaker 1: on AES encryption, but we also have to hash passwords.
- 10:03Speaker 2: Right. Hashing is a one-way street. You scramble a password,
- 10:07Speaker 2: and even you, the database owner, can't unscramble it.
- 10:09Speaker 1: Which is why there's no retrieve password button, only reset password.
- 10:12Speaker 2: Exactly.
- 10:13Speaker 1: And for identity, we use multi-factor authentication, MFA.
- 10:17Speaker 2: But not just text messages anymore.
- 10:19Speaker 1: Right, because of SIM swapping, where a hacker convinces your
- 10:21Speaker 1: phone company to port your number to their phone.
- 10:23Speaker 2: Yeah, if they intercept your text, SMS MFA is useless.
- 10:27Speaker 2: You really want to use authenticator apps or hardware tokens now.
- 10:30Speaker 1: Good tip. And to keep up with all these tricks,
- 10:33Speaker 1: developers use OWASP.
- 10:35Speaker 2: Right, the Open Web Application Security Project. It is the
- 10:38Speaker 2: ultimate free resource.
- 10:39Speaker 1: Yeah, they have a top 10 vulnerabilities list that updates
- 10:42Speaker 1: every 6 to 12 months. It's like a cheat sheet
- 10:44Speaker 1: for defense.
- 10:45Speaker 2: Absolutely essential reading.
- 10:46Speaker 1: And finally, we have code management. Using version control tools
- 10:51Speaker 1: like Git.
- 10:52Speaker 2: Right, to track who checks code in and out.
- 10:55Speaker 1: Yeah, like the insider thread example. If a critical bug
- 10:57Speaker 1: suddenly appears, version control lets you see that Jason touched
- 11:02Speaker 1: the code last.
- 11:03Speaker 2: Yeah, Jason at 2 a.m.
- 11:05Speaker 1: Right, so you could figure out if it was an
- 11:06Speaker 1: innocent mistake or if Jason is deliberately sabotaging the company.
- 11:10Speaker 2: It creates that undeniable trail of accountability. Critical thinking and
- 11:14Speaker 2: anticipating malicious intent from the outside and the inside are
- 11:18Speaker 2: the cornerstones of modern tech.
- 11:20Speaker 1: Absolutely. Well, we've covered a ton of ground today, from
- 11:22Speaker 1: the eight SDLC phases to choosing between waterfall and agile
- 11:27Speaker 1: to bulletproofing code with validation and version control so it
- 11:30Speaker 1: doesn't just crumble.
- 11:31Speaker 2: It's a complex journey from that whiteboard to the real world.
- 11:35Speaker 1: It really is. So, listener, a quick review question for you.
- 11:39Speaker 1: If you and a friend decided to sit down this weekend...
- 11:42Speaker 1: and build a simple mobile app together with absolutely zero
- 11:46Speaker 1: planning or requirements, which development model are you using?
- 11:50Speaker 2: I think we know this one.
- 11:51Speaker 1: Yep, the Big Bang model. And before we go, I
- 11:53Speaker 1: want to leave you with one final thought to mull over.
- 11:56Speaker 2: Okay, let's hear it.
- 11:57Speaker 1: Earlier, we talked about how Windows XP survived for 13
- 12:00Speaker 1: years purely because end users stubbornly refused to learn Windows Vista. True.
- 12:05Speaker 1: It makes you wonder. As you look at the apps
- 12:07Speaker 1: on your phone right now, how much of our technology's
- 12:10Speaker 1: design is driven by true cutting-edge innovation? And how much
- 12:14Speaker 1: is just dictated by our own stubborn human habits?
- 12:17Speaker 2: That is a great question.
- 12:19Speaker 1: Something to think about. Thanks for joining us, and we'll
- 12:21Speaker 1: catch you on the next Deep Dive.