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 questionsBy the end of this lesson
Note
I can write a finding with its severity, evidence, fix and detection.
Key words
| Word | What it means |
|---|---|
| Severity | how much harm a finding could do |
| CVSS | a common scale from 0 to 10 for severity |
| Evidence | what you saw, so someone else can see it too |
| Executive summary | the first page, for the people who decide |
| Remediation | the fix the report recommends |
The cells students fill in are left blank in this preview.
Starter
Have a go
Starter
4 questionsSeverity 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
# 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
| Finding | Our rating | Why |
|---|---|---|
| Administrator kept its default | High | Anybody who reaches the portal becomes administrator |
| Cache answers without a password | High | Every session can be read from the network |
| /backup/ lists a settings file | Medium | It maps the network for an attacker |
| Banner names a false version | Low | It misleads, and invites the wrong attack |
The cells students fill in are left blank in this preview.
Check
Have a go
Check
3 questionsEvidence 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
date -u +%Y-%m-%dT%H:%M:%SZShown here, not run. Press Start lab to type it into your own lab’s terminal.
Record the backup finding as status codes
for p in /backup/ /backup/site-config.bak; do curl -s -o /dev/null -w "%{http_code} $p\n" http://www:8080$p; doneShown here, not run. Press Start lab to type it into your own lab’s terminal.
Record the sign-in as a status code
curl -s -o /dev/null -w '%{http_code}\n' -d 'user=admin&pass=admin' http://intranet:8000/loginShown here, not run. Press Start lab to type it into your own lab’s terminal.
Check
Have a go
Check
3 questionsA 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
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.
EOFShown here, not run. Press Start lab to type it into your own lab’s terminal.
Read it back
cat finding-1.mdShown 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
docker logs hrShown 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.
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