4 ms·
Page 5 lists a YARA signature names "PAS_TOOL_PHP_WEB_KIT" that is supposed to match some kind of payload from the attack. It looks generic but is surprisingly
by wongarsu 10y ago
Page 5 lists a YARA signature names "PAS_TOOL_PHP_WEB_KIT" that is supposed to match some kind of payload from the attack. It looks generic but is surprisingly specific.
A quick search reveals that it happens to exactly match [1] (if you fix a few obvious bugs where the github code uses $COOKIE instead of $_COOKIE, or produces base64decode instead of base64_decode. The attackers probably fixed that in production). Apart from the exact combination of three `isset` and two `_COOKIE`, that code starts with the unusual sequence `<?php $l___l_='base'.(32*2).'de'.'code';` which happens to be matched by the (also very unusual) regex from the report. It also ticks all other boxes from the provided signature.
I just found that within five minutes by searching github. It seems like an encrypted payload that can be executed by visiting the php page while having the password in a POST parameter or in a Cookie.
I'm not an expert, but the encryption looks very simple. Maybe somebody feels up to the challenge to try some statistical analysis or similar on it?
[1] https://github.com/Nu11ers3t/Null/wiki https://github.com/Nu11ers3t/Null/wiki
- codedokode 10y agoI would like to add some details about a username in case someone didn't understand its meaning. The github username spells like 'nullers'. 'Nulling' is a slang word meaning removing license protection from commercial web applications like CMS (and usually publishing them for everyone to use like some type of modern Robin Hood) and 'nullers' are the people who do it. The code has a payload (probably a web shell) encrypted with a password that should be sent via a cookie or a variable in the POST request body. The encryption has some serious weaknesses. The @masrermike's comment https://news.ycombinator.com/item?id=13281312 https://news.ycombinator.com/item?id=13281312 has a link to the tool that could be used to encrypt the payload. In case if anyone is interested I can post a formatted code (the payload is still encrypted): http://pastebin.com/sVLsGTub http://pastebin.com/sVLsGTub