Ethical Hacking & Penetration Testing

Chapter 15
Reporting, Remediation, Management and Emerging Practice

Diploma in Cybersecurity
Ethical Hacking & Penetration Testing   •   Diploma

Reporting, Remediation, Management and Emerging Practice

Introduction

A penetration test creates value only when its findings are understood, acted upon and verified. Technical discovery is therefore one stage in a broader assurance cycle. A professional engagement must communicate risk to executives, explain evidence to engineers, identify root causes, recommend proportionate treatment, support remediation and confirm whether weaknesses have actually been resolved.

This chapter examines the complete post-testing lifecycle. It covers technical and executive reporting, evidence quality, risk rating, root-cause analysis, remediation management, retesting, metrics and emerging practices such as automation, artificial-intelligence-assisted testing and continuous attack-surface management. The central principle is that a penetration test is not a list of vulnerabilities; it is a decision-support process connecting technical facts with business consequences.

Learning Objectives

By the end of this chapter, students should be able to:

  • distinguish executive, management and technical penetration-testing reports;
  • write findings supported by reproducible and appropriately protected evidence;
  • assess likelihood, impact and risk without confusing risk with severity;
  • identify technical, process, people and governance root causes;
  • prioritise remediation and define useful corrective actions;
  • plan retesting and determine whether remediation is effective;
  • select meaningful security metrics and communicate them responsibly;
  • evaluate automation, AI-assisted testing and continuous attack-surface management;
  • recognise emerging ethical, legal and governance challenges.

1. The Reporting Function in Penetration Testing

A report performs four related functions:

  1. Record: It preserves scope, methods, observations, evidence and limitations.
  2. Explain: It translates technical weaknesses into understandable consequences.
  3. Direct: It identifies owners, corrective actions, priorities and target dates.
  4. Assure: It provides a basis for remediation tracking, retesting and governance decisions.

A report must be accurate, fair and proportionate. It should neither minimise a serious weakness nor exaggerate a theoretical possibility. Testers must clearly separate observed facts, validated inferences and recommendations. For example, “the tester retrieved customer records using an unauthorised account” is an observation. “The weakness may permit broad data exposure” is an interpretation. “Implement server-side authorisation checks and add regression tests” is a recommendation.

1.1 Report audiences

Different readers require different levels of abstraction.

AudiencePrimary concernAppropriate content
Board or executive leadershipBusiness exposure and decisionsOverall risk, material systems, trends, investment and residual risk
Risk committee or senior managementAccountability and treatmentPriorities, owners, deadlines, dependencies and exceptions
System owners and developersCorrectionReproduction steps, affected components, root cause and technical fix
Security operationsDetection and preventionIndicators, logs, monitoring improvements and validation steps
Auditors or regulatorsEvidence and control effectivenessScope, methodology, limitations, findings and remediation records

One engagement may therefore produce an executive briefing, a management report and a restricted technical appendix. These documents must remain consistent. Simplifying language for executives must not change the meaning of the underlying evidence.

2. Report Architecture and Evidence

A professional report commonly contains:

  • title, classification, authorisation and version information;
  • executive summary;
  • scope, assumptions, exclusions and testing dates;
  • methodology and standards or procedures used;
  • limitations, including unavailable accounts, blocked tests or environmental differences;
  • overall risk interpretation;
  • detailed findings;
  • remediation plan and retest requirements;
  • appendices containing evidence, affected assets and technical references.

2.1 Evidence standards

Evidence should be sufficient for an independent technical reader to understand what occurred and, where authorised, reproduce it. Useful evidence may include:

  • timestamps and time zones;
  • affected hostnames, applications or asset identifiers;
  • request and response excerpts;
  • sanitised screenshots;
  • command output or tool logs;
  • access-control results;
  • database or file samples limited to the minimum necessary;
  • hashes or chain-of-custody information for collected files;
  • the identity or role used during testing.

Evidence must be minimised. A report should not expose real passwords, session tokens, private keys, unnecessary personal data or complete sensitive records. Sensitive evidence should be stored using approved access controls and retention rules. Screenshots alone can be misleading because they may omit context; they should be accompanied by explanatory text and, where appropriate, reproducible steps.

