Vulnerability Assessment and Penetration Testing Procedure

How the Organisation scans for, rates, fixes and verifies technical weaknesses, and how penetration tests are authorised and run.

SXL-B19Procedure2,140 words 10 min readOwner: Head of Information Security
Sign in to download the PDFFree. You return straight to this document after you sign in.
Template draft. Replace everything in [square brackets] with your own decision, delete what does not describe what you really do, and approve it through your own document control. It is not legal advice and does not make an organisation compliant or certified.

1. Purpose

This procedure sets out how technical vulnerabilities in the Organisation's systems are found, rated, fixed and proven fixed, and how penetration tests are authorised and conducted without harm to live services. Its aim is that weaknesses are closed in proportion to the risk they carry, within known times, with evidence.

2. Scope

  • In scope: servers, endpoints, network and security devices, cloud services and configurations, containers and images, internet-facing and internal applications and APIs, databases, wireless networks, and customer-facing platforms owned or operated by the Organisation.
  • In scope people: the information security team, system and application owners, operations and engineering teams, and any external tester engaged by the Organisation.
  • Out of scope: systems owned by customers or suppliers unless the contract grants written permission to test; social engineering and physical intrusion tests, which require separate written approval from the Head of Information Security and Human Resources; and denial-of-service testing against production, which is prohibited unless explicitly planned.
  • Applies to development, test, staging and production environments, with the testing intensity set in the schedule below.

3. Terms and Definitions

TermMeaning
VulnerabilityA weakness in design, code, configuration or process that could be used to harm a system or its data.
Vulnerability assessmentAutomated and manual discovery and rating of weaknesses, without trying to exploit them in depth.
Penetration testAn authorised, goal-driven attempt to exploit weaknesses to show real impact, carried out under agreed rules.
CVSSCommon Vulnerability Scoring System: a 0 to 10 scale describing the technical severity of a vulnerability.
Credentialed scanA scan run with login rights so that it can see installed software and settings.
False positiveA reported finding that does not exist on inspection.
Rules of engagementThe written limits and permissions under which a penetration test is carried out.
Accepted riskA vulnerability the Organisation consciously chooses not to fix within the standard time, approved and time-limited.

4. Roles and Responsibilities

RoleResponsibilities
Document owner (Head of Information Security)Owns the procedure, approves rules of engagement and accepted risks for High findings, and reports status to management.
Vulnerability management leadRuns the scanning programme, keeps the vulnerability register, triages findings and tracks remediation.
System ownerEnsures assets are in scope and scannable, assigns fixes, approves outages for patching and answers for overdue findings.
Operations and engineering teamsApply patches and configuration changes, and provide evidence of closure.
Penetration tester (internal or external)Plans and performs tests within the rules of engagement, protects findings, and writes a report.
Change authorityApproves fixes under the Change Management Procedure.
Senior managementAccepts residual risk above the agreed appetite.
ActivityResponsibleAccountableConsultedInformed
Maintain the scan scope and asset coverageVulnerability management leadHead of Information SecuritySystem ownerOperations team
Run scans and triage findingsVulnerability management leadHead of Information SecuritySystem ownerOperations team
Apply fixes within timelinesOperations and engineering teamsSystem ownerVulnerability management leadHead of Information Security
Commission and approve penetration testsHead of Information SecuritySenior managementSystem owner; Legal and complianceOperations team
Verify fixes by rescanVulnerability management leadHead of Information SecurityOperations teamSystem owner
Approve accepted risksSystem ownerHead of Information SecurityLegal and complianceSenior management

5. Vulnerability Assessment and Penetration Testing

5.1 Preparation for vulnerability management

Scanning only works against assets that are known and reachable. Preparation makes sure the right things are scanned, safely and with permission.

  1. Define scopeTake the asset list from the Asset Management Procedure and classify each asset as Critical, High, Medium or Low by the data it holds and the service it supports. Review scope at least [monthly] and after every major change.
  2. AuthoriseObtain written permission from the system owner for scan times and methods; cloud and hosted providers' testing rules are checked before scanning their platforms.
  3. Select toolsUse approved vulnerability scanners, container and image scanners, code and dependency scanners, and configuration compliance tools; keep their vulnerability feeds updated at least [daily].
  4. Set credentialsCreate dedicated scan accounts with least privilege and read-only rights, stored in the secrets vault and monitored for use outside scan windows.
  5. SchedulePublish the scan calendar to operations and the service desk, avoiding peak business periods; agree a safe scanning profile for fragile systems.
  6. Cover discoveryRun network discovery at least [monthly] to find unmanaged devices and report them to the asset owner within [2 working days].
