A computer virus is a type of malicious software or malware that can replicate itself by attaching its code to other computer programs, files, or documents, with the primary aim of spreading from one system to another and causing harm or disruption.
How it Works :
When a virus-infected program or file is executed, the virus activates, making copies of itself and inserting its code into other files or areas of the system. This process is called "infection," and affected files are said to be "infected".
Spread :
Viruses commonly spread through network connections, infected email attachments, file downloads, removable media (like USB drives), or software installations.
Damage :
Once activated, a computer virus can delete or corrupt data, steal information (such as passwords), log keystrokes, slow down computer performance, display unwanted pop-ups, or even cause the system to crash.
Components of a Virus :
Infection Mechanism: The way viruses get spread from one PC to another.
Trigger: The condition that sets off the virus (Ex. on a certain date or event).
Payload: The part of the virus that performs the malicious activity, such as damaging files or stealing data from the hard disk.