Sooner or later, a client questionnaire, a partner contract or your own board asks the same question: "Has the platform been penetration tested?" If the answer is no, the next questions follow quickly. What does a test involve? How much of the system should be covered? Will it break anything? This guide explains penetration testing for websites and web platforms in plain terms: when it is worth doing, the main types, how to scope and prepare, what you get at the end and how to act on it.
What penetration testing is
A penetration test is an authorized, simulated attack on your system by security professionals. Testers try to find weaknesses and, within agreed limits, demonstrate how they could be exploited. The goal is not to "pass" but to discover problems before someone malicious does.
It differs from related activities:
| Activity | What it does | Who or what does it | Depth |
|---|---|---|---|
| Vulnerability scan | Checks for known issues automatically | Software | Broad, shallow |
| Code review | Examines source code for flaws | Developers or security reviewers | Deep, code-focused |
| Penetration test | Attempts to exploit weaknesses in the running system | Skilled testers with tools | Deep, attack-focused |
| Bug bounty | Invites external researchers to report issues for rewards | Public or private researchers | Ongoing, variable |
Penetration tests are especially good at finding issues that automated tools miss: broken access control between users, flawed business logic, chained vulnerabilities and authentication weaknesses.
When you need penetration testing for websites
You should seriously consider one when:
- Launching a new platform that handles personal, health or financial data.
- Adding high-risk features such as payments, file uploads, user-to-user messaging or public APIs.
- A client or partner requires it, often in enterprise or healthcare procurement.
- After a security incident, to verify that fixes are effective and nothing else was missed.
- After major changes, such as a platform migration, new authentication system or new hosting environment.
- On a regular cycle, commonly annually, for platforms holding significant sensitive data.
For a simple brochure website with no logins and only a contact form, a thorough configuration review and regular maintenance often deliver more value than a full test. Our website security checklist is a good starting point there.
Key takeaway: A penetration test is most valuable when you have something worth attacking and a team ready to fix what it finds. Testing before the basics are in place mostly produces a report of known gaps.
Types of penetration tests
By knowledge level
- Black box: testers start with little information, like an outside attacker. Realistic but less thorough in a fixed time.
- Grey box: testers get user accounts for each role and some documentation. This is the most common and usually best value for web platforms.
- White box: testers have full access to source code and architecture. Most thorough, often combined with code review.
By target
- Web application: the website or platform itself, including authentication, access control, input handling and business logic.
- API: endpoints used by mobile apps, integrations or single-page front ends.
- Infrastructure: servers, open ports, hosting configuration and network services.
- Cloud configuration: storage permissions, identity settings and exposed services.
Most business platforms benefit from a grey-box web application and API test, plus a lighter look at the hosting infrastructure.
How to scope a test
A clear scope prevents surprises and wasted budget.
- List the targets: domains, subdomains, APIs and environments in scope.
- Define user roles to test: visitor, customer, staff, administrator, vendor.
- Highlight critical flows: checkout, payouts, patient records, data exports, file uploads.
- State exclusions: third-party services you do not control, denial-of-service testing, social engineering.
- Choose the environment: staging that mirrors production is safer; production testing may be needed for infrastructure.
- Set the timing: testing windows, blackout periods and contact people during testing.
- Agree rules of engagement: what testers may and may not do if they gain access.
Get written authorization from the system owner, and if your platform is hosted by a third party, check whether they require notice before testing.
Choosing a provider
Look for:
- Testers with recognized practical certifications and demonstrable web application experience.
- A sample report you can review before hiring.
- A method aligned with recognized references such as the OWASP Web Security Testing Guide. Our OWASP Top 10 plain-language guide covers the risk categories they will probe.
- Clear communication about critical findings during the test, not only at the end.
- A retest of fixed issues included or clearly priced.
- Independence from the team that built the platform, where possible.
Preparing your team and platform
- Take fresh backups and confirm restores work.
- Create test accounts for each role with realistic sample data, not real customer data.
- Inform your hosting provider and internal stakeholders.
- Make sure monitoring is on; the test is also a check of whether you would notice an attack.
- Assign a technical contact who can answer questions and pause testing if needed.
Reading the report
A good report usually contains:
- Executive summary: overall risk picture in plain language.
- Scope and method: what was tested, how and when.
- Findings: each with a severity rating, description, evidence, affected components and remediation advice.
- Positive observations: controls that worked well.
Severity ratings are often based on a standard scoring approach and adjusted for business context. A "medium" issue in a public form might be "high" if it exposes patient data.
Turning findings into fixes
- Triage each finding with your developers and confirm it is understood.
- Prioritize by severity and business impact; fix critical and high issues first.
- Fix the cause, not the symptom. If one endpoint lacks permission checks, review all similar endpoints.
- Add tests so the issue cannot quietly return.
- Retest to confirm fixes are effective.
- Record what was found and fixed; this documentation is useful for client questionnaires and privacy obligations.
- Feed lessons back into design and code review practices.
Keeping security continuous
A penetration test is a snapshot. Between tests, rely on:
- Automated dependency and vulnerability scanning in your release process.
- Code review with security in mind.
- Timely patching of the platform and server.
- Monitoring and alerting on suspicious activity.
Budgeting and timing your first test
Cost depends mainly on scope rather than on the size of your company. The drivers are the number of applications and APIs, the number of user roles, the complexity of business logic such as payments or approvals, whether infrastructure is included, and whether a retest is part of the engagement. A small, well-defined scope tested properly is better value than a broad scope rushed in a few days.
Timing matters as much as budget:
- Test before launch, not the day before. Leave enough time to fix high-severity findings and retest.
- Freeze major changes during the test window so testers are not chasing a moving target.
- Book developer time for remediation in advance; findings waiting weeks for a fix leave you knowingly exposed.
- Align with procurement cycles. If clients ask for a report annually, schedule the test so a fresh report is available when questionnaires arrive.
If your budget is tight, prioritize the flows that would hurt most if abused, such as account access, payments and data exports, and cover the rest with automated scanning and code review until the next cycle.
Next steps
If a client is asking for a penetration test, start by documenting your platform's scope and roles; it will make quotes faster and more accurate. If the basics are not yet in place, address those first so the test focuses on deeper issues.
DigiVort helps businesses prepare for testing, coordinate with independent testers and fix findings properly through our security and compliance service. For ongoing protection between tests, see our maintenance and support plans, or get in touch to talk through your situation.


