Visuels à partager
Visuels générés automatiquement aux couleurs du CSIRT, prêts à diffuser sur WhatsApp, LinkedIn, X ou Facebook.
En bref
Un rapport du SANS Internet Storm Center analyse des sondes de commandes shell envoyées à un honeypot SSH Cowrie le 27 octobre 2026 depuis l'adresse IP 195.178.110.228. L'analyse montre que ces tests de fonctionnalités de shell mettent en évidence des divergences de comportement permettant potentiellement d'identifier un environnement émulé par rapport à un système Linux réel. La source indique une exploitation active confirmée via le catalogue CISA KEV.
En détail
L'incident s'est produit le 27 octobre 2026 à 04:12:34 UTC, impliquant une connexion sur le service SSH émulé de Cowrie acceptant l'utilisateur root avec le mot de passe 12345678 (session 2df91194d868). Le client a envoyé quatre rounds de vérifications de shell comprenant des tests de sortie simple, d'opérations arithmétiques, de l'identifiant de processus, d'arguments positionnels et d'appels de fonctions, encadrés par des marqueurs de contrôle et de fin.
Les résultats enregistrés par Cowrie diffèrent du comportement d'un shell Linux standard, révélant des pistes d'empreinte de honeypot. Par exemple, l'évaluation arithmétique a renvoyé une parenthèse fermante au lieu du calcul attendu, l'identifiant de processus a renvoyé la chaîne littérale au lieu d'une valeur numérique, et l'utilisation de fonctions a généré des erreurs de commande introuvable. Malgré ces réponses inhabituelles, le client a poursuivi ses actions en tentant de charger un fichier lié à un mineur de cryptomonnaie nommé .16.
L'expérimentation menée en isolant ces sondes dans de vrais shells Linux et dans Cowrie a confirmé un motif de réponse reproductible permettant de séparer l'instance émulée des systèmes réels. La session s'est finalement arrêtée après l'échec d'un changement de permissions, avant qu'une commande de lancement ne soit exécutée dans le laboratoire.
Produits et versions concernés
- Cowrie (honeypot SSH)
Impact
Un attaquant peut identifier la présence d'un environnement émulé ou d'un leurre (honeypot) en analysant les divergences de comportement des commandes shell, et tenter de charger des fichiers malveillants comme des mineurs.
Exploitation
Exploitation active confirmée (catalogue CISA KEV).
Mesures recommandées
- Surveiller les connexions SSH suspectes utilisant des séquences de tests de commandes répétitives ou des marqueurs de contrôle.
- Analyser les journaux des serveurs SSH et des honeypots pour détecter les tentatives d'identification d'environnements émulés.
- Bloquer l'adresse IP source identifiée (195.178.110.228) sur les pare-feux périmétriques.
- Auditer la robustesse des mots de passe des comptes privilégiés pour empêcher l'accès initial par force brute.
- Mettre en place des règles de détection comportementale pour identifier le téléchargement de fichiers liés à des mineurs de cryptomonnaie.
Vérifier son exposition
- Rechercher dans les journaux de connexion les sessions SSH acceptant des identifiants faibles comme root/12345678.
- Analyser les flux de commandes shell à la recherche de séquences incluant des marqueurs de contrôle suivis de tests arithmétiques et d'appels de fonctions.
- Surveiller l'apparition de fichiers suspects nommés .16 ou associés à des activités de minage sur les systèmes.
- Examiner les anomalies de comportement des shells pour identifier d'éventuelles interactions avec des outils d'émulation ou des leurres.
Synthèse rédigée automatiquement à partir de la source officielle. En cas de doute, la source fait foi.
Texte d'origine de la source (en anglais)
[This is a Guest Diary by Trevor Renner, an ISC intern as part of the SANS.edu Bachelor's Degree in Applied Cybersecurity (BACS) program [1]. An SSH visitor tested several shell features on my DShield honeypot, then uploaded a miner-related file named .16 . Cowrie returned unusual responses, but the upload continued. Was the client identifying a honeypot or checking which commands would work? Honeypot fingerprinting means identifying a decoy through differences from a real system. To test that possibility, I replayed only the harmless shell probes in isolated Linux shells and Cowrie. The experiment found a repeatable response pattern that separated the tested Cowrie instance from the real shells. The same pattern appeared in the original recordings. The malicious file was not loaded into the lab or executed. A short session with a clear sequence The main example began at 04:12:34 UTC on October 27, 2026, when %%ip:195.178.110.228%% connected. Cowrie accepted root with the password 12345678 . Cowrie emulates an SSH service, so this acceptance describes the honeypot interaction, not access to the host's real root account. All events below belong to session 2df91194d868 . Figure 1. Main-session timeline on October 27, 2026. Times are UTC, truncated to seconds; events remain in their recorded order. Full timestamps are retained in the evidence. The upload time records Cowrie's upload event, not the start of the transfer. Source: Cowrie JSON events and terminal recordings. The visitor sent 4 rounds of shell checks. Each round tested simple output, arithmetic, the shell's process ID, positional arguments, and a function call, then printed a completion marker. The first 2 rounds used sh -c and printf; the next 2 used direct echo commands. Changing the method may have been an attempt to get usable output when the first method did not work. Listing 1 gives the full third-round commands in their recorded order. The 4 checks in Table 1 appear between the control and completion markers. Comments label the checks; they were added for readability. Each command is unchanged from the terminal input. # Control marker echo 'check_3d32ba80dfc299672b113f70c3c503e0_small_control|check_3d32ba80dfc299672b113f70c3c503e0' # Arithmetic echo 'check_3d32ba80dfc299672b113f70c3c503e0_small_math|'"$((712*177+50))" # Process ID echo 'check_3d32ba80dfc299672b113f70c3c503e0_small_pid|'"$$" # Positional arguments set -- 'check_3d32ba80dfc299672b113f70c3c503e0_arg1' 'check_3d32ba80dfc299672b113f70c3c503e0_arg2'; echo 'check_3d32ba80dfc299672b113f70c3c503e0_small_positional|'"$#|$1|$2" # Function definition and call f_check_3d32ba80dfc299672b113f70c3c503e0() { echo 'check_3d32ba80dfc299672b113f70c3c503e0_small_function|'"$1|$#"; }; f_check_3d32ba80dfc299672b113f70c3c503e0 'check_3d32ba80dfc299672b113f70c3c503e0_function_value' # Completion marker echo 'check_3d32ba80dfc299672b113f70c3c503e0_small_done' Listing 1. All 6 third-round probes from session 2df91194d868. Long commands wrap for display only; each begins on the line below its comment. The arithmetic expression in Listing 1 should produce 126074 . The marker before it lets a client locate the response among prompts and other output. Cowrie returned the marker followed by ) instead. Other checks also exposed differences in shell behavior. Check Expected shell behavior Recorded response Arithmetic Calculate 712 × 177 + 50 as 126074 A closing parenthesis after the marker Process ID using $$ Print the shell's numeric process ID Literal $$ Arguments after set -- Print a count of 2 and the supplied values Environment variables, then literal argument placeholders Function definition and call Print the supplied value and argument count command not found errors Table 1. Third-round checks in the main session, using the matching labeled commands in Listing 1. Expected results were reproduced in the Linux shell experiment described below; recorded responses come from Cowrie's terminal recording. An ISC diary describes other ways attackers exploit Cowrie's simulation gaps to identify it [2]. Its different checks provide context, rather than a match to this tool. The control marker could establish that responses are getting through. The remaining checks test shell behavior. A client could use the results to choose working commands or flag an emulated environment. Switching to direct echo is consistent with trying another method, although a fixed sequence would look the same. The upload continued after the unusual responses. That argues against a simple rule that always stops before uploading when any probe fails. It does not rule out detection followed by a later change, or a client that records the result without stopping. The failed permission change provides another possible reason the session ended before a launch command. Testing the potential fingerprint The experiment asked a narrower question than whether the attacker detected Cowrie: could these probes distinguish its emulated shell from ordinary Linux shells? That question can be tested without running the uploaded file or recreating the attacker's program. I replayed 24 harmless checks from the main session: 4 rounds, each containing a control marker, arithmetic, a process ID, positional arguments, a function call, and a completion marker. The first trial used the original commands. In 2 additional trials, I changed the markers and arithmetic operands to check whether the pattern depended on the original values. Each test mode therefore received 72 checks. Appendices A and B provide the input generator, shell commands, and comparison rules needed to repeat these checks. Its generated commands were compared with the saved test inputs and match all 72 exactly. The comparison used Bash 5.1 and Dash 0.5.11 on Ubuntu 22.04.5, BusyBox 1.37.0 ash on Alpine 3.24.2, and an official Cowrie 3.1.4 container [20]. Bash and Dash were each tested in batch and interactive modes; BusyBox used batch mode. Cowrie received the probes over an interactive SSH session. These 6 modes produced 432 checks in total. Bash documents the expansion rules exercised by the probes [19]. The containers had no external network access or host filesystem mounts. The SSH test client connected to Cowrie over loopback inside its isolated network environment. No malware, upload command, permission change, or payload launch was included. The production honeypot was unchanged. After preserving the results, I removed the temporary Cowrie instance. A repeatable combination of failures All 360 checks against the real shells returned the expected values. Cowrie returned the expected values for 36 of its 72 checks: the control markers, function calls, and completion markers worked, while arithmetic, process IDs, and positional arguments failed. The candidate fingerprint combines 4 observations: the control marker works, $$ remains literal, arithmetic does not produce the expected number, and the positional arguments are incorrect. Requiring the control marker helps distinguish these failures from a connection that is simply not returning output. Environment and modes Checks with expected results Rounds matching the candidate fingerprin Bash: batch and interactive 144 of 144 0 of 24 Dash: batch and interactive 144 of 144 0 of 24 BusyBox ash: batch 72 of 72 0 of 12 Cowrie 3.1.4: interactive SSH 36 of 72 12 of 12 Table 2. Completed laboratory results. A round contains 6 checks. Each mode received 4 rounds in each of 3 trials. These are controlled test counts, not estimates of detection accuracy across other systems. Changing the markers and arithmetic values did not remove the distinction. Interactive Bash and Dash also passed, which reduces the concern that the result arose only from comparing batch commands with an interactive session. For nested sh -c commands, Ubuntu used Dash and Alpine used BusyBox ash. The real-shell controls did not include a full SSH server, so this experiment tests shell responses rather than every part of the SSH connection. The exact failures differed from the original recordings. The original arithmetic response ended with ) , while Cowrie 3.1.4 returned an empty value and a command-not-found error. Both returned literal $$ . The original positional check returned literal $# , $1 , and $2 ; the newer lab returned 0|| , indicating no arguments, alongside an environment listing. Function calls failed in the original recordings but worked in Cowrie 3.1.4. A read-only source check on October 30 identified the sensor checkout as v2.3.0-12-g86488fa . That records its state when checked, not a verified version history for every earlier session. The lab used a separate version and configuration. These differences show why a fingerprint based only on the closing parenthesis or function error would be too narrow. The combination of failed arithmetic, literal process ID, and incorrect arguments was consistent across the original evidence and the newer lab. I checked that combination against both direct-probe rounds in each of the 6 original sessions. It appeared in all 12 recorded rounds. Those historical rounds are separate from the 432 laboratory checks. The commands, raw responses, container image details, and comparison results are retained with the supporting evidence in analysis/fingerprint-lab-2026-10-30/ . What the experiment proves, and what it does not The experiment demonstrates that these probes can reveal an emulated-shell response pattern in the tested environments. It does not establish a unique Cowrie identifier. Other emulators, restricted shells, wrappers, or broken environments could produce similar failures and were not tested. The result gives the fingerprinting explanation a concrete basis: the visitor's commands exposed differences that remained repeatable when the input values changed. Compatibility checking remains plausible too. A client could use the same failures to choose a working command method without labeling the system a honeypot. I did not recover the attacking client, so the replay cannot show how it interpreted the responses. All 6 recorded sessions uploaded the same file after the checks, and the main session ended after a permission failure. The evidence therefore supports a potential fingerprint, but not a claim that detection caused the disconnect or selected the payload. The experiment did not test changes to the attacker's decisions. Executing the retained miner was unnecessary for this experiment and is outside its scope. The uploaded file and the failed permission change At 04:13:12 UTC, Cowrie recorded an SFTP upload. SFTP transfers files through SSH. There was no download URL in this sequence; the connecting client supplied the file directly. { "eventid": "cowrie.session.file_upload", "timestamp": "2026-10-27T04:13:12.419101Z", "src_ip": "195.178.110.228", "session": "2df91194d868", "filename": ".16", "outfile": "var/lib/cowrie/downloads/a151d3f4f2422531f30a843ffb35479596c86722bb103bdf8591105687f9b125", "shasum": "a151d3f4f2422531f30a843ffb35479596c86722bb103bdf8591105687f9b125" } Listing 2. Selected fields from the raw upload event, with values unchanged. Source: cowrie.json.2026-10-27 , line 6479. The outfile value is Cowrie's evidence-storage path. It is not the path requested by the visitor. About 1 second later, the visitor submitted this full compound command: echo '12345678' | sudo -S sh -c 'chmod +x '\''/root/.16'\''' || echo '12345678' | sudo -S chmod +x '/root/.16' || sh -c 'chmod +x '\''/root/.16'\''' || chmod +x '/root/.16' Listing 3. Complete permission-change command from the terminal recording. Long lines wrap for display only. The command tries 4 ways to add execute permission to /root/.16 . The first 2 pass the login password to sudo ; the remaining alternatives try without it. Each || introduces a fallback if the preceding command fails. This prepares a file for execution, but does not itself launch the file. Cowrie returned chmod: cannot access '/root/.16' : No such file or directory twice. The session closed at 04:13:13 UTC. The retained upload proves that Cowrie received the bytes. The shell response shows that its emulated command could not access the requested path. No command invoking .16 appears in this session's command log or terminal recordings. What the retained file suggests The file was inspected without executing it. The retained file is 3,373,344 bytes, about 3.4 MB. Its independently calculated SHA-256 matches Listing 2. Its ELF header identifies a 64-bit x86 Linux executable. It is not a standalone shell script, although readable shell commands are embedded in it. The file contains an XMRig configuration-help URL and the strings stratum+tcp:// and stratum+ssl:// , which are consistent with mining software. XMRig is an open-source CPU/GPU miner [3]. That software has legitimate uses; the surrounding unsolicited upload and text about hiding scheduled jobs are what make this case concerning. Readable content in the retained file What it suggests @reboot and once-per-minute cron entries for /var/tmp/snap and /var/tmp/snapd Restarting programs at boot and keeping them running /etc/systemd/system/system-helper.service and a matching timer Another possible way to restart a program automatically A shell function named crontab that filters snap , snapd , and .X0-lock entries Hiding selected scheduled jobs from ordinary crontab -l output /etc/ld.so.preload A reference to a mechanism that can load a library into dynamically linked programs; the string alone does not prove its use Table 3. Static findings from the retained file. These are contents of the executable, not changes observed on the honeypot. Byte offsets and exact selected strings are preserved in the supporting evidence. Public reports support the mining interpretation. On October 28, VirusTotal showed 36 of 64 vendors flagging this exact hash, including CoinMiner and XMRig-related labels. Its displayed last analysis was October 27 at 15:32:01 UTC [4]. MalwareBazaar identifies the hash as CoinMiner and lists XMRig findings from several analysis services. Its linked sandbox summaries also report cron persistence and changes to Bash startup files [5]. Those are results from other analysis environments. If this payload ran successfully on a compatible Linux system, unauthorized mining and attempts to survive restarts would be plausible outcomes. That could consume processing capacity and raise operating costs. The local session does not establish a mining pool, wallet, successful persistence, or propagation to another device. Could the file spread to other hosts? The additional static review did not establish that this ELF performs the SSH attacks seen by the honeypot. It did reveal SSH-related strings: /etc/ssh/sshd_config , ForceCommand , /usr/local/sbin/ssh-session-gate , and SSH_ORIGINAL_COMMAND . OpenSSH's ForceCommand setting can replace a client's requested command [18]. An embedded shell condition checks incoming SSH sessions and exits for some noninteractive commands while allowing named file-transfer commands. This suggests control over access to an infected host, rather than demonstrating attacks against new hosts. The file also names scp , rsync , and SFTP server programs. Those names alone do not prove spreading. The printable-string review found no small_math , small_positional , or small_function markers linking the ELF to the observed probes, and did not establish a target-selection or password-guessing routine. Compiled or hidden code could still contain such behavior; this was not a full code analysis. The public Joe Sandbox report matches the exact SHA-256 and classifies the file as an XMRig miner. Its summary lists cron, Bash startup, and dynamic-linker files, but does not demonstrate SSH propagation [20]. On the available evidence, a separate deployment tool delivering this miner is a plausible explanation. Establishing that link would require evidence of an outbound attack routine in the file or a reliable external analysis of that behavior. The static review did not establish it, and the shell-probe experiment did not execute the ELF. The same pattern from 6 source addresses The collected October 20-28 logs contain 6 uploads of this hash, each in a different session from a different source IP. They occurred on October 25-28. All 6 repeated the shell-check pattern, uploaded .16 , and attempted a permission change. The marker values, arithmetic operands, and login credentials varied. The final session targeted /dev/shm/.16 ; the other 5 targeted /root/.16 . Upload time in UTC Source IP Session Oct 25 00:04:35 %%ip:92.118.39.77%% 45a16388c703 Oct 25 10:09:15 %%ip:195.178.110.227%% 75160b122057 Oct 25 16:41:28 %%ip:80.94.92.55%% e25c25acee87 Oct 27 04:13:12 %%ip:195.178.110.228%% 2df91194d868 Oct 27 13:25:42 %%ip:80.94.92.234%% 8316fc380702 Oct 28 14:11:28 %%ip:92.118.39.14%% 40d224d4f15d Table 4. All 6 matching uploads in the collected logs. Times are truncated to seconds; full timestamps are retained in the evidence. Each upload has the same SHA-256 shown in Listing 2. The repeated structure and identical file support a shared automated workflow, although they do not identify its operator. All 6 clients advertised SSH-2.0-Go , which is consistent with an SSH client written in Go. A banner can be reused or changed, so it cannot identify a malware family on its own. RIPE's routing records, checked on October 28, place 195.178.110.0/24 under AS48090, DMZHOST TECHOFF SRV LIMITED . The other 2 source ranges, 92.118.39.0/24 and 80.94.92.0/24 , were announced by AS47890, UNMANAGED LTD [6-8]. These are network operators associated with hosted servers, which makes rented infrastructure a plausible explanation for the sources. Shodan adds service context. Its records for %%ip:195.178.110.228%%, %%ip:80.94.92.55%%, and %%ip:92.118.39.77%% show TCP %%port:22%% with an OpenSSH 8.9p1 Ubuntu banner. Those observations date to October 22, 21, and 19 respectively. Shodan also tags the first and third addresses as scanners [9-11]. VirusTotal flagged all 6 source IPs, with 11-14 of 92 vendors reporting them as malicious when checked on October 28 [12-17]. These records describe infrastructure and reported activity, not who controlled the machines. Compromised servers are another possibility. An open SSH service and a poor reputation cannot distinguish a compromised host from a server rented for scanning. That would require evidence from the source systems or their providers. The hosted SSH banners also do not establish an exploitable vulnerability. What defenders can use Linux administrators should restrict SSH access to trusted networks and use keys. Review PasswordAuthentication , KbdInteractiveAuthentication , and PermitRootLogin , testing key access before disabling password access [18]. These settings protect a real OpenSSH server; they do not configure Cowrie's emulated service. Analysts can correlate login, shell probes, SFTP transfer, and permission changes. A shell command log alone may miss the transfer. Process records would help establish later execution on a real host. The changing markers are less useful for detection than the command sequence and file hash. For honeypot operators, these results show the value of checking the responses that visitors receive. A working prompt and successful login can still expose incomplete shell behavior. Testing several related features is more informative than searching for 1 fixed error message, especially when behavior changes between versions. The probe order, marker format, fallback commands, and payload hash may also help group activity from a shared deployment tool. That is a separate use of fingerprinting: recognizing a pattern in the client, rather than identifying a honeypot. The repeated pattern does not identify its operator or prove that the retained miner contains the deployment logic. The completed experiment found a candidate fingerprint in every tested Cowrie round and none of the