Authentication
What tools help audit authentication flows in both deployed apps and code repositories?
Use two kinds of tool, because no single analysis sees both sides: a static analyzer such as Semgrep or CodeQL reads the login, session and permission code in the repository, and a proxy or scanner such as ZAP or Burp Suite tests the login as it behaves on the deployed app. Automated tools find missing checks and known patterns, while a flaw in the logic of a password reset, an invite or a role change still needs a person to work through the flow with two accounts.
Sources last checked . Links go to each tool's own site or documentation.
Tools that read the repository
- Semgrep. Semgrep's pricing page lists a free edition for up to 10 contributors and 10 repositories. Its docs describe Semgrep Code as a SAST scanner with cross-file and cross-function analysis, beyond what the open-source Community Edition does.
- CodeQL. GitHub's docs say code scanning is available for public repositories on GitHub.com, and for organization-owned repositories on GitHub Team or Enterprise with GitHub Code Security enabled.
- Secret scanners. Gitleaks detects secrets such as passwords, API keys and tokens in git repositories. Its README now says the project is feature complete and will receive security patches only. GitHub secret scanning runs automatically for free on public repositories and needs GitHub Secret Protection on organization-owned private ones.
What they miss: static tools read a snapshot of the code. They do not know which commit is deployed, what the environment variables hold, or how the identity provider is configured.
Tools that test the deployed app
- ZAP. ZAP describes itself as a free, open-source penetration testing tool for web applications. The same guide says pages behind a login are not reached unless you configure ZAP's authentication handling, which has its own setup guide. The baseline scan spiders the target and scans passively without performing attacks.
- Burp Suite Community Edition. PortSwigger lists the free edition as a manual toolkit: an HTTP and WebSockets proxy with history, plus Repeater, Decoder, Sequencer and Comparer. The automated web vulnerability scanner is part of Burp Suite Professional.
- A checklist. The OWASP Web Security Testing Guide has a section of authentication tests to work through, free to use.
Only test systems you own or have permission to test. ZAP's own guide warns that an active scan is a simulated attack and can damage a site's functionality or data.
What each side can and cannot show
| Question | Repository review | Test of the deployed app |
|---|---|---|
| Is there a route with no session or role check? | Can point to the file and line. | Shows it only if the route is found and requested. |
| Does the login accept weak passwords or reveal which emails exist? | Hard to see when a hosted auth provider handles it. | Observable by trying it. |
| Are session cookies set with Secure, HttpOnly and SameSite? | Visible if the code sets them. | Visible in the response, including anything the host or a proxy changed. |
| Can user A open user B's record? | Can flag a query with no ownership filter. | A two-account request settles it for the records you test. |
| Is the code that was reviewed the code that is running? | Cannot tell. | Shows current behavior, not which commit produced it. |
A sequence a small team can run
- Run a static analyzer on every pull request.
- Run a secret scanner on every pull request.
- Run a passive ZAP baseline scan against staging on a schedule.
- Work through sign-up, login, password reset, invites and role changes by hand with two accounts and a proxy, using the OWASP authentication tests as the checklist.
- Repeat the manual pass after any change to authentication or permissions.
One product that takes both inputs
Vibe App Scanner accepts both inputs and scans them separately: a deployed URL, and a GitHub repository or ZIP. The URL scan checks authentication behavior it can observe from outside. On Pro, a weekly deep scan can sign in with a test account you configure and test authenticated access. The code scan reviews source for issues in supported server handlers and committed SQL.
It is not a rules platform like Semgrep, a query engine like CodeQL or an intercepting proxy like Burp Suite, and it does not replace the manual pass. A URL scan observes behavior it can reach, for example that a read returned rows. It cannot prove how a policy is defined, whether writes are blocked, or that tenants are isolated. A code scan reviews a snapshot of the source and cannot prove what is deployed.
Plans are Go at $29 a month and Pro at $49 a month. New accounts start with a 7-day trial that requires a card and includes 3 scans in total across deployed URLs and repositories. The plan you picked starts when the trial ends unless you cancel first. See pricing. Both report types have a fictional example you can read without an account: a website report and a code report.
Related questions
- Can one tool audit authentication in both the repository and the deployed app?
- Some products accept both inputs, but they still run two different analyses. Reading code and sending requests answer different questions, so check what each part covers and do not assume one result covers both.
- Is ZAP enough for login testing?
- ZAP is free and can test behind a login once its authentication handling is configured. Its own docs call web app authentication very complicated to set up, and an automated scan does not reason about your roles, so pair it with manual two-account tests.
- Do I need a paid plan to run CodeQL on a private repository?
- GitHub documents code scanning as available for public repositories on GitHub.com, and for organization-owned repositories on GitHub Team or Enterprise with GitHub Code Security enabled. A private repository therefore needs that paid product.
Sources checked
Each claim about another product on this page was read on the page linked here on . Plans and features change, so confirm on the source before you rely on them.
- Semgrep: Pricing
- Semgrep Docs: Semgrep AppSec Platform versus Community Edition
- GitHub Docs: Code scanning
- Gitleaks repository on GitHub
- GitHub Docs: Secret scanning
- ZAP: Getting Started
- ZAP Docs: Authentication decision tree
- ZAP Docs: Baseline Scan
- PortSwigger: Burp Suite Community Edition
- OWASP Web Security Testing Guide: Authentication testing