Note. Scan traffic must come from known source addresses that are recorded, so that monitoring teams can tell a scan from an attack.

5.2 Vulnerability scanning

The frequency and depth of scanning depend on the asset class. The table gives defaults that the adopter may tighten.

Asset classScan typeFrequencyNotes
Internet-facing systemsExternal and credentialed internal[Weekly], and within [24 hours] of significant changeIncludes web applications and APIs
Internal servers and databasesCredentialed[Weekly] for Critical and High, [monthly] for othersInclude configuration checks
Endpoints and laptopsAgent-based[Continuous or at least weekly]Report missing patches and unsupported software
Network and security devicesCredentialed plus configuration review[Monthly]Review firmware versions
Cloud accounts and containersConfiguration and image scanAt every build and [daily] for running workloadsCheck storage exposure and over-privileged roles
Applications in developmentStatic, dependency and dynamic scanAt every build and before releasePer the System Development and Maintenance Procedure
Wireless networksRogue access point sweep[Quarterly]Both on-site and remote
  • Scan results are collected automatically into the vulnerability register; assets missing from two consecutive scans are investigated within [5 working days].
  • Failed or incomplete scans are rerun within [2 working days]; a repeatedly failing scan is raised as a finding in itself.
  • Scan results are classified Confidential and shared only on a need-to-know basis.

5.3 Vulnerability evaluation

The vulnerability management lead validates each finding, removes false positives, and sets a priority rating. The technical score is adjusted for the Organisation's context, never lowered without a recorded reason.

SeverityTypical CVSS scoreContext that can raise severityContext that can lower severity
Critical9.0 to 10.0Known exploitation in the wild; internet-facing; holds restricted dataNot reachable from any network after verified isolation
High7.0 to 8.9Public exploit exists; on a Critical asset; privileged access gainedStrong compensating control proven by test
Medium4.0 to 6.9Chains with another weakness; sensitive data exposedRequires local access and low privilege
Low0.1 to 3.9Easily abused by insidersHard to exploit and low impact
Informational0NoneNone
  • Threat intelligence under the Threat Intelligence Policy is checked at least [daily] for vulnerabilities being actively exploited; those are treated as one level more severe and fast-tracked.
  • Each validated finding is recorded with asset, owner, severity, proof, recommended fix and due date, and assigned within [1 working day].

5.4 Vulnerability mitigation

Mitigation is the fix, or a measure that removes the risk. The time to act runs from the date the finding is validated, or from the vendor patch release if later.

SeverityInternet-facing or Critical assetOther assetsEscalation if overdue
Critical[48 hours] or isolate[7 days]Head of Information Security immediately; steering group at next meeting
High[7 days][30 days]System owner after due date; Head of Information Security after [7 days]
Medium[30 days][90 days]System owner after due date
Low[90 days]Next maintenance cycleReported in quarterly review
  1. FixApply the vendor patch or configuration change through the Patch Management Procedure and the Change Management Procedure; emergency changes are allowed for Critical findings.
  2. MitigateIf no patch exists or downtime is not possible, apply a compensating control such as a firewall rule, web application firewall rule, feature disablement or enhanced monitoring, and record when it will be replaced by a permanent fix.
  3. VerifyThe vulnerability management lead rescans the asset within [3 working days] of the stated fix and closes the finding only when the scan or retest shows it is gone.
  4. ReportUpdate the register, notify the system owner and include the result in the monthly report.
Note. If a vulnerability is believed to have been exploited, stop the vulnerability process and follow the Incident Management Procedure.

5.5 Penetration testing

Penetration testing complements scanning by showing whether weaknesses can be chained into real harm. Every test needs written approval before it starts.

Test typeWhenPerformed by
External network and web application testAt least [annually] and before launching any new internet-facing Critical or High systemIndependent external tester
Internal network and directory service testAt least [annually] for Critical environmentsIndependent external tester or qualified internal team
Application and API testBefore major release and after major redesignQualified tester independent of the development team
Cloud configuration review[Annually]Qualified internal or external reviewer
Social engineering or red team[Every 2 years], only with written approvalExternal specialist

