# Numbered Panda

Numbered Panda (also known as IXESHE, DynCalc, DNSCALC, and APT12) is a cyber espionage group believed to be linked with the Chinese military. The group typically targets organizations in East Asia. These organizations include, but are not limited to, media outlets, high-tech companies, and governments. Numbered Panda is believed to have been operating since 2009. However, the group is also credited with a 2012 data breach at the New York Times. One of the group's typical techniques is to send PDF files loaded with malware via spear phishing campaigns. The decoy documents are typically written in traditional Chinese, which is widely used in Taiwan, and the targets are largely associated with Taiwanese interests. Numbered Panda appears to be actively seeking out cybersecurity research relating to the malware they use. After an Arbor Networks report on the group, FireEye noticed a change in the group's techniques to avoid future detection.

## Discovery and security reports

Trend Micro first reported on Numbered Panda in a 2012 white paper. Researchers discovered that the group launched spear phishing campaigns, using the Ixeshe malware, primarily against East Asian nations since approximately 2009. CrowdStrike further discussed the group in the 2013 blog post Whois Numbered Panda. This post followed the 2012 attack on the New York Times and its subsequent 2013 reporting on the attack. In June 2014, Arbor Networks released a report detailing Numbered Panda's use of Etumbot to target Taiwan and Japan. In September 2014, FireEye released a report highlighting the group's evolution. FireEye linked the release of Arbor Network's report to Numbered Panda's change in tactics.

## Attacks
### East Asian Nations (2009-2011)

Trend Micro reported on a campaign against East Asian governments, electronics manufacturers, and a telecommunications company. Numbered Panda engaged in spear phishing email campaigns with malicious attachments. Often, the malicious email attachments would be PDF files that exploited CVE-2009-4324, CVE-2009-09274, CVE-2011-06095, or CVE-CVE-2011-0611 vulnerabilities in Adobe Acrobat, Adobe Reader, and Flash Player. The attackers also used an exploit that affected Microsoft Excel - CVE-2009-3129. The Ixeshe malware used in this campaign allowed Numbered Panda to list all services, processes, and drives; terminate processes and services; download and upload files; start processes and services; get victims’ user names; get a machine's name and domain name; download and execute arbitrary files; cause a system to pause or sleep for a specified number of minutes; spawn a remote shell; and list all current files and directories. After installation, Ixeshe would start communicating with command-and-control servers; oftentimes three servers were hard-coded for redundancy. Numbered Panda often used compromised servers to create these command-and-control servers to increase control of a victim's network infrastructure. Using this technique, the group is believed to have amassed sixty servers by 2012. A majority of the command-and-control servers used from this campaign were located in Taiwan and the United States. Base64 was used for communication between the compromised computer and the server. Trend Micro found that, once decoded, the communication was a standardized structure that detailed the computer's name, local IP address, proxy server IP and port, and the malware ID. Researchers at CrowdStrike found that blogs and WordPress sites were frequently used in the command-and-control infrastructure to make the network traffic look more legitimate.

### Japan and Taiwan (2011-2014)

An Arbor Security report found that Numbered Panda began a campaign against Japan and Taiwan using the Etumbot malware in 2011. Similar to the previously observed campaign, the attackers would use decoy files, such as PDF, Excel spreadsheets, or Word documents, as email attachments to gain access to victims' computers. Most of the documents observed were written in Traditional Chinese and usually pertained to Taiwanese government interests; several of the files related to upcoming conferences in Taiwan. Once the malicious file was downloaded and extracted by the victim, Etumbot uses a right-to-left override exploit to trick the victim to download the malware installer. According to Arbor Security, the "technique is a simple way for malware writers to disguise the names of malicious files. A hidden Unicode character in the filename will reverse the order of the characters that follow it, so that a .scr binary file appears to be a .xls document, for example." Once the malware is installed, it sends a request to a command-and-control server with a RC4 key to encrypt subsequent communication. As was with the Ixeshe malware, Numbered Panda used Base64 encoded characters to communicate from compromised computers to the command-and-control servers. Etumbot is able to determine if the target computer is using a proxy and will bypass the proxy settings to directly establish a connection. After communication is established, the malware will send an encrypted message from the infected computer to the server with the NetBIOS name of the victim's system, user name, IP address, and if the system is using a proxy.
After the May 2014 Arbor Security report detailed Etumbot, FireEye discovered that Numbered Panda changed parts of the malware. FireEye noticed that the protocols and strings previously used were changed in June 2014. The researchers at FireEye believe this change was to help the malware evade further detection. FireEye named this new version of Etumbot HighTide. Numbered Panda continued to target Taiwan with spear phishing email campaigns with malicious attachments. Attached Microsoft Word documents exploited the CVE-2012-0158 vulnerability to help propagate HighTide. FireEye found that compromised Taiwanese government employee email accounts were used in some of the spear phishing. HighTide differs from Etumbot in that its HTTP GET request changed the User Agent, the format and structure of the HTTP Uniform Resource Identifier, the executable file location, and the image base address.

### New York Times (2012)

Numbered Panda is believed to be responsible for the computer network breach at the New York Times in late 2012. The attack occurred after the New York Times published a story about how the relatives of Wen Jiabao, the sixth Premier of the State Council of the People's Republic of China, "accumulated a fortune worth several billion dollars through business dealings." The computers used to launch the attack are believed to be the same university computers used by the Chinese military to attack United States military contractors. Numbered Panda used updated versions of the malware packages Aumlib and Ixeshe. The updated Aumlib allowed Numbered Panda to encode the body of a POST request to gather a victim's BIOS, external IP, and operating system. A new version of Ixeshe altered the previous version's network traffic pattern in an effort to evade existing network traffic signatures designed to detect Ixeshe related infections.