Back to Intelligence

SSH Bots Brute-Forcing 'claude' and 'openclaw' AI Agent Accounts: Detection and Hardening Guide for Linux Defenders

SA
Security Arsenal Team
December 2, 2026
12 min read

The SANS Internet Storm Center reported on December 2nd, 2026 that SSH password-guessing bots sweeping port 22 across the internet have significantly ramped up attempts against two specific usernames: claude and openclaw. These aren't random dictionary entries — they're the exact local account names recommended in popular setup guides for deploying AI agents on Linux servers.

This is a textbook example of how fast commodity botnet telemetry adapts to deployment trends. Somewhere in 2025-2026, thousands of engineers followed the same tutorials, created the same local service accounts, exposed SSH to the internet, and — critically — many of them set weak, guessable passwords on those accounts because the guide told them to "just get it working." The botnet operators noticed the pattern in their own honeypot and scanning data before most defenders did.

If your organization deployed an AI agent, coding assistant, or autonomous workflow bot on a Linux host this year, there is a real probability that a local account named claude or openclaw exists on that box — and if SSH password authentication is enabled, that account is being actively brute-forced right now. This post gives you the detection logic, hunt queries, and hardening steps to find and close that exposure today.

Technical Analysis

What's Actually Happening

There is no CVE here — no software defect, no patch to chase. This is pure credential access via brute force (MITRE ATT&CK T1110.001 — Password Guessing) delivered over SSH (T1021.004). The threat is entirely a function of three compounding configuration failures:

  1. Predictable account naming. Setup guides for AI agent frameworks (both legitimate vendor docs and community tutorials) instruct users to create a dedicated local account — commonly claude or openclaw — under which the agent runs. Predictable usernames eliminate half the credential-guessing problem for an attacker.

  2. Password-based SSH authentication left enabled. Many guides walk users through useradd and passwd to set a password for interactive sessions, but never revisit /etc/ssh/sshd_config. The default on most distributions permits password auth.

  3. Direct internet exposure. AI agent hosts are frequently spun up on cloud VPS instances with port 22 open to 0.0.0.0/0 for convenience, placing them squarely in the path of every SSH scanning botnet on the planet — which is essentially all of them, continuously.

Why These Accounts Are High-Value Targets

An attacker who lands on an AI agent's service account typically inherits more than a shell:

  • API keys and model credentials. Agent configs routinely store OpenAI/Anthropic/cloud provider API keys in plaintext dotfiles (~/.config/, ~/.env, ~/.claude/). A compromised agent account can mean immediate cloud and LLM billing abuse, data exfiltration through the model's context, or pivoting via cloud IAM credentials.
  • Broad local permissions. Guides often recommend sudo access or docker group membership for the agent account — both are trivial privilege escalation paths to root.
  • Persistent, quiet infrastructure. A small VPS running an agent is an ideal malware staging node, cryptominer host, or scanning relay. Nobody's watching it. That's the whole point of the account.

Exploitation Status

Per the SANS ISC diary (December 2nd, 2026), this is confirmed active, in-the-wild activity — not theoretical. ISC honeypot telemetry shows a marked increase in password-guessing attempts against claude and openclaw compared to baseline. No CVE is associated with this activity, and there is no vendor patch because there is no vulnerability — the remediation is configuration and credential hygiene. Because the attack surface is internet-wide scanning, assume any host with port 22 open and either of these accounts present has already been probed.

What a Compromise Looks Like

The attack chain from the defender's seat:

  1. Bot connects to tcp/22, enumerates or blindly attempts claude / openclaw with a rotating password list.
  2. sshd logs Failed password for invalid user openclaw from <IP> or Failed password for claude from <IP> — hundreds to thousands of times per day.
  3. On success: Accepted password for openclaw from <IP>, followed by an interactive or scripted session — typically uname -a, nproc, wallet/key discovery, then payload retrieval via curl/wget from a staging IP.
  4. Persistence: SSH key dropped into ~/.ssh/authorized_keys, cron job, or systemd user unit — so even after you change the password, they're still inside.

