Aller au contenu

YARA · Volexity threat-intel

VOLEXITY_Malware_Any_Pupyrat_B

Detects the PUPYRAT malware family, a cross-platform RAT written in Python.

MalwareVolexity threat-intelBSD 2-Clause LicenseCompile avec YARA-X
Auteur
threatintel@volexity.com
Date
2022-04-07
Modifiée
2025-03-21
Score / Qualité
75 / 80

Ce que détecte cette règle

Detects the PUPYRAT malware family, a cross-platform RAT written in Python.

Elle définit 12 motifs (12 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

malware-any-pupyrat-b.yarBSD 2-Clause License
rule VOLEXITY_Malware_Any_Pupyrat_B : FILE MEMORY
{
	meta:
		description = "Detects the PUPYRAT malware family, a cross-platform RAT written in Python."
		author = "threatintel@volexity.com"
		id = "ec8d0448-f47d-5c6e-bcf9-8f40ae83a96f"
		date = "2022-04-07"
		modified = "2025-03-21"
		reference = "https://github.com/n1nj4sec/pupy"
		source_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/2022/2022-06-15 DriftingCloud - Zero-Day Sophos Firewall Exploitation and an Insidious Breach/indicators/yara.yar#L121-L158"
		license_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/LICENSE.txt"
		hash = "7474a6008b99e45686678f216af7d6357bb70a054c6d9b05e1817c8d80d536b4"
		logic_hash = "f5b5f35ee783ff1163072591c6d48a85894729156935650a0fd166ae22a2ea00"
		score = 75
		quality = 80
		tags = "FILE, MEMORY"
		os = "all"
		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 = 6689
		version = 4

	strings:
		$elf1 = "LD_PRELOAD=%s HOOK_EXIT=%d CLEANUP=%d exec %s 1>/dev/null 2>/dev/null" ascii
		$elf2 = "reflective_inject_dll" fullword ascii
		$elf3 = "ld_preload_inject_dll" fullword ascii
		$pupy1 = "_pupy.error" ascii
		$pupy2 = "pupy://" ascii
		$s1 = "Args not passed" ascii
		$s2 = "Too many args" ascii
		$s3 = "Can't execute" ascii
		$s4 = "mexec:stdin" ascii
		$s5 = "mexec:stdout" ascii
		$s6 = "mexec:stderr" ascii
		$s7 = "LZMA error" ascii

	condition:
		any of ( $elf* ) or all of ( $pupy* ) or all of ( $s* )
}

Chaînes (12 motifs)

IdentifiantTypeValeurModificateurs
$elf1texte"LD_PRELOAD=%s HOOK_EXIT=%d CLEANUP=%d exec %s 1>/dev/null 2>/dev/null"ascii
$elf2texte"reflective_inject_dll"fullword ascii
$elf3texte"ld_preload_inject_dll"fullword ascii
$pupy1texte"_pupy.error"ascii
$pupy2texte"pupy://"ascii
$s1texte"Args not passed"ascii
$s2texte"Too many args"ascii
$s3texte"Can't execute"ascii
$s4texte"mexec:stdin"ascii
$s5texte"mexec:stdout"ascii
$s6texte"mexec:stderr"ascii
$s7texte"LZMA error"ascii

Condition

any of ( $elf* ) or all of ( $pupy* ) or all of ( $s* )

En clair (Heuristique)

  • Tous les motifs de ( $pupy* ) doivent être trouvés.
  • Tous les motifs de ( $s* ) doivent être trouvés.
  • Au moins un motif de ( $elf* ) doit être trouvé.

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

Références

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).

  • 7474a6008b99e45686678f216af7d6357bb70a054c6d9b05e1817c8d80d536b4

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: ec8d0448-f47d-5c6e-bcf9-8f40ae83a96f

Métadonnées

osall
os_archall
scan_contextfile,memory
severitycritical
rule_id6689
version4

Tags:FILEMEMORY