Skip to content
System hardening
ASD ISMISM-1623

ASD ISM 1623 Centralised logging of PowerShell activities

What it says

PowerShell module logging, script block logging and transcription events are centrally logged.

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

In plain English

Send all three PowerShell event types (module logging, script block logging and transcription) to the centralised event logging facility, not only to logs on each device.

PowerShell module logging, script block logging and transcription events must all be centrally logged, meaning sent to the centralised event logging facility (ISM-1405) rather than left on each workstation or server. Module logging records pipeline execution for specified modules. Script block logging records the content of the code PowerShell processes. Transcription captures the input and output of sessions as text files. All three are needed. Analysing the logs is a separate requirement (ISM-0109 for workstations, ISM-1906, ISM-1907 and ISM-1986 for servers).

Why it matters

PowerShell commands can run from memory and leave little on disk, and someone in control of a device can clear its local logs. Central copies of all three event types let defenders see what ran, spot malicious behaviour and piece together an incident afterwards.

How to implement

  1. Check the central facility can hold and protect PowerShell logs.

    Script block and transcript content can be large and can include credentials. ISM-1988 requires logs to stay searchable for at least 12 months, ISM-1815 requires protection from unauthorised changes and deletion, and ISM-1624 requires Protected Event Logging for script block logs.

  2. Turn on all three logging types for each installed PowerShell version.

    In Group Policy under Windows Components, Windows PowerShell, enable Turn on Module Logging (module names *), Turn on PowerShell Script Block Logging and Turn on PowerShell Transcription. PowerShell 7 has its own templates, which can reuse these settings. For PowerShell 7 outside Group Policy, use powershell.config.json.

  3. Forward the event logs to the central facility.

    Collect Microsoft-Windows-PowerShell/Operational, plus PowerShellCore/Operational where PowerShell 7 is installed, with your log agent or event forwarding. Send events as soon as possible (ISM-1983), encrypted in transit (ISM-1984). On Linux or macOS, PowerShell 7 writes to the systemd journal or unified log, so collect from there.

  4. Collect transcripts separately, because they are text files.

    By default they go to each user's Documents folder. Set the policy's output directory to a restricted share your facility reads, or have a log agent collect the files. ISM-1985 requires protection from unauthorised access, so users must not be able to read each other's transcripts.

  5. Cover provider-run servers and stand-alone computers.

    Where a provider runs a server with PowerShell, have it forward these events to your facility. If the contract does not allow that, raise it at renewal and record a known shortfall until then. Bring a stand-alone computer's logs across through your data transfer process (ISM-0663), or record a known shortfall.

Keep it running

Watch for devices that stop sending any of the three event types. A new PowerShell version, which can need its own policy settings, a change of log agent or a new device build should trigger a fresh test from device to facility.

Evidence and audit

  1. Check 1 of 2What an auditor asks for

    Ask for

    A harmless test command from a logged module, run in each installed PowerShell version on a sample of workstations and servers drawn from the IT equipment registers (ISM-0336, ISM-1869) and a discovery scan.

    Look at

    Whether the centralised event logging facility, not the device, holds a module logging event, a script block logging event, decrypted first where Protected Event Logging (ISM-1624) encrypts it, and a transcript for that command.

    Good evidence

    All three records for the test command are in the central facility for every sampled device and PowerShell version.

  2. Check 2 of 2What an auditor asks for

    Ask for

    A report from the facility of which devices have sent each event type, with the IT equipment registers and a discovery scan to compare it with.

    Look at

    Workstations and servers with PowerShell on those lists that are missing any of the three event types.

    Good evidence

    Every workstation and server with PowerShell on those lists has sent all three event types, and a silent device passes only if a test command from it then reaches the facility.

Mappings

Closest match in ASD Essential Eight: E8-AH-ML2.11, Centrally log PowerShell module, script block, and transcription events, which asks for the same thing.

ISO 27001

ISO/IEC 27001: 2 mappings

  • A.8.15LoggingPartially meets
  • A.5.28Collection of evidenceSupported by
Essential Eight

ASD Essential Eight: 2 mappings

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