Detection priority therefore splits in two: (a) confirm whether guessing is hitting you, and (b) determine whether any attempt succeeded.

Detection & Response

Sigma Rules

The following rules target the highest-fidelity signals: brute-force against the specific usernames, and — far more urgent — a successful password login to one of them. Tune the known-users selection to any additional AI-agent account names your guides or teams use.

YAML
---
title: SSH Brute Force Against AI Agent Default Accounts
id: 8f4c2a71-3b9d-4e6f-a102-7d5e9c1b3a44
status: experimental
description: Detects failed SSH password attempts targeting default usernames (claude, openclaw) commonly created by AI agent setup guides, as reported by SANS ISC in December 2026.
references:
  - https://isc.sans.edu/diary/rss/33570
  - https://attack.mitre.org/techniques/T1110/001/
author: Security Arsenal
date: 2026/12/03
tags:
  - attack.credential_access
  - attack.t1110.001
logsource:
  product: linux
  service: sshd
detection:
  selection_failed:
    Message|contains: 'Failed password'
  selection_users:
    Message|contains:
      - 'invalid user claude'
      - 'invalid user openclaw'
      - ' for claude from '
      - ' for openclaw from '
  condition: selection_failed and selection_users
falsepositives:
  - Legitimate user typoing a username on a host where these accounts do not exist (rare)
level: medium
---
title: Successful SSH Password Login to AI Agent Default Account
id: 2d7b9e53-1a4f-4c8d-b305-9e6a2f7c8d11
status: experimental
description: Detects successful password-based SSH authentication to default AI agent accounts (claude, openclaw). Any hit is high-priority — these accounts should authenticate via key only, or not at all from remote.
references:
  - https://isc.sans.edu/diary/rss/33570
  - https://attack.mitre.org/techniques/T1021/004/
author: Security Arsenal
date: 2026/12/03
tags:
  - attack.initial_access
  - attack.lateral_movement
  - attack.t1021.004
  - attack.t1078
logsource:
  product: linux
  service: sshd
detection:
  selection:
    Message|contains:
      - 'Accepted password for claude'
      - 'Accepted password for openclaw'
  condition: selection
falsepositives:
  - Legitimate administrator login — investigate regardless; password auth on these accounts should not exist
level: high
---
title: SSH Authorized Keys Modification on AI Agent Account
id: 5c1a8d94-6e2b-4f7a-9c08-3b4d6e2a9f77
status: experimental
description: Detects creation or modification of authorized_keys under claude/openclaw home directories, a common persistence step following successful SSH brute force.
references:
  - https://isc.sans.edu/diary/rss/33570
  - https://attack.mitre.org/techniques/T1098/004/
author: Security Arsenal
date: 2026/12/03
tags:
  - attack.persistence
  - attack.t1098.004
logsource:
  category: file_event
  product: linux
detection:
  selection:
    TargetFilename|contains:
      - '/home/claude/.ssh/authorized_keys'
      - '/home/openclaw/.ssh/authorized_keys'
  condition: selection
falsepositives:
  - Initial agent provisioning by automation (Ansible, cloud-init) — baseline expected provisioning windows
level: high

KQL — Microsoft Sentinel / Defender

These queries assume Linux auth.log/secure data is reaching Sentinel via the Syslog or CommonSecurityLog connector. The first hunts for the brute-force pattern; the second is the critical query — successful logons to these accounts from any source.

KQL — Microsoft Sentinel / Defender
// Hunt 1: SSH password guessing against AI agent default accounts
Syslog
| where TimeGenerated > ago(7d)
| where ProcessName =~ "sshd"
| where SyslogMessage has "Failed password"
| where SyslogMessage has_any ("claude", "openclaw")
| extend SourceIP = extract(@"from (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})", 1, SyslogMessage)
| summarize Attempts = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
    by Computer, SourceIP
