Skip to content
Cyber security incidents
ASD ISMISM-1969

ASD ISM 1969 Preventing accidental execution of malicious code

What it says

Malicious code, when stored or communicated, is treated beforehand to prevent accidental execution.

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

In plain English

Treat malicious code before storing or communicating it, for example in a password-protected archive, to prevent it being run by accident.

Malicious code must be treated before it is stored or communicated, to prevent it being run by accident. This covers samples kept or sent on purpose, such as files saved as evidence, attached to a ticket or sent to a vendor. Treated means changed so that a double-click or automatic process will not launch it, for example by copying it straight into a password-protected archive. The timing matters: saving an untreated copy first and archiving it later does not meet the control. ISM-0917 covers infected systems.

Why it matters

A saved or sent sample can be opened by someone who does not know what it is, or launched by a tool that handles the file, turning evidence into a new infection. Treating it first means a stray double-click or preview does not run it.

How to implement

  1. List where samples are stored and how they are sent.

    Include evidence stores, ticket attachments, shared analysis folders, email to vendors and uploads to outside services, including bought ticketing and storage services. Each of these needs the treatment applied before the file gets there.

  2. Choose a treatment method and document it.

    A common method is an encrypted, password-protected archive with a filename that marks it as malicious. The password is there to force a deliberate step, so it does not replace any other protection the file needs.

  3. Agree the route for sending treated samples.

    Gateway content filtering decrypts encrypted files (ISM-1293) and blocks files that are malicious or cannot be inspected (ISM-0651), so agree a route with the gateway owner and recipient first. If a vendor or portal requires a specific format, use it only if that format still prevents accidental execution.

  4. Treat each sample before it moves.

    Do this in the analysis environment ISM-1970 requires, or on the isolated system where it was found, before it goes to storage or is sent. Record the file hash so recipients can confirm they received the same file.

Keep it running

Recheck the method when a new storage location, ticketing tool or recipient is added, especially a tool that unpacks archives automatically. Treat any untreated sample found in storage straight away and record how it got there.

Evidence and audit

  1. Check 1 of 3What an auditor asks for

    Ask for

    A scan of evidence stores, ticket attachments and shared folders, including locations not on the organisation's list, using antivirus and the file hashes of samples named in incident records, with the list of where samples are kept.

    Look at

    Whether any untreated malicious code turns up, and whether every location holding samples is on the list.

    Good evidence

    The scan and hash search find no untreated malicious code in any location, and every location holding samples is on the list.

  2. Check 2 of 3What an auditor asks for

    Ask for

    A harmless test file treated by the organisation's method and placed in a sampled store.

    Look at

    Whether a double-click, preview or automatic processing such as indexing can run it without a deliberate extra step.

    Good evidence

    The file does not run on double-click, preview or automatic processing, and running it requires a deliberate step such as entering the archive password.

  3. Check 3 of 3What an auditor asks for

    Ask for

    Mail gateway, file transfer and evidence store upload logs for samples sent or stored, with the related incident records.

    Look at

    The file type and name at the point of sending or upload, and whether it was treated before that point, not afterwards.

    Good evidence

    Every recorded transfer or upload of a sample shows a treated file at that point, and the logs show no untreated sample being sent or stored.

Mappings

Closest match in ISO/IEC 27001: A.8.7, Protection against malware, which this control partially meets.

ISO 27001

ISO/IEC 27001: 1 mapping

  • A.8.7Protection against malwarePartially meets

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