SAST, DAST, SCA in the Pipeline
Study-time guide: 15 min reading and analysis, 65 min core exercises, 40 min review and deliverable. Additional external-platform execution is estimated separately.
Three analysis methods provide different evidence
SAST examines source code and potential data paths; DAST observes a running application’s behavior; SCA evaluates dependencies against available vulnerability information. None provides complete proof of security. Findings become useful when they identify a code revision, a reproducible case, and an accountable decision.
Our original API accepts a project name and retrieves database rows. SAST flags possible SQL concatenation, DAST observes an unusual response, and SCA flags a library used only by a build tool. The team proposes blocking releases based on the total number of warnings. That threshold mixes a potentially confirmed defect with findings that may need different evidence.
The starting evidence package
This is a normalized educational artifact. Its identifiers are not real CVEs. A scanner’s confidence value is a signal for review rather than a final verdict.
commit: lab-commit-17
findings:
- id: CODE-17
source: SAST
location: api/projects.py:41
sink: SQL string concatenation
confidence: medium
- id: HTTP-09
source: DAST
request: GET https://api.example.test/projects?name=sample
observation: response changed under test input
control_request: missing
- id: DEP-03
source: SCA
component: fictional-build-helper@1.2
usage: build-only
exploitability: unknown
Review CODE-17 by tracing the input and checking query parameterization. A string operation alone does not establish exploitation. HTTP-09 lacks a control request, so changing data or caching may explain the response. Do not dismiss DEP-03 merely because it is absent from production. A build tool can access source code, artifacts, and sometimes credentials.
A meaningful gate considers confirmation, reachable behavior, impact, and remediation deadlines. Record the reason, assessed revision, and reconsideration conditions when classifying a false positive. An exception needs an owner and expiry date. A permanent filename-based exception eventually turns the control into a decorative report.
Exercise: triage the three findings
For each result, specify the next investigation step, required evidence, and temporary decision. Add ordinary-input control requests to the DAST case and compare repeated results against a fixed synthetic dataset. For SAST, trace the HTTP parameter to the database operation. For SCA, establish whether the component executes on the runner and which permissions that process holds.
Acceptance criteria: lowering a severity label does not close a confirmed defect; an unstable response is not called a vulnerability without controls; a build-only dependency is evaluated in its actual execution environment. The automated release gate should enforce an explicit condition rather than an arbitrary report line count.
Work deliverable
Submit a triage table using decisions such as fix, investigate, and justified exception, together with gate criteria and retest conditions. The self-check does not run scanners on your behalf. Consult OWASP Vulnerable Dependency Management for dependency handling and GitHub secure use for runner and workflow protection.
Lesson: trace data and make triage explicit
Read CODE-17 as a path rather than a red warning. Identify the request-field source, transformations, and the final sink. If a validated value is later replaced by another untrusted value, the first check does not protect the operation. If database input is parameterized, a string concatenation used only in a log message may not be a SQL-injection sink. Review the actual trace, code version, and context.
For DAST, preserve ordinary and modified requests and repeat both against fixed data. Page length can change because of time, a random banner, or user permissions. Controls distinguish those effects from the hypothesis. Use only an agreed scope or your own training environment. Synthetic requests suffice for artifact analysis. An instrument report does not prove that your team reproduced it.
For SCA, establish exact version and provenance. A manifest expresses intent, a lockfile records resolved versions under the package manager’s rules, and the artifact shows included components. These may differ. Build-only packages can affect outputs, so review their access to source and runner credentials. A matching library name alone does not establish an applicable vulnerability; version and conditions matter.
Practice extension: a one-finding decision card
Choose a finding and fill seven fields: version, input source, sensitive operation, reproduction, control, impact, and decision. A fix needs an owner and retest criterion. Further investigation needs a precise missing fact. An exception needs justification, scope, expiry, and review conditions. A whole-directory exclusion should not silently hide a future unrelated flaw.
If you run a scanner, use its official distribution, record the version, and start with your own training repository. GitHub Actions and self-managed GitLab differ in permissions, job origin, and runner trust. No real secrets are necessary. Mentioning GitHub does not require a Russian customer to store code abroad; platform and location are separate decisions.
Submit the expanded triage card and one justified false-positive record. A positive control shows allowed work passing the gate; a negative control shows a defined confirmed condition being rejected. Without tool execution, label the work artifact analysis and test design. This honest boundary preserves review value without claiming a completed scan.
Where to put a check
Change the conditions and observe this training model. It runs in your browser and does not change your computer.
A team is preparing a release. Enable the independent checks and see what remains unknown.
Choose conditions above to see an explanation of the result.
Independent exercise · Russian
Перед декабрьским обновлением системы бронирования переговорных инженер получил три отчёта. В карточке релиза указан коммит R28 и образ B28. Команда хочет понять, какие из приложенных наблюдений относятся к этому кандидату.
Evidence
SAST для R28 отметил запись полного приглашения в журнал. В ревью видна передача поля inviteToken в обычный лог. Готовый отчёт DAST подтверждает заголовки ответа на стенде с образом B27. SCA на B28 обнаружил учебную библиотеку calendar-reader 2.1, для которой в бюллетене курса указан диапазон 2.0–2.2.
Assignment
В карточке релиза дайте каждому отчёту отдельный статус, укажите источник и недостающее доказательство. Для журнала опишите проверку будущего исправления без вывода значений приглашений.
Compare your reasoning
Запись токена подтверждается кодом R28. Потребуйте удалить значение из события и проверить на синтетической метке, что событие осталось, а метка исчезла. Отчёт B27 нельзя зачесть для B28. По SCA совпадают версия и образ, однако ещё нужно сверить условия бюллетеня с используемой функцией. Карточка должна сохранять все три решения и версию каждого источника.
Personal practice environment
Check an excerpt, find matching lines and compute the SHA-256 of the original text. Temporary data expires after 30 minutes or when you close the environment.
Sign in