| where Attempts > 20
| order by Attempts desc

// Hunt 2: SUCCESSFUL password logon to an AI agent account - investigate immediately
Syslog
| where TimeGenerated > ago(30d)
| where ProcessName =~ "sshd"
| where SyslogMessage has "Accepted password"
| where SyslogMessage has_any ("claude", "openclaw")
| extend SourceIP = extract(@"from (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})", 1, SyslogMessage)
| project TimeGenerated, Computer, SourceIP, SyslogMessage
| order by TimeGenerated desc

Hunt 2 is the one that matters. If it returns a single row, you are in incident response mode: isolate the host, preserve auth.log and shell histories, and audit ~/.ssh/authorized_keys, crontabs, and systemd user units for that account before you change anything.

Velociraptor VQL

Use this artifact to sweep a Linux fleet for evidence of guessing and compromise against these accounts directly from the auth log, without waiting on central log pipeline coverage.

VQL — Velociraptor
-- Security Arsenal: Hunt SSH brute force and compromise of AI agent default accounts (claude / openclaw)
-- Parses auth logs for failed and accepted password events targeting these usernames

LET auth_logs = SELECT FullPath
FROM glob(globs=['/var/log/auth.log*', '/var/log/secure*'])
WHERE NOT FullPath =~ '\\.gz$'

LET hits = SELECT FullPath, Line,
    regex_replace(source=Line, re='.*from ([0-9.]+) .*', replace='$1') AS SourceIP,
    if(condition=Line =~ 'Accepted password', then='SUCCESS', else='FAILED') AS Outcome
FROM foreach(row=auth_logs,
    query={
        SELECT FullPath, Line
        FROM parse_lines(filename=FullPath)
        WHERE Line =~ 'password for (invalid user )?(claude|openclaw)'
    })

SELECT Outcome, SourceIP, count() AS Events, min(Line) AS SampleEvent, FullPath AS LogFile
FROM hits
GROUP BY Outcome, SourceIP, LogFile
ORDER BY Events DESC

Follow up on any SUCCESS rows with a targeted glob(globs='/home/{claude,openclaw}/.ssh/authorized_keys') collection and a pslist() review on that host for unexpected child processes of sshd.

Remediation & Hardening Script

Run this on any Linux host that has (or may have) an AI agent account. It audits for the targeted usernames, checks whether password authentication is enabled, and enforces key-only SSH with an explicit account allowlist. Review before running in production — the final section modifies sshd_config.

Bash / Shell
#!/usr/bin/env bash
# Security Arsenal - AI Agent SSH Account Audit & Hardening
# Ref: SANS ISC diary Dec 2 2026 - bots guessing passwords for 'claude' / 'openclaw'
set -euo pipefail

TARGET_USERS="claude openclaw"
echo "=== [1] Checking for targeted accounts ==="
for u in $TARGET_USERS; do
  if id "$u" &>/dev/null; then
    echo "[!] FOUND account: $u"
    echo "    Lock status: $(passwd -S "$u" 2>/dev/null || echo 'n/a')"
    echo "    sudo rights: $(sudo -l -U "$u" 2>/dev/null | grep -c 'ALL' || echo 0) ALL-rule match(es)"
    echo "    authorized_keys: $([ -f /home/$u/.ssh/authorized_keys ] && wc -l < /home/$u/.ssh/authorized_keys || echo 0) key(s)"
  else
    echo "[+] Not present: $u"
  fi
done

echo "=== [2] Recent successful logins to these accounts (last 30 days) ==="
for u in $TARGET_USERS; do
  journalctl _COMM=sshd --since "30 days ago" 2>/dev/null | grep "Accepted password for $u" || true
  grep -h "Accepted password for $u" /var/log/auth.log* /var/log/secure* 2>/dev/null || true
