Skip to content

YARA · Volexity threat-intel

VOLEXITY_Apt_Malware_Py_Agentpsd

Detection for AgentPSD, a python-based malware typically delivered within PyInstaller-built binaries.

APT / threat actorVolexity threat-intelBSD 2-Clause LicenseCompiles with YARA-X
Author
threatintel@volexity.com
Date
2025-09-05
Modified
2025-10-30
Score / Quality
75 / 80

What this rule detects

Detection for AgentPSD, a python-based malware typically delivered within PyInstaller-built binaries.

It defines 11 patterns (11 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

apt-malware-py-agentpsd.yarBSD 2-Clause License
rule VOLEXITY_Apt_Malware_Py_Agentpsd : VERDANTBAMBOO AGENTPSD MEMORY
{
	meta:
		description = "Detection for AgentPSD, a python-based malware typically delivered within PyInstaller-built binaries."
		author = "threatintel@volexity.com"
		id = "4a7d531f-926d-557e-b2a0-d4f103e9c63a"
		date = "2025-09-05"
		modified = "2025-10-30"
		reference = "https://github.com/volexity/threat-intel"
		source_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/2026/2026-06-04 VerdantBamboo/rules.yar#L137-L171"
		license_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/LICENSE.txt"
		hash = "ee41e06ed96182ce80cd4544a6abd5d7719c4a5c0e5ddb266a83842d39b99b0a"
		logic_hash = "dd0b957bc2a61ddebd392b86b35bae8c1052a285fa31ccd700e580c2ad9cce59"
		score = 75
		quality = 80
		tags = "VERDANTBAMBOO, AGENTPSD, MEMORY"
		os = "all"
		os_arch = "all"
		scan_context = "memory"
		severity = "critical"
		report1 = "TIB-20251104"
		license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
		rule_id = 12297
		version = 5

	strings:
		$s1 = "g_strPhpUrl" ascii
		$s2 = "g_nSleepMinits" ascii
		$s3 = "g_nDuringTime" ascii
		$func1 = "startwork" ascii
		$func2 = "ifrunning" ascii
		$func3 = "getsysinfo" ascii
		$func4 = "getcmdfromweb" ascii
		$func5 = "ParseCmdFromResponse" ascii
		$func6 = "PostDataToServer" ascii
		$func7 = "DealWithBuildinCommand" ascii
		$func8 = "PostBuildinResultToWeb" ascii

	condition:
		2 of ( $s* ) or 4 of ( $func* )
}

Strings (11 patterns)

IdentifierTypeValueModifiers
$s1text"g_strPhpUrl"ascii
$s2text"g_nSleepMinits"ascii
$s3text"g_nDuringTime"ascii
$func1text"startwork"ascii
$func2text"ifrunning"ascii
$func3text"getsysinfo"ascii
$func4text"getcmdfromweb"ascii
$func5text"ParseCmdFromResponse"ascii
$func6text"PostDataToServer"ascii
$func7text"DealWithBuildinCommand"ascii
$func8text"PostBuildinResultToWeb"ascii

Condition

2 of ( $s* ) or 4 of ( $func* )

In plain words (Heuristic)

  • At least 2 patterns in ( $s* ) must match.
  • At least 4 patterns in ( $func* ) must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • ee41e06ed96182ce80cd4544a6abd5d7719c4a5c0e5ddb266a83842d39b99b0a

Licence & attribution

Author: threatintel@volexity.com

Source repository: Volexity threat-intel @ 3a9d0b5245

Licence: BSD 2-Clause License (stated in the rule's own meta)

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

Copyright notice: Copyright 2022 by Volexity, Inc.

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 4a7d531f-926d-557e-b2a0-d4f103e9c63a

Metadata

osall
os_archall
scan_contextmemory
severitycritical
report1TIB-20251104
rule_id12297
version5

Tags:VERDANTBAMBOOAGENTPSDMEMORY