返回资讯中心
外部精选
软件工程
#开发者实时流

安全厂商披露KinsingBot僵尸网络,设计粗糙但仍在传播

来源标题:MMD-071-2026 Linux/KinsingBot a "bad-bad" designed botnet

一份编号MMD-071-2026的分析披露了Linux平台KinsingBot僵尸网络的新样本,该僵尸网络被形容为设计“糟糕”但仍具备实际攻击能力。样本运行后以2887为PID,在/tmp目录下以伪装名(如bigip)启动守护进程,并调用/dev/null与/bin/sh执行。其Go语言组件路径为my/bot。

Hacker News 最新MalwareMustDie2026/11/13 · 4 天前30 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

Kinsing bot config

// App my/bot Go environment at stacks

Pid........"Pid":...."Pid":....2887../tmp/{samplename:i.e. bigip}daemon infos......"infos":.."infos":.............files..."files":..."files":........ here......."here":..."here":....../dev/null............./bin/sh tmp......../tmp/.ICEd-unix..../tmp/.ICEd-unix..1977396759......... info......."info":..."info" her........"her":...."her":.... path......."path":..."path":... data......."data":..."data":..... parent....."parent":."parent":../usr/bin/sh...../usr/bin/sh details...."details":.."details":.... name......."name":...."name":.............. size......."size":..."size":.. mode......."mode":..."mode":........... mod_time..."mod_time":."mod_time":.... is_dir....."is_dir":."is_dir" sys........"sys":...."sys":... Pkg........"Pkg":...."Pkg":.................. Name......."Name":..."Name":.. Dir........"Dir":...."Dir":.... ImportPath."ImportPath":..'"ImportPath":...... Module....."Module":."Module":...... Path......."Path":..."Path":........ Main......."Main":..."Main":...... Dir........"Dir":...."Dir":.... GoMod......"GoMod":.."GoMod"..... GoVersion.."GoVersion":..."GoVersion":... app.........my/bot..main....my/bot.. /app......./app/go.mod.1.13..my/bot3930496509.Dev.2066

// app my/bot config initiation

