PHPsert
PHPsert is a webshell used to execute PHP code that has been in use since at least 2023 against targets in Japan, Singapore, Peru, Taiwan, Iran, Republic of Korea, and the Philippines. PHPsert is not typically deployed as a standalone but integrated into web content such as text editors and content management systems.(Citation: sentinelone operationDigitalEye Dec 2024)
Techniques & procedures
11 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
Visual Studio Code Remote Tunnels... provide full endpoint access, including command execution and filesystem manipulation.
Persistence
1 technique
Persistence
[PHPsert](https://attack.mitre.org/software/S9028) can use the .php assert function to execute attacker-provided code and maintain persistence on targeted web servers.(Citation: sentinelone operationDigitalEye Dec 2024)
Stealth
5 techniques
Stealth
To hinder static analysis and evade detection, the webshell uses various code obfuscation techniques, including XOR encoding, hexadecimal character representation, string concatenation, and randomized variable names.
[PHPsert](https://attack.mitre.org/software/S9028) can use multiple obfuscation techniques including XOR encoding, hexadecimal character representation, string concatenation, and randomized variable names.(Citation: sentinelone operationDigitalEye Dec 2024)
To disguise the files implementing PHPsert and attempt to evade detection based on filesystem activity, the attackers used custom names tailored to the infiltrated environments, making the filenames appear legitimate.
[PHPsert](https://attack.mitre.org/software/S9028) has the ability to decode and decrypt obfuscated strings prior to execution.(Citation: sentinelone operationDigitalEye Dec 2024)
In an attempt to evade detection based on filesystem activity, the threat actors used %SystemRoot%\Temp and %ProgramData%\Visual Studio Code as their primary working directories for storing tools and data.
Command and Control
4 techniques
Command and Control
[PHPsert](https://attack.mitre.org/software/S9028) can retrieve remote files using HTTP POST.(Citation: sentinelone operationDigitalEye Dec 2024)
[PHPsert](https://attack.mitre.org/software/S9028) has the ability to retrieve remote payloads.(Citation: sentinelone operationDigitalEye Dec 2024)
C2 traffic from ADVSTORESHELL is encrypted, then encoded with Base64 encoding... APT19 HTTP malware variant used Base64 to encode communications to the C2 server... APT33 has used base64 to encode command and control traffic.
[PHPsert](https://attack.mitre.org/software/S9028) can use Base64-encoded values in C2 communications.(Citation: sentinelone operationDigitalEye Dec 2024)
Observables
13 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.