Open Directories Expose Publicly Available Tools Targeting Asian Organizations

Open Directories Expose Publicly Available Tools Targeting Asian Organizations

Published on

Published on

Published on

Jun 18, 2024

Jun 18, 2024

Jun 18, 2024

Open Directories Expose Publicly Available Tools Targeting Asian Organizations
Open Directories Expose Publicly Available Tools Targeting Asian Organizations
Open Directories Expose Publicly Available Tools Targeting Asian Organizations
TABLE OF CONTENTS

Introduction

The Hunt Research Team recently identified an exposed web server used to target the Taiwanese Freeway Bureau and a local data center. The server's administrator utilized open-source tools such as Nmap, SQLMap, and the backdoor BlueShell to conduct their activities. The directory was only briefly available before the actor likely realized the mistake.

Using Hunt's Open Directory Search feature, we'll explore the files downloaded from this server (available to Hunt users) and examine a history of similarly misconfigured infrastructure targeting various Taiwanese government agencies over the past year.

The Initial Discovery: Exposed Web Server & Tools

Hunt researchers identified a publicly accessible web server at IP address 103.98.73_189:8080, located in Taiwan. The server's HTTP headers (SimpleHTTP/0.6 Python/3.8.2) suggested it was running a Python-based web server, serving a variety of files and folders.

Due to the brief exposure of the misconfigured server, we’ll be conducting our analysis using Hunt’s Open Directories feature. Our scanners continuously scour the internet, downloading files from misconfigured servers around the clock. This capability allows us to uncover hidden threats and provide insights into tactics used by threat actors.

The server in question was first captured in the Hunt platform on 31 May 2024.

https://app.hunt.io/images/blogs/opendir-asian/figure_1.webp
Figure 1: Screenshot of the open directory in Hunt and files readily available for download

The threat actor employed SQLMap to scan for vulnerabilities within a subdomain of the freeway.gov_tw server. Our team confirmed that this targeted site is a legitimate government website for Taiwan. Although we could not retrieve the results from the history/ and output/ folders, as depicted in Figure 2, key files such as the log, session.sqlite, and target.txt files were successfully downloaded.

https://app.hunt.io/images/blogs/opendir-asian/figure_2.webp
Figure 2: File contents of exposed sqlmap/ folder

Figure 3 illustrates the contents of the target.txt file located in the .sqlmap/ folder. In a Linux system, the leading dot in the folder name indicates it was meant to be hidden.

https://app.hunt.io/images/blogs/opendir-asian/figure_3.webp
Figure 3: SQLMap command within target.txt file

The threat actor used Nmap to scan for open ports within a /26 network associated with a data center in Taiwan. To ensure the security and privacy of those affected, we have obfuscated the IP address in the file containing the scan results.

Next, we focus on the folder ./configrc5, which contains multiple bash files. One of these files checks the network connection to another IP address and looks for specific CPUs.

The most interesting of the bash scripts is simply named “a” and detects the CPU type (AMD Zen4, Zen3, Zen2/1, or Intel) and applies the corresponding Model-Specific Register (MSR) values to optimize performance specific to each CPU type.

Tailored scripts searching for certain CPU types suggest a well-informed and methodical threat actor with extensive knowledge of the target network.

Figure 4 shows a script snippet including a commented-out network connection check to the IP address 45.9.148_228.

https://app.hunt.io/images/blogs/opendir-asian/figure_4.webp
Figure 4: Snippet of ‘a’ bash script

While little is known about the IP used to check network connectivity, querying the address in Hunt reveals an overlap of SSH keys with multiple servers, as seen in Figure 5 below.

https://app.hunt.io/images/blogs/opendir-asian/figure_5.webp
Figure 5: SSH key overlaps from IP used for the connectivity check

The last two files in the directory, written in Golang, are named bsServer-0530 and bsServerfinal. Sandbox analysis reveals that these files access server.pem from within the /key folder of the directory.

Figure 6 displays the certificate contents for both files, which match exactly with the open-source backdoor BlueShell. We can confidently conclude that both files are associated with the above malware.

https://app.hunt.io/images/blogs/opendir-asian/figure_6.webp
Figure 6: BlueShell certificate within /key folder of the directory

Open Directory Patterns

We can uncover additional misconfigured servers targeting Taiwanese organizations using Hunt's Open Directories search function.

Surprisingly, as shown in Figure 7, our scanners identified 55 files matching the query "gov.tw." Notably, the last IP in the list, 156.251.172_194, stands out. This IP was previously highlighted in EclecticIQ's report on a Chinese threat actor using Cobalt Strike Cat to target Taiwanese critical infrastructure.

