binocularsHunting random spy(ware) using Censys

While reading an articlearrow-up-right by the BlackBerry Threat Intelligence Team, I learned that Censys has developed two queries to identify both LightSpy and WyrmSpy C2 servers, which are associated with the APT41 espionage group.

Here are the Censys queries:

*Light spy*

services.software.uniform_resource_identifier: cpe:2.3:a:lightspy:lightspy:*:*:*:*:*:*:*:*
*WyrmSpy*
 
 services.software.uniform_resource_identifier: cpe:2.3:a:wyrmspy:wyrmspy:*:*:*:*:*:*:*:*

I then identified a pattern — you can see where I’m going: the term “spy,” which in our current cases, appeared in the services.software.uniform_resource_identifier field of both C2 servers. Using the C2 filter proved to be the right choice.

I created and tested these simple queries on Censys:

Regarding the first query ("spy" and labels: c2), it returned 11 results.

Here is a ranking of the threats found:

AsyncRAT is part of the identified and confirmed threat category derived from the “spy” keyword.

By focusing on this specific threat, several pivoting techniques can lead to a highly reliable Censys query, allowing for the discovery of new malicious C2 servers associated with the AsyncRAT tool.

Censys query to find malicious AsyncRAT C2 :

Next, I tested the following search:

At the time of the test, it returned two results:

A web search allows pivoting to post Xarrow-up-right from an analyst who flagged these IPs as C2 panels for the Byakugan malware:

According to an online reportarrow-up-right from JOESandbox, one of the IPs found (89.117/) is used to distribute the PDF Reader_PDF_2024.exe.

Indicators :

Conclusion

We hunted for random “Spy(ware)” at a specific moment in time, but we could have easily encountered other types of spyware at another point. This exercise should be seen as just the beginning — both educational and enjoyable. The ultimate goal is to uncover elements related to the infrastructure of a verified threat. Today, our investigation into “Spy(ware)” mainly led us to AsyncRAT as a confirmed threat, but tomorrow it might very well be another threat altogether.

Thank you for reading!

Last updated