Skip to content
Software development
ASD ISMISM-2059

ASD ISM 2059 Restrict and scan file uploads for security

What it says

File uploads or input are restricted to specific file types, with malicious content scanning occurring prior to file access, file execution or file storage.

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

What it means

In plain English

Ensure only certain file types are accepted and scanned for viruses before being accessed, executed, or stored.

This control is about making sure that when files are uploaded to your system, only certain types are allowed, and they must be scanned to ensure they're safe. It's important because harmful files could infect your system, leading to data loss or a security breach which could damage your business and reputation.

Why it matters

Unrestricted file uploads can allow malicious files to be stored or executed, leading to malware infection, data loss, and service disruption.

How to implement

  1. The IT team should create a list of acceptable file types for uploads.

    They can do this by consulting with the business manager to identify which file types are necessary for day-to-day operations.

  2. System owners need to implement a file scanning solution to check files for viruses before they're accessed.

    This can be done by integrating antivirus software that automatically scans each uploaded file.

  3. Business managers should establish a policy that educates employees on acceptable file types.

    They can organise short training sessions or create a simple guide to outline this information.

  4. The IT team should test the file upload process to ensure that only the specified file types are accepted.

    They can simulate uploads of different file types and verify that the system rejects disallowed ones.

  5. Security officers must ensure that scanned files are logged and monitored for any suspicious activity.

    They can set up an alert system that notifies them of any unusual activities related to file uploads.

Keep it running

Maintain a strict allow-list of permitted upload types and ensure anti-malware scanning runs before any file is stored, accessed or executed.

Evidence and audit

  1. Check 1 of 5What an auditor asks for

    Ask for

    The file type restriction policy: Request the document detailing which file types are allowed for upload.

    Look at

    The file types listed and check for approvals from system owners.

    Good evidence

    Will include a list approved by relevant authorities and dates of last updates.

  2. Check 2 of 5What an auditor asks for

    Ask for

    Antivirus scan logs: Request recent logs from the antivirus software showing files scanned over a specific period.

    Look at

    The types of files scanned and the results of these scans.

    Good evidence

    Logs showing that allowed file types are scanned and any detected issues are resolved immediately.

  3. Check 3 of 5What an auditor asks for

    Ask for

    Employee training records: Request records showing staff have been trained on file upload policies.

    Look at

    Details on training dates, content covered, and names of attendees.

    Good evidence

    Includes recent training sessions attended by all relevant staff.

  4. Check 4 of 5What an auditor asks for

    Ask for

    Test records of the file upload process: Request documentation or results of tests conducted to ensure only allowed file types are accepted.

    Look at

    How the tests were conducted and what results were achieved.

    Good evidence

    Records of successful tests that demonstrate only specified types are allowed.

  5. Check 5 of 5What an auditor asks for

    Ask for

    File monitoring reports: Request reports that show monitoring of file uploads and any associated alerts.

    Look at

    Alert instances and responses to them.

    Good evidence

    Includes instances of alerts and actions taken to address any issues.

Mappings

Closest match in ISO/IEC 27001: A.8.26, Defining security requirements for applications, which this control partially meets.

ISO 27001

ISO/IEC 27001: 2 mappings

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