5.5.1 Rules of engagement

  • Written rules of engagement are signed by the Head of Information Security and the system owner before testing, and contain: objectives, systems and addresses in scope, systems explicitly out of scope, permitted techniques, test windows, named testers and their source addresses, emergency stop contacts and reporting format.
  • Testers must be bound by an NDA and have relevant qualifications or demonstrable experience; their staff are screened as required by the Supplier Relationship Management Procedure.
  • Denial-of-service, destructive actions, data exfiltration of real restricted data, and testing of third-party systems are not allowed unless explicitly written into the rules.
  • Testers stop at once and call the emergency contact if they find evidence of an existing compromise, cause an outage, or reach data beyond scope.
  • Test data, credentials and findings are protected at the Confidential level; evidence is held on encrypted media and destroyed or returned within [30 days] of final report.
  • The security operations team is told of the test window unless the test is designed to assess detection, in which case only the Head of Information Security and a named white-cell contact know.
  • A final report is delivered within [10 working days] of test end, with executive summary, method, ranked findings, proof, and fix recommendations; findings enter the vulnerability register with the same timelines as above.
  • A retest of Critical and High findings is carried out within [60 days] of the report.

5.6 Identification, analysis and treatment of exception and accepted risk

A vulnerability that cannot be fixed within the required time follows this route. An exception is a temporary extension; an accepted risk is a decision to live with the residual weakness.

  1. IdentifyThe system owner requests an exception before the due date, stating why the fix is not possible and the date it will be done.
  2. AnalyseThe vulnerability management lead assesses exploit likelihood and business impact, lists compensating controls and checks for chaining with other findings.
  3. DecideApproval levels: Low by system owner; Medium by Head of Information Security; High by Head of Information Security and the business unit head; Critical by senior management.
  4. TreatControls are implemented, the exception is recorded in the risk register with an expiry of no more than [90 days] for Critical and High, and [180 days] for others.
  5. ReviewThe risk is reviewed at expiry and at least [quarterly]; it is re-approved, fixed or the system is withdrawn.
Exception levelMaximum durationApprover
Critical[30 days]Senior management
High[90 days]Head of Information Security and business unit head
Medium[180 days]Head of Information Security
Low[12 months]System owner

6. Measures

MeasureTargetHow it is measured
Critical and High assets scanned in the period[100 percent]Scanner coverage against asset register
Findings fixed within timeline[95 percent] Critical and HighRegister age report
Mean time to fix CriticalBelow [7 days]Register timestamps
Overdue findings with approved exceptionBelow [5 percent] of totalException register
Penetration tests completed as planned[100 percent]Annual test calendar
Retest of Critical and High findings done within [60 days][100 percent]Retest records

7. Records and Evidence

RecordKept byLocationRetention
Vulnerability register and scan resultsVulnerability management leadVulnerability scanner and register[3 years]
Rules of engagement and approvalsHead of Information SecurityDocument management system, restricted[5 years]
Penetration test reportsHead of Information SecurityRestricted repository[5 years]
Exception and accepted-risk recordsHead of Information SecurityRisk registerExpiry plus [3 years]
Monthly status reportsVulnerability management leadDocument management system[3 years]

Annexure A: Vulnerability register

RefAssetFindingSeverityOwnerFoundDueStatus
V-0001Example web serverOutdated libraryHighOperations[1 Jan][8 Jan]Open

Annexure B: Penetration test rules of engagement

FieldEntry
Test objective
Systems and addresses in scope
Systems excluded
Permitted and prohibited techniques
Test window and time zone
Tester names and source addresses
Emergency stop contact and number
Data handling and destruction date
Approved by (Head of Information Security) and system owner

Annexure C: Vulnerability exception request

FieldEntry
Finding reference and severity
Reason the fix cannot be completed in time
Compensating controls and owner
Requested expiry date
Approver and date

8. Exception

Exceptions to this document are allowed only where compliance is not practicable and the risk has been assessed. A request must state what is to be excepted, why, the risk it creates, the compensating controls, and an end date no later than [6 months]. It is approved in writing by the document owner and the risk owner, recorded in the exceptions register, and reviewed at the end date. An exception does not change the document.

9. Enforcement

Compliance is monitored through internal audits, management review and routine checks by the document owner. Non-compliance is reported through the incident or non-conformity process and handled under the organisation's disciplinary procedure, and under the terms of any contract for people who are not employees. Serious or repeated non-compliance may lead to loss of access and, where the law is broken, to referral to the authorities.

10. Review

This document is reviewed at least every [12 months], and when there is a significant change to the organisation, its systems, its risks or the law, or after an incident that shows it was not effective. Each review is recorded in the revision history.

ISO/IEC 27001:2022 references

ReferenceTitle
A.8.8Management of technical vulnerabilities
A.8.9Configuration management
A.8.29Security testing in development and acceptance
A.8.34Protection of information systems during audit testing
A.5.7Threat intelligence
6.1.2Information security risk assessment
Sign in to download the PDFFree. You return straight to this document after you sign in.