Static application security testing (SAST)

What is static application security testing?

Static application security testing (SAST) examines an application's source code, bytecode or binaries for security flaws without running the program. It traces how untrusted input moves through the code and flags places where that input can reach something dangerous, such as a database query, a shell command or a file path, so developers can fix the flaw before release.

Updated

How SAST works

Most SAST tools first parse the code into a model they can search, such as a syntax tree and a data flow graph. Rules or queries then look for a path from a source, like an HTTP parameter, to a sink, like a SQL call, with nothing in between that makes the input safe. Simpler tools match patterns one file at a time; deeper ones follow data across functions and files.

What it finds well

Where it falls short

SAST sees the code, not the deployment. It cannot know that a route sits behind a login, that a proxy strips a header, or that a feature flag is off in production. That is why SAST reports carry false positives, and why many teams pair it with dynamic testing (DAST) against a running build. Business logic flaws, such as a missing check that a user owns the record they are editing, are hard for any rule set to judge.

Where pokayoke fits

pokayoke is a SAST service for GitHub built around the false positive problem. It runs exploits against your code and against a hardened copy to prove what it can, and marks each finding proven or not: proven only when the exploit works on your code and the hardened copy holds. A finding confirmed only by reading the code is labelled that way.