Linux Pnscan Binary Data Transfer via Command-Line

Flags Linux executions with Pnscan-like arguments indicating binary send/receive data transfer.

FreeReviewedSigma · Medium · v2
Product
linux
Category
process_creation
Author
David Burkett (@signalblur) (SigmaHQ), DRL 1.1
Published
2024-04-16
Updated
2026-07-31
title: Linux Pnscan Binary Data Transfer via Command-Line
id: 206c78a6-ebe7-432d-94eb-b09651f0c469
status: test
description: Identifies process executions whose command line includes patterns consistent with Pnscan sending/receiving binary data over the network. Attackers may use tools like Pnscan to move or stage payload contents in a way that blends into network-adjacent activity. The rule relies on Linux process creation telemetry and matches command-line arguments containing repeated hex byte sequences with a W/R indicator.
author: David Burkett (@signalblur), Huntrule Team
date: 2024-04-16
references:
  - https://www.cadosecurity.com/blog/spinning-yarn-a-new-linux-malware-campaign-targets-docker-apache-hadoop-redis-and-confluence
  - https://intezer.com/wp-content/uploads/2021/09/TeamTNT-Cryptomining-Explosion.pdf
  - https://regex101.com/r/RugQYK/1
  - https://www.virustotal.com/gui/file/beddf70a7bab805f0c0b69ac0989db6755949f9f68525c08cb874988353f78a9/content
  - https://github.com/SigmaHQ/sigma/blob/master/rules/linux/process_creation/proc_creation_lnx_pnscan_binary_cli_pattern.yml
tags:
  - attack.discovery
  - attack.t1046
logsource:
  category: process_creation
  product: linux
detection:
  selection:
    CommandLine|re: -(W|R)\s?(\s|"|')([0-9a-fA-F]{2}\s?){2,20}(\s|"|')
  condition: selection
falsepositives:
  - Unknown
level: medium
license: DRL-1.1
related:
  - id: 97de11cd-4b67-4abf-9a8b-1020e670aa9e
    type: derived