Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Security
Malware Analysis
TrojanZipperPOC and ESET signatures Case Study
Message
<blockquote data-quote="MacDefender" data-source="post: 876797" data-attributes="member: 83059"><p>I noticed something cool when revisiting my fake ransomware that used 7z.exe to ransom data. ESET now detects it as "MSIL/Hoax.FakeFilecoder.FP"</p><p></p><p>So that begs the question: How is ESET going to respond to some variations in this binary? So here's some quick experiments:</p><p></p><p>1. Changed just the string I print out at the end. It's now "A Variant Of MSIL/Hoax.FakeFilecoder.FP"</p><p></p><p>[URL unfurl="true"]https://www.virustotal.com/gui/file/045328f8848ef588fb8af4e635b1d06e7facb2e5e8221bc4e258ec55714dbd2c/detection[/URL]</p><p></p><p>2. Changed the file extension from ".encrypted" to ".ransom". Still "A Variant Of MSIL/Hoax.FakeFilecoder.FP"</p><p>[URL unfurl="true"]https://www.virustotal.com/gui/file-analysis/ZmY2NmI0YWUxZWM0NWQ3M2Y0ZDU1YjhjMDk4OWUxMDk6MTU4Nzk0OTM5Nw==/detection[/URL]</p><p></p><p>3. Split the arguments to 7zip:</p><p>Before:</p><p>[code]</p><p> string args = " a -t7z -pransom -sdel " + string.Format("\"{0}\" \"{1}\"", dst, src);</p><p>[/code]</p><p>After:</p><p>[code]</p><p> string args = string.Format("{0} {1} {2} {3}", "a", "-t7z", "-pransom", "-sdel") + string.Format("\"{0}\" \"{1}\"", dst, src);</p><p>[/code]</p><p><strong>No Detection:</strong></p><p>[URL unfurl="true"]https://www.virustotal.com/gui/file/61da77f7fb9410ab181147aab4fb1c583b379eb356a52256dfcae5af86de043a/detection[/URL]</p><p></p><p></p><p></p><p>As a bonus test, I just fired up a new VM and created a new project, and copy-pasted the exact same C# code into it. Kind of puzzled: No detection either:</p><p>[URL unfurl="true"]https://www.virustotal.com/gui/file/fa6375791eb901197cf3ae9ab4984e1691474b27a6ed038be0833b8f35b6ab4c/detection[/URL]</p><p></p><p></p><p>It's an interesting look at the signatures that ESET produced for this file. As I expected, it will detect straightforward variations but it seems like they centered the detection around the arguments to 7zip, and if those are broken apart or reordered, even though the application does the exact same thing, a static scanner has a hard time being able to discern that.</p><p></p><p></p><p>This is one of the gripes I have with static scanning. Many tools and methods exist for obfuscating code to make it difficult to statically inspect. What you ultimately cannot hide is the fact that this thing, on execution, will try to run 7zip. I would say a rule around using "7z.exe" with a -p (password) and a -sdel (source delete) argument should be considered highly highly suspicious. While it's normal to use 7zip, using it with those two arguments strongly implies something fishy is going on.</p><p></p><p></p><p>NOTE: As a caveat, perhaps because they labeled this as a hoax, they do not consider it serious enough of a threat to produce high-quality signatures for.</p></blockquote><p></p>
[QUOTE="MacDefender, post: 876797, member: 83059"] I noticed something cool when revisiting my fake ransomware that used 7z.exe to ransom data. ESET now detects it as "MSIL/Hoax.FakeFilecoder.FP" So that begs the question: How is ESET going to respond to some variations in this binary? So here's some quick experiments: 1. Changed just the string I print out at the end. It's now "A Variant Of MSIL/Hoax.FakeFilecoder.FP" [URL unfurl="true"]https://www.virustotal.com/gui/file/045328f8848ef588fb8af4e635b1d06e7facb2e5e8221bc4e258ec55714dbd2c/detection[/URL] 2. Changed the file extension from ".encrypted" to ".ransom". Still "A Variant Of MSIL/Hoax.FakeFilecoder.FP" [URL unfurl="true"]https://www.virustotal.com/gui/file-analysis/ZmY2NmI0YWUxZWM0NWQ3M2Y0ZDU1YjhjMDk4OWUxMDk6MTU4Nzk0OTM5Nw==/detection[/URL] 3. Split the arguments to 7zip: Before: [code] string args = " a -t7z -pransom -sdel " + string.Format("\"{0}\" \"{1}\"", dst, src); [/code] After: [code] string args = string.Format("{0} {1} {2} {3}", "a", "-t7z", "-pransom", "-sdel") + string.Format("\"{0}\" \"{1}\"", dst, src); [/code] [B]No Detection:[/B] [URL unfurl="true"]https://www.virustotal.com/gui/file/61da77f7fb9410ab181147aab4fb1c583b379eb356a52256dfcae5af86de043a/detection[/URL] As a bonus test, I just fired up a new VM and created a new project, and copy-pasted the exact same C# code into it. Kind of puzzled: No detection either: [URL unfurl="true"]https://www.virustotal.com/gui/file/fa6375791eb901197cf3ae9ab4984e1691474b27a6ed038be0833b8f35b6ab4c/detection[/URL] It's an interesting look at the signatures that ESET produced for this file. As I expected, it will detect straightforward variations but it seems like they centered the detection around the arguments to 7zip, and if those are broken apart or reordered, even though the application does the exact same thing, a static scanner has a hard time being able to discern that. This is one of the gripes I have with static scanning. Many tools and methods exist for obfuscating code to make it difficult to statically inspect. What you ultimately cannot hide is the fact that this thing, on execution, will try to run 7zip. I would say a rule around using "7z.exe" with a -p (password) and a -sdel (source delete) argument should be considered highly highly suspicious. While it's normal to use 7zip, using it with those two arguments strongly implies something fishy is going on. NOTE: As a caveat, perhaps because they labeled this as a hoax, they do not consider it serious enough of a threat to produce high-quality signatures for. [/QUOTE]
Insert quotes…
Verification
Post reply
Top