https://app.hunt.io/images/blogs/opendir-asian/figure_7.webp
Figure 7: Screenshot of files found in open directories with the term “gov.tw.” Try it!

Notable Mentions

Instead of reiterating EclecticIQ's comprehensive analysis, we'll focus on some open directories that have yet to be publicly reported. These directories contain notable targets and a variety of offensive tools.

One example is IP address 35.229.211_35, which leverages various open-source tools such as SecurityTrails API, Acunetix, and ChatGPT. In Figure 8, you'll find an excerpt from a Python script named chatgpt.py, designed to automate web page content analysis. Interestingly, the script's comments are written in Chinese.

These findings highlight the range of tools attackers use and emphasize the significance of examining open directories to uncover potential security threats.

https://app.hunt.io/images/blogs/opendir-asian/figure_8.webp
Figure 8: Snippet of Python ChatGPT script

Similar to our initial discovery, the IP address 202.182.105_104, located in Japan and hosted on The Constant Company network, contained a .sqlmap folder. This folder included scan results against the Cambodian Ministry of Foreign Affairs and a school teaching the Taiwanese Hakka dialect.

Although not shown in Figure 9, the folder also contained output targeting Paraguay's Ministry of Foreign Affairs.

https://app.hunt.io/images/blogs/opendir-asian/figure_9.webp
Figure 9: Contents of open directory targeting Taiwan and Paraguay

Within the same directory is a folder named "af/" containing the program Afrog, a vulnerability scanning tool. This subfolder also included a file named taef.org.txt. In this context, TAEF stands for Taiwan-Asia Exchange Foundation, a policy think tank focused on Taiwan and Southeast/South Asia.

As shown in Figure 10, the file contains multiple subdomains for the organization. These subdomains were likely used for further reconnaissance and identifying vulnerabilities.

https://app.hunt.io/images/blogs/opendir-asian/figure_10.webp
Figure 10: Subdomain enumeration results for taef_org.

Lastly, we discovered IP 45.8.146_29, which hosted several offensive tools, including Brute Ratel C4, JSFinder, ProxyShell, and Earthworm. Among the various folders was "OneForAll," a subdomain enumeration tool. This folder contained scan results targeting the National Taiwan University Hospital, an Indonesian immigration office, the Indian Railway office, and a Thai Consulate General website.

Refer to Figure 11 for the tags identifying files within these open directories.

https://app.hunt.io/images/blogs/opendir-asian/figure_11.webp
Figure 11: Snippet of tools used in open directory targeting Asian countries

Conclusion

This blog post has explored a handful of open directories, uncovering various offensive tools and targeted scans against government and institutional entities across Taiwan and beyond. From leveraging SQLMap and Nmap to deploying advanced tools like Brute Ratel C4 and OneForAll, the threat actors' methods demonstrate a low-cost, high-reward approach to targeting networks.

These discoveries underscore the importance of continuously monitoring and analyzing open directories to identify and mitigate potential threats.

Join us in our mission to track and thwart these threat actors. Request an account today to gain access to Hunt's powerful tools and collaborate with us to uncover and analyze malicious infrastructure.

Network Observables

IP AddressNotes
103.98.73_189:8080Initial open directory
202.182.105_104:80Similar exposed server found through Hunt Open Directories
35.229.211_35:8080Similar exposed server found through Hunt Open Directories
45.8.146_29:80Similar exposed server found through Hunt Open Directories
156.251.172_194Similar server/EclecticIQ report
TABLE OF CONTENTS

Introduction

The Hunt Research Team recently identified an exposed web server used to target the Taiwanese Freeway Bureau and a local data center. The server's administrator utilized open-source tools such as Nmap, SQLMap, and the backdoor BlueShell to conduct their activities. The directory was only briefly available before the actor likely realized the mistake.

Using Hunt's Open Directory Search feature, we'll explore the files downloaded from this server (available to Hunt users) and examine a history of similarly misconfigured infrastructure targeting various Taiwanese government agencies over the past year.

The Initial Discovery: Exposed Web Server & Tools

Hunt researchers identified a publicly accessible web server at IP address 103.98.73_189:8080, located in Taiwan. The server's HTTP headers (SimpleHTTP/0.6 Python/3.8.2) suggested it was running a Python-based web server, serving a variety of files and folders.

Due to the brief exposure of the misconfigured server, we’ll be conducting our analysis using Hunt’s Open Directories feature. Our scanners continuously scour the internet, downloading files from misconfigured servers around the clock. This capability allows us to uncover hidden threats and provide insights into tactics used by threat actors.

