How to test a new application’s security before going live

Youri van der Zwart ·

Launching a new application without testing its security first is one of the most avoidable risks a development team can take. Vulnerabilities that go undetected before go-live become significantly more expensive to fix once users, data, and reputation are on the line. Whether you are shipping a customer-facing web app or an internal business tool, a structured pre-launch security review gives you the confidence that what you are releasing will not become a liability. This guide walks you through exactly how to do that, from initial preparation through to validating your fixes, including where penetration testing fits into the process.

What you need before testing application security

Before running any tests, gather everything that defines how your application is supposed to work. Security testing without this context leads to missed coverage and false confidence. You need to understand the application’s attack surface before you can assess it properly.

  • A complete list of all application endpoints, APIs, and user-facing interfaces
  • Documentation of user roles and access levels (admin, standard user, guest, etc.)
  • The technology stack: languages, frameworks, libraries, and third-party dependencies
  • A staging or test environment that mirrors production as closely as possible
  • Access credentials for each user role so you can test across permission boundaries
  • A threat model or at least a list of the most sensitive data the application handles

With this foundation in place, your testing will be targeted rather than scattered. If your team has not yet produced a threat model, spend an hour mapping out what an attacker would most want to access and work outward from there. That exercise alone will shape every step that follows.

Run static and dynamic analysis on your codebase

Start with automated analysis tools before any manual work begins. Static application security testing (SAST) scans your source code without executing it, identifying insecure coding patterns, hardcoded credentials, and dangerous function calls. Dynamic application security testing (DAST) tests the running application by sending requests and observing responses, catching issues that only appear at runtime.

  1. Integrate a SAST tool into your codebase. Popular options include Semgrep, SonarQube, and Checkmarx. Run a full scan and export the findings report.
  2. Deploy the application in your staging environment and point a DAST tool at it. OWASP ZAP is a widely used open-source option. Configure it to crawl the application and run an active scan.
  3. Review both reports and triage findings by severity. Not every flagged item is exploitable, so prioritize critical and high-severity results first.

After this step, you should have a prioritized list of code-level and runtime vulnerabilities. Expect some noise, particularly from SAST tools, but do not dismiss findings without investigation. The combination of both methods gives you broader coverage than either approach alone.

Test authentication, authorization, and session handling

Authentication and authorization flaws are among the most damaging vulnerabilities an application can carry. A user who can access another user’s data, or an unauthenticated request that reaches a protected endpoint, represents a fundamental breakdown in security. These issues often do not surface in automated scans, which makes manual testing here essential.

  1. Attempt to access protected pages and API endpoints without a valid session. Confirm that every protected resource returns a proper rejection rather than partial data.
  2. Log in as a lower-privileged user and manually try to access resources or perform actions that belong to a higher-privileged role. Test by modifying IDs in URLs and request bodies.
  3. Inspect session tokens for predictability. Tokens should be long, random, and invalidated server-side upon logout. Test that logging out actually destroys the session rather than just clearing the cookie client-side.
  4. Check password policies, account lockout behavior, and whether the application exposes information through error messages (for example, distinguishing between “user not found” and “incorrect password”).

You should be able to confirm after this step that each role can only access what it is supposed to, that sessions expire correctly, and that authentication errors do not leak useful information to an attacker. Document any deviations clearly, as these findings often require architectural fixes rather than quick patches.

Scan for common web vulnerabilities and misconfigurations

Beyond your codebase, the way your application is configured and deployed introduces its own risks. The OWASP Top 10 remains the most practical reference for the vulnerabilities most likely to affect web applications, and working through it systematically will catch a large proportion of real-world issues.

  1. Test for injection vulnerabilities, particularly SQL injection and command injection, by submitting crafted input in form fields, URL parameters, and API request bodies. Automated scanners will catch many of these, but manual testing covers edge cases.
  2. Check HTTP security headers using a tool like securityheaders.com. Confirm that headers such as Content-Security-Policy, X-Frame-Options, and Strict-Transport-Security are correctly configured.
  3. Review server and application configuration for exposed debug endpoints, directory listings, default credentials, and unnecessary services running in the background.
  4. Verify that all data in transit is encrypted over HTTPS and that certificates are valid and properly configured. Check that the application does not fall back to HTTP under any circumstances.

After completing this step, you should have addressed the most commonly exploited configuration weaknesses. Many of these are straightforward to fix once identified, and resolving them significantly raises the cost of attacking your application.

