Most detections for an authentication bypass start with the exploit request. Here there isn’t one to see. The sshole bug in OpenSSH on musl (CVE-2026-123158) lets an attacker log in to an account that has no password by sending a password longer than 256 bytes, and sshd never writes the password or its length to a log. The packets are encrypted. If you were waiting for an IDS signature, you’ll keep waiting.
What the bug can’t hide is its result: a password login to an account that can’t have one, followed by an attacker doing things on an Alpine box. I covered the bug itself in my analysis of sshole. This post is the defender’s half: five Sigma rules, one on the sshd log and four on process creation, built on the Alpine advisory, the researcher’s guidance and what GreyNoise recorded attackers doing on compromised hosts on November 7 and 8, 2026.
At a glance
- Rules: 5 (2 emerging threat, 2 generic TTP, 1 hunting).
- Domain: Linux (Alpine and other musl hosts).
- Log sources: sshd log (
product: linux,service: sshd) and process creation with full command line (category: process_creation, from auditd, Falco, Tetragon, Sysmon for Linux or an EDR). - ATT&CK: T1190, T1078.003, T1059.006, T1071.001, T1572, T1543, T1548.003.
- Status: two rules
test(source-confirmed signal or IOCs), threeexperimental(my generalisation of observed behaviour). - GitHub: Detection Rules/Linux.
The case in brief
On a musl system running sshd without PAM, crypt() fails on an overlong password and returns the string *. Accounts locked with * in /etc/shadow then match. On Alpine that includes root (since 3.16), key-only users, musl-nscd directory users and the alpine user on official cloud images, which also has passwordless doas. The full root cause and exposure conditions are in the analysis.
Each step leaves a trace somewhere different. The login itself shows up as a normal Accepted password for <user> from <ip> port <n> ssh2 line from sshd. After that, GreyNoise’s capture of one intrusion cluster shows the attacker run recon over non-interactive SSH (id, uname -a, cat /etc/os-release), probe for root with doas -n id, unpack a Python 3.12 runtime into /opt/py3, pin the C2 domain tac.vpnla.org in /etc/hosts, start a second sshd on port 2222 with TCP forwarding, and install a Python implant called TAC Agent as an OpenRC service. BleepingComputer, citing GreyNoise, adds attempts to read password hashes and root SSH keys and to change authorized_keys. All of that is process creation, as long as you collect it.
Detection map

