/* Shell loaders served from 45.207.157[.]28 (payloads bot_), captured over ADB 2026-11-30. install.sh e8703ad5494b7e7875e55efdcdb55800c51b1101a7cf0c4a27a037cd255864a4 (Android/ADB flavour) qkuys.sh 371a0adbd3b4e3884a7dcf87f555a2888bf9f6320ac2637605670a1c00b66eae (Linux telnet/ssh flavour, ".svc" persistence) qkuys.sh 08c8b5227035fec74869213f7d005d3176fa1d184e69af13d6b3a0851efd0d7e (2026-12-01 revision with the --selftest gate; same rules match) Payload: see stress_agent_bot.yar (bot_aarch64 9d245f0c...). Rules key on behaviour (ABI switch, random hidden drop name, self-delete, .svc-* artefacts), not on the host address. Tested with YARA 4.5 on 2026-11-30. */ rule BotArch_Android_ABI_Loader_Sh { meta: description = "Shell loader: picks bot_ from the Android ABI, drops to a hidden .k file, runs it and wipes traces" date = "2026-11-30" sha256 = "e8703ad5494b7e7875e55efdcdb55800c51b1101a7cf0c4a27a037cd255864a4" strings: $abi1 = "getprop ro.product.cpu.abi" ascii $abi2 = "ro.product.cpu.abilist" ascii $n1 = "F=bot_arm64" ascii $n2 = "F=bot_armv7" ascii $n3 = "F=bot_mipsel" ascii $n4 = "F=bot_s390x" ascii $n5 = "F=bot_x86_64" ascii $d1 = "/.k$RANDOM$RANDOM" ascii $d2 = "/data/local/tmp/.k*" ascii $d3 = "rm -f \"$0\"" ascii $d4 = "\"$T\".log" ascii $h = ".bash_history" ascii condition: filesize < 20KB and uint16(0) == 0x2123 and any of ($abi*) and 3 of ($n*) and 2 of ($d*, $h) } rule BotArch_Svc_Persist_Installer_Sh { meta: description = "Shell installer: downloads bot_, copies it to hidden .svc-mon/.svc-daemon/.sys-cache paths, tags the infection vector and kills earlier copies by /proc//exe" date = "2026-11-30" sha256 = "371a0adbd3b4e3884a7dcf87f555a2888bf9f6320ac2637605670a1c00b66eae" strings: $p1 = "/usr/lib/.cache/.svc-mon" ascii $p2 = "/var/lib/.local/.svc-daemon" ascii $p3 = "/usr/lib/.config/.sys-cache" ascii $p4 = "/.svc-lock" ascii $p5 = "/.svc-var" ascii $p6 = "/tmp/.svc-why" ascii $p7 = "/tmp/.svc-out" ascii $f1 = "kill_bots_by_exe" ascii $f2 = "install_persist" ascii $f3 = "fetch_payload" ascii $v1 = "CNC_IP=" ascii $v2 = "VARIANT=\"telnet:$tag\"" ascii $v3 = "VARIANT=\"ssh:$tag\"" ascii $b1 = "\"bot_$a\"" ascii $e1 = "printf '\\177ELF'" ascii condition: filesize < 50KB and uint16(0) == 0x2123 and ( 3 of ($p*) or ( 2 of ($p*) and 2 of ($f*, $v*, $b1, $e1) ) or ( $b1 and $e1 and 2 of ($f*) and any of ($v*) ) ) } rule BotArch_Svc_Disk_Artefact_Text { meta: description = "Any script or log that names two or more of the hidden .svc persistence paths used by the bot_ installer (triage of configs, cron files, shell histories)" date = "2026-11-30" strings: $p1 = "/usr/lib/.cache/.svc-mon" ascii $p2 = "/var/lib/.local/.svc-daemon" ascii $p3 = "/usr/lib/.config/.sys-cache" ascii $p4 = "/usr/lib/.cache/.svc-lock" ascii condition: filesize < 5MB and 2 of them }