The recent emergence of AI-powered attack frameworks has gained a lot of publicity. At Sandfly, we are now seeing attack traces showing up in our malware feeds and wanted to discuss some of the emerging capabilities and detection of one such framework, CyberstrikeAI. In particular, we'll discuss the implant dropper it uses by default on Linux.
Some of the frameworks that have gained attention so far are ARTEX, Cyberstrike, Hexstrike, and Cairn. The frameworks automate a lot of the attack process and use LLMs to help organize and drive off-the-shelf tooling to rapidly iterate and press to gain entry and move laterally.
We'll have more to discuss about these frameworks in the future, but for now the early versions of these systems generate a lot of noise. We don't expect this to continue, but by and large they can be seen and stopped by networks deploying proper detection, firewalling, segmentation, and credential/access controls. This has always been important in the past, but it is now critical as AI systems are relentless and can locate and iterate very fast to find weaknesses. It's important to keep your organization's network profile as small as practical and make sure assets that are exposed are tightly monitored and contained.
At Sandfly, we constantly monitor for new and interesting Linux malware and in the past month or two we have seen some implants from CyberstrikeAI start to appear. An initial review shows these implants have the following characteristics:
The implant itself has typical command and control (C2) capabilities:
The versions we have reviewed also have these persistence mechanisms:
The implant itself can be put anywhere on the disk and will remain present for persistence reasons.
Sandfly customers can find this implant using default settings. Customers on 6.0 have the additional benefit of our new Machine Learning (ML) malware classifier which will find this style of implant immediately regardless of where or how it is being run.
Not a Sandfly customer yet? Request a Free Trial and check your Linux hosts. No agent to install.
The implant itself has no real stealth capabilities as of today. As a result, the binary is easily seen in standard Linux ps listings and network port activity is also easily confirmed using standard system tools. Our blog contains numerous articles on how to investigate suspicious processes and network activity and we encourage you to read them as they all apply here.
We expect as these frameworks evolve that stealthier capabilities will become standard. This is why we encourage customers who haven't yet upgraded to 6.0 to do so and take advantage of ML network implant detection.
Below we have executed an in-the-wild implant to demonstrate what it looks like when run. The ps listing below again shows that it makes no effort to hide. Again, we expect these frameworks to evolve to become much more evasive, so do not read into this too deeply.
The first indication of trouble is the Sandfly 6.0 dashboard. The host went into alert and the AI triage system quickly escalated the threat. While AI systems are not required to find this threat with Sandfly, they do provide instant summary context for security teams. Below we are using Google's models for the demonstration, but customers can bring any model in the cloud or on-prem for privacy.
The initial triage is clear, but customers can go into the full triage to get a detailed analysis of the threat.
Sandfly 6.0 has moved to a forensic artifact view. Customers will see an "artifact" such as a process or file rather than a list of alerts. The artifact is a combination of all the alerts bringing a single conclusion to the top. Below we see two artifacts identified with this attack framework:
Presenting both the running process and the dormant payload artifacts provides double coverage of the threat. For fileless attacks, the running process will be identified. In other cases, a payload may not have run correctly or exited and was orphaned. The binary left behind indicates a system may have been compromised or the compromise failed. Having both pieces of data allows security teams to put the pieces together and not miss detection opportunities.
Again, we see the summary view along with the ML scoring for quick determination. For customers not using AI analysis features, the rest of the triage view and ML scores are still present, giving identical coverage without the summary description.
For customers who have enabled AI analysis, the forensic data we supply allows LLM systems to really sing. Even small models can provide excellent insight and summary of threats. AI systems run into trouble when you make them guess with big gaps in the data. Sandfly 6.0 supplies them with enough forensic detail that guessing does not happen.
The binary activates multiple default alerts in Sandfly along with the ML scoring. These are also brought into the AI analysis system providing a full report of everything that is happening:
The implant tries to initiate a connection to the C2 server after starting. During this time it holds a network socket open and retries periodically to connect.
Below we see the implant sending a TCP SYN packet to the now absent server to establish a connection. Note the use of TCP port 4444 which is very common in pentesting and other attack frameworks such as Metasploit. We have seen variants using other ports so relying on this alone for detection is not reliable though. However, TCP port 4444 should always raise extra awareness if you see outbound/inbound connections to it in network monitoring systems as it's extremely common beyond CyberstrikeAI.
The implant contains a hardcoded IP address as a URL. Hardcoded IP addresses are uncommon as legitimate services will rely on hostnames to resolve via DNS. Malware often wants to avoid DNS lookups or otherwise use disposable IP addresses in C2 frameworks.
The new Sandfly 6.0 ML scoring system uses a tagging feature that places tags on binaries that reveal high-level features and suspicious actions outside the score. Below we see the hardcoded-ip-url tag applied to this binary along with other capabilities and features such as network-client and missing hardening attributes on Linux.
The CyberstrikeAI implant has built-in mechanisms to install persistence on Linux. Inside the raw forensic data, operators can see some of what it is doing. It targets both crontab and .bashrc scripts to hang around after reboots. Again, we fully expect this to mature to target systemd and other evasive persistence areas in the future.
Other strings were flagged revealing suspicious text, including cyberstrike-ai in the binary itself along with function names that would be common in implant code.
As stated, CyberstrikeAI and other frameworks are in their infancy and enable a skilled attacker to multiply their effectiveness through sheer iterations and relentless LLM efficiency. As these frameworks evolve, they clearly will adopt stealthier mechanisms, low and slow attack methods, and other evasion characteristics.
Linux is a definite target for these systems as many hosts are unmonitored, making them easy to move onto unnoticed. Sandfly 6.0 has evolved to handle these emerging threats and we have much more coming in this area. Customers are encouraged to upgrade to 6.0 to take advantage of our new features and stay in ahead of this new category of attack systems.