Sigma rule: Potential Packet Capture Activity Via Start-NetEventSession - ScriptBlock

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-c2641f98dad2, updated 2024-05-12T00:00:00.000Z.

Rule

Title
Potential Packet Capture Activity Via Start-NetEventSession - ScriptBlock
Status
test
Level
medium
Author
frack113
Date
2024-05-12
File
rules/windows/powershell/powershell_script/posh_ps_packet_capture.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the execution of powershell scripts with calls to the "Start-NetEventSession" cmdlet. Which allows an attacker to start event and packet capture for a network event session.
Adversaries may attempt to capture network to gather information over the course of an operation.
Data captured via this technique may include user credentials, especially those sent over an insecure, unencrypted protocol.

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection:
    ScriptBlockText|contains: 'Start-NetEventSession'
condition: selection

False positives (as the rule lists them)

  • Legitimate network diagnostic scripts.

Tags

  • attack.credential-access
  • attack.discovery
  • attack.t1040

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_packet_capture.yml

Sources and licences

  • SigmaHQ

    "Potential Packet Capture Activity Via Start-NetEventSession - ScriptBlock" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_packet_capture.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Potential Packet Capture Activity Via Start-NetEventSession - ScriptBlock",
entity page, dataset version ref-c2641f98dad2, updated 2024-05-12T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/da34e323-1e65-42db-83be-a6725ac2caa3 (accessed 2026-11-03).
Underlying source: SigmaHQ rule da34e323-1e65-42db-83be-a6725ac2caa3, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.