A good finding answers five questions:

  1. What is wrong?
  2. Where does it occur?
  3. How was it verified?
  4. Why does it matter?
  5. What should be done, and how will closure be verified?

2.2 Finding structure

A concise finding normally includes:

  • Title: specific and action-oriented;
  • identifier: a unique local reference, with relevant vulnerability identifiers where applicable;
  • severity and risk rationale: not merely a colour or label;
  • affected assets: systems, versions, functions or business processes;
  • description: the technical condition;
  • evidence and reproduction: controlled and sanitised;
  • impact: realistic consequences;
  • root cause: the control or practice that allowed the condition;
  • recommendation: corrective and preventive actions;
  • owner and target date: agreed through governance;
  • retest criteria: observable conditions for closure;
  • dependencies and residual risk: issues that may remain after treatment.

A weakness should not be reported as fixed merely because a configuration changed. Closure requires evidence that the vulnerability is no longer exploitable in the intended threat scenario and that the correction has not introduced a new weakness.

3. Risk Rating and Prioritisation

3.1 Severity is not the same as risk

Severity describes the technical seriousness of a weakness under defined conditions. Risk combines the potential effect on an organisation with the likelihood of the event and the organisation’s exposure. A severe vulnerability on an isolated, decommissioned host may produce less immediate organisational risk than a moderate weakness in a public payment service.

Risk assessment should consider:

  • confidentiality, integrity and availability consequences;
  • safety, privacy, legal and regulatory implications;
  • asset criticality and data sensitivity;
  • exposure, exploitability and required privileges;
  • threat activity and evidence of exploitation;
  • control strength, monitoring and recovery capability;
  • business dependency and concentration risk.

Standardised schemes such as CVSS can support consistency, but they do not replace organisational context. A CVSS base score describes technical characteristics; environmental and threat context may alter prioritisation. The selected scheme and its assumptions should be documented.

3.2 A practical qualitative model

At diploma level, a transparent matrix can be used. The assessor assigns an impact category and a likelihood category using defined organisational criteria, then maps their intersection to a priority. The matrix is a governance aid, not a claim of precise probability.

Likelihood: LowMediumHigh
Impact: LowLowLowMedium
Impact: MediumLowMediumHigh
Impact: HighMediumHighCritical

The categories must be explained. For example, “high likelihood” might require public exposure, low attack complexity, useful exploit knowledge and weak preventive controls. “High impact” might mean material personal-data exposure, compromise of a critical service or a credible path to major business disruption. Organisations should not silently change definitions from one engagement to another.

3.3 Prioritisation beyond severity

A useful remediation queue considers urgency, exploitability, asset criticality, compensating controls, remediation effort and dependency. Priority should be assigned to a finding, not simply to a vulnerability identifier. Two instances of the same software flaw may require different responses because their exposure and business roles differ.

A strong recommendation is specific and testable. “Improve security” is not an adequate action. “Enforce server-side authorisation for every object reference, deny access when the user lacks ownership, log denied attempts and add automated tests for horizontal and vertical access boundaries” is actionable.

4. Root-Cause Analysis

Treating symptoms without correcting causes creates recurring findings. Root-cause analysis asks why the control failed, not merely what input produced an error. Common causes include:

  • insecure design or missing threat modelling;
  • deficient requirements, such as no authorisation rule;
  • implementation defects;
  • unsafe default configuration;
  • inadequate patch or asset management;
  • weak secrets and identity lifecycle controls;
  • missing security testing in the development pipeline;
  • unclear ownership or exception processes;
  • insufficient training or operational procedures;
  • supplier or integration failure.

The “five whys” technique can help when used carefully. For an exposed administrative interface:

  • Why was it reachable from the internet? The firewall rule allowed it.
  • Why did the rule allow it? A temporary troubleshooting exception remained.
  • Why did it remain? There was no expiry or review mechanism.
  • Why was there no review? Exception ownership was undefined.
  • Why was ownership undefined? The change-management process did not assign accountability for security exceptions.

