Black Friday sale: an extra 40% off every course until Monday, November 30.New Year sale: an extra 30% off every course until Friday, January 1.Memorial Day sale: an extra 25% off every course until Monday, May 31.SysAdmin Day sale: an extra 25% off every course until Sunday, August 1.Back to School sale: an extra 25% off every course until Sunday, August 22.Labor Day sale: an extra 25% off every course until Monday, September 6.Black Friday sale: an extra 40% off every course until Monday, November 29.New Year sale: an extra 30% off every course until Saturday, January 1.Choose your certification →

Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

9.2.1. SAST, DAST, IAST, and SCA

💡 First Principle: A testing tool can only find what it can see. SAST reads the code without running it, so it sees every path but must guess which ones an attacker can reach. DAST sees only how the running application behaves from outside, so its findings are usually real but cover only what it can reach. IAST watches from inside while tests run. SCA reads the list of ingredients, not the recipe. Ask of any tool "does it see source, running behaviour, or the component inventory?" and you can predict its blind spots and its noise. Section 7.2.2 compares these methods from the assessor's side; this section covers choosing, placing and tuning them as development controls.

SAST (static application security testing): parses source, bytecode or binaries into a model of control and data flow, then applies rules. Its core technique is taint analysis: tracing untrusted input (a source, such as a request parameter) to a dangerous operation (a sink, such as a query or shell call) with no recognized sanitizer between them. It finds injection patterns, unsafe functions, hardcoded secrets and cryptographic API misuse, and names the file and line. It misses whatever depends on runtime (server configuration, session behaviour, infrastructure) and struggles with flaws of omission such as a missing authorization check. It is noisy because it reasons about paths that may be unreachable or sanitized in ways it does not recognize, and tightening rules to cut noise raises false negatives. It runs earliest: in the IDE and on every pull request.

DAST (dynamic application security testing): crawls the running application, sends crafted requests and judges the responses, with no knowledge of the code. It finds injection and cross-site scripting visible in responses, session and authentication weaknesses, misconfiguration and exposed debug endpoints, and it works without source code. It misses what it cannot reach: pages behind login unless given test credentials, API endpoints unless given the API definition, and logic flaws that need a business-aware sequence of steps. Its false positives are fewer than SAST's, but it reports a URL and parameter, not a line of code. Its payloads create and change data, so it runs in test or staging, not casually against production.

IAST (interactive application security testing): an agent inside the application runtime watches each request travel through the code to a sink during functional or automated testing. Seeing the actual data flow, it confirms exploitability and reports the line, giving the lowest false-positive rate of the four. Its coverage equals the test suite's coverage, it works only on runtimes its agent can instrument, and it adds overhead, so it normally runs in QA.

SCA (software composition analysis): identifies third-party and open-source components from manifests, lockfiles, container layers or binary fingerprints, builds the dependency tree including transitive dependencies, and matches versions against vulnerability and licence data; it can also produce an SBOM. It does not find unknown flaws, malicious packages with no advisory yet, flaws in first-party code, or code copied in without package metadata. Its typical false positive is "vulnerable but not reachable": the flawed function exists but the application never calls it, which reachability analysis helps prioritize. It runs on every build and keeps running after release, because new advisories appear for components already in production (supply chain controls: 9.4.2).

ToolNeedsEarliest stageFalse positivesMain blind spot
SASTSource or binariesIDE, pull requestHighRuntime behaviour, flaws of omission
DASTRunning applicationTest or stagingLow to moderateWhat it cannot reach; no code location
IASTInstrumented app plus testsQA test runsLowestCode the tests never execute
SCAManifests, lockfiles, binariesPull request or buildUnreachable vulnerable codeFirst-party code, unknown flaws

Combining them: run SAST and SCA on every pull request, since they are fast and need nothing deployed; run authenticated DAST in staging; add IAST to QA runs where the stack supports it; and leave business logic to misuse-case tests and manual review (9.2.2). Triage all tools in one backlog, and raise the priority of a static finding that a runtime tool confirms. Let constraints decide: with no source code, as for a COTS product, DAST and binary SCA remain; with no environment yet, SAST and SCA can start on day one. Which findings break a build is gate policy (9.5.1).

RASP (runtime application self-protection): the same in-process instrumentation as IAST, used in production in blocking mode. When input changes the structure of a query or command at the sink, RASP blocks the call or ends the session. Seeing execution context makes it more precise for injection than a WAF reading HTTP traffic from outside, at the cost of overhead. It is a compensating control that buys time while the code is fixed, not a substitute for the fix.

⚠️ Exam Trap: "IAST has the fewest false positives, so it can replace SAST and DAST." Low noise is not coverage: IAST examines only code the tests execute, and SAST can run months before anything is deployed. Likewise a clean SCA report means no known vulnerabilities in recognized components, not a secure application. When asked which tool fits, pick the one whose vantage point can see the flaw in the scenario, at the stage the scenario describes.

Reflection Question: Your budget covers two tools this year. The portfolio has an in-house Java service whose staging environment will not exist for four months, and a purchased web application delivered without source code. Which two tool families do you choose, where does each run, and which risks stay uncovered until you can add a third?

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•26 professional certifications earned