Skip to main content

Cowrie Honeypot Fingerprinting: Analyzing SSH Shell Probes

3 min read Runtime Rebel Intel
Primary source: isc.sans.edu

This article was written by a language model from the source above and was not reviewed by a human before publication. Verify anything operational against the original. Editorial policy

Key points
  • Immediate impact: Researchers identified repeatable behavioral patterns that allow threat actors to distinguish Cowrie SSH honeypots from genuine Linux systems.
  • Affected systems: Cowrie SSH honeypot simulation software running standard emulation configurations.
  • Remediation: Security teams should review honeypot telemetry and understand simulation gaps to better assess decoy fidelity.

Advertisement

Overview of Honeypot Fingerprinting

Recent analysis published in a SANS Internet Storm Center guest diary by intern Trevor Renner details how attackers probe SSH services to identify decoys (SANS ISC Diary). During routine monitoring of a DShield honeypot running the Cowrie SSH emulation software, an attacker from IP address 195.178.110.228 tested various shell features before attempting to upload a miner-related file named .16.

This activity highlights a persistent challenge in deception technology: honeypot fingerprinting. Attackers increasingly probe infrastructure to determine whether they have accessed a real production server or an emulated environment designed to monitor their tactics, techniques, and procedures (TTPs).

Technical Analysis of Shell Probes

During the recorded session, the visitor executed four rounds of shell checks designed to test output handling, arithmetic evaluation, process IDs, positional arguments, and function calls. The attacker initially used sh -c alongside printf before transitioning directly to echo commands in subsequent rounds, potentially attempting to elicit functional output when initial methods returned unexpected results.

To determine whether these specific probes could reliably separate Cowrie from genuine operating systems, researchers conducted controlled experiments across multiple environments:

  • Tested Shells: Bash 5.1 and Dash 0.5.11 on Ubuntu 22.04.5, as well as BusyBox 1.37.0 ash on Alpine 3.24.2.
  • Decop Emulation: An official Cowrie 3.1.4 container.

While real Linux shells successfully processed all 360 test checks, the Cowrie instance failed half of its 72 evaluations. Specifically, while control markers, function calls, and completion markers functioned as expected, arithmetic operations, process ID expansions ($$), and positional arguments exposed discrepancies.

The Candidate Fingerprint

The research established a composite indicator that attackers could leverage to flag the decoy:

  1. Control markers execute successfully, confirming the session is responsive.
  2. Process ID expansions like $$ remain literal rather than evaluating to the PID.
  3. Arithmetic expressions fail to compute the expected mathematical output (for instance, returning a closing parenthesis character instead of the evaluated sum).
  4. Positional arguments return incorrect evaluations.

Interestingly, the attacker continued with the file upload phase despite receiving these unusual responses, demonstrating that encountering simulation anomalies does not always cause automated scripts to immediately terminate execution.

Defensive Recommendations

Defenders deploying deception infrastructure must account for simulation artifacts to maintain the integrity of their environments. Organisations utilising Cowrie or similar SSH decoys should consider the following guidance:

  • Monitor Evasion Tactics: Regularly review honeypot logs for reconnaissance patterns, including structured arithmetic probes and shell feature checks.
  • Improve Fidelity: Where possible, tune emulation software to minimise behavioural gaps between decoy shells and standard production distributions.
  • Combine Deception Layers: Do not rely solely on network-level SSH simulation; integrate endpoint and network monitoring to capture full attacker intent even if a honeypot is identified.

Related: CLOSEDQUORUM: Autonomous AI C2 Implant Redefines Cyber Operations, New Linux Backdoors Mimic Asian Mail Security Products

Advertisement

Advertisement