The immediate correction may remove the rule. The systemic correction establishes time-bounded exceptions, approval, monitoring and periodic review. Root-cause conclusions should be evidence-based; analysts must not attribute blame to individuals when a process or design failure is better supported.

5. Remediation Management

Remediation is a managed change, not a promise in a report. Each action should have an accountable owner, due date, status, dependency and closure evidence. A useful treatment record distinguishes:

  • Correct: remove the weakness;
  • Mitigate: reduce likelihood or impact temporarily or permanently;
  • Transfer: move part of the consequence through a contractual or insurance arrangement, without eliminating the technical weakness;
  • Avoid: discontinue the risky activity or service;
  • Accept: formally acknowledge residual risk within delegated authority.

Risk acceptance must be explicit, time-bounded where appropriate, approved by the correct authority and supported by compensating controls. It is not equivalent to marking a ticket “won’t fix.”

5.1 Remediation plans

A remediation plan should state:

ElementExample
FindingUnauthorised access to another customer’s invoice
OwnerApplication product owner
Technical actionEnforce object-level authorisation on the server
Preventive actionAdd access-control tests to the delivery pipeline
Interim controlRestrict endpoint and increase monitoring
Evidence of completionDeployment record and successful retest
TargetDate agreed according to risk policy
Residual riskLegacy batch endpoint remains under review

Security teams should track ageing, overdue actions, repeated findings and exceptions. However, metrics must not reward superficial closure. A team that closes findings by narrowing scope or suppressing evidence may improve a dashboard while increasing actual risk.

6. Retesting and Assurance

Retesting validates whether a reported weakness has been corrected. It is narrower than a new penetration test, although a broader regression test may be justified where changes are extensive or the original issue involved a common control.

A retest process includes:

  1. confirm the original scope, affected asset and remediation claim;
  2. review change records and version information;
  3. reproduce the original attack under the same authorised conditions;
  4. test relevant bypasses and adjacent paths;
  5. verify that logging, alerting and access controls operate as intended;
  6. record evidence, residual exposure and limitations;
  7. update the finding as closed, partially remediated, open or risk accepted.

“Closed” means the agreed acceptance criteria have been met. “Partially remediated” means some exposure remains or only part of the affected population was corrected. A retest should not claim universal closure if only one sample was tested and asset coverage was not established.

7. Metrics and Management Information

Metrics should support decisions rather than create misleading competition. Useful measures include:

  • number of open findings by risk category and business service;
  • median age of findings by severity;
  • percentage remediated within policy target;
  • recurrence rate for similar root causes;
  • retest pass rate and partial-remediation rate;
  • proportion of critical assets tested within the planned period;
  • coverage of known internet-facing assets;
  • time from discovery to owner assignment;
  • accepted-risk value, duration and expiry status.

Metrics require definitions. “Time to remediate” may be measured from discovery, report delivery, ticket creation or owner acknowledgement; these produce different results. Dashboards should show scope, denominator, time period and data quality. Metrics should be segmented by business unit and asset criticality where aggregation hides important differences.

Outcome measures are stronger than activity measures. The number of scans performed demonstrates activity; reduction in exploitable exposure, improved detection and fewer recurring root causes provide stronger evidence of security improvement.

8. Presenting Findings to Stakeholders

An executive presentation should begin with the decision required: investment, service restriction, risk acceptance, accelerated remediation or additional testing. It should describe business services affected, plausible consequences, trend and management action. Technical jargon should be translated without removing uncertainty.

A technical briefing should demonstrate the attack path, affected components, root cause, corrective design and retest method. Testers should invite system owners to challenge inaccurate facts, but not allow disagreement to erase verified evidence. Sensitive demonstrations should use controlled environments and avoid live destructive actions.

Effective communication uses calibrated language:

  • “Observed” for directly verified facts;
  • “Indicates” for evidence-supported interpretation;
  • “Could permit” for a plausible consequence;
  • “Was not tested” for an explicit limitation;
  • “No evidence was observed” rather than “does not exist.”

