System Fingerprinted In One Command
One command line reads the kernel and architecture (uname) together with the CPU count or CPU details (nproc, lscpu, /proc/cpuinfo). Bots do this right after logging in to pick the right payload build and to judge whether the host is worth mining on. Each command alone is everyday admin work, so the rule only fires when both appear in the same line.
Tested
Matches all 4 attack events in match.jsonl and none of the 6 look-alike events in nomatch.jsonl. See the test events.
Seen on the honeypot
In the last 30 days (as of 2026-12-05 00:23:53 UTC) this rule fired in 7,031 sessions (12,836 matching commands), first on 2026-11-08 and last on 2026-12-05.
Most common matching command (URLs and IP addresses in it are defanged; the attackers' source IPs are never published):
/bin/sh -c 'U=$( (command -v uname >/dev/null 2>&1 && uname -a) || head -1 /proc/version 2>/dev/null ); N=$( (command -…
False positives
- Inventory or build scripts that print kernel and CPU details together
Sigma
title: System Fingerprinted In One Command
id: 22c98147-e208-4d3b-93cf-d906bbdd5945
status: experimental
description: |
One command line reads the kernel and architecture (uname) together with the CPU count or CPU details
(nproc, lscpu, /proc/cpuinfo). Bots do this right after logging in to pick the right payload build and
to judge whether the host is worth mining on. Each command alone is everyday admin work, so the rule
only fires when both appear in the same line.
references:
- https://attack.mitre.org/techniques/T1082/
author: Estul Lachin
date: 2026-11-08
tags:
- attack.discovery
- attack.t1082
logsource:
product: cowrie
detection:
selection:
eventid: cowrie.command.input
input|re: '\buname\b'
cpu:
input|re: '\b(nproc|lscpu)\b|/proc/cpuinfo'
condition: selection and cpu
falsepositives:
- Inventory or build scripts that print kernel and CPU details together
level: low
Splunk SPL
``` System Fingerprinted In One Command. Generated from rules/system_fingerprint.yml by tools/build.py; do not edit. ```
index=honeypot sourcetype=cowrie:json eventid="cowrie.command.input"
| regex input="\\buname\\b"
| regex input="\\b(nproc|lscpu)\\b|/proc/cpuinfo"
Microsoft Sentinel KQL
// System Fingerprinted In One Command. Generated from rules/system_fingerprint.yml by tools/build.py; do not edit.
Cowrie_CL
| where (eventid =~ "cowrie.command.input" and input matches regex "\\buname\\b") and input matches regex "\\b(nproc|lscpu)\\b|/proc/cpuinfo"