done

echo "=== [3] Locking targeted accounts (password login disabled) ==="
for u in $TARGET_USERS; do
  if id "$u" &>/dev/null; then
    usermod -L "$u" && echo "[+] Locked password for $u (key auth still works if keys exist)"
  fi
done

echo "=== [4] Hardening sshd: key-only auth + explicit allowlist ==="
SSHD=/etc/ssh/sshd_config
cp -a "$SSHD" "${SSHD}.bak.$(date +%Y%m%d)"
# Disable password authentication globally
sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' "$SSHD"
grep -q '^PasswordAuthentication no' "$SSHD" || echo 'PasswordAuthentication no' >> "$SSHD"
# Disable root login while we're here
sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin prohibit-password/' "$SSHD"
# Explicit allowlist: edit this for your environment BEFORE running
if ! grep -q '^AllowUsers' "$SSHD"; then
  echo "# TODO: set your real admin users below, then uncomment" >> "$SSHD"
  echo "#AllowUsers youradmin deploy" >> "$SSHD"
  echo "[!] AllowUsers template appended - EDIT IT and uncomment before reloading sshd"
fi
sshd -t && echo "[+] sshd config valid"
# systemctl reload sshd   # uncomment after AllowUsers is configured

echo "=== [5] Brute-force throttling check ==="
if ! command -v fail2ban-client &>/dev/null; then
  echo "[!] fail2ban not installed. Install it or enforce nftables rate limiting on tcp/22."
else
  fail2ban-client status sshd 2>/dev/null || echo "[!] sshd jail not enabled in fail2ban"
fi

echo "=== [6] Exposure check: is 22 open to the world? ==="
ss -tlnp | grep ':22 ' || echo "[+] sshd not listening?"
echo "Review your cloud security group / firewall: restrict tcp/22 to known admin CIDRs or a VPN."

Remediation

Because there is no vendor patch, remediation is entirely configuration-driven — which means you can fully close this exposure today:

  1. Inventory first. Enumerate every host running an AI agent and confirm whether accounts named claude, openclaw, or any other guide-default username exist: getent passwd | awk -F: '$3 >= 1000 {print $1}'. Don't trust your CMDB — these boxes are frequently shadow IT.
  2. Kill password authentication. Set PasswordAuthentication no and PermitRootLogin prohibit-password in sshd_config, and prefer per-account key auth enforced via AllowUsers/AllowGroups. This single change reduces the observed bot activity to zero-risk background noise.
  3. Rename the account if it must exist. Predictable usernames are half the attack. If the agent framework doesn't hard-code the account name (verify in its docs), use an org-specific naming convention. Security through obscurity is not a strategy, but it is a free layer on top of real controls.
  4. Restrict network exposure. Port 22 should never be 0.0.0.0/0. Bound it to admin CIDRs, a bastion, or better — move management access behind Tailscale, a ZTNA broker, or cloud IAP (AWS SSM Session Manager, GCP OS Login, Azure Arc) and close 22 entirely.
  5. Rotate and audit credentials the agent holds. If Hunt 2 above returned any successful logins, treat every API key, token, and cloud credential in that account's home directory as compromised. Rotate them all, then check your LLM/cloud billing dashboards for abuse.
  6. Hunt for persistence before rebuilding. If you confirm compromise, check ~/.ssh/authorized_keys, /etc/cron.*, crontab -u <user> -l, and ~/.config/systemd/user/ for anything you didn't put there. Changing the password while an attacker's key sits in authorized_keys accomplishes nothing.
  7. Throttle and alert. Deploy fail2ban or nftables rate-limiting on tcp/22 as a speed bump, and ship auth logs to your SIEM so the Sigma rules above can fire. A host being brute-forced that you can't see is a host you'll learn about from a cloud bill.

Reference: SANS ISC Diary — SSH Bots Guessing Passwords for AI Agent Accounts

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.