This distinction is essential because a penetration test provides bounded assurance, not proof that no vulnerability exists.

9. Automation and AI-Assisted Testing

Automation is valuable for repeatable discovery, configuration comparison, endpoint enumeration, regression checks and evidence collection. It improves scale and consistency, but automated output is not automatically a validated finding. False positives consume remediation capacity, while false negatives arise when tools lack authentication, business context or novel attack logic.

AI-assisted testing may help generate test cases, interpret logs, identify relationships between assets, draft report language or suggest attack paths. Human testers remain responsible for authorisation, scope, safety, validation, confidentiality and final conclusions. AI systems may hallucinate vulnerabilities, reproduce insecure instructions, leak sensitive prompts or inherit bias from training data.

Controls for responsible use include:

  • use only approved models and data-handling arrangements;
  • prohibit submission of secrets or unnecessary personal data;
  • retain human review and evidence-based acceptance;
  • record model use where it materially influenced conclusions;
  • test generated payloads in controlled environments;
  • validate licensing and provenance of generated content;
  • maintain an audit trail of prompts, outputs and decisions where appropriate.

Automation should augment professional judgement rather than replace it. Business logic, authorisation boundaries, safety implications and exploit impact often require contextual reasoning.

10. Continuous Attack-Surface Management

Traditional testing is periodic, while cloud services, identities, APIs, suppliers and internet exposure change continuously. Continuous attack-surface management seeks to maintain an updated view of assets, ownership, exposure and weaknesses. It commonly combines asset discovery, attack-surface inventory, vulnerability intelligence, cloud configuration data, identity information and targeted validation.

Its lifecycle is:

  1. discover assets and services;
  2. attribute ownership and business criticality;
  3. identify exposure and changes;
  4. assess weaknesses and likely attack paths;
  5. prioritise according to business context;
  6. remediate or accept risk;
  7. validate and update the inventory.

The approach can reduce blind spots, but it introduces governance challenges. Discovery may identify systems that were not authorised for intrusive testing. Automated probes may disrupt fragile services. Asset attribution may be wrong, and constant alerting can create fatigue. Rules must therefore distinguish passive discovery from active exploitation, define authorisation boundaries and provide escalation procedures.

Continuous monitoring complements, rather than eliminates, periodic penetration testing. A scheduled test can examine complex business logic and chained attacks that automated inventory systems may miss.

11. Emerging Ethical and Governance Challenges

Future ethical hacking practice will be shaped by several issues:

  • Dual-use capability: Techniques developed for defence can enable unlawful intrusion.
  • Third-party boundaries: Testing a supplier or shared cloud service may affect other customers.
  • Privacy: Testing can expose personal communications, health data or employee activity.
  • Autonomous action: AI agents may scan or exploit beyond intended scope unless technically constrained.
  • Disclosure: Vulnerabilities involving suppliers, open-source projects or public infrastructure require coordinated communication.
  • Evidence sovereignty: Logs and data may cross jurisdictions with different legal requirements.
  • Environmental cost: Large-scale scanning and repeated computation consume energy and infrastructure.
  • Professional accountability: Automation does not transfer legal or ethical responsibility away from the tester or commissioning organisation.

A mature programme maintains written rules of engagement, emergency contacts, stop conditions, data-minimisation rules, secure evidence handling, conflict-of-interest controls and an escalation route for unexpected harm. Consent must be specific, informed and sufficiently authoritative for the systems involved.

12. Illustrative Case Study: The Retail API Remediation Cycle

Background

A fictional online retailer commissioned an authorised test of its customer and partner APIs. The service stored invoices, addresses and loyalty information. The test included authenticated users with different customer roles but excluded denial-of-service activity.

Problem

The tester discovered that changing an invoice identifier in a request allowed one customer to retrieve another customer’s invoice. The issue was initially rated high because the endpoint was internet-facing, required only a normal customer account and exposed personal information. The first report proposed adding authorisation checks.

Analysis