The server in question was first captured in the Hunt platform on 31 May 2024.

https://app.hunt.io/images/blogs/opendir-asian/figure_1.webp
Figure 1: Screenshot of the open directory in Hunt and files readily available for download

The threat actor employed SQLMap to scan for vulnerabilities within a subdomain of the freeway.gov_tw server. Our team confirmed that this targeted site is a legitimate government website for Taiwan. Although we could not retrieve the results from the history/ and output/ folders, as depicted in Figure 2, key files such as the log, session.sqlite, and target.txt files were successfully downloaded.

https://app.hunt.io/images/blogs/opendir-asian/figure_2.webp
Figure 2: File contents of exposed sqlmap/ folder

Figure 3 illustrates the contents of the target.txt file located in the .sqlmap/ folder. In a Linux system, the leading dot in the folder name indicates it was meant to be hidden.

https://app.hunt.io/images/blogs/opendir-asian/figure_3.webp
Figure 3: SQLMap command within target.txt file

The threat actor used Nmap to scan for open ports within a /26 network associated with a data center in Taiwan. To ensure the security and privacy of those affected, we have obfuscated the IP address in the file containing the scan results.

Next, we focus on the folder ./configrc5, which contains multiple bash files. One of these files checks the network connection to another IP address and looks for specific CPUs.

The most interesting of the bash scripts is simply named “a” and detects the CPU type (AMD Zen4, Zen3, Zen2/1, or Intel) and applies the corresponding Model-Specific Register (MSR) values to optimize performance specific to each CPU type.

Tailored scripts searching for certain CPU types suggest a well-informed and methodical threat actor with extensive knowledge of the target network.

Figure 4 shows a script snippet including a commented-out network connection check to the IP address 45.9.148_228.

https://app.hunt.io/images/blogs/opendir-asian/figure_4.webp
Figure 4: Snippet of ‘a’ bash script

While little is known about the IP used to check network connectivity, querying the address in Hunt reveals an overlap of SSH keys with multiple servers, as seen in Figure 5 below.

https://app.hunt.io/images/blogs/opendir-asian/figure_5.webp
Figure 5: SSH key overlaps from IP used for the connectivity check

The last two files in the directory, written in Golang, are named bsServer-0530 and bsServerfinal. Sandbox analysis reveals that these files access server.pem from within the /key folder of the directory.

Figure 6 displays the certificate contents for both files, which match exactly with the open-source backdoor BlueShell. We can confidently conclude that both files are associated with the above malware.

https://app.hunt.io/images/blogs/opendir-asian/figure_6.webp
Figure 6: BlueShell certificate within /key folder of the directory

Open Directory Patterns

We can uncover additional misconfigured servers targeting Taiwanese organizations using Hunt's Open Directories search function.

Surprisingly, as shown in Figure 7, our scanners identified 55 files matching the query "gov.tw." Notably, the last IP in the list, 156.251.172_194, stands out. This IP was previously highlighted in EclecticIQ's report on a Chinese threat actor using Cobalt Strike Cat to target Taiwanese critical infrastructure.

https://app.hunt.io/images/blogs/opendir-asian/figure_7.webp
Figure 7: Screenshot of files found in open directories with the term “gov.tw.” Try it!

Notable Mentions

Instead of reiterating EclecticIQ's comprehensive analysis, we'll focus on some open directories that have yet to be publicly reported. These directories contain notable targets and a variety of offensive tools.

One example is IP address 35.229.211_35, which leverages various open-source tools such as SecurityTrails API, Acunetix, and ChatGPT. In Figure 8, you'll find an excerpt from a Python script named chatgpt.py, designed to automate web page content analysis. Interestingly, the script's comments are written in Chinese.

These findings highlight the range of tools attackers use and emphasize the significance of examining open directories to uncover potential security threats.

https://app.hunt.io/images/blogs/opendir-asian/figure_8.webp
Figure 8: Snippet of Python ChatGPT script

Similar to our initial discovery, the IP address 202.182.105_104, located in Japan and hosted on The Constant Company network, contained a .sqlmap folder. This folder included scan results against the Cambodian Ministry of Foreign Affairs and a school teaching the Taiwanese Hakka dialect.

Although not shown in Figure 9, the folder also contained output targeting Paraguay's Ministry of Foreign Affairs.

https://app.hunt.io/images/blogs/opendir-asian/figure_9.webp
Figure 9: Contents of open directory targeting Taiwan and Paraguay

