Re:Investigating a malware sample which sometimes fails to b...
by dogma1138 on Saturday September 24, 2016 @09:08PM
(#12573366)
Yes but they don't scale, and you still have a problem of figuring out what the malware does you can't attach a debugger to it, and in circuit debuggers for modern machines are non-existent (unless you are Intel/NSA).
[ Parent
| on HN ]
Re:Investigating a malware sample which sometimes fails to b...
by pmoriarty on Sunday September 25, 2016 @11:59AM
(#12575848)
You can record the contents of the disk before you run the malware and after, and then do a diff. You can also sniff network traffic.
I'm not sure how long you'd want to wait to give it a green light, if it doesn't do anything obviously bad, though. Maybe this could be combined with forwarding the clock to trick the malware in to thinking a lot of time has passed?
Re:Investigating a malware sample which sometimes fails to b...
by dogma1138 on Sunday September 25, 2016 @12:12PM
(#12575903)
Diffing the disk won't do you much good, the malware does it's interesting things in memory.
Overall as I said this doesn't scale.
Re:Investigating a malware sample which sometimes fails to b...
by pmoriarty on Sunday September 25, 2016 @01:11PM
(#12576192)
Viruses can spread copies of themselves and infect other programs, and can leave trails on the disk. They can also infect the mbr. Then there's ransomware which encryptes files on disk. These are all examples of malware that could be detected by diffing the disk. Of course, if it doesn't touch the disk, then you're left with network traces.
Re:Investigating a malware sample which sometimes fails to b...
by dogma1138 on Sunday September 25, 2016 @01:29PM
(#12576268)
I'm not saying they don't it just not the most interesting thing you may want to look at ;)
Anyhow don't bother with even trying to use physical machines as your primary platform, VM or better instruction level emulation is the way to go, not foolproof but it is at least scalable and flexible enough.
You also seem to conflict what detection means, detection can be easy "is this a known binary" if not > malware can be a pretty easy (if unrealistic) classification, when researchers talk about detecting malware we are talking about understanding what it does.
Diffing disks isn't really going to get you far.