Further investigation showed that the API validated whether an invoice identifier existed but did not verify ownership against the authenticated customer. The same pattern appeared in two related endpoints. The root cause was an insecure design pattern: object-level authorisation was assumed at the client interface rather than enforced centrally on the server. There was also no automated cross-account access test.

Approach and solution

The product owner implemented central server-side policy enforcement, denied requests when ownership was absent and added security logging for repeated denied access. The development team created tests for horizontal access, administrator boundaries and predictable identifiers. A temporary control restricted the affected endpoints while the fix was deployed. The privacy officer assessed whether the observed access required notification under applicable law.

Retest and outcome

The tester repeated the original request, tested neighbouring endpoints and attempted access using different customer roles. Unauthorised access was denied, valid access continued to work and logs recorded the rejected attempts. One legacy reporting endpoint remained exposed to a similar pattern, so the original issue was marked partially remediated until that endpoint was corrected.

Learning points

The case demonstrates that a useful finding identifies a systemic pattern, not just one URL. It also shows why a remediation recommendation should include preventive testing, why privacy analysis may be required even when the test retrieves only a small sample, and why retesting must examine related attack paths.

13. Best-Practice Checklist

Before issuing a report, confirm that:

  • scope and authorisation are documented;
  • every material finding has reproducible evidence;
  • sensitive data is minimised and protected;
  • severity and business risk are distinguished;
  • assumptions and limitations are visible;
  • root causes are supported by analysis;
  • recommendations have owners and acceptance criteria;
  • priorities reflect asset and business context;
  • executive and technical accounts are consistent;
  • retesting and closure rules are defined;
  • risk acceptance is formally governed;
  • automation and AI outputs have been human-validated.

Chapter Summary

Professional penetration testing extends beyond vulnerability discovery. A high-quality report preserves evidence, communicates business significance, explains root causes and directs accountable remediation. Executive reports emphasise decisions and exposure, while technical reports provide reproducible details for correction. Risk rating should combine technical characteristics with asset criticality, exposure, impact, threat context and existing controls; severity alone is insufficient.

Remediation must be assigned, tracked and verified. Retesting should reproduce the original attack, examine relevant bypasses and distinguish closure from partial remediation. Metrics are valuable when their definitions, scope and limitations are explicit and when they measure outcomes rather than superficial activity. Automation and AI can increase scale, but human responsibility, authorisation, privacy and evidence validation remain essential. Continuous attack-surface management improves visibility in changing environments, but it must be governed to prevent unauthorised or disruptive probing. Ethical practice requires proportionality, confidentiality, professional judgement and clear accountability.

Key Terms

Attack-surface management: Continuous identification and assessment of exposed assets, services and weaknesses.

Compensating control: A control that reduces risk when the preferred corrective control is unavailable or delayed.

Evidence: Information supporting a tester’s observation or conclusion.

Executive summary: A concise account of business exposure, major findings and required decisions.

Finding: A documented security condition supported by evidence and linked to impact and remediation.

Impact: The potential consequence if a weakness is exploited or a harmful event occurs.

Likelihood: An assessment of how plausibly a threat event may occur under stated conditions.

Penetration-test retest: A focused assessment verifying whether reported weaknesses were corrected.

Residual risk: Risk remaining after controls or remediation have been applied.

Risk acceptance: A formal decision to retain a known risk under defined authority.

Risk rating: A reasoned classification of risk using defined criteria.

Root cause: The underlying condition that allowed a weakness to arise or persist.

Severity: The technical seriousness of a vulnerability under specified assumptions.

Technical report: A detailed report containing methods, evidence, reproduction and corrective guidance.

Threat context: Information about relevant adversaries, activity, capability or exploitation.

Treatment: An action such as correcting, mitigating, transferring, avoiding or accepting risk.

Validation: The process of checking that a claim, finding or remediation is supported by evidence.

Vulnerability: A weakness that can be exploited or abused to violate a security property.

Review Questions