0xc0000c0000 {"infos":{"my/bot":{"Dir":"/app","ImportPath":"my/bot","Name":"main","Doc":"","Target":"/go/bin/bot","Root":"/app","Match":["."],"Stale" 0xc0000c0088 :true,"StaleReason":"stale dependency: golang.org/x/net/context","GoFiles":["command.go","counter.go","exec.go","fetcher_task.go","main. 0xc0000c0110 go","network.go","pkged.go","result.go","sclient.go","storage.go","sys_posix.go","task.go","task_exec.go","task_exec_out.go","task_reque 0xc0000c0198 st.go","task_scan.go","task_update.go","tasks.go","utils.go"],"Imports":["bytes","compress/gzip","container/list","crypto/md5","crypto/r 0xc0000c0220 c4","crypto/tls","encoding/hex","encoding/json","errors","fmt","github.com/armon/go-socks5","github.com/asaskevich/govalidator","github. 0xc0000c02a8 com/go-resty/resty/v2","github.com/hashicorp/yamux","github.com/kardianos/osext","github.com/kelseyhightower/envconfig","github.com/mark 0xc0000c0330 bates/pkger","github.com/markbates/pkger/pkging/mem","github.com/nu7hatch/gouuid","github.com/op/go-logging","github.com/paulbellamy/rat 0xc0000c03b8 ecounter","github.com/peterbourgon/diskv","github.com/shirou/gopsutil/host","github.com/shirou/gopsutil/mem","github.com/shirou/gopsutil 0xc0000c0440 /process","golang.org/x/sys/unix","io","io/ioutil","math/rand","my/bot/single","net","net/http","os","os/exec","runtime","strconv","stri 0xc0000c04c8 ngs","sync","sync/atomic","syscall","time"],"Deps":["bufio","bytes","compress/flate","compress/gzip","compress/zlib","container/list","c 0xc0000c0550 ontext","crypto","crypto/aes","crypto/cipher","crypto/des","crypto/dsa","crypto/ecdsa","crypto/ed25519","crypto/ed25519/internal/edwards 0xc0000c05d8 25519","crypto/elliptic","crypto/hmac","................................................................................................

[ITW] Artifact spotted in the wild attack

[!] Malicious code shown as an image on purpose, so it cannot be copy-pasted or picked up as live code.

[ITW] Artifact spotted in the wild attack

■ 10. RSA private key in memory — identical to v28

[!] Malicious code shown as an image on purpose, so it cannot be copy-pasted or picked up as live code.

[ITW] Artifact spotted in the wild attack

Finding: the RSA key in v31 is byte-for-byte identical to the key recovered from v28 (captured traffic chapter). The operator never rotated the C2 key between versions, so one recovered key decrypts the tasking of several versions, and the key itself is a solid clustering pivot.

■ 11. The mass-scan script carried by v31

[!] Malicious code shown as an image on purpose, so it cannot be copy-pasted or picked up as live code.

[ITW] Artifact spotted in the wild attack

■ 12. Important functions (.gopclntab) and host profiling

///////// important functions

paddr vaddr section fnc.names

0x00f87e28 0x01387e28 .gopclntab main.doTask 0x00f87e34 0x01387e34 .gopclntab main.execTask 0x00f88008 0x01388008 .gopclntab main.runcmd 0x00f88220 0x01388220 .gopclntab main.startCmd 0x00f88430 0x01388430 .gopclntab main.startCmdWithOutputSingle 0x00f88848 0x01388848 .gopclntab main.init.0 0x00f88998 0x01388998 .gopclntab main.main 0x00f88a03 0x01388a03 .gopclntab main.randIntRange 0x00f89238 0x01389238 .gopclntab main.healthChecker 0x00f8924b 0x0138924b .gopclntab main.setActiveC2CUrl 0x00f893d0 0x013893d0 .gopclntab main.minerRunningCheck 0x00f89548 0x01389548 .gopclntab main.isMinerRunning 0x00f89778 0x01389778 .gopclntab main.minRun 0x00f8a0e0 0x0138a0e0 .gopclntab main.copyFileContents 0x00f8a208 0x0138a208 .gopclntab main.getWriteableDir 0x00f8a21d 0x0138a21d .gopclntab main.writable 0x00f8a368 0x0138a368 .gopclntab main.getTask 0x00f8a5a8 0x0138a5a8 .gopclntab main.getTargets 0x00f8ac00 0x0138ac00 .gopclntab main.sendResult 0x00f8af18 0x0138af18 .gopclntab main.sendMinerPid 0x00f8b138 0x0138b138 .gopclntab main.getMinerPid 0x00f8b368 0x0138b368 .gopclntab main.checkHealth 0x00f8b4f0 0x0138b4f0 .gopclntab main.setLog 0x00f8b718 0x0138b718 .gopclntab main.setExecOutput 0x00f8b940 0x0138b940 .gopclntab main.encStruct 0x00f8b9f8 0x0138b9f8 .gopclntab main.getActiveC2CUrl 0x00f8bae0 0x0138bae0 .gopclntab main.DownloadFile 0x00f8be50 0x0138be50 .gopclntab main.makeClient 0x00f8bf60 0x0138bf60 .gopclntab main.RC4 0x00f8c078 0x0138c078 .gopclntab main.doRequestWithTooManyOpenFiles 0x00f8c438 0x0138c438 .gopclntab main.resultSender 0x00f8c740 0x0138c740 .gopclntab main.addResult 0x00f8c7f8 0x0138c7f8 .gopclntab main.getOrCreateListForTaskResult 0x00f8c938 0x0138c938 .gopclntab main.connectForSocks 0x00f8cb08 0x0138cb08 .gopclntab main.getOrCreateUuid 0x00f8cb1d 0x0138cb1d .gopclntab main.setUuid 0x00f8cc58 0x0138cc58 .gopclntab main.move 0x00f8cc62 0x0138cc62 .gopclntab main.syncCmd 0x00f8cd60 0x0138cd60 .gopclntab main.runTask 0x00f8cfc0 0x0138cfc0 .gopclntab main.taskWorker 0x00f8cfd0 0x0138cfd0 .gopclntab main.getOrCreateRateCounterForTask 0x00f8d178 0x0138d178 .gopclntab main.execTaskOut 0x00f8d210 0x0138d210 .gopclntab main.runTaskWithHttp 0x00f8d478 0x0138d478 .gopclntab main.taskWithHttpWorker 0x00f8d600 0x0138d600 .gopclntab main.runTaskWithScan 0x00f8d7c0 0x0138d7c0 .gopclntab main.taskWithScanWorker 0x00f8d948 0x0138d948 .gopclntab main.updateTask 0x00f8dec0 0x0138dec0 .gopclntab main.taskScan 0x00f8e028 0x0138e028 .gopclntab main.masscan 0x00f8e498 0x0138e498 .gopclntab main.socks 0x00f8e518 0x0138e518 .gopclntab main.goKrongo 0x00f8e648 0x0138e648 .gopclntab main.backconnect 0x00f8e6c8 0x0138e6c8 .gopclntab main.request 0x00f8ef58 0x0138ef58 .gopclntab main.tcpTask 0x00f8f558 0x0138f558 .gopclntab main.downloadAndExecute 0x00f8f5e0 0x0138f5e0 .gopclntab main.redisBrute 0x00f8f850 0x0138f850 .gopclntab main.RandStringRunes 0x00f8f928 0x0138f928 .gopclntab main.Hosts 0x00f8fa20 0x0138fa20 .gopclntab main.inc 0x00f8fa88 0x0138fa88 .gopclntab main.contains 0x00f8fb18 0x0138fb18 .gopclntab main.hash_file_md5 0x00f8fc90 0x0138fc90 .gopclntab main.main.func1 0x00f8fd08 0x0138fd08 .gopclntab main.copyFileContents.func1 0x00f8fdf0 0x0138fdf0 .gopclntab main.connectForSocks.func1 0x00f8ff08 0x0138ff08 .gopclntab main.runTask.func1 0x00f90110 0x01390110 .gopclntab main.execTaskOut.func1 0x00f901b8 0x013901b8 .gopclntab main.runTaskWithHttp.func1 0x00f902a8 0x013902a8 .gopclntab main.runTaskWithScan.func1.1 0x00f90390 0x01390390 .gopclntab main.runTaskWithScan.func1 0x00f906c0 0x013906c0 .gopclntab main.updateTask.func1 0x00f90760 0x01390760 .gopclntab main.socks.func1 0x00f90930 0x01390930 .gopclntab main.backconnect.func1 0x00f90ac0 0x01390ac0 .gopclntab main.downloadAndExecute.func1.1 0x00f90b50 0x01390b50 .gopclntab main.downloadAndExecute.func1 0x00f90cf0 0x01390cf0 .gopclntab main.init

[ITW] Artifact spotted in the wild attack

// detect python tools & read package/arch/info etc during initiation..

readlink("/usr/bin/python", "python2.7"..., 4096) /usr/bin/python2.7 /usr/bin/Modules/Setup" /usr/bin/lib/python2.7/os.py" /usr/bin/lib/python2.7/lib-dynload" : execve("/usr/local/bin/dpkg-query" execve("/usr/bin/dpkg-query", open("/var/lib/dpkg/arch open("/var/lib/dpkg/status" /etc/oracle-release /etc/enterprise-release", /etc/slackware-version", /etc/debian_version "/usr/bin/raspi-config /etc/debian_version /var/lib/dpkg/updates/" /var/lib/dpkg/triggers/File"

// analysis and report by @unixfreaxjp on a secure environment.

[0x0087d245]> date Sat Aug 1 15:37:48 2020

[ITW] Artifact spotted in the wild attack

■ 13. Debug view: lsof during the run

///////////////////// debug///////////////////////////////////////////

xxxx 2869 xxxx cwd DIR 8,1 4096 397369 /home/xxxx/test xxxx 2869 xxxx rtd DIR 8,1 4096 2 / xxxx 2869 xxxx txt REG 8,1 16695296 397381 /home/xxxx/test/xxxx xxxx 2869 xxxx 0u CHR 136,0 0t0 3 /dev/pts/0 xxxx 2869 xxxx 1u CHR 136,0 0t0 3 /dev/pts/0 xxxx 2869 xxxx 2u CHR 136,0 0t0 3 /dev/pts/0 xxxx 2869 xxxx 4u 0000 0,9 0 1203 anon_inode

xxxx 2874 xxxx cwd DIR 8,1 4096 397369 /home/xxxx/test xxxx 2874 xxxx rtd DIR 8,1 4096 2 / xxxx 2874 xxxx txt REG 8,1 16695296 397381 /home/xxxx/test/xxxx xxxx 2874 xxxx 0r CHR 1,3 0t0 1205 /dev/null xxxx 2874 xxxx 1w CHR 1,3 0t0 1205 /dev/null xxxx 2874 xxxx 2w CHR 1,3 0t0 1205 /dev/null xxxx 2874 xxxx 3uW REG 0,15 0 6754 /run/lock/linux.lock xxxx 2874 xxxx 4u 0000 0,9 0 1203 anon_inode xxxx 2874 xxxx 5r CHR 1,9 0t0 1210 /dev/urandom

xxxx 2874 xxxx cwd DIR 8,1 4096 397369 /home/xxxx/test xxxx 2874 xxxx rtd DIR 8,1 4096 2 / xxxx 2874 xxxx txt REG 8,1 16695296 397381 /home/xxxx/test/xxxx xxxx 2874 xxxx 0r CHR 1,3 0t0 1205 /dev/null xxxx 2874 xxxx 1w CHR 1,3 0t0 1205 /dev/null xxxx 2874 xxxx 2w CHR 1,3 0t0 1205 /dev/null xxxx 2874 xxxx 3uW REG 0,15 0 6754 /run/lock/linux.lock xxxx 2874 xxxx 4u 0000 0,9 0 1203 anon_inode xxxx 2874 xxxx 5r CHR 1,9 0t0 1210 /dev/urandom xxxx 2874 xxxx 6u IPv4 6787 0t0 TCP x.x.x.x:56260->213[.]32.10[.]148:80 (ESTABLISHED) xxxx 2874 xxxx 7r REG 8,1 786432 1310783 /tmp/{samplename:i.e. bigip}daemon

xxxx 2874 xxxx cwd DIR 8,1 4096 397369 /home/xxxx/test xxxx 2874 xxxx rtd DIR 8,1 4096 2 / xxxx 2874 xxxx txt REG 8,1 16695296 397381 /home/xxxx/test/xxxx xxxx 2874 xxxx 0r CHR 1,3 0t0 1205 /dev/null xxxx 2874 xxxx 1w CHR 1,3 0t0 1205 /dev/null xxxx 2874 xxxx 2w CHR 1,3 0t0 1205 /dev/null xxxx 2874 xxxx 3uW REG 0,15 0 6754 /run/lock/linux.lock xxxx 2874 xxxx 4u 0000 0,9 0 1203 anon_inode xxxx 2874 xxxx 5r CHR 1,9 0t0 1210 /dev/urandom xxxx 2874 xxxx 6u IPv4 6787 0t0 TCP x.x.x.x:56260->213[.]32.10[.]148:80 (ESTABLISHED) xxxx 2874 xxxx 7r REG 8,1 4 1310784 /tmp/.ICEd-unix/922209688 (deleted) {samplename:i.e. bigip}daem 2887 xxxx cwd DIR 8,1 4096 2 / {samplename:i.e. bigip}daem 2887 xxxx rtd DIR 8,1 4096 2 / {samplename:i.e. bigip}daem 2887 xxxx txt REG 8,1 3930496 1310783 /tmp/{samplename:i.e. bigip}daemon {samplename:i.e. bigip}daem 2887 xxxx 0r CHR 1,3 0t0 1205 /dev/null {samplename:i.e. bigip}daem 2887 xxxx 1u REG 8,1 4 1310784 /tmp/.ICEd-unix/922209688 (deleted) {samplename:i.e. bigip}daem 2887 xxxx 2w CHR 1,3 0t0 1205 /dev/null {samplename:i.e. bigip}daem 2887 xxxx 3r DIR 8,1 4096 2 / {samplename:i.e. bigip}daem 2887 xxxx 4r FIFO 0,8 0t0 6811 pipe {samplename:i.e. bigip}daem 2887 xxxx 5w FIFO 0,8 0t0 6811 pipe {samplename:i.e. bigip}daem 2887 xxxx 6u 0000 0,9 0 1203 anon_inode {samplename:i.e. bigip}daem 2887 xxxx 7r FIFO 0,8 0t0 6812 pipe {samplename:i.e. bigip}daem 2887 xxxx 8w FIFO 0,8 0t0 6812 pipe {samplename:i.e. bigip}daem 2887 xxxx 9u 0000 0,9 0 1203 anon_inode {samplename:i.e. bigip}daem 2887 xxxx 10r CHR 1,3 0t0 1205 /dev/null {samplename:i.e. bigip}daem 2887 xxxx 11u IPv4 6813 0t0 TCP x.x.x.x:38700->5[.]23.52[.]131:80 (ESTABLISHED)

(I was killing the miner and detached the sample)

xxxx 2874 xxxx cwd DIR 8,1 4096 3973

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →