Aller au contenu

YARA · Volexity threat-intel

VOLEXITY_Apt_Malware_Ps1_Powerless_B

Detects POWERLESS malware.

APT / acteurVolexity threat-intelBSD 2-Clause LicenseCompile avec YARA-X
Auteur
threatintel@volexity.com
Date
2023-10-25
Modifiée
2024-01-29
Score / Qualité
75 / 78

Ce que détecte cette règle

Detects POWERLESS malware.

Elle définit 34 motifs (34 texte, 0 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

apt-malware-ps1-powerless-b.yarBSD 2-Clause License
rule VOLEXITY_Apt_Malware_Ps1_Powerless_B : CHARMINGCYPRESS FILE MEMORY
{
	meta:
		description = "Detects POWERLESS malware."
		author = "threatintel@volexity.com"
		id = "e62703b5-32fb-5ceb-9f21-f52a4871f3d9"
		date = "2023-10-25"
		modified = "2024-01-29"
		reference = "TIB-20231027"
		source_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/2024/2024-02-13 CharmingCypress/rules.yar#L100-L157"
		license_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/LICENSE.txt"
		hash = "62de7abb39cf4c47ff120c7d765749696a03f4fa4e3e84c08712bb0484306ae1"
		logic_hash = "eb9d199c1f7c2a42d711c1a44ab13526787169c18a77ce988568525baca043ef"
		score = 75
		quality = 78
		tags = "CHARMINGCYPRESS, FILE, MEMORY"
		os = "win"
		os_arch = "all"
		scan_context = "file,memory"
		severity = "critical"
		license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
		rule_id = 9794
		version = 5

	strings:
		$fun_1 = "function verifyClickStorke"
		$fun_2 = "function ConvertTo-SHA256"
		$fun_3 = "function Convert-Tobase" fullword
		$fun_4 = "function Convert-Frombase" fullword
		$fun_5 = "function Send-Httppacket"
		$fun_6 = "function Generat-FetchCommand"
		$fun_7 = "function Create-Fetchkey"
		$fun_8 = "function Run-Uploader"
		$fun_9 = "function Run-Shot" fullword
		$fun_10 = "function ShotThis("
		$fun_11 = "function File-Manager"
		$fun_12 = "function zip-files"
		$fun_13 = "function Run-Stealer"
		$fun_14 = "function Run-Downloader"
		$fun_15 = "function Run-Stro" fullword
		$fun_16 = "function Run-Tele" fullword
		$fun_17 = "function Run-Voice"
		$s_1 = "if($commandtype -eq \"klg\")"
		$s_2 = "$desrilizedrecievedcommand"
		$s_3 = "$getAsyncKeyProto = @"
		$s_4 = "$Global:BotId ="
		$s_5 = "$targetCLSID = (Get-ScheduledTask | Where-Object TaskName -eq"
		$s_6 = "$burl = \"$Global:HostAddress/"
		$s_7 = "$hashString = [System.BitConverter]::ToString($hash).Replace('-','').ToLower()"
		$s_8 = "$Global:UID = ((gwmi win32_computersystemproduct).uuid -replace '[^0-9a-z]').substring("
		$s_9 = "$rawpacket = \"{`\"MId`\":`\"$Global:MachineID`\",`\"BotId`\":`\"$basebotid`\"}\""
		$s_12 = "Runned Without any Error"
		$s_13 = "$commandresponse = (Invoke-Expression $instruction -ErrorAction Stop) | Out-String"
		$s_14 = "Operation started successfuly"
		$s_15 = "$t_path = (Get-WmiObject Win32_Process -Filter \"name = '$process'\" | Select-Object CommandLine).CommandLine"
		$s_16 = "?{ $_.DisplayName -match \"Telegram Desktop\" } | %{$app_path += $_.InstallLocation }"
		$s_17 = "$chlids = get-ChildItem $t -Recurse -Exclude \"$t\\tdata\\user_data\""
		$s_18 = "if($FirsttimeFlag -eq $True)"
		$s_19 = "Update-Conf -interval $inter -url $url -next_url $next -conf_path $conf_path -key $config_key"

	condition:
		3 of ( $fun_* ) or any of ( $s_* )
}

Chaînes (34 motifs)

IdentifiantTypeValeurModificateurs
$fun_1texte"function verifyClickStorke"
$fun_2texte"function ConvertTo-SHA256"
$fun_3texte"function Convert-Tobase"fullword
$fun_4texte"function Convert-Frombase"fullword
$fun_5texte"function Send-Httppacket"
$fun_6texte"function Generat-FetchCommand"
$fun_7texte"function Create-Fetchkey"
$fun_8texte"function Run-Uploader"
$fun_9texte"function Run-Shot"fullword
$fun_10texte"function ShotThis("
$fun_11texte"function File-Manager"
$fun_12texte"function zip-files"
$fun_13texte"function Run-Stealer"
$fun_14texte"function Run-Downloader"
$fun_15texte"function Run-Stro"fullword
$fun_16texte"function Run-Tele"fullword
$fun_17texte"function Run-Voice"
$s_1texte"if($commandtype -eq \"klg\")"
$s_2texte"$desrilizedrecievedcommand"
$s_3texte"$getAsyncKeyProto = @"
$s_4texte"$Global:BotId ="
$s_5texte"$targetCLSID = (Get-ScheduledTask | Where-Object TaskName -eq"
$s_6texte"$burl = \"$Global:HostAddress/"
$s_7texte"$hashString = [System.BitConverter]::ToString($hash).Replace('-','').ToLower()"
$s_8texte"$Global:UID = ((gwmi win32_computersystemproduct).uuid -replace '[^0-9a-z]').substring("
$s_9texte"$rawpacket = \"{`\"MId`\":`\"$Global:MachineID`\",`\"BotId`\":`\"$basebotid`\"}\""
$s_12texte"Runned Without any Error"
$s_13texte"$commandresponse = (Invoke-Expression $instruction -ErrorAction Stop) | Out-String"
$s_14texte"Operation started successfuly"
$s_15texte"$t_path = (Get-WmiObject Win32_Process -Filter \"name = '$process'\" | Select-Object CommandLine).CommandLine"
$s_16texte"?{ $_.DisplayName -match \"Telegram Desktop\" } | %{$app_path += $_.InstallLocation }"
$s_17texte"$chlids = get-ChildItem $t -Recurse -Exclude \"$t\\tdata\\user_data\""
$s_18texte"if($FirsttimeFlag -eq $True)"
$s_19texte"Update-Conf -interval $inter -url $url -next_url $next -conf_path $conf_path -key $config_key"

Condition

3 of ( $fun_* ) or any of ( $s_* )

En clair (Heuristique)

  • Au moins un motif de ( $s_* ) doit être trouvé.
  • Au moins 3 motifs de ( $fun_* ) doivent être trouvés.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Hashes d’échantillons

Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).

  • 62de7abb39cf4c47ff120c7d765749696a03f4fa4e3e84c08712bb0484306ae1

Licence et attribution

Auteur : threatintel@volexity.com

Dépôt source : Volexity threat-intel @ 3a9d0b5245

Licence : BSD 2-Clause License (indiquée dans les métadonnées de la règle)

“See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt”

Mention de copyright : Copyright 2022 by Volexity, Inc.

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: e62703b5-32fb-5ceb-9f21-f52a4871f3d9

Métadonnées

oswin
os_archall
scan_contextfile,memory
severitycritical
rule_id9794
version5

Tags:CHARMINGCYPRESSFILEMEMORY