Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
CompTIA · SecurityX CAS-005

Security in the systems life cycle

SecurityX CAS-005 · Lesson 7 of 24 · 48:55

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the CompTIA SecurityX (CAS-005) exam. In this lesson: functional and non-functional security requirements, software assurance (SAST, DAST, IAST, RASP, SCA, SBOM, and formal methods), secure CI/CD pipelines, and supply chain risk, hardware assurance, and end-of-life systems. Includes three original practice questions, with Thornbury Biotech, a fictional biotech company whose security architect designs and runs its security, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Security from day one

Thornbury Biotech is building its own app to track lab samples, buying new lab instruments from a supplier, and still running an old instrument controller. Last time, security was added after go-live, and every fix cost ten times more. This time, security starts with the requirements, and follows the system until the day it is retired.

Security requirements

Security starts with requirements, written before the design, like any other requirement. Functional requirements say what the system must do, like requiring multifactor authentication for every lab user, or logging each change to a sample. Non-functional requirements say how well it must do it: availability, performance, capacity, and how long logs are kept, for example. Every control also has a cost in usability: a technician wearing gloves cannot type a long password every few minutes, so shared lab terminals use badge taps and short sessions instead. The goal is a balance, because when security makes work too hard, users find workarounds, and those create new risks.

Software assurance

Software assurance checks the code at every stage. Static application security testing, or SAST, analyzes source code without running it, so it finds flaws early, in the developer's own tools, but it can raise false positives. Dynamic testing, or DAST, attacks the running application from the outside, like a real attacker, without seeing the code. Interactive testing, or IAST, places an agent inside the running application during tests, so it sees both the request and the line of code that handles it. Runtime application self-protection, or RASP, also runs inside the application, but in production, where it detects and blocks attacks as they happen.

Components and proof

Most of the code in a modern app comes from open-source libraries, so software composition analysis, or SCA, lists those components, and flags known vulnerabilities and license problems. A software bill of materials, or SBOM, is the inventory of every component and its version, in standard formats like SPDX or CycloneDX, so when a new flaw is announced, you know in minutes whether you are affected. Vulnerability analysis then decides which findings matter, based on whether the vulnerable code is reachable and exposed. For the most critical code, formal methods use mathematical proof to show that the code always meets its specification. They are costly, so they are kept for small, critical components, like a cryptographic library or a safety controller.

Secure CI/CD pipelines

In the pipeline, coding standards and linting catch risky patterns automatically, before a person even reviews the code. Branch protection keeps the main branch safe: no direct pushes, required reviews, and checks that must pass before a merge. Unit tests check each small piece of code, integration tests check that the pieces work together, and regression tests check that a change did not break what already worked. Automated test and retest runs the same tests on every change, and runs them again after each fix, to confirm it. A canary release then sends a new version to a small group of users first, and rolls it back if errors rise, and every problem found feeds continuous improvement of the pipeline.

Supply chain and end of life

Supply chain risk management covers software and hardware: assess suppliers, require an SBOM, verify the signatures and origin of what you install, and watch for compromised updates. For hardware, the risks are counterfeit or tampered parts, so buy through authorized channels, and inspect components when they arrive. Hardware assurance relies on certification and validation by independent labs: for example, cryptographic modules are validated against FIPS 140-3, and modules validated against the older FIPS 140-2 have moved to a historical list, for existing systems only. End of life means the vendor stops releasing patches, so track end-of-life dates in the asset inventory, and plan the replacement before that date. When a system must stay anyway, like Thornbury's old instrument controller, isolate it on its own segment, limit who can reach it, and monitor it closely, as compensating controls.

Recap

Let's recap. Security starts with functional and non-functional requirements, balanced against usability. SAST reads the code, DAST attacks the running app, IAST watches from inside during tests, and RASP blocks attacks in production. SCA and an SBOM track third-party components, and formal methods prove the most critical code. Pipelines add linting, branch protection, unit, integration, and regression tests, and canary releases. And supply chain risk covers software and hardware, with validated modules, and end-of-life systems isolated until they are replaced.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Thornbury’s developers want to find flaws in the sample app’s own code as they write it, long before it is ever deployed. Which approach fits?

    • DAST against a test site
    • SAST in the developers’ tools
    • RASP in production
    • A canary release
    Show the answer

    SAST in the developers’ tools

    Static testing analyzes the source code without running it, right in the developers' tools. “DAST against a test site” would need the application running, on a test site. “RASP in production” only protects the application once it runs in production. And “A canary release” is a way to release a version, not a way to find flaws in code.

  2. A fix for a login bug passed its own unit test, but it broke the export of sample reports, which had worked for months. Which testing would have caught it?

    • Linting of the login code
    • Formal methods on the login module
    • A RASP agent in production
    • Regression testing on every change
    Show the answer

    Regression testing on every change

    Regression testing checks that a change did not break features that already worked. “Linting of the login code” only checks code style and risky patterns, not how features behave. “Formal methods on the login module” is about proving one critical component, and is far too costly for every change. And “A RASP agent in production” only blocks attacks in production, not functional bugs.

  3. The old instrument controller runs an operating system that no longer receives security patches, and it cannot be replaced until next year. What should the team do now?

    • Isolate it on its own segment, and monitor it
    • Run a vulnerability scan on it every week
    • Turn on branch protection for its repository
    • Install the vendor’s monthly patches
    Show the answer

    Isolate it on its own segment, and monitor it

    Isolating the system and monitoring it closely are compensating controls, until it can be replaced. “Run a vulnerability scan on it every week” would keep finding the same flaws, without reducing the risk. “Turn on branch protection for its repository” only protects source code, and this controller is not being developed. And “Install the vendor’s monthly patches” is impossible, because an end-of-life system receives no more patches.