Penetration test vs vulnerability assessment: when each fits a self-hosted platform
A vulnerability assessment is the recurring check for known weaknesses in the versions and settings of a self-hosted platform, while a penetration test validates which of those weaknesses an attacker can exploit and chain together. Buyers commissioning work on Keycloak, GitLab or Nextcloud should first decide which of those two questions their risk turns on. An assessment compares the running release against the supported branch and checks configuration, such as whether Keycloak's Administration REST API and Console sit on a separate hostname or context path, and whether REST APIs not meant to be public are blocked at the reverse proxy. Nextcloud's security page lists Nextcloud Server 35, 34 and 33 as supported versions as of October 2026, so an instance on an older branch fails that check before any tester starts. Use the assessment for coverage and version currency.
Choose a penetration test when exploitability and access paths decide the risk. A scanner can report that an admin console is reachable, but it cannot show whether that path leads to an administrator account. Odoo states that its framework does not rely on the user interface or hidden URLs for access control, so the tester's job is to check whether role rules hold on every endpoint, including those a low-privilege user should never see. (Illustrative: a GitLab project maintainer's token reaches an API route the web interface hides.) The Drupal Security Team's advisory policy excludes issues exploitable only by users with administrative permissions and external libraries, so a vendor advisory feed will not show whether an admin-level path chains into something worse. A penetration test with those roles provided can answer it. Put each test role, its permissions and the in-scope hostnames in the statement of work, since they drive the manual effort and therefore the quote.
Use both when a framework or a combined method applies. NIST SP 800-115 notes that organizations often combine techniques to reach an in-depth assessment at an acceptable level of risk, and it suggests regularly scheduled scanning interspersed with periodic penetration testing. Some frameworks make the manual test mandatory: PCI SSC's Penetration Testing Guidance says that simply running an automated tool does not satisfy the penetration testing requirement, so a clean automated scan does not close a PCI penetration test obligation. CIS Controls v8.1 asks for internal and external penetration tests at least annually, and Safeguard 18.4 asks that security measures be validated after each test so detections cover the techniques testers used. For a self-hosted platform, the retest should confirm that logging fires on the exploited path, such as Keycloak admin logins or GitLab token use. Confirm with your assessor which PCI DSS and CIS requirements apply to your environment before you write the scope.
How a penetration test vs vulnerability assessment differs on goal, method and risk
This table compares a vulnerability assessment with a penetration test on the question each answers, how each is run, the production risk it carries, and the evidence it leaves behind. Read it with the access level in mind, because testing anonymously or with a valid account changes what each method can see in both columns. The main takeaway: a vulnerability assessment shows where weaknesses exist, while a penetration test shows which ones an attacker could chain into a compromise.
| Dimension | Vulnerability assessment | Penetration test |
|---|---|---|
| Question it answers | Where do known weaknesses exist across the in-scope hosts and applications, and how severe are they? | Can a tester chain weaknesses to reach a defined target, and what could an attacker do from there? |
| Method | Automated checks with analyst triage of false positives, severity and affected versions | Tester-driven exploitation, which PCI SSC describes as essentially manual, so a tool run alone does not qualify |
| Production risk | Usually low, but active probes can still disrupt fragile services, so agree timing with the platform owner | High under NIST SP 800-115, since exploits run against production systems and data. Agree windows and rollback steps in writing. |
| Depth of access | Breadth across many targets, with shallow proof for each weakness | Depth along selected attack paths, with privilege escalated only as far as the rules of engagement allow |
| Effect of anonymous or authenticated access | Anonymous scans show exposed services; authenticated scans show patch levels and role-level misconfigurations | Anonymous tests mimic an outsider; authenticated tests reach user and admin roles, where many application functions sit |
| Evidence produced | Inventory of findings with severity, affected versions and a remediation list | Validated attack paths with proof of impact, plus retest results after fixes |
| Named in | DORA Article 25(1) lists vulnerability assessments and scans as tests to run | DORA Article 25(1) lists penetration testing; CIS Controls 18.2 and 18.5 ask for annual penetration tests |
What a penetration test finds that a vulnerability assessment misses, and the reverse
A vulnerability assessment matches known weaknesses across the whole estate, while a penetration test validates and chains them against your specific configuration. The cards below show where each approach sees a finding, where the other one is needed, and where neither is enough on its own.
Known weaknesses in pinned versions
Vulnerability assessment is the stronger fit here. Scanners compare the versions you pin for Keycloak, GitLab, Nextcloud, Odoo or Moodle against published vulnerability data and flag missing patches quickly across the estate. A penetration test confirms whether a matched flaw is exploitable in your configuration. Check that scans use authenticated version detection, that each pinned release is on a supported branch, and that the tester reports which findings were validated. What this approach still misses: flaws with no published identifier, and weaknesses introduced after the scan ran.
Exposed consoles and REST APIs
Both approaches surface this class, but they answer different questions. An assessment finds open ports and services on the perimeter. A penetration test tries the paths an outsider would try, including whether the administration console or REST API answers without a session. Keycloak's production guide says REST APIs not meant to be public should be blocked at the reverse proxy, so check that the block exists in the reviewed configuration. Test the block from outside your network. What this approach still misses: paths hidden behind an allowed route, and proxy rules changed after the test.
Keycloak production guideChained access from low-privilege accounts
A penetration test is the only one of the two that chains findings. A vulnerability assessment lists each weakness on its own. A tester who starts with a standard user account may combine a low-severity flaw, a readable internal endpoint and a weak role check into a path to administrative data. For self-hosted platforms such as Nextcloud, GitLab or Moodle, ask the tester to start from the lowest role your users actually hold and to record each step. Provide a test account per role and agree in writing how far chains may go in production. What this approach still misses: chains through roles nobody provisioned for the test, and paths that need more time than the engagement allows.
Access control in custom modules and add-ons
Penetration testing with role-based accounts finds this, and assessments largely do not. Odoo states that its framework does not rely on hidden URLs for access control, but that statement covers the framework, not every add-on. A scanner sees no published identifier for a faulty record rule or controller in a custom module, so it passes. Ask for a list of custom modules and third-party add-ons in scope, a check of object-level permissions for each, and a code review for modules that touch sensitive records. What this approach still misses: add-ons the tester was not given, and permission logic that fails only for a role nobody tested.
Odoo security pageAdmin-only issues outside vendor advisories
Vendor advisories may leave admin-only flaws out, so a penetration test with an administrator account is needed. The Drupal Security Team does not issue advisories for issues exploitable only by users with administrative permissions, and it also excludes external libraries. A vulnerability assessment that relies on advisory feeds will not raise these, and an unauthenticated scan will not reach them. Ask the tester to run as an administrator across plugin installation, user management and configuration import, since those are the paths a compromised admin or malicious insider would use. What this approach still misses: admin actions the tester did not script, and flaws in components outside the platform's own code.
Drupal advisory policyDisclosure timing and upgrade windows
Public disclosure follows fixes, so the advisory often arrives after the patch. Moodle discloses security issues only after they are fixed and after registered sites have had time to upgrade or patch, and announcements go to the moodle.org security news forum. An assessment that depends on public identifiers will therefore miss the window between a fix being released and the advisory appearing. A penetration test can find an unpublished flaw, but there is no guarantee it will. Subscribe to the security news forum, time your upgrade cycle against it, and ask the tester to review the changes between your pinned release and the one you run. What this approach still misses: flaws that neither the vendor nor the tester has found yet.
Moodle security processHow a penetration test on a self-hosted platform runs, phase by phase
This sequence turns an agreed scope into a validated account of what an attacker could reach on your platform and what it would take. Each phase produces an artifact the buyer can check before the next phase starts. The phases follow the Penetration Testing Execution Standard, one of several published methodologies that NIST SP 800-115 says it does not endorse over the others.
Agree scope, rules and written authorization
The buyer and tester agree the scope, naming the exact hosts, URLs and accounts in scope, plus the rules of engagement. NIST SP 800-115 includes a rules of engagement template in Appendix B that teams can adapt. Confirm in writing whether testing runs against production or a staging copy, the change window, who can stop testing, and how sensitive data seen during testing is handled. The step closes when both parties sign the scope and each listed host and account has written authorization.
Gather intelligence on platform exposure
The tester maps what is visible about the platform before touching it: public hostnames, exposed admin consoles and APIs, software versions, and the vendor's published security advisories for those versions. Passive review comes first, then light discovery against the in-scope hosts. Ask the tester to confirm which activity is passive and which sends traffic to your systems, and to log both. The step closes with an asset and exposure list that the buyer has reviewed against the scope, so no host is tested that was not authorized.
Model threats against trust boundaries
The tester and the platform owner identify what an attacker would want from the platform and the routes to it. For a self-hosted platform this usually covers the reverse proxy, the administration console, SSO and identity links, plugins or extensions, storage and backups, and the hosting account that runs the platform. The output is a ranked list of target assets and attack paths, weighted by business impact, which sets priorities for later phases. For example, Keycloak's production guide says REST APIs not meant to be public should be blocked at the reverse proxy, so the tester checks that rule is in place.
Analyze vulnerabilities and confirm candidates
The tester runs authenticated and unauthenticated checks against the in-scope targets, using scanners where they help and manual review for configuration, access control and business logic. Scanner output is a list of candidates until a tester confirms each one. Each candidate is checked against the version and configuration in front of the tester. PCI SSC's penetration testing guidance describes the work as essentially manual, so the step closes only when a tester has confirmed each candidate and recorded what was checked and what was ruled out.
Exploit confirmed weaknesses within agreed limits
This is the step that separates a penetration test from a scan. The tester uses working exploits against the confirmed weaknesses to show what an attacker could actually do, such as reaching data, escalating privileges or moving between accounts, always within the rules of engagement. NIST SP 800-115 notes that penetration testing uses working exploits against production systems and data and carries high risk, which is why the change window, stop conditions and backups must be agreed in advance. The step closes when each exploited path is recorded with the steps, the access gained and the evidence, and the tester has stopped at the agreed limit.
Assess post-exploitation impact and cleanup
With access established, the tester measures how far it reaches inside the platform: which data, integrations, admin functions and connected systems are exposed, and what an attacker could change or persist. The tester removes any accounts, files or configuration changes made during the test and records each one. The step closes with a cleanup log the platform owner has checked against the test activity record, so the owner can confirm nothing was left behind.
Report findings with evidence and fixes
The tester writes the report that the platform owner, the security team and any auditor will read. Each finding includes the affected component, the evidence, the impact, the reproduction steps, and a recommended fix, with severity explained. Ask for exploited findings and ruled-out candidates to appear in separate sections, and for the report to list the test accounts and hosts used. The step closes when the owner has accepted the report and the retest scope for the fixed items is agreed in writing.
Validate fixes and update detections
After fixes are applied, the tester retests the affected findings to confirm each one is closed, and the platform owner checks whether monitoring and alerting detected the test activity. CIS Controls v8.1 Safeguard 18.4 asks for security measures to be validated after each test so that detections cover the techniques the testers used. The step closes with a retest record for each finding and a list of detection gaps, which feeds the next test scope.
What you receive from a vulnerability assessment and from a penetration test
This table compares what each test hands your team at the end of the work on a self-hosted open-source platform. Read the vulnerability assessment column as a list to triage and the penetration test column as a narrative to verify and fix. The main takeaway is that the deliverables depend on the written scope, so confirm the report format, retest terms and remediation timelines before work starts.
| What you receive | Vulnerability assessment | Penetration test |
|---|---|---|
| Asset and version inventory | Scan-style list of detected hosts, services and versions, with some entries needing manual confirmation. | Inventory of in-scope hosts and versions the tester confirmed during access, plus noted gaps. |
| Severity ranking | Scored findings in a long list, ranked by score, so your team must decide which ones matter here. | Findings ranked by demonstrated impact on your platform, with the scoring method stated in the report. |
| Reproduction steps | Usually a finding name and reference, with little or no steps to repeat the issue. | Step-by-step reproduction with requests, commands and screenshots so your engineers can repeat each issue. |
| Validated attack paths | Not included. Findings are listed one at a time and combinations are left to the reader. | Chained steps showing how an exposed service led to data or admin access, where the tester could prove it. |
| Remediation guidance | Generic fix or patch reference per finding, with timing left to your own patch process. | Fixes tied to the validated path, with timelines set by each finding's impact and priority, as CIS Safeguard 18.3 asks. |
| Retest | Rescan after patching if arranged. Output is another scan list, not proof of exploitability. | Retest appears only if the written scope includes it. Confirm the number of rounds and which findings are covered. |
| Report form | Spreadsheet or scanner export, useful for tickets and tracking, less so for management review. | Narrative report with executive summary, technical detail and evidence, written for engineers and managers. |
| Status of the report | Scan output recording what was detected. It is not an audit report or certification. | Test evidence of what was exploited within scope. It is not an audit report or certification. Auditors decide its weight. |
Which test to commission next: penetration test vs vulnerability assessment decision path
The diagram starts with one question: is the platform's version and configuration baseline known and current? If not, run a vulnerability assessment first, since it finds unpatched components and unknown settings. If the baseline is known, check whether a compliance requirement names both test types, and run both if it does. Otherwise, a penetration test fits when internet exposure, authorization or chained access decides the risk; if none does, a vulnerability assessment is enough. Every branch ends in remediation and a retest. Confirm the baseline against each vendor's supported-version page. NIST SP 800-115 notes that organizations often combine techniques.
Decision path from baseline check to retest after remediation.
What drives the cost and effort of each test on a self-hosted platform
The cost and effort of a penetration test or vulnerability assessment on a self-hosted platform come from a few decisions made before testing starts. Each card names one decision, who pays for the work it creates, and whether that cost is paid once per engagement or recurs through a retainer or repeated scanning.
Scope size and attack surface
Scope usually drives effort more than any other factor. A scope lists the hosts, web applications, APIs and user roles inside the boundary, and each one adds enumeration, testing and reporting time. Plugins, modules and API endpoints widen the surface quickly, and a vulnerability assessment can count them faster than a penetration test can work through them by hand. The one-time cost is the mapping at the start of an engagement. Recurring cost appears when the platform grows and a retainer extends the scope. DeployOpen does not publish a price list; the quote follows from the written scope, so list every host, endpoint family and role before you ask.
Test accounts for each role
Authenticated testing needs a working account for each role the business uses, such as administrator, staff member, customer and the service account behind an integration. Each account must carry the permissions that role holds in the test environment, so the role matrix must be built before testing starts. The one-time cost is building that matrix and the accounts. Recurring cost returns when roles change or a retest needs fresh accounts. Agree in writing who creates and removes the accounts and whether any production credentials are involved. DeployOpen does not publish a price list; the quote follows from the written scope.
Production or staging environment
NIST SP 800-115 lists availability impact and sensitive data as factors when weighing a test of production against a non-production copy. The guide also points to how closely the copy matches the live system. A staging copy with different plugins, SSO settings or data sets can miss the findings that matter most. Production testing adds coordination and monitoring effort, and a copy adds the cost of building and refreshing it. Recurring cost appears each time the platform upgrades and the copy must be brought back in line. Ask the provider how it limits risk in the environment you choose. DeployOpen does not publish a price list; the quote follows from the written scope.
Depth of manual exploitation
Manual exploitation is the part of a penetration test that automated scanning does not replace. A tester chains weaknesses across roles, for example (illustrative) a low-privilege account reaching an administrative function through an exposed API, and proves impact with controlled exploitation. Depth is set in the scope: how many attack paths are in, how long the tester works each one, and whether post-exploitation is included. The one-time cost is tester time for that depth. Recurring cost appears when a retainer schedules further exploitation rounds. DeployOpen does not publish a price list; the quote follows from the written scope, so ask which attack paths are covered.
SSO and custom integrations
Identity integration and custom code add effort that a generic platform test does not cover. Testing the login path means checking the SSO flow, token handling and admin settings in the identity provider. A Keycloak deployment, for example, should keep its Administration Console and REST APIs on a separate hostname or path and block public access to internal APIs at the reverse proxy. Custom modules and connectors need code-aware review. The one-time cost is mapping each integration into scope. Recurring cost returns when an integration changes and must be retested. DeployOpen does not publish a price list; the quote follows from the written scope.
Keycloak production guideRemediation retesting
A finding has no value until its fix is verified, so retesting is a cost that many budgets miss. A retest repeats the original exploit path or check for each closed finding, and it needs the same accounts and environment as the first test. CIS Control 18 expects remediation on a timeline set by each finding's impact and priority, and asks for security measures to be validated after each test. The one-time cost includes only the retests named in the written scope. Recurring cost appears under a retainer or after each upgrade. Ask whether retesting is in the fixed scope, how many rounds it covers and who confirms closure. DeployOpen does not publish a price list; the quote follows from the written scope.
Why NIST suggests scanning between periodic penetration tests
NIST SP 800-115 does not treat a penetration test as a stand-alone annual event. It suggests regularly scheduled network and vulnerability scanning interspersed with periodic penetration testing, and notes that organizations often combine techniques to reach an in-depth assessment at an acceptable level of risk. For a self-hosted platform, this points to a two-track calendar: scans on a fixed schedule that catch new exposure between tests, and a penetration test that checks whether those exposures can be chained. CIS Controls v8.1 Safeguards 18.2 and 18.5 ask for internal and external penetration tests at least annually, Safeguard 16.13 adds application penetration testing, and Safeguard 18.4 asks that controls be validated after each test so detections cover the techniques testers used. The OWASP Web Security Testing Guide v4.2 makes the same point from the application side: no single technique is enough.
The platform's own release rhythm should set the scan interval. GitLab's maintenance policy describes patch releases twice monthly, on the Wednesday before and the Wednesday after each monthly minor release, with security fixes backported to the previous two monthly releases as well as the current stable release. High and critical security issues are always addressed with a patch release. Nextcloud lists Nextcloud Server 35, 34 and 33 as its supported versions as of October 2026, so an instance on any other branch may have no supported fix path. Ask the platform owner to record the running version of each self-hosted platform, subscribe to vendor security advisories, and compare the installed version against the supported list after every release. Confirm with each vendor which older branches still receive backports before you write a patching deadline into your policy.
A targeted penetration test is the right response to a major upgrade, a new SSO connector, a new API integration or a change to the reverse proxy, and these changes should prompt one before the annual slot arrives. Keycloak's production configuration guide expects the Administration REST API and Console to be exposed on a separate hostname or context path, and says REST APIs not meant to be public should be blocked at the reverse proxy. A scan can show that a port is open, but a tester can check whether the admin path is still reachable through a misrouted rule or a forgotten context path. Ask the testers to report each finding with the exact configuration key or proxy rule involved, then rerun the affected checks after the fix so the retest shows the change holds.
Questions buyers ask before commissioning a penetration test or vulnerability assessment
How much does a penetration test cost compared with a vulnerability assessment?
A vulnerability assessment usually costs less because it mainly runs and triages scans, while a penetration test adds hands-on exploitation by a tester. The quote depends on the written scope, and DeployOpen does not publish a price list. The main cost drivers are:
- the number of hosts, applications, cloud accounts and user roles in scope
- whether testing is authenticated, which means one test account per role
- how much manual exploitation and post-exploitation work the scope includes
- whether admin configuration review and a retest after fixes are included
Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. To compare bids fairly, ask each provider to price the same list of targets, roles, retest rounds and report format.
How long does a penetration test or vulnerability assessment take?
No duration is set in this comparison, so confirm the timeline in the written scope before you plan around it. Elapsed time depends mainly on how large the target set is, how quickly accounts and a staging copy are provided, and how many retest rounds follow the findings. A vulnerability assessment generally needs less tester time than a penetration test of the same targets, because it does not include hands-on exploitation. Ask the provider to set out the phases, the points where your team must act (account creation, change windows, sign-off on rules of engagement) and the dates for the report and retest. Dependencies on your side can add elapsed time, so track them as closely as the testing itself.
What do testers need from my team before the engagement starts?
Testers need accounts, written permission and a safe place to test. The core requirements are:
- accounts for each role the platform defines, so authenticated testing covers what each role can reach
- written rules of engagement that name targets, testing windows, prohibited actions and emergency contacts, using a template such as the one in Appendix B of NIST SP 800-115
- a staging copy or an agreed change window if live testing could affect availability or data
- admin access for configuration review, such as reverse proxy, identity provider and logging settings
Confirm these in the written scope before work starts. Also agree who approves production testing and how test credentials are issued and removed after the engagement.
Can our own team run a penetration test or vulnerability assessment in-house?
Your internal team can run many vulnerability assessments, but whether its work satisfies a regulator or auditor depends on independence and skill evidence that you must confirm first. Ask your auditor or regulator which independence and tester qualifications they accept. NIST SP 800-53 Rev. 5 control CA-8 includes an enhancement for an independent penetration testing team, and SP 800-53B Release 5.2.0 selects CA-8 only in the high baseline. Under DORA, threat-led penetration testing applies to entities that their competent authority identifies, and it runs at least every 3 years. Some buyers ask for accreditation from CREST, which accredits companies and certifies individuals; confirm whether your regulator or procurement names it. An outside team can also bring a view of your environment that an internal team may not have.
Does a passing vulnerability scan satisfy a penetration testing requirement?
No. PCI SSC's Penetration Testing Guidance v1.1 (September 2017) describes penetration testing as essentially a manual process and says that simply running an automated tool does not satisfy the penetration testing requirement. Scans still have a role: NIST SP 800-115 suggests regularly scheduled scanning, interspersed with periodic penetration testing. If PCI DSS applies to your platform, check the exact requirement and its frequency with your assessor, and keep scan results and penetration test reports as separate evidence. A clean scan report tells you that known checks passed, not that a tester could not chain weaknesses into a working attack.
Does applying security patches replace penetration testing?
No. Patching closes known issues, but it does not show whether an attacker can chain a misconfiguration, a weak role boundary or an exposed admin path into a working attack. A penetration test checks for exploitable paths after patches are applied. Patch timing still matters. For example, GitLab's maintenance policy says high and critical security issues are always addressed with a patch release, and it backports security fixes to the previous two monthly releases. Pair a patch cadence with scheduled testing, and retest after major configuration changes, new integrations or upgrades.
How DeployOpen scopes, runs and supports self-hosted platform security tests
DeployOpen scopes, runs and supports security tests for self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. The written scope sets which assessment type applies to each component, so the choice between a penetration test and a vulnerability assessment is made per system, before testing starts.
How we scope
- The written scope lists each platform, its version, hostnames, user roles and environments before testing starts.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
- Scope names which components get a penetration test, which get a vulnerability assessment and what each one should deliver.
How we build
- Testing runs inside the client's own cloud account, data center or air-gapped network, against the stack the team operates.
- Penetration tests validate exploitable weaknesses, and NIST SP 800-115 notes exploitation of production systems carries high risk.
- Vulnerability assessments map versions, configurations and exposed services against known weaknesses, without attempting exploitation.
How we hand over
- Reports list each finding with evidence, affected component, severity and the fix or hardening step that closes it.
- A retest after fixes confirms each finding is closed, and the written scope should say whether one is included.
- Remediation timelines should follow each finding's impact and priority, as CIS Controls Safeguard 18.3 asks.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers alongside a one-time test.
- Upstream advisories for each platform should feed your patch process, so tests track the version you run.
- Ask any provider which versions the test covers, how supported releases are checked and who holds the retest evidence.

