I used to work for one of the antivirus companies. So I do know a bit about viruses, but am by no means an expert. I didn't do much deconstruction work, except on Unix.

A lot of the viruses out in the wild now are viruses that started out as a proof of concept and then somebody else ran with it. (See Concept & Melissa for examples). Trojans are probably a bigger threat in my opinion, but the definitions have intertwined over the years.

I'm against posting virus code even if it's harmless. It can inspire an otherwise unoriginal script kiddie to release what was before in a out of the way place. It can also have legal consequences. I'd rather not open up perlmonks to that sort of exposure. We can talk about it and I'd even go for posting snippets of code that is considered dangerous, but to post a full working program is wrong. Plus I'd hate to see the next McAfee/Symantec press release.

Some bits:

  • It's viruses, not virii language.perl.com
  • Most languages can be used to write a virus, I've seen shell scripts to man pages contain viral code.

  • In reply to Re: Morality of posting Perl "virus" code? by lemming
    in thread Morality of posting Perl "virus" code? by tachyon

    Title:
    Use:  <p> text here (a paragraph) </p>
    and:  <code> code here </code>
    to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.