QA Interview Hub · Knowledge base · Quizzes · Українська

Penetration Testing › Tools and automation

SAST, DAST, IAST, SCA, SBOM and secrets in CI

SAST analyses code without running it, DAST tests a running application from outside, IAST uses an agent inside, and SCA finds vulnerable dependencies. An SBOM lists components, and secret scanning looks for tokens in code and history. These classes catch different things, so they are combined. A tool's output is a hypothesis to reproduce, and a leaked secret is revoked first.

A team's pipeline is green, yet the release contains a vulnerable library and a token in the repository. Different classes of tools catch different things, so they are combined.

  • SAST — analysis of source code without running it: early and cheap, but without runtime context and with many false positives;
  • DAST — testing a running application from outside, like an attacker; needs no code, sees configuration and behaviour, but comes later and does not point to a line of code;
  • IAST — an agent inside the running application during tests (for example functional ones) sees data flows, so it is more precise;
  • SCA — finding known vulnerabilities in dependencies by their versions;
  • SBOM — a list of the application's components (CycloneDX, SPDX formats): when a new CVE appears, it is quick to see where its library is used;
  • Secret scanning — searching for tokens and keys in code and history.

Working with results. A tool's output is a hypothesis, not a finding. For "High: SQL injection" the request is first reproduced and the impact observed, then a defect is filed. A scanner report is not a pentest report: it has no confirmed exploitation, business impact or logic flaws, which a scanner does not see.

Example: a secret in a commit. An active token is found in a commit five months old. The first step is to revoke and replace the token (it may already have been copied), and only then clean the history if needed. A new commit deleting the file fixes nothing: the token stays in history.

Mistakes: switching everything on and drowning in noise; not tuning thresholds; cleaning history without revoking the secret.

Short answer: "SAST looks at code, DAST at the running application, IAST from inside, SCA at dependencies; results are checked manually, and a leaked secret is revoked first".

More articles in this chapter