Report writing

Let's now look at an example of the notes we might take for a web vulnerability we discovered:

To properly prepare a report for the client, we must understand two things:

  1. The purpose of the report.
  2. How we can deliver the information we've collected in a way that the audience can understand.

Tailor your report findings to the client that you are working for. Consider a bank and a medical institution. We may come up with similar results for both, and while they may have the same technical severity, we may not necessarily document the findings with the same levels of risk and priority for remediation. a hospital may not care that their Internet-facing login portal accepts TLS 1.0 ciphers. An eCommerce site is likely to be much more concerned, given the PCI violation that accepting TLS 1.0 creates.

Structure: 1. Executive Summary 1. The Executive Summary should start with outlining the scope of the engagement. 2. High-level structure --

Executive Summary:
- Scope: https://kali.org/login.php
- Timeframe: Jan 3 - 5, 2022
- OWASP/PCI Testing methodology was used
- Social engineering and DoS testing were not in scope
- No testing accounts were given; testing was black box from an external IP address
- All tests were run from 192.168.1.2"
  1. Highlight trends - if over-and-over you reveal findings that indicate a systemic issue, describe and group trends discovered and validate them with the findings. Many vulnerabilities of the same type generally show a failure in that particular area.

    1. Broken down as follows:
      1. Few sentences describing the engagement. Corp hired SecCorp to conduct a pentest of [domain] on [date]. The test was conducted [externally/internally] at [time] with [stipulations]
      2. Identifying positives. Application had forms of hardening [general overview of security measures]. Basically, points where security was strong.
        1. We must be careful to make sure our language does not preclude the possibility that we were simply unable to find a flaw that does actually exist and remains undetected.
      3. Introduce/Explain discussion of vulnerabilities. Areas of concern within the application - SecCorp was able to inject [vulnerability description, general] causing [effect]. Several paragraphs of this type may be required, depending on the number and kind of vulnerabilities we found.
      4. Wrap-up - These vulns and their solution are described in more detail below [...]
  2. Testing environment considerations.

    1. It is our job as penetration testers and consultants to inform the client of all circumstances and limitations that affected the engagement. This is done so that they can improve on the next iteration of testing and get the most value for the money they are paying. It is important to note that not every issue needs to be highlighted, and regardless of the circumstances of the test, we need to ensure the report is professional.
    2. Communicating extenuating circumstances - Positive, neutral, negative. Be clear about the parameters that dictate your ability to perform the penetration test effectively.
      1. Positive - no limitations, time allotted was sufficient
      2. neutral - some failures with required information and time delay because of it
      3. negative - not enough time allotted for much larger scope than expected
  3. Technical Summary

    1. List of all key findings - w/ summary and recommendation for a technical actor.
    2. Example structure:
      • User and Privilege Management
      • Architecture
      • Authorization
      • Patch Management
      • Integrity and Signatures
      • Authentication
      • Access Control
      • Audit, Log Management and Monitoring
      • Traffic and Data Encryption
      • Security Misconfiguration
  4. Technical Findings and Remediation  where we include the full technical details relating to our penetration test

    1. ![](/img/Pasted image 20230816113035.png)
    2. It's important to understand that what we identify as the severity of an issue based on its vulnerability score is not context-specific business risk. technical severity
    3. Once the details of the vulnerability have been explained, we can describe the specific finding that we have identified in the system or application.
      1. Use notes/screenshots used during testing. Frame severity of a vulnerability appropriately
      2. Broad solutions should be avoided. Drill down to specifics. Theoretical solutions are not effective. Solutions need to be concrete and practical implementation
    4. When describing, present the means of replicating them. Show exactly where the application was affected and how to trigger the vulnerability. Full replication steps should be documented with screenshots.
  5. Appendices

    1. The final part of the report is the _Appendices_ section. Things that go here typically do not fit anywhere else in the report, or are too lengthy or detailed to include inline. This includes long lists of compromised users or affected areas, large proof-of-concept code blocks, expanded methodology or technical write-ups, etc. A good rule to follow is if it's necessary for the report but would break the flow of the page, put it in an appendix.