skip to content

A managed-services team re-images six infected laptops and the customer asks whether the file server they mapped must also be rebuilt; what does a re-image remove, and what can it not reach?

level: seniorimportance: should knowfreq 26%

answer

  1. everything resident on that disk
  2. state kept outside the machine
  3. credentials read before the re-image
  4. evidence decides the server

basics

~20 s

A re-image removes everything resident on the laptops' disks, every trigger class included. It cannot reach credentials already read, access used elsewhere or a roaming profile. The server is rebuilt only on evidence of administrator-level access or doubt about its extent.

solid answer

~30 s

A re-image reinstalls the operating system, so per-user and machine-wide autostarts, services and the WMI repository on those disks are gone. It cannot reach what lies outside the machine: passwords or tokens already read and still valid elsewhere, access already used on other hosts, a roaming profile on a server share, and backups that captured the malware. The mapped server is not rebuilt merely because it was mapped. Rebuild it if attackers gained administrator-level access to it or the extent of access is in doubt; otherwise review what the six accounts could write and reset their credentials.

go deeper

for a junior

Recall that a re-image removes what is on the disk, including every start-up trigger on it.

for a middle

Say what a rebuild removes and name one thing it cannot reach, such as stolen credentials or a roaming profile.

for a senior

Separate the laptops' rebuild from the server's decision, using administrator-level access and doubt about extent as the criteria.

for a principal

Set what the customer is told, what is rebuilt on evidence, and which off-host items (credentials, profiles, backups) the plan must also close.

## What a re-image removes The malware-handling guidance says that for many incidents simple disinfection is not feasible, so all infected hosts are rebuilt as part of eradication, and that rebuilding is also the best option when the actions performed on an infected host are unknown. A rebuild reinstalls and secures the operating system and applications, or restores known-good backups, and restores data from known-good backups. For persistence that means every trigger class **resident on that host's disks** disappears together: - per-user autostarts, which live in profiles on the machine; - machine-wide Run keys and the all-users Startup folder; - services in the service control manager's database; - WMI permanent subscriptions in the WMI repository; - scheduled tasks. This is the property that makes rebuilding attractive: the defender does not have to find each trigger. It is also faster in some cases than analysing everything the malware did, especially where hosts are built from standard images. ## What it cannot reach | Left behind | Why a re-image misses it | |---|---| | Credentials already read | They are values held by the attacker, valid on other systems regardless of this disk | | Access already used on other hosts | Whatever was done there happened off the laptop | | A roaming profile on a server share | The server copy is downloaded again at the next sign-in | | Accounts and tokens held by other services | Their state is outside the machine | | Backups holding the malware | Restoring one can bring it back; malware can also sit on removable media for years | None of these is a reason to avoid the re-image. They are the reason the re-image is only one step. ## Is the file server rebuilt too? Mapping a share does not make the server infected. The decision follows the guidance's criteria for rebuilding a host: 1. Did attackers gain **administrator-level access** to it, or was unauthorised administrator-level access available through a backdoor or similar? 2. Were system files replaced? 3. Is there **doubt about the nature and extent** of the infection or access gained? If none holds, the guidance says it is typically sufficient to eradicate rather than rebuild. If any holds, rebuild. For a server only mapped by six laptops, the useful inputs are the rights those six accounts held on it, what they could write, and whether anything ran there. ## Reading the six laptops A useful way to brief the lead is to sort what was found into three piles. First, what lived on the disks: the re-image removes it, whichever class it was. Second, what the six users could reach: their accounts, the share and any services that trusted them, which need credentials reset and access reviewed. Third, what sits outside the laptops but can write back to them: a roaming profile, a backup, removable media. Only the first pile is closed by the re-image itself; the other two are the checklist's remaining lines. ## The answer for the customer - Re-image the six laptops; do not stop at removing the autostart found first. - Check where each user's profile lives, and clean a roaming copy. - Reset the credentials of the six users and of any account that signed in to those laptops, since a rebuild does not undo a read. - Treat the server as a separate decision on evidence, not on the drive mapping. - Restore data only from backups that predate the infection, and data rather than programs where possible. Rebuilding for rootkits and firmware, and sweeping the estate to prove eradication, belong to other material.

  • Why might a re-imaged laptop get the old autostart back at the next sign-in?
    A roaming profile is a server copy downloaded to any computer the user logs onto. If the per-user autostart is stored in it, signing in to the clean laptop downloads it again. The disk was clean; the profile source was not. Check the profile type and clean the server copy.
  • When does the file server itself have to be rebuilt?
    The guidance says to rebuild a host when attackers gained administrator-level access, when system files were replaced, when the host is unstable after cleaning, or when there is doubt about the nature and extent of the access. Without those, it is typically enough to eradicate. Being mapped by infected laptops is not on the list.

  • Re-imaging the laptop also rebuilds the server it mapped
  • A rebuild invalidates credentials already read
  • A clean disk means the roaming profile is clean too
  • Mapping a share makes the server infected
  • After a re-image no other clean-up step is needed