Short Answer Questions

  1. What are the four main functions of a penetration-testing report?
  2. Why is severity not equivalent to organisational risk?
  3. Identify four items that should appear in a remediation record.
  4. What is the difference between a corrective action and a compensating control?
  5. Why should AI-generated testing results receive human validation?

Long Answer Questions

  1. Explain how an executive report should differ from a technical report while remaining consistent with it.
  2. Describe a complete retesting process and the evidence required to close a finding.
  3. Discuss how root-cause analysis can prevent recurring vulnerabilities.
  4. Evaluate the advantages and limitations of continuous attack-surface management.
  5. Explain the governance controls needed for responsible automation and AI-assisted penetration testing.

Analytical / Application Questions

  1. A high-severity vulnerability exists on an isolated legacy server, while a medium-severity authorisation flaw exists in a public customer API. Which should be prioritised, and what additional evidence would you request?
  2. A development team reports that a finding is fixed after changing one configuration value. Design a retest plan that tests both the original weakness and plausible bypasses.
  3. An organisation’s dashboard shows that 95% of findings are closed within target, but recurring findings and accepted-risk exceptions are increasing. Analyse what may be wrong with the metrics and propose better measures.

Multiple Choice Questions with Answers

Question 1

Which report element most directly enables an engineer to reproduce a penetration-testing finding?

A. The report cover page

B. Sanitised evidence and reproduction steps

C. The executive risk appetite statement

D. The engagement invoice

Correct Answer: B. Sanitised evidence and reproduction steps

Question 2

Why should technical severity not be used as the only basis for remediation priority?

A. Severity is never relevant to security decisions

B. Severity applies only to physical security

C. Business context, exposure, asset criticality and controls also affect risk

D. Severity can be calculated only after remediation

Correct Answer: C. Business context, exposure, asset criticality and controls also affect risk

Question 3

Which action is an example of risk acceptance?

A. Removing the vulnerable service

B. Installing a security patch

C. Adding temporary monitoring

D. Formally approving the remaining risk within delegated authority

Correct Answer: D. Formally approving the remaining risk within delegated authority

Question 4

What is the principal purpose of a retest?

A. To verify whether the reported weakness was corrected

B. To replace all security monitoring

C. To expand testing beyond the authorised scope

D. To guarantee that no vulnerabilities exist

Correct Answer: A. To verify whether the reported weakness was corrected

Question 5

Which statement best describes a root cause?

A. The screenshot included in a report

B. The underlying process or design condition that allowed the weakness

C. The colour assigned to a finding

D. The date on which the test ended

Correct Answer: B. The underlying process or design condition that allowed the weakness

Question 6

Which metric is more outcome-oriented than simply counting scans?

A. Number of tools installed

B. Number of tester meetings

C. Reduction in exploitable exposure and recurring root causes

D. Number of pages in the report

Correct Answer: C. Reduction in exploitable exposure and recurring root causes

Question 7

What is a major limitation of automated vulnerability output?

A. It cannot produce any results quickly

B. It always requires physical access

C. It is unable to identify software versions

D. It may generate false positives and miss business-logic weaknesses

Correct Answer: D. It may generate false positives and miss business-logic weaknesses

Question 8

Which practice is most appropriate when using an AI system during testing?

A. Submit production secrets so the model has full context

B. Accept generated findings without verification

C. Use approved data handling and validate outputs with human judgement

D. Allow the AI agent to expand the scope automatically

Correct Answer: C. Use approved data handling and validate outputs with human judgement

Question 9

What does continuous attack-surface management primarily seek to maintain?

A. A current view of assets, exposure, ownership and weaknesses

B. A permanent exemption from penetration testing

C. A list of only internal employee devices

D. A replacement for all governance processes

Correct Answer: A. A current view of assets, exposure, ownership and weaknesses

Question 10

Which language is most appropriately calibrated in a penetration-testing report?

A. The system is perfectly secure

B. No evidence was observed during the authorised test

C. The organisation will definitely be breached

D. The tester guarantees that no vulnerability exists

Correct Answer: B. No evidence was observed during the authorised test

Ethical Hacking & Penetration Testing
Chapter 15 of 15