Within the same directory is a folder named "af/" containing the program Afrog, a vulnerability scanning tool. This subfolder also included a file named taef.org.txt. In this context, TAEF stands for Taiwan-Asia Exchange Foundation, a policy think tank focused on Taiwan and Southeast/South Asia.

As shown in Figure 10, the file contains multiple subdomains for the organization. These subdomains were likely used for further reconnaissance and identifying vulnerabilities.

https://app.hunt.io/images/blogs/opendir-asian/figure_10.webp
Figure 10: Subdomain enumeration results for taef_org.

Lastly, we discovered IP 45.8.146_29, which hosted several offensive tools, including Brute Ratel C4, JSFinder, ProxyShell, and Earthworm. Among the various folders was "OneForAll," a subdomain enumeration tool. This folder contained scan results targeting the National Taiwan University Hospital, an Indonesian immigration office, the Indian Railway office, and a Thai Consulate General website.

Refer to Figure 11 for the tags identifying files within these open directories.

https://app.hunt.io/images/blogs/opendir-asian/figure_11.webp
Figure 11: Snippet of tools used in open directory targeting Asian countries

Conclusion

This blog post has explored a handful of open directories, uncovering various offensive tools and targeted scans against government and institutional entities across Taiwan and beyond. From leveraging SQLMap and Nmap to deploying advanced tools like Brute Ratel C4 and OneForAll, the threat actors' methods demonstrate a low-cost, high-reward approach to targeting networks.

These discoveries underscore the importance of continuously monitoring and analyzing open directories to identify and mitigate potential threats.

Join us in our mission to track and thwart these threat actors. Request an account today to gain access to Hunt's powerful tools and collaborate with us to uncover and analyze malicious infrastructure.

Network Observables

IP AddressNotes
103.98.73_189:8080Initial open directory
202.182.105_104:80Similar exposed server found through Hunt Open Directories
35.229.211_35:8080Similar exposed server found through Hunt Open Directories
45.8.146_29:80Similar exposed server found through Hunt Open Directories
156.251.172_194Similar server/EclecticIQ report

Related Posts:

DarkPeony’s Trail: Certificate Patterns Point to Sustained Campaign Infrastructure
Nov 21, 2024

Explore how DarkPeony's consistent use of certificates reveals ongoing infrastructure activity, indicating consistent operations across different regions.

DarkPeony’s Trail: Certificate Patterns Point to Sustained Campaign Infrastructure
Nov 21, 2024

Explore how DarkPeony's consistent use of certificates reveals ongoing infrastructure activity, indicating consistent operations across different regions.

XenoRAT Adopts Excel XLL Files and ConfuserEx as Access Method
Nov 19, 2024

Discover XenoRAT’s adoption of Excel XLL files and Confuser’s tactical shift from its usual methods, with our insights on adapting to evolving malware techniques.

XenoRAT Adopts Excel XLL Files and ConfuserEx as Access Method
Nov 19, 2024

Discover XenoRAT’s adoption of Excel XLL files and Confuser’s tactical shift from its usual methods, with our insights on adapting to evolving malware techniques.

Targeting Innovation: Sliver C2 and Ligolo-ng Used in Operation Aimed at Y Combinator
Nov 12, 2024

Sliver C2 and Ligolo-ng join forces in a campaign likely targeting Y Combinator, revealing tactics and infrastructure aimed at the accelerator's network. Learn more.

Targeting Innovation: Sliver C2 and Ligolo-ng Used in Operation Aimed at Y Combinator
Nov 12, 2024

Sliver C2 and Ligolo-ng join forces in a campaign likely targeting Y Combinator, revealing tactics and infrastructure aimed at the accelerator's network. Learn more.

RunningRAT’s Next Move: From Remote Access to Crypto mining For Profit
Nov 5, 2024

RunningRAT has shifted from access-driven tactics to crypto mining, using open directories to stage payloads and reduce direct C2 traffic.

RunningRAT’s Next Move: From Remote Access to Crypto mining For Profit
Nov 5, 2024

RunningRAT has shifted from access-driven tactics to crypto mining, using open directories to stage payloads and reduce direct C2 traffic.

DarkPeony’s Trail: Certificate Patterns Point to Sustained Campaign Infrastructure
Nov 21, 2024

Explore how DarkPeony's consistent use of certificates reveals ongoing infrastructure activity, indicating consistent operations across different regions.

XenoRAT Adopts Excel XLL Files and ConfuserEx as Access Method
Nov 19, 2024

Discover XenoRAT’s adoption of Excel XLL files and Confuser’s tactical shift from its usual methods, with our insights on adapting to evolving malware techniques.