What is the definition of computer virus by law?The definition seems to be broad
<p>According to the <a href="https://www.indiacode.nic.in/bitstream/123456789/1999/3/A2000-21.pdf" rel="nofollow noreferrer">Indian IT Act</a> we cannot place  computer virus(which includes cookies) without user permission but does that mean we need to take permission even for placing nessecary cookies?</p>
<p>According to the <a href="https://www.indiacode.nic.in/bitstream/123456789/1999/3/A2000-21.pdf" rel="nofollow noreferrer">IT Act</a> the definition of computer virus as given <a href="https://indiankanoon.org/doc/96558575/" rel="nofollow noreferrer">here</a> says that it is any information that executes itself as soon as another program is started. Now many apps are set to autostart with windows.</p>
<blockquote>
<p>(iii) &quot;computer virus&quot; means any computer instruction, information, data or programme that destroys, damages, degrades or adversely affects the performance of a computer resource or attaches itself to another computer resource and operates when a programme, data or instruction is executed or some other event takes place in that computer resource;</p>
</blockquote>
<p>Also, several websites deploy cookies and they too fall under this definition as provided <a href="https://www.termsfeed.com/blog/cookie-consent-outside-eu/#India" rel="nofollow noreferrer">here</a>. Now the definition made there makes it seem many websites accessible in India are illegal. How is it possible? Is it really the definition made. (This is not legal advice)</p>
<p><em>My question here is according to the definition many things including cookies and other daily b software become illegal which is not the case in India. How am I misinterpreting the definition?</em></p>
<p><strong>It is true that by taking permission this can be avoided but some cookies are necessary for the function of the website without consent so do we have to take permission for even necessary cookies?</strong></p>

<p>It's possibe to cover auto-starting apps and cookies under the definition. I'm not convinced and could argue against that but I don't think it matters.</p>
<p>The tiny extract you linked isn't a law. It is a definition. It does not say &quot;these things are illegal&quot;. For that, we have to zoom out a little. Section 43 includes the offense in question (emphasis mine):</p>
<blockquote>
<p>If <strong>any person without permission of the owner</strong> or any other person who is incharge of a computer, computer system or computer network... introduces or causes to be introduced any computer contaminant or computer virus...</p>
</blockquote>
<p>So back to the question. Could Steam be considered a virus? Maybe. Is it illegal? No.</p>
<p>On the other hand, if I were to gain access to your computer and download Steam, yes that could be an example of breaking that law.</p>

<p>The definition is very problematical. It looks like it was drafted by someone who had talked to a programmer but not really understood what they heard.</p>
<ol>
<li><p>It tries to cover all malware under the heading of &quot;virus&quot;. This isn't much of a problem because most laymen confuse the two anyway, but its not a good thing.</p>
</li>
<li><p>It is ambiguous due to the collection of &quot;and&quot; and &quot;or&quot; clauses. The computer world has conventions for disambiguating this stuff (akin to the rules for &quot;3+4*5&quot;), but I don't believe English does.</p>
</li>
</ol>
<p>Trying to read it in the most sensible way, it seems to say that a &quot;virus&quot; is something that</p>
<ul>
<li>Damages performance of a computer resource, OR</li>
<li>Attaches itself to another resource AND operates when some event takes place in that resource.</li>
</ul>
<p>If this reading is correct then cookies are not viruses under this definition, as they neither damage performance or &quot;operate&quot; in any sense. They are merely read and written.</p>
<p>A program that sets itself to autostart is arguably falling under the second part of the definition; it attaches itself to another resource (the Windows list of autostart programs) and operates when some event takes place in that resource (Windows executes that list of programs).</p>
<p>However a bigger problem is the definition of &quot;computer contaminant&quot;:</p>
<ul>
<li>(i) ―computer contaminant means any set of computer instructions that are designed–
<ul>
<li>(a)  to modify,  destroy,  record,  transmit  data  or  programme  residing  within  a  computer, computer system or computer network; or</li>
<li>(b)  by  any  means  to  usurp  the  normal  operation  of  the  computer,  computer  system,  or computer network</li>
</ul>
</li>
</ul>
<p>Paragraph (a) clearly covers any program at all, with the possible exception of programs that never write any data (its not clear what &quot;record&quot; might mean in this context).</p>
<p>As @Studoku's answer says, the question of whether this is illegal depends on the permission of the owner. So it seems that this law says that amost all programs are &quot;viruses&quot; or &quot;contaminants&quot;, but that only some of these are illegal. This is the Humpty-Dumpty school of legal drafting.</p>
<p>&quot;Permission&quot; is a very grey area in much of computer law because it depends on the intent of the owner, but so much of what a computer program does happens out of sight of the owner that they may not have an identifiable intent regarding any particular action performed by the program. If an otherwise honest program adds itself to the start-up list without asking first, does that make it illegal? If the owner only forms an opinion after the fact then its unclear, to say the least. This is similar to the &quot;authorisation&quot; issues in the US Computer Fraud and Abuse Act.</p>

software privacy india data-protection