The left column is the honest part. Every host has an sshd log, but on Alpine it goes to /var/log/messages through busybox syslogd, which keeps it local and rotates it small unless you forward it. Process creation needs an agent that Alpine doesn’t ship, and most embedded musl devices can’t run one. So rule 1 is the one you’ll have almost everywhere, and rules 2 to 5 are for the Alpine servers, VMs and containers where you can collect command lines. The dashed box lists what nothing here sees.
Rule overview
| Rule | Domain | Log source | ATT&CK (tactic / technique) | Level | Status |
|---|---|---|---|---|---|
| Password login to root or alpine | Linux | linux / sshd | Initial Access / T1190, T1078.003 | High | test |
| TAC Agent implant activity | Linux | linux / process_creation | Execution, C2, Persistence / T1059.006, T1071.001, T1543 | High | test |
| Extra sshd listener with forwarding | Linux | linux / process_creation | Command and Control / T1572 | High | experimental |
| OpenRC service persistence | Linux | linux / process_creation | Persistence / T1543 | Medium | experimental |
| Non-interactive doas (hunting) | Linux | linux / process_creation | Privilege Escalation / T1548.003 | Low | experimental |
The rules
1. Potential CVE-2026-123158 exploitation: SSH password login to root or alpine
Context: this is the signal both Wakefield and the Alpine advisory point to. An account with * in its shadow field has no password, so a successful password login to it means the bypass worked. On a stock Alpine host the two * accounts you can name in advance are root and the cloud-image alpine user.
Condition: alert when sshd logs Accepted password for root from or Accepted password for alpine from.
ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application, with T1078.003 Local Accounts for the login it produces.
title: Potential CVE-2026-123158 Exploitation - SSH Password Login To Root Or Alpine Account
id: 2e635140-37d2-48cd-913d-ee473f0b36f9
status: test
description: |
Detects a successful sshd password login for the "root" or "alpine" account. On Alpine Linux both ship with "*"
in /etc/shadow and have no password, so on a musl-based sshd without PAM a password login to them is the main
sign of sshole (CVE-2026-123158) exploitation. Scope this rule to Alpine and other musl hosts.
references:
- https://alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/
- https://wakefield.co/research/openssh-musl-authentication-bypass
- https://nvd.nist.gov/vuln/detail/CVE-2026-123158
- https://netsec101.com/?p=242
author: netsec101.com
date: 2026-11-15
tags:
- attack.initial-access
- attack.t1190
- attack.t1078.003
- cve.2026-123158
- detection.emerging-threats
logsource:
product: linux
service: sshd
detection:
keywords:
- 'Accepted password for root from'
- 'Accepted password for alpine from'
condition: keywords
falsepositives:
- Hosts where an admin set a real root password and enabled PermitRootLogin yes (common on glibc distributions, rare on Alpine)
- Alpine hosts where the alpine user was deliberately given a password
level: high
False positives and tuning: scope it to your Alpine and musl host group. On glibc distributions with PermitRootLogin yes and a real root password, root password logins are legitimate (and a separate problem). Root itself is protected on Alpine by the default PermitRootLogin prohibit-password, so the alpine line is the one most likely to fire for real. Other * accounts (key-only users, directory users) vary per host, so Sigma can’t list them. Join your sshd logs against a per-host list instead. On one host:
# accounts whose password field is exactly "*"
awk -F: '$2=="*"{print $1}' /etc/shadow > /tmp/star_accounts
# password logins to any of them
grep -h "sshd.*Accepted password for" /var/log/messages* 2>/dev/null \
| grep -wFf /tmp/star_accounts
In Splunk, feed it a lookup of * accounts per host from your config management and tune the extraction to your syslog format:
index=os sourcetype=syslog process=sshd "Accepted password for"
| rex "Accepted password for (?<user>\S+) from (?<src>\S+)"
| lookup star_accounts.csv host, user OUTPUT locked
| where locked="true" OR in(user, "root", "alpine")
| stats count min(_time) as first max(_time) as last by host, user, src
How to test: on a lab host that forwards syslog, logger -t 'sshd[1234]' 'Accepted password for alpine from 192.0.2.10 port 50000 ssh2' writes a line in the same format. No exploit needed.
2. TAC Agent C2 implant activity seen after CVE-2026-123158 exploitation
Context: one attacker GreyNoise tracked got root on an Alpine host and installed TAC Agent, a Python C2 agent, with its own Python runtime, an /etc/hosts entry for its C2 domain and an OpenRC service. GreyNoise says the agent never reached its server or received a task, but the setup is distinctive and the strings are specific.
Condition: alert on any command line that mentions tac_agent.py, tac.vpnla.org, tac-agent.init, /etc/init.d/tac-agent, rc-service tac-agent or rc-update add tac-agent. Commands sent over an SSH exec channel run as sh -c '<command>', so even the echo ... >> /etc/hosts pinning shows up in the shell’s command line.
ATT&CK: Execution (TA0002) – T1059.006 Python; Command and Control (TA0011) – T1071.001 Web Protocols; Persistence (TA0003) – T1543 Create or Modify System Process.
title: TAC Agent C2 Implant Activity Seen After CVE-2026-123158 Exploitation
id: 725fec7b-3138-4c73-a077-bef014f69788
status: test
description: |
Detects command lines referencing the TAC Agent Python implant, its OpenRC service or its C2 domain, as observed
by GreyNoise on Alpine hosts compromised through sshole (CVE-2026-123158) in November 2026. Covers the agent run,
the service install and the /etc/hosts pinning of the C2 domain when run through an SSH exec channel.
references:
- https://sshole.events.greynoise.io/
- https://bleepingcomputer.com/news/security/hackers-exploit-sshole-openssh-flaw-to-breach-linux-systems
- https://netsec101.com/?p=242
author: netsec101.com
date: 2026-11-15
tags:
- attack.execution
- attack.t1059.006
- attack.command-and-control
- attack.t1071.001
- attack.persistence
- attack.t1543
- cve.2026-123158
- detection.emerging-threats
logsource:
product: linux
category: process_creation
detection:
selection:
CommandLine|contains:
- 'tac_agent.py'
- 'tac.vpnla.org'
- 'tac-agent.init'
- '/etc/init.d/tac-agent'
- 'rc-service tac-agent'
- 'rc-update add tac-agent'
condition: selection
falsepositives:
- Threat intel or IR staff grepping for these strings on a host (exclude your own analysis accounts)
level: high
False positives and tuning: the only realistic ones are your own responders grepping for these strings, so exclude their accounts. This is an IOC rule: it will age as soon as the operator renames the file or changes domain. GreyNoise lists the C2 address as 104.21.88.83, which looks like shared CDN space to me, so I left IPs out of the rule. Add a DNS query for tac.vpnla.org in your resolver logs if you have them.
How to test: sh -c 'echo tac_agent.py test' produces a matching command line and does nothing else.
3. Additional sshd listener started with forwarding options or from a shell
Context: the same intruder ran /usr/sbin/sshd -p 2222 -o AllowTcpForwarding=yes, a second SSH daemon, independent of the main one, that gives the attacker a tunnel into the internal network (GreyNoise also captured nc -z probes of internal ports). Putting forwarding options on sshd’s command line is unusual. Normal setups keep them in sshd_config.
Condition: alert when an sshd process starts with AllowTcpForwarding=yes, GatewayPorts=yes or PermitTunnel=yes on its command line, or starts with -p and its parent is a shell, busybox, doas or sudo. This generalisation is my inference from one observed command, so the rule is experimental.
ATT&CK: Command and Control (TA0011) – T1572 Protocol Tunneling.
title: Additional sshd Listener Started With Forwarding Options Or From A Shell
id: e2c8278b-f88d-40c8-a9a4-3a339e3b0712
status: experimental
description: |
Detects an sshd process started with forwarding or tunnelling options on its command line, or started with a
custom port by a shell or doas. After sshole (CVE-2026-123158) exploitation, GreyNoise observed attackers start a
second sshd on port 2222 with AllowTcpForwarding=yes to keep a tunnel into the network.
references:
- https://sshole.events.greynoise.io/
- https://bleepingcomputer.com/news/security/hackers-exploit-sshole-openssh-flaw-to-breach-linux-systems
- https://netsec101.com/?p=242
author: netsec101.com
date: 2026-11-15
tags:
- attack.command-and-control
- attack.t1572
- cve.2026-123158
logsource:
product: linux
category: process_creation
detection:
selection_img:
Image|endswith: '/sshd'
selection_cli_forwarding:
CommandLine|contains:
- 'AllowTcpForwarding=yes'
- 'AllowTcpForwarding=all'
- 'GatewayPorts=yes'
- 'PermitTunnel=yes'
selection_cli_port:
CommandLine|contains: ' -p '
selection_parent_shell:
ParentImage|endswith:
- '/sh'
- '/ash'
- '/bash'
- '/dash'
- '/zsh'
- '/busybox'
- '/doas'
- '/sudo'
condition: selection_img and (selection_cli_forwarding or (selection_cli_port and selection_parent_shell))
falsepositives:
- Container images whose entrypoint script starts sshd on a custom port without exec (for example SSH or SFTP images listening on 2222)
- Admins testing a new sshd configuration on a spare port
level: high
False positives and tuning: SSH and SFTP container images that start sshd from an entrypoint script on port 2222 without exec will match the second branch. Exclude them by image or host. An admin testing a config on a spare port also fires it, which is worth a question anyway. Pair it with a check for new listeners (ss -ltnp or flow logs) if you have them.
How to test: doas /usr/sbin/sshd -t -p 2222 -o AllowTcpForwarding=yes. The -t flag only tests the config and exits, so no listener starts.
4. OpenRC init script copied from a temp directory or service enabled with rc-update
Context: TAC Agent has no persistence of its own, so the attacker copied /tmp/tac-agent.init to /etc/init.d/tac-agent and ran rc-update add tac-agent default. Rule 2 catches that by name. This rule catches the same move with any name.
Condition: alert when cp, mv, install or ln copies something from /tmp, /var/tmp or /dev/shm into /etc/init.d, or when rc-update add enables a service. On Alpine, cp and mv are busybox applets, so the process image is /bin/busybox. That’s why the rule matches the tool name at the start of the command line instead of the image path.
ATT&CK: Persistence (TA0003) – T1543 Create or Modify System Process. ATT&CK has a sub-technique for systemd but none for OpenRC, so I used the parent.
title: OpenRC Init Script Copied From Temp Directory Or Service Enabled With rc-update
id: f358579a-ccfb-4819-bccf-3754deec45d0
status: experimental
description: |
Detects an init script being copied or moved from /tmp, /var/tmp or /dev/shm into /etc/init.d, or a service being
added to an OpenRC runlevel with rc-update. After sshole (CVE-2026-123158) exploitation on Alpine, GreyNoise
observed an attacker install a C2 agent as an OpenRC service this way.
references:
- https://sshole.events.greynoise.io/
- https://bleepingcomputer.com/news/security/hackers-exploit-sshole-openssh-flaw-to-breach-linux-systems
- https://netsec101.com/?p=242
author: netsec101.com
date: 2026-11-15
tags:
- attack.persistence
- attack.t1543
logsource:
product: linux
category: process_creation
detection:
# busybox applets (cp, mv) resolve Image to /bin/busybox on Alpine, so match argv[0] in the command line
selection_copy_tool:
CommandLine|re: '^(\S*/)?(cp|mv|install|ln)\s'
selection_copy_src:
CommandLine|contains:
- '/tmp/'
- '/var/tmp/'
- '/dev/shm/'
selection_copy_dst:
CommandLine|contains: '/etc/init.d/'
selection_rcupdate_img:
Image|endswith: '/rc-update'
selection_rcupdate_cli:
CommandLine|contains: ' add '
condition: all of selection_copy_* or all of selection_rcupdate_*
falsepositives:
- Provisioning and configuration management runs (Ansible, cloud-init, image build scripts) that enable services with rc-update
- Admins installing a hand-written service script
level: medium
False positives and tuning: rc-update add is routine during provisioning (cloud-init, Ansible, image builds). Exclude your config-management parent processes, or drop the rc-update branch on hosts where it’s noisy and keep the temp-to-init.d copy, which should be rare everywhere.
How to test: write a stub script to /tmp/nstest.init, then doas cp /tmp/nstest.init /etc/init.d/nstest and doas rc-update add nstest default. Clean up with rc-update del nstest and remove the file.
5. Non-interactive doas execution on Alpine host (hunting)
Context: the alpine user on Alpine’s cloud images has passwordless doas. GreyNoise saw the attacker check that with doas -n id and then run every root step through doas -n. The -n flag tells doas to fail instead of prompting, which is what a script does, not a person at a keyboard.
Condition: report every doas process with -n on its command line.
ATT&CK: Privilege Escalation (TA0004) – T1548.003 Sudo and Sudo Caching (doas is OpenBSD’s sudo equivalent).
title: Non-Interactive Doas Execution On Alpine Host
id: bd55c2aa-598d-4d2d-9d73-0bab7c3f55f8
status: experimental
description: |
Hunts for doas run with -n (non-interactive, fail instead of prompting). After sshole (CVE-2026-123158)
exploitation of the Alpine cloud-image "alpine" user, which has passwordless doas, GreyNoise observed the attacker
probe with "doas -n id" and then run every root step through "doas -n".
references:
- https://sshole.events.greynoise.io/
- https://alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/
- https://netsec101.com/?p=242
author: netsec101.com
date: 2026-11-15
tags:
- attack.privilege-escalation
- attack.t1548.003
- detection.threat-hunting
logsource:
product: linux
category: process_creation
detection:
selection:
Image|endswith: '/doas'
CommandLine|contains: ' -n '
condition: selection
falsepositives:
- Automation and monitoring scripts that call doas -n by design
- Configuration management agents running privileged steps over SSH
level: low
False positives and tuning: automation and monitoring scripts use doas -n on purpose. Treat this as a hunting query: baseline which users and parents run it, then look at the rest, especially within an hour of a hit on rule 1.
How to test: doas -n id.
Coverage and gaps
| Step in case | Tactic | Technique | Rule | Covered? |
|---|---|---|---|---|
| Overlong password to sshd | Initial Access (TA0001) | T1190 | – | Gap: sshd doesn’t log password length |
Password login to a * account | Initial Access (TA0001) | T1190, T1078.003 | 1 | Yes for root and alpine; other accounts need the lookup |
| Recon (id, uname, os-release, ps) | Discovery (TA0007) | T1082 | – | Gap: too common alone; correlate with rule 1 |
| Cloud metadata query | Credential Access (TA0006) | T1552.005 | – | Gap: needs network or eBPF telemetry |
| doas -n escalation | Privilege Escalation (TA0004) | T1548.003 | 5 | Hunting |
| Python runtime and TAC Agent | Execution (TA0002) | T1059.006 | 2 | Yes (IOC) |
| C2 domain pinned in /etc/hosts | Command and Control (TA0011) | T1071.001 | 2 | Yes on command line; DNS is a gap |
| Second sshd on 2222 with forwarding | Command and Control (TA0011) | T1572 | 3 | Yes |
| OpenRC service | Persistence (TA0003) | T1543 | 2, 4 | Yes |
| authorized_keys change | Persistence (TA0003) | T1098.004 | – | Gap: needs file monitoring |
| Reading password hashes | Credential Access (TA0006) | T1003.008 | – | Gap: needs file-read auditing |
| Internal port probing with nc -z | Discovery (TA0007) | T1046 | – | Gap here; generic netcat rules may cover it |
The biggest gap is the exploit attempt itself. Without a debug-level sshd log or an sshd patch that logs password length, nothing records the 257-byte password. The second gap is file activity: authorized_keys edits and reads of /etc/shadow need auditd watches (-w /etc/shadow -p r, -w /root/.ssh/ -p wa) or file-integrity monitoring, and SigmaHQ already has generic auditd rules for both that are worth loading alongside these. The third is the embedded long tail: a Yocto appliance with no agent and no remote syslog gives you nothing at all, which is one more reason to turn password authentication off there.
Deploying the rules
Clone or download the YAML from the repo and convert it with sigma-cli for your SIEM, for example:
sigma convert -t splunk --without-pipeline lnx_sshd_cve_2026_123158_password_login_star_account.yml
sigma convert -t lucene --without-pipeline proc_creation_lnx_sshd_rogue_listener_forwarding.yml
sigma convert -t kusto -p microsoft_xdr proc_creation_lnx_cve_2026_123158_tac_agent_activity.yml
Two things to watch. The sshd rule is a keyword rule, so it converts to a free-text search: point it at the index or data stream that holds your syslog. The process-creation rules use Sysmon-style field names (Image, CommandLine, ParentImage), and most backends have no ready-made Linux pipeline for auditd or Falco data, so check the converted query and map the fields yourself (in ECS, for example, process.executable, process.command_line and process.parent.executable). Run all five in alert-only mode for a week before anything pages a human.
My take
sshole is easy to detect and hard to detect at the same time. The login line is a gift: a password login to a passwordless account is about as clean a signal as you get, and it works on any host that ships its syslog. But that’s the problem. Alpine keeps its log local by default, and the embedded devices most likely to stay vulnerable for years have neither log forwarding nor an agent. If I had to pick one thing to switch on today, it’s rule 1 across every Alpine host, plus remote syslog on the boxes that don’t have it yet.
The post-exploitation rules matter more than they look. Attackers will keep getting in through other doors, and a second sshd with forwarding or a service script copied out of /tmp is a bad sign whatever the entry point was. The TAC Agent rule will go stale quickly; the behaviour rules won’t.
What I’d like from OpenSSH is one log line. sshd already knows when a submitted password is absurdly long or when the stored hash is shorter than any real hash (that’s exactly what the fix checks). Logging that at the default level would have turned this bug from invisible into the easiest exploit attempt to spot all year.
Sources
- openssh-server password authentication bypass, Alpine Linux, November 5, 2026
- OpenSSH Password Authentication Bypass on musl Linux, Özgün Kültekin, Wakefield, November 5, 2026
- CVE-2026-123158, NIST NVD, published November 5, 2026
- sshole exploitation tracker and session captures, GreyNoise, as of November 15, 2026
- Hackers exploit SSHole OpenSSH flaw to breach Linux systems, BleepingComputer, November 9, 2026
- OpenSSH flaw exploited in the wild just hours after disclosure, Help Net Security, November 6, 2026
- CVE-2026-123158: OpenSSH Password Authentication Bypass Affects Alpine Linux, SOC Prime, November 2026 (detection advice; no public rule reused)
- SigmaHQ rule repository (conventions and generic auditd rules; no sshole-specific rule found as of November 15, 2026)





