Suspicious New-PSDrive to Admin Share (via ps_script)

This rule detects threat actors may use to interact with a remote network share using Server Message Block (SMB). The adversary may then perform actions as the logged-on user.

SigmamediumWindowsv1
sigma
title: Suspicious New-PSDrive to Admin Share (via ps_script)
id: 4884621f-f53b-598b-8a99-31347032d81f
status: stable
description: This rule detects threat actors may use to interact with a remote network share using Server Message Block (SMB). The adversary may then perform actions as the logged-on user.
references:
    - https://attack.mitre.org/techniques/T1021/002/
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1021.002/T1021.002.md#atomic-test-2---map-admin-share-powershell
    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-psdrive?view=powershell-7.2
author: Huntrule Team
date: 2026-04-03
tags:
    - attack.lateral-movement
    - attack.t1021.002
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'New-PSDrive'
            - '-psprovider '
            - 'filesystem'
            - '-root '
            - '\\\\'
            - '$'
    condition: selection
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.