skip to content

Before an exploit module from an exploitation framework runs in an authorised engagement, what do you check about its fit and stability?

level: middleimportance: should knowfreq 36%

answer

  1. written for one product and version
  2. tested setups, assume untested
  3. rank is a hint, not safety
  4. rebuilt copy before the real thing
  5. a check can itself exploit

basics

~20 s

Check the product, version and configuration the exploit was written and tested for, its rank and declared stability and side effects, a check that confirms exposure, and a trial on a rebuilt copy of the target.

solid answer

~40 s

I keep three questions apart. First, fit: the module's description and references name the vulnerable products and versions, and its target list shows the setups its authors tested; if mine is not there I assume it was never tried. Second, declared behaviour: the rank is the authors' judgement of reliability and crash risk, and new modules also declare stability, reliability and side effects. Third, consequence: what it changes on the system. A high rank is not safety, and a check can itself exploit, so I prefer evidence that confirms exposure without exploiting. Then I try it on a rebuilt copy of the target, inside the engagement's authorisation and window. I also record which evidence each step rested on, so the report shows why the run was judged fit.

go deeper

for a junior

Recall the vetting list: product and version, tested targets, rank, a check, and a trial on a copy. Say that a high rank does not make a run safe.

for a middle

Explain the three questions: what it was written for, how reliable it is declared to be, and what it changes. Cite the declared stability and side-effect categories.

for a senior

Judge a real case: untested build, no declared notes, a check that exploits. Say what you would require before agreeing the run, and what you would tell the lead.

for a principal

Decide what level of evidence your team demands before a run, given that a rebuilt copy has its own cost and fidelity limits.

## Why an exploit is vetted before it runs An exploit module is code written for one flaw in one product, and it is only as trustworthy as the match between that code and the system in front of you. The security-testing standard from NIST says target vulnerability validation carries the greatest risk of any assessment technique, because it has more potential to impact the target than other techniques. Vetting is how a tester turns a risky act into a planned one. It happens inside the engagement's authorisation and window, which are settled elsewhere. ## The homework, in order The framework's own documentation calls this "homework" and says you should always do it. Read as a checklist: 1. **What products and versions are vulnerable.** The most basic fact about the module. If your target is not in that list, stop. 2. **What type of bug it exploits and how it works.** The documentation says this tells you the exploit's side effects. A low-level memory bug may crash the service if the attempt fails, and may crash it even on exit. "High level bugs are generally safer, but not 100%", because the module may still change a configuration file or install something that breaks the application. 3. **Which setups were tested.** Every exploit has a target list, the setups its developers tried. "If your target machine isn't on the list, it's better to assume the exploit has never been tested on that particular setup." Do not assume the module picks the right target for you. 4. **What conditions the server must meet.** Many flaws need several conditions at once. 5. **The module's declared reliability and notes**, covered below. 6. **A check that confirms exposure**, and its limits, covered below. 7. **A trial against a rebuilt copy** of the target environment. ## Three questions kept apart A reviewer should keep three questions separate, because a good answer to one says little about the others. | Question | Where the answer comes from | What it does not tell you | |---|---|---| | What was it written and tested for? | Description, references, target list | How it behaves on a build nobody tested | | How reliable and stable is it declared to be? | The rank and the declared notes | What it changes on the system | | What does it change on the target? | Declared side effects, a rebuilt-copy trial | Anything the author never observed | ## Reading the rank Every exploit module carries a rank "based on its potential impact to the target system", from excellent to manual. The scale runs in descending order of reliability. - **Excellent**: described as never crashing the service, with the note that typical memory-corruption exploits should not get it. - **Great, good, normal**: reliable, with decreasing confidence in picking the right target without help. - **Average**: generally unreliable or difficult, with a success rate of 50% or more on common platforms. - **Low**: nearly impossible to exploit, under 50% on common platforms. - **Manual**: unstable or difficult and "basically a DoS", 15% or lower. The rank is the **authors' assessment**. Its descriptions talk about crashing and reliability, so even a top rank says little about files written, configuration changed or entries left in logs. Use it to prioritise and to ask questions, never as permission. ## The declared notes The documentation says "new" modules are required to carry a Notes section with three parts. Older modules need not, so absence is not safety. - **Stability**: should not crash the service or OS; may crash the service but it will restart; may crash the service and remain down; the same two for the OS; a resource lost to the service or OS. - **Side effects**: among others, may leave a payload or dropper on disk, modify a config file, leave an indicator in the logs, lock an account, or force an existing session out. - **Reliability**: expected to get a session every time, may fail on the first attempt, not expected to be reliable, or dependent on an outside event. ## The check, and its limits A module's own check can help. The documentation says "in some cases" it can be relied on, "because when Metasploit flags something as vulnerable, it actually exploited the bug". Read that carefully: **a check that exploits is itself a run**, with all the consequences above. Where possible, confirm exposure from version and configuration evidence that does not exploit anything, and record which kind of check you used. ## The rebuilt copy "The safest thing to do is to actually recreate the environment your target has, and test the exploit before hitting the real thing." The copy is only as good as its fidelity, so record how close it was and treat a clean trial as evidence, not a guarantee.

  • The module has the top rank. Can the team skip the rebuilt copy?
    No. The rank is the authors' assessment of crash risk and reliability, and its description says little about files written, configuration changed or log entries. If your build is not on the tested list it still counts as untested. The rank decides how worried to be, not whether to try first.
  • The module's check says the target is vulnerable. Is the exposure now confirmed safely?
    Only at one strength. The documentation says in some cases a flagged target means the check actually exploited the bug, so the check was a run with consequences. Prefer version and configuration evidence that exploits nothing, and record which kind of check you used.
  • An older module carries no declared notes. How do you proceed?
    Treat its consequences as unknown, not as none. Only new modules are required to carry notes. Read the description for the type of bug, assume a crash is possible, try it on the rebuilt copy, and ask the client to agree to the risk beforehand.

A building inspector reads the plans and the age of the wall before opening it, then tries the method on a mock-up. The plans are the module's description and target list, the mock-up is the rebuilt copy, and neither a good reputation nor a quick look through a small hole replaces them.

  • Treats a high rank as proof the exploit is safe on this system
  • Assumes the module will pick the right target automatically
  • Runs the module's check and calls the exposure confirmed without cost
  • Skips the rebuilt copy because the module is widely used
  • Treats a module with no declared notes as having no side effects