Conduct a penetration test or third-party security review

Automated tools and internal review catch a great deal, but they cannot replicate the creativity and contextual reasoning of an experienced attacker. A penetration test brings a structured adversarial perspective to your application, chaining together smaller findings into realistic attack paths that automated scanners miss entirely. In 2026, with application complexity and attacker sophistication both increasing, this step has moved from optional to essential for most teams.

Engage a qualified security professional or team to conduct a scoped penetration test against your staging environment. Provide them with your threat model, user role credentials, and any areas of particular concern identified in earlier steps. A good penetration tester will not just run the same tools you have already used but will reason about your specific application logic, business context, and the ways different vulnerabilities interact. We offer structured penetration testing engagements designed to integrate cleanly into a pre-launch timeline, giving you a clear report of findings with actionable remediation guidance.

The output of a penetration test should be a written report that categorizes findings by severity, explains the potential business impact of each, and provides specific remediation steps. Use this report as your primary remediation backlog going into the final stage.

Remediate findings and validate fixes before launch

Finding vulnerabilities is only half the work. Remediation without validation is one of the most common places pre-launch security reviews break down. A fix that does not fully resolve the underlying issue, or that introduces a new problem, gives you false confidence at exactly the wrong moment.

  1. Prioritize remediation by severity. Address critical and high findings before moving to medium and low. Do not delay launch indefinitely over low-severity informational findings, but document them for post-launch attention.
  2. For each fix, have the developer who implemented it write a brief explanation of what was changed and why. This creates an audit trail and forces clarity about whether the root cause was addressed rather than just the symptom.
  3. Retest every finding after remediation. Run the relevant automated scans again and manually verify that the specific vulnerability no longer exists. Do not assume a fix worked without confirming it.
  4. If a penetration test was conducted, request a retest or validation review from the same team to confirm that reported issues have been properly resolved.

Once all critical and high findings are verified as resolved and your remaining items are documented and risk-accepted, you are in a position to launch with genuine confidence rather than hope. Security testing is not a one-time event, so plan to carry your lower-severity findings into your post-launch backlog and schedule regular reviews as the application evolves. If you want support building a repeatable security testing process around your development cycle, get in touch with us to discuss how we can help.

Frequently Asked Questions

Hoe weet ik of mijn staging-omgeving goed genoeg is om betrouwbare beveiligingstests uit te voeren?

V: Hoe weet ik of mijn staging-omgeving goed genoeg is om betrouwbare beveiligingstests uit te voeren?nA: Je staging-omgeving is geschikt als deze dezelfde configuratie, hetzelfde technologiestack en dezelfde gebruikersrollen heeft als je productieomgeving. Zorg dat ook externe integraties en beveiligingsinstellingen overeenkomen, zodat testresultaten direct toepasbaar zijn op de live situatie.

Waarom volstaan geautomatiseerde scanners niet en is een penetratietest ook nodig?

V: Waarom volstaan geautomatiseerde scanners niet en is een penetratietest ook nodig?nA: Geautomatiseerde tools detecteren bekende patronen, maar missen logische fouten in applicatiestromen en complexe aanvalsketens die een ervaren tester wel ontdekt. Een penetratietest simuleert realistische aanvallen op basis van jouw specifieke applicatiecontext, waardoor kwetsbaarheden zichtbaar worden die scanners systematisch over het hoofd zien.

Wat moet ik doen als ik vlak voor de livegang een kritieke kwetsbaarheid ontdek?

V: Wat moet ik doen als ik vlak voor de livegang een kritieke kwetsbaarheid ontdek?nA: Stel de livegang uit totdat de kritieke kwetsbaarheid is verholpen en gevalideerd, want de kosten van een beveiligingsincident overtreffen altijd de vertraging. Documenteer de bevinding, implementeer de fix, en laat deze vervolgens hertesten voordat je definitief groen licht geeft voor lancering.

Hoe vaak moet ik beveiligingstests herhalen na de initiële livegang?

V: Hoe vaak moet ik beveiligingstests herhalen na de initiële livegang?nA: Plan minimaal een volledige beveiligingsreview bij elke grote release en voer tussentijds geautomatiseerde scans uit bij significante codewijzigingen. Voor applicaties die gevoelige gegevens verwerken, is een jaarlijkse penetratietest een goede standaard om nieuwe kwetsbaarheden en veranderende aanvalstechnieken bij te houden.