Through Mandiant investigation of intrusions, the FLARE Advanced
Practices team observed a group we track as UNC1945 compromise managed
service providers and operate against a tailored set of targets within
the financial and professional consulting industries by leveraging
access to third-party networks (see this href="/content/fireeye-www/en_US/blog/threat-research/2019/03/clustering-and-associating-attacker-activity-at-scale.html">blog
post for an in-depth description of “UNC” groups).
UNC1945 targeted Oracle Solaris operating systems, utilized several
tools and utilities against Windows and Linux operating systems,
loaded and operated custom virtual machines, and employed techniques
to evade detection. UNC1945 demonstrated access to exploits, tools and
malware for multiple operating systems, a disciplined interest in
covering or manipulating their activity, and displayed advanced
technical abilities during interactive operations.
Mandiant discovered and reported to Oracle href="https://nvd.nist.gov/vuln/detail/CVE-2020-14871">CVE-2020-14871,
which was addressed in Oracle's href="https://www.oracle.com/security-alerts/cpuoct2020.html">October
2020 Critical Patch Update. Mandiant recommends staying current
on all current patch updates to ensure a high security posture. We
will discuss this vulnerability in greater detail in a follow up blog post.
The threat actor demonstrated experience and comfort by utilizing
unique tactics, techniques and procedures (TTPs) within Unix
environments, demonstrating a high level of acumen in conjunction with
ease of operability in Microsoft Windows operating systems. They were
successful navigating multiple segmented networks and leveraging
third-party access to extend operations well beyond the initial
victim. Furthermore, UNC1945 operated from several virtual machines
pre-configured with post-exploitation tools in addition to their
custom toolset to evade detection and forensics.
In late 2018, UNC1945 gained access to a Solaris server and
installed a backdoor we track as SLAPSTICK in order to capture
connection details and credentials to facilitate further compromise.
The SSH service of this server was exposed to the internet at the
time, the same time we observed first evidence of threat activity.
Unfortunately, due to insufficient available evidence, the next
indication of activity was in mid-2020 at which time a different
Solaris server was observed connecting to the threat actor
infrastructure. This indicates a dwell time of approximately 519 days
based on recovered artifacts.
The threat actor used a Solaris Pluggable Authentication Module
backdoor we refer to as SLAPSTICK to establish a foothold on a Solaris
9 server. This facilitated user access to the system with a secret
hard-coded password and allowed the threat actors to escalate
privileges and maintain persistence (see Figure 1).
|
Figure 1: SLAPSTICK logs
At the initial victim, UNC1945 placed a copy of a legitimate
pam_unix.so file and SLAPSTICK in the /lib64/security folder. A day
later, the threat actor positioned a custom Linux backdoor, which
Mandiant named LEMONSTICK, on the same workstation. LEMONSTICK
capabilities include command execution, file transfer and execution,
and the ability to establish tunnel connections. (see Figure 2).
|
Figure 2: UNC1945 emplacement of SLAPSTICK