skip to content

You must set your team's standard for using exploit code in authorised assessments, so what should it commit to on third-party code, rebuilt-copy trials, side effects and run records?

level: principalimportance: nice to knowfreq 12%

answer

  1. commitments, not a tool list
  2. third-party code is untrusted
  3. copy first, with fidelity limits
  4. agree side effects in advance

basics

~20 s

A team standard should say who may bring in third-party exploit code and under what review, when a rebuilt copy is tried first, which declared side effects the client agrees to beforehand, and how each run is recorded.

solid answer

~40 s

I would write commitments rather than a tool list. Framework modules are the default because they carry descriptions, tested targets and declared notes. Archive code is allowed only after a second person reads it and it has run in the lab. A rebuilt copy comes first for anything that declares a crash, resource loss or configuration change, or whose target is untested, accepting that the copy is only as faithful as the rebuild. Side effects that could take a service down, change configuration, lock accounts or leave files are agreed with the client in advance, and log indicators are told to the monitoring team. Every run is recorded, and an unexpected effect pauses the test. The cost is time, and some hard-to-rebuild legacy systems cannot be copied, so I record the residual risk there.

go deeper

for a junior

Recall that exploit use needs rules for third-party code, trial on a copy, agreement on side effects and a record of each run.

for a middle

State the four commitments and the declared side-effect categories behind the agreement line, with the stop rule.

for a senior

Apply the standard to a case: untested build, no declared notes, a legacy server that cannot be rebuilt. Say what you require and what residual risk you record.

for a principal

Choose between strict, tiered and light, naming what each exposes and what each costs in time and coverage, and keep scope and contact decisions with the engagement paperwork.

## The decision A team lead has to write the standard that governs when exploit code may run in an authorised assessment. There is no single right answer, because each choice trades speed and coverage against exposure for the client. The scope, written authorisation and contact arrangements for a specific engagement are decided elsewhere; this standard covers how exploit code is chosen, tried, agreed and recorded. ## The four commitments ### 1. Who may bring in third-party exploit code | Option | What it exposes | What it buys | |---|---|---| | Framework modules only | Little: modules carry descriptions, tested targets and, for new ones, declared notes | Gaps where no module exists | | Archive code after a second person reads it | Unknown authors; reading can miss behaviour | Coverage of flaws with no module | | Any code a tester trusts | The most: unread code near the client's systems | Speed | The NIST guide says the cautions for freeware apply to exploit programs and scripts, so the middle option is the defensible floor for archive code: untrusted until read by a second person and run first in the lab. ### 2. Whether a rebuilt copy comes first - **Always**: cheapest in client risk, costliest in time, and only as good as the copy's fidelity. A legacy server can be hard to rebuild. - **Tiered by declared risk**: copy first for anything declaring a crash, resource loss or configuration change, or with an untested target; lighter review for modules declaring crash safety. This depends on trusting the declarations. - **Never**: the first run is on the client's system, which is where the documentation says not to learn. ### 3. Which declared side effects need agreement in advance The declared vocabulary gives a ready list. A reasonable line is that anything that may take a service or OS down, lose a resource, change configuration, lock an account, force a session out or leave files on disk is **agreed with the client beforehand**, and anything that only leaves a log indicator is **told to the monitoring team**. The cost is more conversations before a test. The benefit is that a restart is never a surprise. ### 4. How a run is recorded Time window, hosts, code identity, declared notes, observed effect and what was left behind, in a form the client can restore from and the monitoring team can reconcile alerts against. The cost is discipline during the test; without it, nobody can separate the tester's noise from a real intruder later. ## A worked reading Apply the standard to the legacy file server in the scenario. The exploit came from a public archive, so it is third-party code: a second person reads it and it runs in the lab first. A legacy server is unlikely to be on any tested-target list, so either a rebuilt copy is tried first or the team records, and the client accepts, the residual risk that the copy could not be built. If the code carried a declared note that it may crash the service but it will restart, the client agrees to that before the window opens. Finally, the run record puts the restart, the alerts and the files on one timeline. Without those four commitments, the restart arrives as a surprise to the client and a puzzle to the monitoring team. ## A stop rule NIST says testing can be "designed to stop when the tester reaches a point when an additional action will cause damage". The standard should say who decides to stop, and that a restart or unexpected effect triggers a pause, not another attempt. ## Weighing the options - **Strict** (rebuilt copy always, second reader for every third-party script, agreement on all declared side effects): lowest exposure, slowest, and sometimes impossible for hard-to-rebuild legacy systems. - **Tiered**: the usual compromise, reasonable if the tiers are written down and honestly applied. - **Light**: fast and cheap, with the risk transferred to the client without their knowing. A defensible default for a team of this size is tiered: framework modules by default, archive code only after a second reader and a lab run, a rebuilt copy for anything with declared crash or change effects or an untested target, advance agreement for the side effects above, and a mandatory run record. ## What to avoid - Writing the standard as a list of tools. It should state commitments that survive a change of tool. - Letting a high rank substitute for the commitments. - Deciding scope or contact arrangements here; those belong to each engagement's paperwork.

  • A client's legacy server cannot be rebuilt. How does the standard handle the copy-first rule?
    It should say what replaces it, not waive it silently: a closer-as-possible copy, a narrower module choice, advance agreement with the client to the declared crash risk, a stop rule and a recovery plan. The residual risk is recorded in the report.
  • The team lead wants speed: skip the second reader for archive code from authors the team knows. Reasonable?
    Familiarity is not review. A known author lowers one risk and does not remove the chance of a mismatch between the code and the target. A lighter review can be a tier, but it should be written down, not a habit.
  • Who may waive a step of the standard in the middle of an engagement, and on what terms?
    A named lead, in writing, for a stated reason, with the residual risk recorded in the report and the client told. A waiver is an exception with an owner. If waivers become routine, the standard is wrong and should be revised, not quietly ignored.

  • Writes the standard as a list of approved tools rather than commitments
  • Lets a high rank replace the rebuilt copy and the review of third-party code
  • Treats a rebuilt copy as a guarantee of how production will behave
  • Leaves declared crash or configuration effects to be explained after the test
  • Allows archive code on the strength of the author's reputation alone