<p>I&#39;m curious:&nbsp; what exactly makes writing malware difficult?&nbsp; Consider a sophisticated modern mass-mailer with a backdoor.&nbsp; In my experience, it consists of:</p>
<p>A)&nbsp; Code to inject a thread into explorer.exe;&nbsp; that thread then contains:<br>B)&nbsp; Code to report to a central server via HTTP;<br>C)&nbsp; A SOCKS proxy thread and/or remote file system viewer;<br>D)&nbsp; A routine to scour the disk for email addresses;
<br>E)&nbsp; An SMTP client;<br>F)&nbsp; Code to ensure that the worm starts every time the system boots (almost always via the registry), and maybe<br>G)&nbsp; Code to make sure its registry key / executable are not deleted.</p>
<div>Each component is no more than 1,000 lines of code, and each is easily testable.&nbsp; For good measure, the binaries is are usually packed with either FSG or UPX.&nbsp; </div>
<div>&nbsp;</div>
<div>Your standard IRC trojan is even less sophisticated.&nbsp; Trojan downloaders are literally less than ten lines of C code to write.&nbsp; BHOs, as well, are much easier to write than they are to analyze (if you don&#39;t believe me, try it).&nbsp; SymbianOS malware is excruciatingly difficult to analyze, while the malware authors have an emulator and an SDK with a rich collection of examples to work with.
</div>
<p>I just don&#39;t see the &quot;incredibly hard&quot; part in writing malware:&nbsp; are you referring to some other class of malware than the ones I&#39;ve described?&nbsp; I agree with&nbsp;Sophos (while at the same time thinking AV is snake-oil):&nbsp; statically analyzing malware is substantially harder than writing it.
</p>