Software Testing, SAST, DAST, IAST, APIs, Supply Chain, Open Source and AI
CCSP · Lesson 12 of 19 · 1:39:20
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.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the ISC2 CCSP exam, on the current exam outline. In this lesson: functional and security testing, SAST, DAST, and IAST, API security, the software supply chain and the SBOM, and open-source and AI components. Includes three original practice questions, with Moonvale Learning, a fictional online learning platform moving to the cloud, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Code we did not write
Moonvale's AI tutor depends on hundreds of open-source libraries, and on a pre-trained model from a public hub. Last month, attackers tampered with one of those libraries, through the stolen account of its maintainer. How can Moonvale trust code it did not write, and prove that its own code works safely?
Testing in the pipeline
Functional tests check that features do what the requirements say, while non-functional tests check performance, scalability, availability, and security. In a CI/CD pipeline, tests run automatically on every change, and a failed test stops the release. Quality assurance, or QA, checks the process as a whole: that the right tests exist, run, and get reviewed. And abuse case testing turns use cases around: it asks how an attacker would misuse each feature, then tests that the app resists.
Security testing methods
Black box testing sees only the running app, like an outside attacker, while white box testing works with the source code and the design. Static testing, or SAST, scans source code without running it, early in the pipeline. Dynamic testing, or DAST, attacks the running app from outside, while interactive testing, or IAST, watches the app from the inside as tests run. And software composition analysis lists third-party components, with their known vulnerabilities and licenses.
Securing APIs
APIs are the front door of cloud applications, so every call must be authenticated and authorized, often with OAuth tokens. Validate every input, limit request rates, and return only the data the caller needs, which answers many risks of the API Security Top 10. An API gateway enforces these controls in one place, and logs every call. For AI APIs, rate limits and input checks also defend against prompt injection, and against inference attacks that probe the model.
Supply chain management
Supply chain management starts with vendor assessment: checking a supplier's security before buying, and again over time. Integrity proves that code was not altered, with hashes, while authenticity proves who published it, with digital signatures. Licensing matters too: each license must allow the way Moonvale uses and ships the component. And a software bill of materials, or SBOM, lists every component, so a new vulnerability can be traced in minutes.
Third-party software
Third-party software is managed like Moonvale's own code: inventoried, owned, patched, and reviewed. Support end dates matter, because unsupported software stops receiving security fixes. Contracts with software vendors should cover vulnerability disclosure, patch timelines, and the right to assess. And every component is tracked in the SBOM, with its version and its supplier.
Open source and AI components
Validated open-source software comes from trusted sources, with signed releases and active maintainers. Software composition analysis checks it for known vulnerabilities and license terms, at every build. Pre-trained models and third-party machine learning libraries belong to the supply chain too, because a tampered model can hide a backdoor. And features built on AI need extra tests, so that hallucinations or logic flaws do not open new vulnerabilities.
Recap
Let's recap. Functional and non-functional tests run in the CI/CD pipeline, QA checks the process, and abuse cases test misuse. Static, dynamic, and interactive testing, black box or white box, find flaws in Moonvale's own code, and composition analysis covers components. APIs need authentication, input validation, rate limits, and a gateway. The supply chain is checked for vendor security, integrity, authenticity, and licensing, with an SBOM. And third-party, open-source, and AI components are managed, validated, and tested like the rest.
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.
Moonvale wants to find flaws in the AI tutor’s own source code before it ever runs, early in the pipeline. Which method fits?
- Dynamic testing
- Interactive testing
- Software composition analysis
- Static testing
Show the answer
Static testing
Static testing scans source code without running it, so it fits early in the pipeline. “Dynamic testing” is wrong, because dynamic testing needs a running app. “Interactive testing” is wrong, since interactive testing watches the app while it runs. And “Software composition analysis” is wrong, because software composition analysis checks third-party components, not Moonvale's own code.
Moonvale downloads a library, and wants proof that it really comes from its publisher. Which check fits BEST?
- Comparing its hash
- Verifying its digital signature
- Reading its license
- Running dynamic tests on it
Show the answer
Verifying its digital signature
A digital signature proves who published the code, which is authenticity. “Comparing its hash” is wrong, because a hash alone proves integrity, but not who produced the file. “Reading its license” is wrong, since the license states the terms of use, not the origin. And “Running dynamic tests on it” is wrong, because dynamic testing looks for flaws in a running app, and says nothing about the publisher.
A library in Moonvale’s build has had no release for five years, no active maintainers, and a known critical vulnerability. What should the team do?
- Replace it with a maintained alternative
- Keep it, since it still works
- Scan it once a year
- Move it to a private repository
Show the answer
Replace it with a maintained alternative
An abandoned component with a critical flaw should be replaced, with a maintained and validated alternative. “Keep it, since it still works” is wrong, because working code can still be exploited. “Scan it once a year” is wrong, since a yearly scan finds the flaw again, but never fixes it. And “Move it to a private repository” is wrong, because moving the library to a private repository leaves the flaw in place.