This is nice know-how but this is general bad approach to do forensics via "live" analysis as rootkit can hide/fake outputs. Forensics should be made on off-line system by HDD analysis.
You can do RAM dump and then shutdown system, if you will not find anything on HDD then malware can't survive reboot (will be in RAM). Also there can be harder problem like rootkit in some firmware but then live forensics will not help too :). There is no "gold" method that can guarantee best approach but live forensics is worst way to do it. Due such bad approach (live forensics) you will overwrite artifacts, not only on HDD but also in RAM - this is why there should be at first made RAM dump on external HDD and HDD image, or if you can best way is virtual machine snapshot (if analysed system is VM).
I think this is technically true, but a bit misunderstood. Yes, rootkits can hide things, but they generally don't hide everything. Knowing how to ask the same question about files, process and network connections in multiple ways is key. This opens the possibility of catching a way a rootkit is not hiding.
Also, rootkit level techniques are rare. The techniques covered in this sheet, and others, will work for the majority of infections.
And, I also respectfully disagree on doing forensics on a live system as a "bad idea". You have to find out if the system is infected somehow, and live forensics is how you will do it.
Please check my comment bellow https://www.reddit.com/r/netsec/comments/c185s3/windows_incident_response_cheat_sheet/erdwc6e/. This is common that people do live forensics and that way overwrite a lot artifacts, but also can't detect rootkit as it fakes responses because of some DLL injections etc. This is same level as doing rootkit detection with rkhunter and chkrootkit :).
You clearly have no experience with IR/Hunting on a live network.
Everything is done on live systems using EDR tools and memory forensics. Disk persistent malware is quickly becoming a thing of the past.
Good luck finding samples and Actor TTPs when they change every few days and are only active for a few minutes per box.
Edit: while there is value in performing offline dead disk forensics in an IR deployment you will quickly find that it will not scale and you should use it very sparingly and methodically.
Depends. Ransomware and the like is still very often found on the disk.
Most times malware can be found on disk, but at least in RAM. Most APTs regarding Mitre ATT&CK is like common red teaming, nothing very special - mimikatz etc.
Edit: while there is value in performing offline dead disk forensics in an IR deployment you will quickly find that it will not scale and you should use it very sparingly and methodically.
As mentioned bellow, I really knows that - I am co-author of ENISA documents for computer forensics from 2013. In most cases most effective is off-line analysis of disk and RAM. Doing live forensics without off-line analysis is demonstration of ignorance and bad practice mainly because of how rootkit works and for what rootkits are... they should hide against such live forensics technics, this is their main pourpose.
If you want do real IR, you need be prepared before incident, having remote log server and well configured system, if Windows then Sysmon etc. Doing live forensics on default configured system, without any remote log server/SIEM etc is just "better than nothing".
Remember always to do at first copy of disk/RAM, because live forensics will overwrite a lot artifacts. If you have VM then do snapshot before your activity - this is best approach and best possible evidence to analysis.
Most APTs regarding Mitre ATT&CK is like common red teaming, nothing very special - mimikatz etc.
Most of our clients wouldn't recognize an APT until they start shutting down the DC.
Doing live forensics without off-line analysis is demonstration of ignorance and bad practice
Full ACK.
If you want do real IR, you need be prepared before incident, having remote log server and well configured system, if Windows then Sysmon etc. Doing live forensics on default configured system, without any remote log server/SIEM etc is just "better than nothing".
I agree. Unfortunately, most of the time this is exactly what we have to deal with.
By the looks of it, all of you seems to have a pretty decent understanding of IR. Not that any of this covers when the customer cannot afford to shut down their production system - no matter the cost.
Anyway, as of now I'm diving into the IR role but know I got a lot to learn. I'm a previously a redteamer, so got a decent understanding on attacking systems in various aspects, as well as patching their weaknesses. Do you guys have any must-read / must-do resources for IR to recommend?
I do DF/IR for a living and I don't really enjoy the forensics part all that much (forensics without the incident background that is)
I'd recommend getting a grip on basic forensics, though. You'll desperately need it once shit hits the fan. I'm a big fan of sans.org and currently hold a GCFE (I'm trying to get a GREM or GMON funded but that'll depend on my new org from July on)
Other than that I'm mostly confident I can deal with anything because I've been a volunteer with the German Federal Agency for Technical Relief for the last 20 years and I've worked in a crisis management staff for the last 9 or so. So I guess it's not that much a must read but more of a "get into the mindset" thing.
Reading recommendation for consultants of any kind (and especially for people trying to manage disasters) "How to win friends and influence people"... You can be the best tech person in the room, if you're shit at communicating you'll achieve nothing and in the worst case you get booted out of the room due to being an insufferable asshole. I've been on both sides of this situation and I know which one I liked better. I haven't been an insufferable asshole in quite some time.
So, tl;dr: be good at handling people and then make sure you can handle the tech part.
Thanks for the reply. I took the GDAT recently and fell in love with the incident investigation part, especially hunting and preventing TTP's from happening. At the same time, I do see the lack of forensic skills and methodology in some areas I need. Guess a lot of this comes with experience, but I'd want to prevent false negatives at any cost.
Got the people handling part well under control, just need to make sure I got what it takes of tech skills for the various situations.
I took the GDAT recently and fell in love with the incident investigation part, especially hunting and preventing TTP's from happening.
Er... Let me jump to conclusions, please. ;)
If you love hunting and preventing TTPs you're almost certainly thinking of APT and stuff like that. Incident Response isn't about APTs and their ilk for about 99% of the companies I work with.
Get the basics under control first. Make sure you can deal with a stupid ransomware in the network. Make sure you can handle a worm in your network. Once you have those basics under control, you'll find the steps you've taken there to be incredibly helpful for tackling more advanced adversaries. Gradually you'll become a more adept incident handler and a more successful org.
If you or your org already did that, fine. If not, start now.
@swiftonsecurity has very good things to say about this.
Most incoming cases are indeed about compromised office accounts and ransomware. Haven't had any real experience with worms yet, may as well spin up a lab on that. Thanks for the tips
I agree. Unfortunately, most of the time this is exactly what we have to deal with.
Yeah, but then doing live forensics, no just mem dump + off-line analysis of disk and mem is in my opinion one of worst what people can do :). They even don't have logs etc. Funny stories are when people do live forensics and in meantime malware is encrypting data and/or overwriting informations like logs etc... this is why I recommed approach like mentioned above. To be honest if people have incident then should call experts, doing analysis on own is usually making things much worst.
To be honest if people have incident then should call experts, doing analysis on own is usually making things much worst.
Indeed. But if I'm called in (I'm the "expert", even though I don't like the attribute), I have to deal with whatever the client can provide. More often than not there just aren't any useful imaging capabilities or the like.
You probably should read about Dunning–Kruger effect because your main problem is ignorance, you just don't know how much you don't know. First of all you should do memory (RAM) dump on other HDD and shutdown system ASAP (for off-line HDD analysis) - let me know how live forensics is better from this approach. In memory you will have volatile data (yes, this is not magic - are in memory or HDD cache etc), all operations on HDD overwrite informations, especially when you do live forensics, also this kind of activity can activate some anti-analysis mechanisms (i.a. when you do live HDD image, run some fancy EnCase live forensics processes etc). Generally regarding IR/hunting, we should also have remote logs, netflows/pcaps etc - this is about how you are prepared, do you have Sysmon logs etc.
I am author of book about DFIR, unfortunetly is in Polish but you can try with Google Translator with free shared chapter http://images.iformat.pl/7ED5AD40EB/17975839-A407-4E94-8CDA-257717F37EFE.epub. I think it will answer you on many questions. In short, there is no "gold approach" because malware can detect RAM dump and move on HDD, can detect HDD image and move to RAM, can also use firmware of HDD, graphic card etc. Anyway above mentioned RAM dump + off-line analysis is best way in most cases, just remember about do RAM dump on other HDD if possible because you will overwrite artifacts on HDD. Please also note that when you don't have memory dump and you are doing live forensics then also you lost a lot volatile data.
BTW, what is your experience with DFIR, APT attacks simulations (red teaming) and analysis? Check my experience on website from my login.
I love how you quote the Dunning-Kruger effect and then proceed to write a wall of text about how you are smarter than the rest of us.
You clearly have some experience in the space, but you shouldn’t shit on community contributors like OP when they do have genuinely useful info and you just want to flex.
But why you dont comment my arguments, but just pointed to very little part in which I commented your accusations? How much experience do you have in DFIR/threat hunting/IR/computer forensics and what are your achievements in such? I was doing DFIR and threat hunting before there was fancy buzzwords. But you only write that I am wrong and you slander me, but you can't argue with my comments in substantive discussion - why? Dunning-Kruger effect part was about your comment, you *think* you are right because have no experience in such fields.
Most people read Google about computer forensics and think they know how to do it, and this is just bad approach and they don't know how real forensics should looks like. This is same level as doing forensics with free tools (waste of time, not possible to do real IR that way, checking "all" in reasonable time, is like MS Paint vs Photoshop in editing of photos for product adversment). This is also my problem because people overwrite artifacts, as they "know better" like you. I see in your comments only hates, but no any real technical arguments - this is hypocrisy.
Please read my first comment https://www.reddit.com/r/netsec/comments/c185s3/windows_incident_response_cheat_sheet/erbj998 - as I commented, this is good know-how, but generall approach to DFIR is just bad. This can be good to some kind of manual threat hunting, some kind of systematic system review, but not IR. To be honest I had chat on LinkedIn with author of this post and he agreed with me.
The Dunning-Kruger effect is considered a bias of people mistaking their cognitive-abilities... It is more general than "thinking you're an expert when you are not." I am not sure what studies you are reading but perhaps do a bit more research on the topic.
With that being said. From an offensive Vulnerability Researcher's perspective, /u/adamziaja_com's advice indicated he is indeed informed on the topic. Malware that’s sophisticate can hide itself from live-analysis and if the goal is to first do no more harm it is probably best to get any quick dump you can and perform the rest of your investigation by other means. An example might be ransomware that encrypts your content while you are working. The more time the malware gets to run the worse off... live-analysis might do more harm than good. In DoD, the dump then go offline is the more often used strategy.
On the other hand. OP's contribution is still useful. No need for anyone to be a douche when it comes to sharing information. So don't take that as a criticism. For someone who's history primarily concerned with UNIX systems when it comers to Security Research, I learned some cool Windows stuff from this.
But your new definition agrees what I said about DK.. You’re arguing my point, or maybe we are confused as to what each other is actually referring to. I agree, that if someone actually has the competence on a subject it is NOT DK effect.
If you simply googling about the concept they use my wording almost exactly. Other resources (aside form the actual study) use very similar terminology. Check for yourself.
9
u/adamziaja_com Jun 16 '19
This is nice know-how but this is general bad approach to do forensics via "live" analysis as rootkit can hide/fake outputs. Forensics should be made on off-line system by HDD analysis.