A tester's draft report says an exploit run restarted a legacy file server, so what must the security lead require it to record?
answer
- the restart is a consequence
- when, where, which code
- what was left on the target
- so monitoring can reconcile alerts
basics
~20 sThe report must record the time window, the host, the exact code used with its declared notes, the observed restart, and anything left on the target, so the client can restore state and the monitoring team can reconcile alerts.
solid answer
~40 sA restart is a consequence of the run, so the report has to be a ledger. I ask for start and end times with a time zone, the target and source hosts, the exact code used and where third-party code came from, and its declared rank, stability and side-effect notes. Then the observed effect, how long the service was down and whether it recovered by itself, and everything left behind: files, changed configuration, locked accounts, sessions forced out. I also want the log entries the run was expected to produce, so monitoring can match them to alerts. I check whether the restart was foreseeable from the declared notes, whether the tester stopped, and whether the code was vetted first. The record lets the client restore state and lets monitoring reconcile its alerts.
code
pseudocode · 9 linesrun_record:
window: start_time, end_time, time_zone
target_host, source_host
code_used: framework_module | third_party_code (with source)
declared_notes: rank, stability, reliability, side_effects
observed_effect: restart | stayed_down | none (with duration)
left_on_target: files, config_changes, accounts, sessions
log_entries_expected: list for the monitoring team
state_after: restored | not_restored (with reason)go deeper
Recall that a run can restart a service, leave files, change configuration and write log entries, and that the report should say so.
List the record fields: window, hosts, code identity with declared notes, observed effect, what was left, and the log entries expected.
Interrogate the restart: foreseeable from the notes, caused by this run, did the tester stop, was the code vetted. Decide what you tell the client.
Set what every report in the programme must carry about consequences, so a restart is never discovered by the client from its own logs first.
## The scenario A mid-size company has commissioned an authorised internal assessment. The tester's draft report says that an exploit taken from a public archive made a legacy file server restart during the test window. The security lead has to decide what the report must record, what vetting should have happened and what the company's monitoring ought to have shown. This answer is about the first and the third; the second is the vetting question covered separately. ## What a run can leave behind A framework run is not just a success or failure. The framework's own vocabulary for consequences gives a useful list: - **A service or OS effect**: the service crashed and restarted, crashed and stayed down, or lost a resource. - **Files**: a payload or dropper left on disk. - **Configuration**: a config file modified. - **Evidence in logs**: an indicator of compromise left in the logs. - **Accounts and sessions**: an account locked out, or an existing valid session forced to log out. Each of those is something the client may have to put right, and each is something the monitoring team will see and have to explain. ## What the lead should ask the report to record The report should read as a ledger, not a narrative. For each run the lead wants: 1. **When**: start and end time, with time zone, so the entry can be lined up with server logs and alerts. 2. **Where**: which host the code was aimed at and where it ran from. 3. **What code**: which framework module or which third-party code was used, where third-party code came from, and the module's declared rank, stability, reliability and side-effect notes. 4. **What was observed**: the restart, how long the service was unavailable, and whether it recovered by itself or needed a human. 5. **What was left on the target**: files, changed configuration, locked accounts, sessions forced out. 6. **What the monitoring team should have seen**: the alerts and log entries the run was expected to produce, so they can be matched to real alerts. 7. **State**: what was removed or restored, and what was not. One clause is enough here; the cleanup procedure belongs to the engagement's own paperwork. ```pseudocode run_record: window: start_time, end_time, time_zone target_host, source_host code_used: framework_module | third_party_code (with source) declared_notes: rank, stability, reliability, side_effects observed_effect: restart | stayed_down | none (with duration) left_on_target: files, config_changes, accounts, sessions log_entries_expected: list for the monitoring team state_after: restored | not_restored (with reason) ``` ## Questions the lead should ask about the restart itself - **Was it foreseeable?** If the module declared that it "may crash the service, but it will restart", the restart was a documented outcome. Then the question becomes why the client was not told and had not agreed to it beforehand. If it declared the module crash-safe, the restart contradicts the declaration and the notes need a second look. - **Was it this run?** Line up the restart time with the run log and the server's own logs. A restart in the same minute as an attempt is evidence, not proof. - **Did the tester stop?** The NIST guide says penetration testing "poses a high risk" because it uses real exploits against production systems, and that testing can be designed to stop when "an additional action will cause damage". Ask whether the tester paused after the restart and what was decided. - **Was the code vetted?** Was it tried on a rebuilt copy, and was the legacy server's build on the module's tested list? ## What the lead tells the client Tell the client what happened in plain terms: that the run caused a service restart on a named server at a named time, what else the run changed, whether it recovered, and what the tester recommends. Do not call it a finding about the tool and do not bury it in an appendix. A restart of a legacy server is a business event, and the client needs it in the body of the report. ## The common failure A report that says "the target was exploited successfully" and gives no time, no code identity and no list of what changed is a result, not a record. It cannot be restored from, and it cannot be reconciled with the alerts the monitoring team saw. The lead's job is to reject it until it can be.
- The module declared that it may crash the service but it will restart. Does that excuse the restart?It makes the restart foreseeable, which raises a different question: was the client told and had it agreed before the run. A declared outcome that the tester knew about and did not put to the client is a process gap, not an accident.
- The server restarted nine minutes after the last run entry. How do you decide whether the run caused it?Treat the timing as evidence, not proof. Compare the run log with the server's own logs and crash records, check whether other work was scheduled, and ask the tester what the last attempt did. If the cause stays unknown, the report should say so and not claim either way.
- The service recovered by itself within a minute. Is anything left to record?Yes. A self-recovered restart is still a consequence the client may need to see, and it explains log entries and alerts in that window. The entry also shows whether the declared stability note matched what happened.
- Says a restart that recovered by itself needs no mention in the report
- Records only that the exploit succeeded, with no time, host or code identity
- Treats the restart as a finding about the tool rather than a consequence of the run
- Assumes the declared stability note makes the restart the client's problem
- Leaves the monitoring team to guess which alerts belong to the test