Diaries

Published: 2026-12-04

Exposing a Vulnerable Keycloak Server to the Internet

About two weeks ago, the "Java4Shell" vulnerability was announced and patched (CVE-2026-114938). This memory corruption vulnerability in Java's BASE64 decoder can be exploited by passing specially crafted BASE64 strings to a Java application. Web applications do, of course, love to use BASE64, and are often exposed. One application specifically identified as vulnerable and exploitable was Keycloak. So I decided to expose a vulnerable Keycloak instance to the internet to see what happens. Below is the summary of the attacks we have seen.

The setup used Keycloak behind a mitmproxy. I like mitmproxy as it logs complete requests in easy-to-parse JSON, and it does allow me to offer a proper TLS configuration to the attacker, not asking them to risk their l33t spl01ts by exposing them in the clear. 

No, I did not see ANY Java4Shell exploits. Of approximately 30,000 requests, only 1,532 were specific to Keycloak. Of those, many came from internet-wide "research" scans such as Palo Alto's Cortex Xpanse, or were otherwise classified as reconnaissance aimed at identifying the Keycloak version and configuration.

Vulnerability Scan10,797Generic fingerprinting (/, favicon, robots, in7,078ASUS router CVE/brute force6,454Citrix/Fortinet/Exchange/VPN probes1,957Keycloak console/realm/asset recon1,252Secrets/config file hunting (.env, .git)1,187CMS/admin-panel hunting (WordPress, cPanel, ge988API/debug/framework probing (GraphQL, actuator977Keycloak recon scans (/auth, /keycloak276Odd HTTP verbs91Admin-cli password guess4

(red: Keycloak Specific)

Only four requests attempted to log in. Oddly enough, the most common attack targeted ASUS routers, not Keycloak:

GET /SETTINGS.CFG HTTP/1.1
Host: [redacted]:8443
User-Agent: asusrouter--
Connection: close
Cookie: asus_token=\0Invalid; clickedItem_tab=0
Referer: https://[redacted]:8443
Accept-Encoding: gzip

This is a simple authentication-bypass vulnerability that is currently being heavily exploited.

I did find 13 distinct BASE64 encoded payloads. But none of them indicates Java4Shell. ASUS is again featured prominently with requests like:

SETROOTCERTIFICATE /favicon.ico/ HTTP/1.0
Host: 73.148.200.126
Content-Length: 935
Connection: close

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><content><key>-----BEGIN RSA PRIVATE KEY-----id</key><cert>#!/bin/sh
#-----BEGIN CERTIFICATE-----

echo YT1YN2..[part omitted]...tkb25l|base64 -d|sh
</cert><intermediate_crt>-----BEGIN CERTIFICATE-----</intermediate_crt></content>

This somewhat odd "SETROOTCERTIFICATE" can be used on affected ASUS routers running AICloud. I shortened the base64 part for readability. In short, it is a botnet that replicates and is unrelated to Java.

In addition, some Next.JS/React Server payload, and of course scans for credential files, some of which appear to use Base64 encoding to brute-force authentication headers.

Lesson to me: Some old random ASUS router that an employee may have left behind in your network ("I just wanted WiFi in the office") is more likely to do you in than the latest Java4Shell hype vulnerability.

--
Johannes B. Ullrich, Ph.D. , Dean of Research, SANS.edu
Twitter|

0 Comments

Published: 2026-12-03

'Yes!': A Look, a Nod, and a Nudge to Dig Deeper

The first time I met Dr. Ullrich was on a call about an internship with the Internet Storm Center. I already knew the ISC through its many publications, skilled handlers, and daily Stormcast. It was my first time diving deeply into honeypot data and exploring many services that the ISC provides.

The Internet Storm Center provided a constant stream of information that sometimes felt a little overwhelming. I would read diaries covering familiar topics alongside others that seemed far over my head. But that's a good place to be when you are trying to learn, and I think that desire to keep learning is one of the things that brings people to the ISC.

I have now been a handler for a little over four years, after originally being encouraged by Johannes to consider joining. It is often difficult for me to feel completely ready for something, but I took the plunge to see how I could contribute to the Internet Storm Center and add to its collective knowledge.

During my internship, I would anxiously wait for feedback on a diary or assignment. Johannes’s comments were often brief and to the point. One day, I opened a reviewed assignment and saw only one word written on the side of the page:

“Yes!”

It is those small notes from Johannes that I will remember most. It was as if he communicated with a look and a nod that I was on the right path and should dig deeper. During that internship, he helped me investigate the use of WordPress in phishing campaigns and the use of Twitter, now X, to solicit fraudulent donations related to the war in Ukraine. Those experiences taught me not only about the subjects themselves, but also how to follow an observation, ask better questions, and turn what I learned into something useful for others.

Johannes has supported the ISC and its handlers in countless ways. He has worked diligently to share knowledge, support research, and give others opportunities to contribute their own knowledge and perspectives. He's helped many people collect their own attack data through easy-to-install DShield honeypots. In addition to supporting attack research, these honeypots have provided hands-on learning opportunities for students in educational programs beyond SANS. It is hard to know where the Internet Storm Center ends and Johannes begins, or vice versa. Building and sustaining something like the ISC has taken an extraordinary amount of time and dedication. Honestly, I am not sure if he sleeps.

It has been a pleasure and a privilege to work with Johannes and get to know him over the years. He has had a tremendous impact throughout the cybersecurity world, and that influence will continue through the people he encouraged, the knowledge he shared, and the community he helped build.

Thank you for everything, Johannes!

 

--
Jesse La Grew
Senior Handler

0 Comments

Published: 2026-12-03

[Guest Diary] Shell probes exposed a potential honeypot fingerprint

[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 real-shell rounds. The same combination appeared in all 12 direct-probe rounds from the original sessions. This establishes that the probes could expose shell emulation without executing the malicious file. Whether the attacker used that information to detect the honeypot or simply choose commands remains unresolved.

Appendix A Repeating the shell checks

The following Python 3 code recreates the exact inputs used on October 30. Save Listings A1 and A2, in that order, in one file named make-probes.py. Run python3 make-probes.py in an empty working directory. It writes trial-0.sh, trial-1.sh, and trial-2.sh; it does not execute them. Each file contains 24 commands in recorded check order. Trial 0 reproduces the original 4 rounds, including Listing 1. Trials 1 and 2 reproduce the changed markers and arithmetic operands used in the experiment.

Rounds 1 and 2 use nested sh -c commands with printf; rounds 3 and 4 use direct echo commands. The quoting is part of the test. In particular, $$, $#, $1, and $2 must reach the tested shell without expansion by an outer shell. The generator preserves that quoting and emits each command on one line.
 

from pathlib import Path
import hashlib
import shlex


def round_commands(m, expr, nested):
    if nested:
        fmt = "'\\n%s|%s\\n'"
        commands = [
            f"printf {fmt} '{m}_small_control' '{m}'",
            f'printf {fmt} \'{m}_small_math\' "$(({expr}))"',
            f'printf {fmt} \'{m}_small_pid\' "$$"',
            f"set -- '{m}_arg1' '{m}_arg2'; "
            f'printf {fmt} \'{m}_small_positional\' "$#|$1|$2"',
            f"f_{m}() {{ printf {fmt} '{m}_small_function' "
            f'"$1|$#"; }}; f_{m} \'{m}_function_value\'',
            f"printf '\\n%s\\n' '{m}_small_done'",
        ]
        return ['sh -c ' + shlex.quote(c) for c in commands]
    return [
        f"echo '{m}_small_control|{m}'",
        f'echo \'{m}_small_math|\'"$(({expr}))"',
        f'echo \'{m}_small_pid|\'"$$"',
        f"set -- '{m}_arg1' '{m}_arg2'; "
        f'echo \'{m}_small_positional|\'"$#|$1|$2"',
        f"f_{m}() {{ echo '{m}_small_function|'"
        f'"$1|$#"; }}; f_{m} \'{m}_function_value\'',
        f"echo '{m}_small_done'",
    ]

Listing A1. Input generator, part 1. This function constructs the 6 harmless checks for either command method.

 

original = [
    ('check_23c5635a4e9a52b4789acd763c3d7088', '185*660+40'),
    ('check_30d02896e741e7d783b8ed24d0a93ad6', '533*481+81'),
    ('check_3d32ba80dfc299672b113f70c3c503e0', '712*177+50'),
    ('check_85ba1a75103036f4b4d6400de241fd14', '337*828+91'),
]

for trial in range(3):
    commands = []
    for i, (m, expr) in enumerate(original):
        if trial:
            seed = f'fingerprint-lab-{trial}-{i}'.encode()
            m = 'check_' + hashlib.sha256(seed).hexdigest()[:32]
            expr = f'{173+trial*11+i}*{37+i}+{9+trial}'
        commands.extend(round_commands(m, expr, i < 2))
    Path(f'trial-{trial}.sh').write_text('\n'.join(commands) + '\n')

Listing A2. Input generator, part 2. Original markers and operands are literal values from the main session. The deterministic changes reproduce trials 1 and 2.

 

The saved files number trials from 0 through 2. In the generator, i numbers rounds from 0 through 3. Each generated round has a control, arithmetic, process-ID, positional-argument, function, and completion check, in that order. The original arithmetic answers are 122140, 256454, 126074, and 279127. Trial 1 expects 6818, 7040, 7264, and 7490; trial 2 expects 7226, 7459, 7694, and 7931.
 

Appendix B Running and comparing the checks

To replicate these experiments in your own isolated lab, follow the steps below using disposable Linux environments with the versions listed in the testing section. For the batch tests, you can run the commands below inside the matching environment. Each loop starts a new shell for each trial and keeps the 24 checks together in that shell. The BusyBox image was used only for its shell, with its normal application entrypoint bypassed.

# Ubuntu: Bash batch
for t in 0 1 2; do
  /bin/bash --noprofile --norc -s < "trial-$t.sh" \
    > "bash-$t.txt" 2>&1
done

# Ubuntu: Dash batch
for t in 0 1 2; do
  /bin/dash -s < "trial-$t.sh" > "dash-$t.txt" 2>&1
done

# Alpine: BusyBox ash batch
for t in 0 1 2; do
  /bin/busybox sh -s < "trial-$t.sh" \
    > "ash-$t.txt" 2>&1
done

Listing B1. Batch replay commands. These instructions reproduce the probe order and shell invocations; the original automated runner also placed diagnostic boundary markers around each check.

 

To repeat the interactive controls, start with either command in Listing B2 in a terminal. Send the 24 lines from one trial file individually, waiting for LAB_PROMPT>  after each line. Capture the response before sending the next command, then enter exit. Start a fresh shell for the next trial. Repeat for Bash and Dash. The original runner used Python pexpect with terminal echo disabled, a 24-row by 240-column terminal, and a 5-second prompt timeout. Redirecting a whole file to an interactive shell is not the same terminal-mode control.

# Ubuntu: Bash interactive
env PS1='LAB_PROMPT> ' PS2='LAB_CONT> ' HOME=/tmp \
  TERM=dumb ENV='' BASH_ENV='' \
  /bin/bash --noprofile --norc -i

# Ubuntu: Dash interactive
env PS1='LAB_PROMPT> ' PS2='LAB_CONT> ' HOME=/tmp \
  TERM=dumb ENV='' BASH_ENV='' /bin/dash -i

Listing B2. Interactive shell invocations and prompt settings used by the terminal-mode controls.

 

To repeat the Cowrie test, use an isolated Cowrie 3.1.4 instance in emulated-shell mode, listening on %%port:2222%%. The recorded official image was cowrie/cowrie@sha256:baf351038db967704dfa39f7ce860e8875c9456cdab72a9d3257c4247211050d, revision 085ed091a84ae1cee7f15b6e8aa549d11826a0f7. Run the SSH client inside the same network-disabled container namespace, so 127.0.0.1 reaches only the lab. Do not publish the SSH port or point the replay at the production honeypot.

ssh -tt -p 2222 \
  -o StrictHostKeyChecking=no \
  -o UserKnownHostsFile=/dev/null \
  -o PreferredAuthentications=password \
  -o PubkeyAuthentication=no \
  -o ConnectTimeout=5 root@127.0.0.1

Listing B3. The SSH invocation used for the Cowrie replay. Host-key checking was disabled only for the disposable loopback lab.

 

The lab accepted root with fingerprint-lab-only. After the prompt appeared, the runner sent one generated command at a time and waited for a root prompt matching root@[^\r\n]+[#$] . It used an 8-second prompt timeout and the same terminal dimensions as the interactive controls. It captured each response, sent exit after 24 checks, and opened a fresh SSH session for each trial. This gives 72 checks per mode and 432 across all 6 modes.

The original Linux shell containers used --network none, --read-only, --cap-drop ALL, --security-opt no-new-privileges, --user 65534:65534, --memory 128m, and --cpus 1, with no host mounts. The SSH client used those restrictions with --network container:dshield-fingerprint-cowrie in place of --network none. Cowrie had disposable writable state. If you use an automated client like the one in this experiment, prepare its dependencies before isolation: Python 3, pexpect, and OpenSSH. You can also use the commands above to replay the checks manually.

When comparing results, look at the returned values rather than the terminal's echoed input. Strip ANSI control sequences and carriage returns, then find the last output line equal to the check marker or beginning with that marker followed by |. Remove that prefix and separator. For the control check, expect the round marker. For arithmetic, expect the calculated integer. For the process ID, expect a nonempty decimal number; its exact value changes. For positional arguments, expect 2|MARKER_arg1|MARKER_arg2, replacing MARKER with the round's actual marker. For the function, expect MARKER_function_value|1. The completion marker has no value after it.

A round matches the candidate fingerprint only when the control matches, the process-ID value is literal $$, and both arithmetic and positional arguments differ from their expected values. Function and completion results are recorded but are not part of that rule. Keep all 6 outcomes for each round, including errors, so a missing response is distinguishable from a wrong value. Table 2 reports the original October 30 measurements. The November 4 update adds the commands and reproduction instructions; it does not add a new experiment or change those results.

References

Original enrichment was checked on October 28, 2026. MalwareBazaar was rechecked on October 30; the Bash manual, OpenSSH manual, Joe Sandbox summary, and official Cowrie repository were also consulted for this revision. Scan dates are stated in the text where they affect interpretation.

ChatGPT was used for assistance with log analysis and correlation, drafting, proofreading, and editing.

[1] https://www.sans.edu/cyber-security-programs/bachelors-degree/
[2] https://isc.sans.edu/diary/32878
[3] https://xmrig.com/docs/miner
[4] https://www.virustotal.com/gui/file/a151d3f4f2422531f30a843ffb35479596c86722bb103bdf8591105687f9b125
[5] https://bazaar.abuse.ch/sample/a151d3f4f2422531f30a843ffb35479596c86722bb103bdf8591105687f9b125/
[6] https://stat.ripe.net/data/prefix-overview/data.json?resource=195.178.110.228
[7] https://stat.ripe.net/data/prefix-overview/data.json?resource=92.118.39.77
[8] https://stat.ripe.net/data/prefix-overview/data.json?resource=80.94.92.55
[9] https://www.shodan.io/host/195.178.110.228
[10] https://www.shodan.io/host/80.94.92.55
[11] https://www.shodan.io/host/92.118.39.77
[12] https://www.virustotal.com/gui/ip-address/92.118.39.77
[13] https://www.virustotal.com/gui/ip-address/195.178.110.227
[14] https://www.virustotal.com/gui/ip-address/80.94.92.55
[15] https://www.virustotal.com/gui/ip-address/195.178.110.228
[16] https://www.virustotal.com/gui/ip-address/80.94.92.234
[17] https://www.virustotal.com/gui/ip-address/92.118.39.14
[18] https://man.openbsd.org/sshd_config
[19] https://www.gnu.org/s/bash/manual/bash.html
[20] https://www.joesandbox.com/analysis/1977190
[21] https://github.com/cowrie/cowrie

 

--
Jesse La Grew
Senior Handler

0 Comments

Published: 2026-12-02

SSH Bots Are Guessing Passwords for AI Agents' Accounts

People who've set up an AI agent on a Linux server in 2026 may have created a local account for it using the account name from a setup guide. Bots that guess SSH passwords on %%port:22%% have been trying two of those usernames, claude and openclaw, far more often than before.

Both names are on ISC's top 100 list.

ISC publishes the top 100 usernames that DShield sensors recorded in SSH and Telnet login attempts this year. As of December 2, claude was 20th on that list, and openclaw was 84th. Here are selected ranks:

Rank Username Attempts in 2026
1 root 147.6 million
2 admin 36.4 million
8 postgres 3.4 million
18 mysql 1.7 million
20 claude 1.4 million
24 pi 1.3 million
84 openclaw 445,000

DShield had little to record for either username before 2026. Perhaps because Claude is a first name that existed before Anthropic used it for its AI assistant, DShield sensors saw roughly 36,000 login attempts for it from March 2015 through the end of 2025. The sensors first saw openclaw on February 21, 2026, 23 days after Peter Steinberger renamed his project to OpenClaw.

Login attempts for claude rose sharply on January 3.

DShield sensors recorded just about 100 login attempts for the username claude on January 2, 2026, then saw a spike to about 32,000 the next day. Bots from over 2,000 IPs tried the username on January 3, nearly 50 times as many as the day before. The reason for the sudden jump is unclear. The numbers decreased after five days, but remained high (at 70,000 to 120,000 per month) from March through November.

Login attempts per month for claude and openclaw, recorded by DShield sensors

The bots used the same list of usernames.

My SSH honeypot observed repeated login attempts that included claude and openclaw every day from November 6 to December 2. Bots from at least 44 IPs used the same list of usernames and passwords. I pieced together this list from those login attempts and posted the 421 usernames; the CSV file includes the number of passwords the bots used for each username.

The bots tried 11 passwords for claude, including claude, claude123, password, and 123456. They tried six for openclaw, including openclaw, 1, and 123456.

The agent's account gets sudo in the setup guides.

Guides for setting up AI agents on Linux often advise setting up dedicated user accounts for the agents, suggesting the agent's name as the username. They also give the account sudo access, which allows it to run privileged commands on the system.

All five guides I reviewed (1, 2, 3, 4, 5) included the following commands, with openclaw or claude as the username:

adduser openclaw
usermod -aG sudo openclaw

The bots that logged into my SSH honeypot often tried to use sudo for the user account that they logged in with. Unfortunately, only two of the five guides included steps for disabling SSH password logins. If the account also has sudo access, a bot that manages to SSH into the AI agent's system will be able to gain privileged access on it.

Check your servers for these accounts.

Look for local accounts named after the AI agents that you run on Linux servers. Besides claude and openclaw, the bots' list of 421 usernames has other names tied to AI tools: clawdbot, claw, cursor, codex, hermes, aiuser, agent, ai, bot, and nvidia.

For the accounts you find, disable password-based authentication, if practical, or set up a long, complex password. If the agent only works locally, remove SSH access from its account altogether. While you're at it, check whether you can remove sudo privileges from the AI agents' accounts. And check your SSH logs for anomalous logins.

-- Lenny Zeltser

2 Comments

Published: 2026-12-01

A few words about Johannes and the Internet Storm Center

As some of you may already know, Dr. Johannes Ullrich will be stepping down as the director of the Internet Storm Center at the end of this year. Due to this development, we will be publishing a somewhat special series of diaries throughout December, in addition to the usual diaries dealing with various aspects of cyber security. In these short articles, a number of current as well as former ISC handlers will share some of their memories related to the Internet Storm Center, its history, its community and, of course, Johannes.

It is my honor to contribute the first of these diaries…

Although I’ve been an ISC handler for quite a few years now, which has given me the opportunity to work closely with Johannes, and although I still listen to the Stormcast on a regular basis, whenever someone mentions Johannes to me, my mind invariably goes back to a time when I was taking my first steps in the field of cyber security.

As one tends to do when starting out in a new field, I spent quite a bit of time looking for interesting and trustworthy sources of information, and somewhere along the way, I came across the Internet Storm Center and the Stormcast.

Back in the days when cyber security podcasts weren't a dime a dozen, the fact that I could suddenly get a short lesson every day on what was new in the field, why it was important and how some of the underlying technologies and attacks actually worked – all free of charge – was a source of considerable joy to me (and, hopefully, a source of at least some knowledge as well)…

Although the number of freely available resources for those interested in cyber security has increased immensely over the past decade, I believe that both the Internet Storm Center and the Stormcast are still among the best resources one can recommend to someone who is just starting out in our field, as well as to those of us who are well past that point.

Given how well known Johannes is within the cyber security community, it might seem somewhat strange to refer to him as one of the “unsung heroes” of our field. Nevertheless, I believe he is one, if only because I doubt that many of us who have benefited from his work over the years have ever stopped to consider just how much we have learned thanks to him.

While I am certainly sorry to see Johannes step down as the director of the ISC, I am quite happy to have had the opportunity to become a small part of what he – along with many others – has built over the past quarter of a century.

Thank you, Johannes, and best of luck on the next stage of your journey, wherever it may lead you…

-----------
Jan Kopriva
LinkedIn
Nettles Consulting

2 Comments

Published: 2026-12-01

When a "significant" cryptographic weakness is not a critical cyber security issue

Over the past couple of months, we’ve seen quite a few examples of AI-assisted research yielding results, which had previously eluded human researchers – whether in the form of identification of vulnerabilities in the Linux kernel[1], discovery of new exploitation vectors for vulnerabilities in PHP[2], or – somewhat outside of the realm of cyber security, though not entirely unrelated to it – the recent proof of the Riemann hypothesis[3,4] and the reported proof of the VP ≠ VNP conjecture[5].

There is therefore little doubt at this point that AI will be quite useful – among other things – in the context of vulnerability research. Nevertheless, given the somewhat “aggressive” marketing of most of the companies that currently develop frontier models, it might be worthwhile for us to be a little more careful when it comes to interpreting news of what these tools have managed to achieve.

A good example of why this is the case could be seen over the past few days.

Rumors about AI models “breaking” various cryptographic algorithms had been circulating online since at least November 15th[6]. On November 25th, Scott Aaronson, a scientist specializing in quantum computing, mentioned having heard from multiple reliable sources about as yet unpublished breakthroughs in the area of cryptanalysis, though he was much less certain about their exact nature[7]. And although Aaronson explicitly cautioned against spreading unverified rumors, by November 26th, there were already posts on X suggesting that one of the frontier AI labs had managed to break RSA-2048[8].

As we now know, Anthropic had shared the results of its research into lattice cryptography with a number of cryptographers as early as November 16th[9]. Since the results themselves were not publicly available, however, speculation about what Anthropic had discovered and the aforementioned rumors about RSA gradually became intertwined[10]. The latter were further fueled by – among others – Elon Musk on November 29th[11], and eventually made their way into mainstream media[12].

Interestingly enough, reports of the aforementioned discovery were also among the factors contributing to an approximately 16% increase in Anthropic’s stock price on November 30th[13]…

Nevertheless, some of the panic was alleviated yesterday by a post on X by a cryptographer, Nadim Kobeissi[14], who had apparently had a chance to familiarize himself with the research results and pointed out that – although they were quite significant – they had nothing to do with RSA.

And when Anthropic finally published its findings[15], it turned out that this was truly the case. The most noteworthy of the research findings was not RSA-breaking weakness, but “only” a new quantum algorithm for solving certain problems related to structured lattices, on which two of the current post-quantum cryptographic standards (ML-KEM and ML-DSA) are based.

The interesting aspect of the algorithm is that, although it is asymptotically faster than previously known algorithms (with respect to one of the parameters), for the parameter sets used in the aforementioned cryptographic standards, it actually requires significantly more computational resources than previously known attacks… And even those are nowhere near being feasible at this point in time. According to the initial assessment published by the Cryptography Incident Review Group, even 2^1000 quantum operations would be insufficient to carry out the new attack against ML-KEM-512 or ML-DSA-44[9]…

While this hardly makes the discovery any less interesting or significant from the point of view of a cryptologist, from the point of view of a cyber security specialist responsible for the security of an organization's infrastructure, its immediate significance is close to zero.

And this is a distinction which I believe we will increasingly have to make in the coming months and years. AI-assisted research will undoubtedly lead to the discovery of many more cryptographic weaknesses, and if information about these is disseminated in a similar manner as it was in this case, we might quite frequently get the impression that the sky is about to fall. We will therefore need to be careful about distinguishing between situations in which this might actually be the case and those in which we should only expect a “possibility of rain 20 years from now”…

Although cryptology and cyber security are closely related fields, what might be considered a major breakthrough in cryptanalysis need not necessarily translate into a significant increase in risk to any of the systems we currently use. There is, after all, quite a difference between the possibility of breaking a cryptographic algorithm using computational resources which we might not have at our disposal for another decade and the possibility of someone doing so tomorrow.

This is not to say that we shouldn't take the former into account when designing systems which we expect to be secure a decade from now, of course. In fact, it is worth mentioning that one of the recommendations published by the aforementioned group of cryptographers yesterday was to continue with the transition to post-quantum cryptography[9].

Nevertheless, given how many similarly significant discoveries we are likely to see over the coming years, going back to primary sources, trying to determine what has actually been discovered (and, perhaps more importantly, what hasn't) and refraining from sounding the alarm until we have done so might become an increasingly important part of our work…

[1] https://www.anthropic.com/research/discovering-vulnerabilities-with-claude
[2] https://thephp.foundation/blog/2026/10/21/todays-php-security-release-and-how-were-strengthening-php-security/
[3] https://www.math.uwaterloo.ca/~mrubinst/alpoge_claude_grh/
[4] https://leanprover-community.github.io/blog/posts/riemann-hypothesis/
[5] https://github.com/anthropics/formal-math/blob/main/vp-vnp/README.md
[6] https://www.coindesk.com/tech/2026/11/29/top-cryptographers-form-review-group-as-rumors-swirl-over-ai-breakthroughs-in-encryption
[7] https://scottaaronson.blog/?p=10379
[8] https://x.com/franzbruckhoff/status/2125947141730251005
[9] https://cirg.org/statements/1/
[10] https://cellcog.ai/blog/anthropic-cryptography-rumor/
[11] https://elonmuskarchive.org/posts/2127095392907248028
[12] https://www.ndtvprofit.com/technology/has-ai-cracked-rsa-encryption-elon-musk-says-i-have-heard-from-few-people-12394362
[13] https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-11-30-2026/card/anthropic-stock-hits-100-poised-for-highest-post-ipo-close-1DlhU3W1QLFYN4eiC3th
[14] https://x.com/kaepora/status/2127356379153211694
[15] https://github.com/anthropics/formal-math/blob/main/lattices/README.md

-----------
Jan Kopriva
LinkedIn
Nettles Consulting

1 Comments