Unit 12: Auditing and hardening · Lesson 5 of 7 · 20 min

Writing the report

Turn evidence into findings with risk and fix, ranked so the team knows what to do first.

mission

You are
You are handing over the web01 audit.
Situation
You have a timeline, six failed checks and several smaller notes. The team will fix what the report makes clear.
Goal
Write each finding in four parts and rank them.
Hand in
A ranked list of findings, each with evidence, risk and fix.

A finding in four parts

  1. Findingwhat is wrong
  2. Evidencethe exact command and output
  3. Riskwhat an attacker could do
  4. Fixthe change and how to verify it

A weak finding and a useful one

Weak
SSH is insecure.

No evidence, no fix

Useful
Finding: root can log in over SSH with a password.
Evidence: grep PermitRootLogin shows yes; 197 failed passwords on 14 Oct.
Risk: one guessed password gives full control.
Fix: PermitRootLogin no, PasswordAuthentication no, sshd -t, reload, rerun audit.sh.

Anyone can act on it

Ranked findings for web01

CommandWhat it does
1 CriticalSecond root account sysops and four persistence items from the 13 Oct session
2 Criticalrotate.sh is 777 and cron runs it as root
3 HighSUID root backup-helper outside any package
4 HighUndocumented listener on 4444, allowed by the firewall
5 HighSSH allows root and passwords. Firewall policy accept
6 MediumDebug endpoint leaks the database password; db.env is 644
7 MediumWeb root serves .git/config and a backup; index.html was modified
8 LowLeaver still in sudo; stale SSH key; unwiped web00

What a defender takes away

  1. 1Finding, evidence, risk, fix.
  2. 2Rank by what an attacker gains.
  3. 3Incidents go to incident response first.

Questions

0 of 2 solved

Answer each one from what you find on your lab machine.

  1. Show hint

    The second of the four parts.

  2. Show hint

    The second UID 0 account.