Ransomware
Eric over at Carbon Black recently posted regarding the Kangaroo ransomware. Here are some cool things that Eric point out about the ransomware:
1. It's GUI based, and the folks using it to infect un-/under-protected RDP servers.
2. The ransomware time-stomps itself. While on the surface this may seem to make it ransomware difficult to find during DFIR, that's not really the case at all, and to be honest, I'm not at all sure why this step was taken.
3. The ransomware clears the System and Security Event Logs, and removes VSCs. As with the time stomping, I'm sure that clearing the Event Logs is intended to make things difficult but to be honest, most folks who've done this kind of work know (a) where to look for other artifacts, and (b) know how to recover cleared Windows Event Logs.
Eric's technical analysis doesn't mention a couple of things that are specific to ransomware. For example, while Eric does state that the ransomware is deployed manually, there's no discussion of the time frame after accessing the RDP server in which the ransomware is deployed, nor if there are any attempts at network mapping or privilege escalation. I'm sure this is the result of the analysis being based on samples of the ransomware, rather than due to responding to engagements involving this ransonware. Earlier this spring, I saw two different ransomware engagements that were markedly different. While both involved compromised RDP servers, for one, the bad guy got in, mucked about for a week (7 days total, albeit not continuously) installing Opera, Firefox, and a GIF image viewer, and then launched ransomware without ever attempting to escalate privileges. As such, only the files in the compromised profile were affected. On the other hand, in the second instance, the adversary accessed the RDP server and within 10 minutes escalated their privileges and launched the ransomware. In this case, the entire RDP server was affected, as were other systems within the infrastructure.
Types of Ransomware
Speaking of ransomware, I ran across this article from CommVault recently, which discusses "5 major types" of ransomware. Okay, that sparked my interest...that there are "5 major types".
Once I started reading the article, I became even more interested, particularly in the fourth type, identified as "Samsam". Okay, this is the name of a variant or family, not so much what I'd refer to as a "type" of ransomware...but okay. Then I read this statement:
Once inside the network, the ransomware looks for other systems to attack.
I've worked with Samsam, or "Samas" ransomware for a while. For example, I authored this blog post (note: prior employment) based on analysis of about half a dozen different ransomware engagements where Samas was deployed. In all of those cases, a JBoss server was exploited (using JexBoss), and an adversary mapped the network (in several instances, using Hyena) before choosing the systems to which Samas was then deployed. More recently (i.e., this spring), the engagements I was aware of involved RDP servers being compromised (credentials guessed), and much shorter timeframe between initial access and the ransomware being deployed.
My point is, from what I've seen, the Samas ransomware doesn't do all the things that some folks say it does. For example, I haven't yet seen where the ransomware looks for other systems. Further, going back to Microsoft's own description of the ransomware modus operandi, I saw no evidence that the Samas ransomware "scans the network"...I did, however, find very clear evidence that the adversary did so. So, a lot of what is attributed to the ransomware itself is, in reality, and based on looking at data, the actions of a person, at a keyboard.
If you want to see some really excellent information about the Samas ransomware, check out Kevin Strickland's blog post on the topic. Kevin did some really great work, and I really can't say enough great things about the work he did, and what he shared.
Windows Registry
Over on the Follow the White Rabbit blog, @_N4rr34n6_ has an interesting article discussing the Windows Registry. The article addresses setting up and using RegRipper and its various components, as well as other tools such as Corey Harrell's auto_rip and Phill Moore's RegRipper GUI, both of which clearly provide a different workflow placed over the basic code.
Podcasts
I've had the honor and privilege to be asked to be involved on a couple of podcasts recently, and I thought I'd share the links to all of them in one place, for those who are interested in listening:
Doug Brush's CyberSecurity Interviews - I've followed Doug's CyberSecurity Interviews from the beginning, and greatly appreciated his invitation and opportunity to engage
Down the Security Rabbithole with Rafal and James; thanks to both of these fine gentlemen for offering me the opportunity to be part of the work they're doing
Nuix Unscripted - Corey did a really great job moderating Chris and I, which brought things full circle; not only did Chris and I used to work together, but Chris was one of the very first folks interviewed by Doug Brush...
Investigations
Chris Woods over at Nuix (transparency: this is my employer) posted an excellent article regarding three best practices for increasing the efficiency of examinations. Interestingly enough, these are all things that I've endorsed over the years...defining clear analysis goals, collaboration, and using what has been learned from previous investigations. I want to say something about "great minds", but the simple fact is that these are all "best practices" that simply make sense. It's as simple as that.
WifiPasswordReveal
I ran across something really fascinating today..."wait," you ask, "more fascinating than making your computer recite lines from the Deadpool movie??" Well...no...but almost! Here is a fascinating article that illustrates not only the steps for how to reveal Wifi passwords on a Win7+ computer, but provides a batch file for doing so! How cool is that?
LNK Metadata
A bit ago, I'd taken a look at a Windows shortcut/LNK file from a campaign someone had blogged about, and then submitted a Yara rule to detect submissions to VirusTotal, based on the MAC address, volume serial number, and SID embedded in the LNK file. This was based on an LNK file that had been sent to victims as an attachment.
The Yara rule I submitted a while back looks like this:
rule ShellPhish
{
strings:
$birth_node = { 08 D4 0C 47 F8 73 C2 }
$vol_id = { 7E E4 BC 9C }
$sid = "2287413414-4262531481-1086768478" wide ascii
condition:
all of them
}
So, pretty straightforward. The thing is, over the past few days, I've seen a pretty significant up-tick in responses from the retro hunt, indicating a corresponding up-tick in submissions to VT. Up to this point, I'd been seeing maybe one or two detections (again, based on submissions) a week; I've received about a few dozen or so in the past two days alone. This up-tick in responses is an interesting change, particularly because I'm not seeing a corresponding mention of campaigns utilizing LNK files as attachments (to emails, or embedded in documents, etc.).
A couple of things I haven't done is note the first submission dates for the items, as well as the country from which they were submitted, and then downloaded the LNK file itself to parse out the command line, and note the differences.
So, why am I even mentioning this? Well, this goes back to Jesse Kornblum's premise of using every part of the buffalo, albeit the fact that it's not directly associated with memory analysis. The metadata in file formats such as documents and LNK files can be used to develop insight based on relationships, which can lead to attribution based on further developing the threat intelligence you already have available.
2 comments:
Hi there.
So i was struggling to find your contact details but just wanted to say your book was great and your tool is pretty cool (used it on kali for a uni assignment)
Many Thanks,
Freddie Barr-Smith
Hi there,
Couldn't find your email, just wanted to say really enjoyed the book and used regripper on kali for a uni assignment.
Many Thanks,
Freddie
Post a Comment