/* "stress_agent" DDoS bot served as bot_ from 45.207.157[.]28 (loaders install.sh / qkuys.sh), first captured 2026-12-01. Reference sample: 9d245f0c7d0268599273b7cbd2f75a075229044b8e7fc0b16f1a23e397a4312e (bot_aarch64, ELF64 AArch64, static musl, zig cc / clang 18.1.6, 76256 bytes). The binary is not packed and its strings are plain, so the rules key on the protocol and artefact strings, which do not depend on the CPU. Only the aarch64 build has been seen; other architectures are expected to match but are untested. Tested with YARA 4.5 on 2026-12-01 (see note 001 at tahuyalabs.com). */ rule StressAgent_Bot_ELF { meta: description = "stress_agent DDoS bot (bot_): AGENT/PING/PONG text protocol, .stress.lock, sshd process masquerade" date = "2026-12-01" sha256 = "9d245f0c7d0268599273b7cbd2f75a075229044b8e7fc0b16f1a23e397a4312e" strings: $p1 = "AGENT %s %s %s\n" ascii $p2 = "PONG %s\n" ascii $p3 = "hello\n" ascii $l1 = "/var/run/.stress.lock" ascii $l2 = "/tmp/.stress.lock" ascii $s1 = "/opt/stress_agent/stress_agent" ascii $s2 = "%s/.stress_agent/stress_agent" ascii $s3 = "/var/run/stress_agent.pid" ascii $m1 = "sshd: [core]" ascii $m2 = "sshd: [service]" ascii $m3 = "sshd: [main]" ascii $c1 = "tcp_short" ascii $c2 = "tcp_conn" ascii $c3 = "shell64" ascii $id = "%s|%s|%s|%08x" ascii condition: uint32(0) == 0x464c457f and filesize < 2MB and $p1 and 1 of ($l*) and 4 of ($p2, $p3, $s*, $m*, $c*, $id) } rule StressAgent_Bot_Handshake_Token { meta: description = "stress_agent bot: C2 greeting token halves stored next to the 16-hex-digit table (reply to 'hello' must be Sxoe15007jshHe); this build reports version 7.5Pro" date = "2026-12-01" sha256 = "9d245f0c7d0268599273b7cbd2f75a075229044b8e7fc0b16f1a23e397a4312e" strings: $t1 = "Sxoe1500" ascii $t2 = "7jsh" ascii $a = "AGENT %s %s %s" ascii $v = "7.5Pro" ascii condition: uint32(0) == 0x464c457f and filesize < 2MB and $t1 and $a and ($t2 in (@t1 .. @t1 + 32) or $v) } rule StressAgent_Bot_SelfKill_NameTable { meta: description = "stress_agent bot: carries both loader naming sets (bot_arm64 and bot_aarch64, bot_i386 and bot_i686 ...) for its kill-older-copies table, plus the stress_agent paths it deletes" date = "2026-12-01" sha256 = "9d245f0c7d0268599273b7cbd2f75a075229044b8e7fc0b16f1a23e397a4312e" strings: $n1 = "bot_arm64" ascii fullword $n2 = "bot_aarch64" ascii fullword $n3 = "bot_i386" ascii fullword $n4 = "bot_i686" ascii fullword $n5 = "bot_x86-64" ascii fullword $n6 = "bot_mips64el" ascii fullword $n7 = "bot_s390x" ascii fullword $n8 = "bot_armv8l" ascii fullword $s1 = "/etc/systemd/system/stress_agent.service" ascii $s2 = "/etc/init.d/stress_agent" ascii $s3 = "/var/log/stress_agent.log" ascii condition: uint32(0) == 0x464c457f and filesize < 2MB and 6 of ($n*) and 2 of ($s*) }