Skip to content
System hardening
ASD ISMISM-1245

ASD ISM 1245 Remove temporary installation files after installing server applications

What it says

All temporary installation files created during server application installation processes are removed after server applications have been installed.

Quoted as published. Everything else on this page is written by Control Stack.

In plain English

After a server application is installed, remove every temporary file its installation created, such as unpacked setup packages and staging folders.

All temporary installation files created while a server application is being installed must be removed once the installation is complete. These are files needed only while the installation runs, such as downloaded or unpacked setup packages, staging folders, temporary scripts and response files that record setup choices. All means every such file, wherever the process wrote it, not just the obvious download folder. The installed application and the files it needs to run stay. ISM-2111 sets the same rule for user applications.

Why it matters

Leftover installation files can hold passwords, keys or details of how the application was set up. Removing them leaves less for a malicious actor who later reaches the server to read or reuse.

How to implement

  1. Find out where each installer writes temporary files.

    Read the vendor's installation documentation, then run the installation on a test server and compare file listings taken before and after, so files in system temporary folders and the installing account's profile are found too.

  2. Add a clean-up step to every installation.

    Put it at the end of the build script, template or checklist, deleting each setup package, staging folder, temporary script and response file found in the first step.

  3. Check each installation before go-live.

    Search the server for the known temporary file names and locations. Where a vendor or contractor installs the application, make the clean-up part of the job and check it yourself before accepting the server.

Keep it running

Run the same clean-up whenever an installer runs again, such as for a reinstall or an upgrade, and check new server builds and images for leftover setup files before they go into use.

Evidence and audit

  1. Check 1 of 2What an auditor asks for

    Ask for

    A search of a sample of servers, chosen from a discovery scan, for setup packages, staging folders, temporary scripts and response files left by server application installations.

    Look at

    Whether any temporary installation files remain, in every location the installers use.

    Good evidence

    No temporary installation files remain on any sampled server.

  2. Check 2 of 2What an auditor asks for

    Ask for

    A test installation of a server application, with file listings taken before installation and after the clean-up step.

    Look at

    Every file the installation created that is not part of the installed application.

    Good evidence

    After clean-up, the only files added are the installed application and the files it needs to run.

Mappings

Closest match in ISO/IEC 27001: A.8.19, Installation of software on operational systems, which this control partially meets.

ISO 27001

ISO/IEC 27001: 1 mapping

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.