<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/1.5.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
	<title>Netlogged.com</title>
	<link>http://virus.netlogged.com</link>
	<description>Virus The Nasty Code</description>
	<pubDate>Wed, 04 Jan 2006 06:39:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.2</generator>
	<language>en</language>

		<item>
		<title>Virus</title>
		<link>http://virus.netlogged.com/2005/09/virus/</link>
		<comments>http://virus.netlogged.com/2005/09/virus/#comments</comments>
		<pubDate>Tue, 13 Sep 2005 10:09:41 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
	<category>virus</category>
		<guid>http://virus.netlogged.com/2005/09/virus/</guid>
		<description><![CDATA[	In computer security technology, a virus is a self-replicating program that spreads by inserting copies of itself into other executable code or documents (for a complete definition: see below). 





A computer virus behaves in a way similar to a biological virus, which spreads by inserting itself into living cells. Extending the analogy, the insertion of [...]]]></description>
			<content:encoded><![CDATA[	<p>In computer security technology, a <strong>virus </strong>is a self-replicating program that spreads by inserting copies of itself into other executable code or documents (for a complete definition: see below). 
<p style="float:left;width:251px;padding:8px;border:0px solid black;margin-top:15px;margin-left;20px;margin-bottom:15px;margin-right:30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-4569467845266240";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "009000";
google_color_url = "FFFFFF";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>
A computer virus behaves in a way similar to a biological virus, which spreads by inserting itself into living cells. Extending the analogy, the insertion of the virus into a program is termed infection, and the infected file (or executable code that is not part of a file) is called a host. Viruses are one of the several types of malware or malicious software. In common parlance, the term virus is often extended to refer to computer worms and other sorts of malware. This can confuse computer users, since viruses in the narrow sense of the word are less common than they used to be, compared to other forms of malware such as worms. This confusion can have serious consequences, because it may lead to a focus on preventing one genre of malware over another, potentially leaving computers vulnerable to future damage. However, a basic rule is that computer viruses cannot directly damage hardware, only software is damaged directly. The software in the hardware however may be damaged.</p>
	<p>While viruses can be intentionally destructive (for example, by destroying data), many other viruses are fairly benign or merely annoying. Some viruses have a delayed payload, which is sometimes called a bomb. For example, a virus might display a message on a specific day or wait until it has infected a certain number of hosts. A time bomb occurs during a particular date or time, and a logic bomb occurs when the user of a computer takes an action that triggers the bomb. However, the predominant negative effect of viruses is their uncontrolled self-reproduction, which wastes or overwhelms computer resources.</p>
	<p>Today (as of 2005), viruses are somewhat less common than network-borne worms, due to the popularity of the Internet. Anti-virus software, originally designed to protect computers from viruses, has in turn expanded to cover worms and other threats such as spyware.</p>
]]></content:encoded>
			<wfw:commentRSS>http://virus.netlogged.com/2005/09/virus/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Methods to avoid detection</title>
		<link>http://virus.netlogged.com/2005/09/methods-to-avoid-detection/</link>
		<comments>http://virus.netlogged.com/2005/09/methods-to-avoid-detection/#comments</comments>
		<pubDate>Mon, 12 Sep 2005 10:17:08 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
	<category>Methods to avoid detection</category>
		<guid>http://virus.netlogged.com/2005/09/methods-to-avoid-detection/</guid>
		<description><![CDATA[	In order to avoid detection by users, some viruses employ different kinds of obfuscation. Some old viruses, especially on the MS-DOS platform, make sure that the &#8220;last modified&#8221; date of a host file stays the same when the file is infected by the virus. This approach does not fool anti-virus software, however. 






	Some viruses can [...]]]></description>
			<content:encoded><![CDATA[	<p>In order to avoid detection by users, some viruses employ different kinds of obfuscation. Some old viruses, especially on the MS-DOS platform, make sure that the &#8220;last modified&#8221; date of a host file stays the same when the file is infected by the virus. This approach does not fool anti-virus software, however. 
<p style="float:left;width:251px;padding:8px;border:0px solid black;margin-top:15px;margin-left;20px;margin-bottom:15px;margin-right:30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-4569467845266240";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "009000";
google_color_url = "FFFFFF";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>
</p>
	<p>Some viruses can infect files without increasing their sizes or damaging the files. They accomplish this by overwriting unused areas of executable files. These are called cavity viruses. For example the CIH virus, or Chernobyl Virus, infects Portable Executable files. Because those files had many empty gaps, the virus, which was 1 KB in length, did not add to the size of the file.</p>
	<p>Recent viruses avoid any kind of detection attempt by attempting to forcefully kill the tasks associated with the virus scanner before it can detect them.</p>
	<p>As computers and operating systems grow larger and more complex, old hiding techniques need to be updated or replaced.</p>
	<p><strong>Avoiding bait files and other undesirable hosts</strong></p>
	<p>A virus needs to infect hosts in order to spread further. In some cases, it might be a bad idea to infect a host program however. For example, many anti-virus programs perform an integrity check of their own code. Infecting such programs will therefore increase the likelihood that the virus is detected. For this reason, some viruses are programmed not to infect programs that are known to be part of anti-virus software. Another type of hosts that viruses sometimes avoid is bait files. Bait files (or goat files) are files that are specially created by anti-virus software, or by anti-virus professionals themselves, to be infected by a virus. These files can be created for various reasons, all of which are related to the detection of the virus:</p>
	<p>Anti-virus professionals can use bait files to take a sample of a virus (i.e. a copy of a program file that is infected by the virus). It is more practical to store and exchange a small infected bait file, than to exchange a large application program that has been infected by the virus.<br />
Anti-virus professionals can use bait files to study the behaviour of a virus and evaluate detection methods. This is especially useful when the virus is polymorphic. In this case, the virus can be made to infect a large amount of bait files. The infected files can be used to test whether a virus scanner detects all versions of the virus.<br />
Some anti-virus software employs bait files that are accessed regularly. When these files are modified, the anti-virus software warns the user that a virus is probably active on the system.<br />
Since bait files are used to detect the virus, or to make detection possible, a virus can benefit from not infecting them. Viruses typically do this by avoiding suspicious programs, such as small program files or programs that contain certain patterns of &#8216;garbage instructions&#8217;.</p>
	<p>A related strategy to make baiting difficult is sparse infection. Sometimes, sparse infectors do not infect a host file that would be a suitable candidate for infection in other circumstances. For example, a virus can decide on a random basis whether to infect a file or not, or a virus can only infect host files on particular days of the week.</p>
	<p><strong>Stealth</strong></p>
	<p>Some viruses try to fool anti-virus software by intercepting its requests to the operating system. A virus can hide itself by ensuring that a request of anti-virus software to read an infected file is passed to the virus, instead of to the operating system. The virus can then return an uninfected version of the file to the anti-virus software, so that it seems that the file is &#8220;clean&#8221;. Modern anti-virus software employs various techniques to counter stealth mechanisms of viruses. The only completely reliable method to avoid stealth is to boot from a medium that is known to be clean.</p>
	<p><strong>Self-modification</strong></p>
	<p>Most modern antivirus programs try to find virus-patterns inside ordinary programs by scanning them for so-called virus signatures. A signature is a characteristic byte-pattern that is part of a certain virus or family of viruses. If a virus scanner finds such a pattern in a file, it notifies the user that the file is infected. The user can then delete, or (in some cases) &#8220;clean&#8221; the infected file. Some viruses employ techniques that make detection by means of signatures difficult or impossible. These viruses modify their code on each infection. That is, each infected file contains a different variant of the virus.</p>
	<p><strong>Simple self-modifications</strong></p>
	<p>In the past, some viruses modified themselves only in fairly simple ways. For example, they regularly exchanged subroutines in their code. This poses no problems to a somewhat advanced virus scanner however.</p>
	<p><strong>Encryption with a variable key</strong></p>
	<p>A more advanced method is the use of simple encryption to encode the virus. In this case, the virus consists of a small decrypting module and an encrypted copy of the virus code. If the virus is encrypted with a different key for each infected file, the only part of the virus that remains constant is the decrypting module. In this case, a virus scanner cannot directly detect the virus using signatures, but it can still detect the decrypting module, which still makes indirect detection of the virus possible.</p>
	<p>Mostly, the decryption techniques that these viruses employ are fairly simple and mostly done by just xoring each byte with a randomized key that was saved by the parent virus. The use of XOR-operations has the additional advantage that the encryption and decryption routine are the same (a xor b = c, c xor b = a.)</p>
	<p><strong>Polymorphic code</strong></p>
	<p>Polymorphic code was the first technique that posed a serious threat to virus scanners. Just like regular encrypted viruses, a polymorphic virus infects files with an encrypted copy of itself, which is decoded by a decryption module. In the case of polymorphic viruses however, this decryption module is also modified on each infection. A well-written polymorphic virus therefore has no parts that stay the same on each infection, making it impossible to detect directly using signatures. Anti-virus software can detect it by decrypting the viruses using an emulator, or by statistical pattern analysis of the encrypted virus body. To enable polymorphic code, the virus has to have a polymorphic engine (also called mutating engine or mutation engine) somewhere in its encrypted body.</p>
	<p>Some viruses employ polymorphic code in a way which constrains the mutation rate of the virus significantly. For example, a virus can be programmed to mutate only slightly over time, or it can be programmed to refrain from mutating when it infects a file on a computer that already contains copies of the virus. The advantage of using such slow polymorphic code is that it makes it more difficult for anti-virus professionals to obtain representative samples of the virus, because bait files that are infected in one run will typically contain identical or similar samples of the virus. This will make it more likely that the detection by the virus scanner will be unreliable, and that, as a result of this, some instances of the virus may be able to avoid detection.</p>
	<p><strong>Metamorphic code</strong></p>
	<p>To avoid being detected by emulation, some viruses rewrite themselves completely each time they are to infect new executables. Viruses that uses this technique are said to be metamorphic. To enable metamorphism, a metamorphic engine is needed. A metamorphic virus is usually very large and complex. W32/Simile consisted of over 14000 lines of assembly code, for example. 90% of it is part of the metamorphic engine.</p>
]]></content:encoded>
			<wfw:commentRSS>http://virus.netlogged.com/2005/09/methods-to-avoid-detection/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Replication Strategies</title>
		<link>http://virus.netlogged.com/2005/09/replication-strategies/</link>
		<comments>http://virus.netlogged.com/2005/09/replication-strategies/#comments</comments>
		<pubDate>Mon, 12 Sep 2005 10:14:59 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
	<category>Replication Strategies</category>
		<guid>http://virus.netlogged.com/2005/09/replication-strategies/</guid>
		<description><![CDATA[	In order to replicate itself, a virus must be permitted to execute code and write to memory. For this reason, many viruses attach themselves to executable files that may be part of legitimate programs. If a user tries to start an infected program, the virus&#8217; code may be executed first. Viruses can be divided into [...]]]></description>
			<content:encoded><![CDATA[	<p>In order to replicate itself, a virus must be permitted to execute code and write to memory. For this reason, many viruses attach themselves to executable files that may be part of legitimate programs. If a user tries to start an infected program, the virus&#8217; code may be executed first. Viruses can be divided into two types, on the basis of their behavior when they get executed. Nonresident viruses immediately search for other hosts that can be infected, infect these targets, and finally transfer control to the application program they infected. Resident viruses do not search for hosts when they are started. Instead, a resident virus loads itself into memory on execution and transfers control to the host program. The virus stays active in the background and infects new hosts when those files are accessed by other programs or the operating system itself. 
<p style="float:left;width:251px;padding:8px;border:0px solid black;margin-top:15px;margin-left;20px;margin-bottom:15px;margin-right:30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-4569467845266240";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "009000";
google_color_url = "FFFFFF";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>
</p>
	<p><strong>Nonresident viruses</strong><br />
Nonresident viruses can be thought of as consisting of a finder module and a replication module. The finder module is responsible for finding new files to infect. For each new executable file the finder module encounters, it calls the replication module to infect that file.</p>
	<p>For simple viruses the replicator&#8217;s task is to:</p>
	<p>Open the new file<br />
Check if the executable file has already been infected (if it is, return to the finder module)<br />
Append the virus code to the executable file<br />
Save the executable&#8217;s starting point<br />
Change the executable&#8217;s starting point so that it points to the start location of the newly copied virus code<br />
Save the old start location to the virus in a way so that the virus branches to that location right after its execution.<br />
Save the changes to the executable file<br />
Close the infected file<br />
Return to the finder so that it can find new files for the replicator to infect. </p>
	<p><strong>Resident viruses</strong></p>
	<p>Resident viruses contain a replication module that is similar to the one that is employed by nonresident viruses. However, this module is not called by a finder module. Instead, the virus loads the replication module into memory when it is executed and ensures that this module is executed each time the operating system is called to perform a certain operation. For example, the replication module can get called each time the operating system executes a file. In this case, the virus infects every suitable program that is executed on the computer.</p>
	<p>Resident viruses are sometimes subdivided into a category of fast infectors and a category of slow infectors. Fast infectors are designed to infect as many files as possible. For instance, a fast infector can infect every potential host file that is accessed. This poses a special problem to anti-virus software, since a virus scanner will access every potential host file on a computer when it performs a system-wide scan. If the virus scanner fails to notice that such a virus is present in memory, the virus can &#8220;piggy-back&#8221; on the virus scanner and in this way infect all files that are scanned. Fast infectors rely on their fast infection rate to spread. The disadvantage of this method is that infecting many files may make detection more likely, because the virus may slow down a computer or perform many suspicious actions that can be noticed by anti-virus software. Slow infectors, on the other hand, are designed to infect hosts infrequently. For instance, some slow infectors only infect files when they are copied. Slow infectors are designed to avoid detection by limiting their actions: they will not slow down a computer noticeably, and will at most infrequently trigger anti-virus software that detects suspicious behaviour by programs. The slow infector approach doesn&#8217;t seem very successful however. Viruses that are common in the wild are mostly relatively fast to extremely fast infectors.</p>
	<p><strong>Host types</strong></p>
	<p>Viruses have targeted various types of hosts. This is a non-exhaustive list:</p>
	<p>Binary executable files (such as COM-files and EXE-files in MS-DOS, Portable Executable files in Microsoft Windows, and ELF files in Linux)<br />
Boot sectors of floppy disks and hard disk partitions<br />
The Master Boot Record of a harddisk<br />
General purpose script files (such as batch files in MS-DOS and Microsoft Windows, and shell script files on UNIX platforms).<br />
Application-specific script files (such as Telix-scripts)<br />
Documents that can contain macros (such as Microsoft Word documents, Microsoft Excel spreadsheets, AmiPro documents, Microsoft Office files, and Microsoft Access database files) </p>
]]></content:encoded>
			<wfw:commentRSS>http://virus.netlogged.com/2005/09/replication-strategies/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>History</title>
		<link>http://virus.netlogged.com/2005/09/history/</link>
		<comments>http://virus.netlogged.com/2005/09/history/#comments</comments>
		<pubDate>Mon, 12 Sep 2005 10:10:57 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
	<category>History</category>
		<guid>http://virus.netlogged.com/2005/09/history/</guid>
		<description><![CDATA[	A program called &#8220;Elk Cloner&#8221; is credited with being the first computer virus to appear &#8220;in the wild&#8221; &#8212; that is, outside the single computer or lab where it was created. Written in 1982 by Rich Skrenta, it attached itself to the Apple DOS 3.3 operating system and spread by floppy disk. 






	Before computer networks [...]]]></description>
			<content:encoded><![CDATA[	<p>A program called &#8220;Elk Cloner&#8221; is credited with being the first computer virus to appear &#8220;in the wild&#8221; &#8212; that is, outside the single computer or lab where it was created. Written in 1982 by Rich Skrenta, it attached itself to the Apple DOS 3.3 operating system and spread by floppy disk. 
<p style="float:left;width:251px;padding:8px;border:0px solid black;margin-top:15px;margin-left;20px;margin-bottom:15px;margin-right:30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-4569467845266240";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "009000";
google_color_url = "FFFFFF";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>
</p>
	<p>Before computer networks became widespread, most viruses spread on removable media, particularly floppy disks. In the early days of personal computers, many users regularly exchanged information and programs on floppies. Some viruses spread by infecting programs stored on these disks, while others installed themselves into the disk boot sector, ensuring that they would be run when the user booted the computer from the disk.</p>
	<p>As bulletin board systems and online software exchange became popular in the late 1980s and early 1990s, more viruses were written to infect popularly traded software. Shareware and bootleg software were equally common vectors for viruses on BBSes. Within the &#8220;pirate scene&#8221; of hobbyists trading illicit copies of commercial software, traders in a hurry to obtain the latest applications and games were easy targets for viruses.</p>
	<p>Since the mid-1990s, macro viruses have become common. Most of these viruses are written in the scripting languages for Microsoft programs such as Word and Outlook. These viruses spread in the Microsoft Windows monoculture by infecting documents and sending infected e-mail. Some versions of Word have had bugs in the calls by which macros replicate themselves, causing occasional replication errors, which has sometimes resulted in actual evolution by natural selection. Also, again closely analogous to biological viruses, sometimes when a system gets infected with two Word macro viruses at the same time, recombination can produce a new virus (much as an animal host infected with multiple strains of influenza can produce a novel strain of influenza). There is also the case in which a user gets a computer virus through instant messaging; this process is done by taking the virus code and placing it into a web site&#8217;s shortcut which is accessible through Instant Messaging someone. The receiver gets the virus and within a few hours of being on the virus has the capability of transferring itself all the way to the computer&#8217;s network.</p>
]]></content:encoded>
			<wfw:commentRSS>http://virus.netlogged.com/2005/09/history/feed/</wfw:commentRSS>
	</item>
	</channel>
</rss>
