Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

Rating severity and writing the report

After this lesson: I can write a finding with its severity, evidence, fix and detection.

55 min lesson6 commandsPenetration testing lab: from scope to retest

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

The report is what the college paid for

The scans are over. The college's principal will read one page and decide what to fix first. The IT team will read the rest and do it.

A finding nobody can understand, repeat or fix is a finding that stays open.

The one rule

Warning

Gather evidence only from your own lab copy, inside the scope. On a real system, every request still needs written permission. In the UK, access without it can be a crime under the Computer Misuse Act 1990. A report never contains a working password.

Quick check: the rule

Have a go

Quick check: the rule

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

By the end of this lesson

Note

I can write a finding with its severity, evidence, fix and detection.

Key words

WordWhat it means
Severityhow much harm a finding could do
CVSSa common scale from 0 to 10 for severity
Evidencewhat you saw, so someone else can see it too
Executive summarythe first page, for the people who decide
Remediationthe fix the report recommends

The cells students fill in are left blank in this preview.

Starter

Have a go

Starter

4 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Severity is a score and a judgement

CVSS scores how bad a flaw is on its own, from 0 to 10. Each score falls in a band: Low below 4, Medium below 7, High below 9, Critical from 9.

Then you judge it in context. The cache is only on the college's network, which lowers the risk, but it holds every staff session, which raises it.

Try it: put scores in bands

Code: python
# CVSS scores and the band each falls in.
def band(score):
    if score == 0:
        return "None"
    if score < 4:
        return "Low"
    if score < 7:
        return "Medium"
    if score < 9:
        return "High"
    return "Critical"

for score in [0.0, 3.9, 4.0, 7.5, 9.8]:
    print(score, band(score))

# Add 6.9 and 8.9 to the list. Which bands are they in?

Make a free account to save your work and track your progress.

Fernbrook's four findings, rated

FindingOur ratingWhy
Administrator kept its defaultHighAnybody who reaches the portal becomes administrator
Cache answers without a passwordHighEvery session can be read from the network
/backup/ lists a settings fileMediumIt maps the network for an attacker
Banner names a false versionLowIt misleads, and invites the wrong attack

The cells students fill in are left blank in this preview.

Check

Have a go

Check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Evidence someone else can repeat

Good evidence is the exact command, the time and the shortest output that proves the point. A status code is often enough.

Write the time in UTC so the client can match it to their logs. Never paste a working password: write "the installed default".

Note the time in UTC

Command
date -u +%Y-%m-%dT%H:%M:%SZ

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Record the backup finding as status codes

Command
for p in /backup/ /backup/site-config.bak; do curl -s -o /dev/null -w "%{http_code} $p\n" http://www:8080$p; done

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Record the sign-in as a status code

Command
curl -s -o /dev/null -w '%{http_code}\n' -d 'user=admin&pass=admin' http://intranet:8000/login

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Check

Have a go

Check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

A report has two readers

The executive summary says, in plain words, what was found and what to fix first. Then come the scope and method, including what was not tested and why.

Each finding has a title, a rating, where, the evidence, the impact, the fix, the detection and the retest. The next Run writes one.

Write the first finding

Command
cat > finding-1.md <<'EOF'
# F1 The staff portal's administrator kept its installed password
Severity: High (anybody who reaches the portal can sign in as administrator)
Where: http://intranet:8000/login, account admin
Evidence: one sign-in with the installed default answered 200,
  "Signed in as admin (administrator, may add and remove staff accounts)."
Impact: an attacker could add or remove staff accounts.
Fix: set a strong, unique password, and check every account for defaults.
Detection: alert on a sign-in as admin from an unexpected address.
Retest: one sign-in with the old password must be refused.
EOF

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Read it back

Command
cat finding-1.md

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

A common mistake

Warning

Many people think a report is for the technical team alone. The people who decide what gets fixed read only the first page. Write the summary last, in plain words, ordered by what to fix first, with no tool names.

Say what you did not touch

The method section names the hosts tested and the one left alone. The supplier's own log is your evidence that the test kept to its scope.

Check nothing reached the supplier

Command
docker logs hr

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Assignment: order the findings for the report

A finding is a dictionary such as {"id": "F1", "title": "Default admin password", "score": 8.8}. Write three functions.

rating(score) returns the CVSS band: "None" for 0, "Low" below 4.0, "Medium" below 7.0, "High" below 9.0 and "Critical" from 9.0. ordered(findings) returns the ids, highest score first, and in id order where scores tie. summary(findings) returns a dictionary with all five bands as keys, from Critical down to None, each counting its findings.

Code: python
def rating(score):
    return "Low"


def ordered(findings):
    return [one["id"] for one in findings]


def summary(findings):
    return {}

Make a free account to save your work and track your progress.

Exit quiz

Have a go

Exit quiz

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.