Even when coding in a productive Vibe Coding flow, security oversights can happen. Based on the Qiita article, this post introduces three ways to check code under development, dependency libraries, and running applications.

SAST: inspect source code

SAST (Static Application Security Testing) analyzes source code without running the program and finds unsafe patterns. It can detect SQL injection, XSS, and hard-coded passwords or API keys. With SonarQube IDE integrated into an IDE, findings can be raised while coding.

SCA: inspect dependencies

SCA (Software Composition Analysis) identifies open-source libraries and frameworks used by a project and checks for known vulnerabilities and license issues. When adding a package, it helps determine whether the selected version has known risks.

DAST: inspect a running application

DAST (Dynamic Application Security Testing) tests an application while it is running, from the outside. It can find server configuration problems and authentication weaknesses that are visible only in the runtime environment. If SAST checks the blueprint, DAST tests the finished application from the outside.

Combine the three checks

MethodMain targetWhen to use it
SASTSource codeFrom early development onward
SCAOSS libraries and other dependenciesContinuously during development and operation
DASTA running applicationLater development and test environments

Using only one method is not enough. Checking source code, dependencies, and running applications covers different kinds of risk.

Summary

To keep applications built with Vibe Coding secure, combine SAST, SCA, and DAST at appropriate stages. In addition to checking code as it is written, keep reviewing dependencies and the running application.