Of course there will always be a problem for every solution! Some DOS virii have been known to disable antivirus software in various ways.

The point of the open source code is that by personally modifying it slightly you require a virus to cope with the modification successfully in order to defeat it. This is a problem with a module per se - they are a stationary target! By making it easy for the good hacker to move the goal posts it becomes very difficult for a bad hacker to kick goals.

I was going to post some code that automatically appends a polymorphic form of the original code to every script in your current working directory but as this demonstated both viral design, and worse still polymorphic viral design thought better of it. If you give it a little thought it is easy to write a piece of code that performs a ?have I changed? routine that is never the same and thus hard to defeat.

Why would someone writing a virus to infect your code necessarily care if it breaks your code?

When it comes to virii the analogy to human disease is strong. EBOLA is a very rapidly fatal and highly contagious virus. HIV is a very slowly fatal and not particulary contagious virus. Yet although EBOLA is more contagious the fact that it quickly kills its victims means they have little chance to spread it. So to with a computer virus. If it breaks the program it infects so that it can not run the virus has shot itself in the head as it can not spread as a result of infecting the executable. As such it is not really a virus at all, just a piece of malicious junk.

Ultimately I am less than convinced that we are not discussing the solution to a problem which does not really exist.

cheers

tachyon


In reply to Re: opensource (friendly anti)virus? by tachyon
in thread Virus protection for Perl scripts 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.