ブートセクタウイルス(Boot Sector Viruses)は、ハードドライブに存在する悪意のあるプログラムです。マスターブートレコード(MBR)(Master Boot Record (MBR))またはDOSブートセクター(DOS Boot Sector)をコードに置き換えることで、マシンに感染します。場合によっては、ブートセクタウイルスがMBRを暗号化します。この動作モードは、ブートセクタウイルスを強力にするものです。

ブートセクタウイルスとは何ですか?
マスターブートレコード(Master Boot Record)はハードドライブの最初のセクターにあり、PCの電源を入れるたびに実行されます。これは、アンチウイルスを使用してブートセクタウイルスを削除しようとしても、次回の起動時にコンピュータのメモリに読み込まれることを意味します。
これらのウイルスは、ブートセクタから発生し、コンピュータ上のすべてのディスクに広がります。これにより、ブートセクタウイルスの除去が困難になります。
また、Windowsが実行されている場合、通常のウイルス対策プログラムは(Windows)MBRにアクセスできません。ただし、起動可能なウイルス対策ディスクを使用して、ブートセクタウイルスを削除することはできます。このガイドでは、これと、コンピュータからブートセクタウイルスを完全に取り除くための他のソリューションを実行する方法を示します。
ブートセクタウイルスを防ぐ方法
ブートセクタウイルスを削除することは非常に困難ですが、そもそもそれらを取得することを回避するのは簡単です。これらの悪意のあるプログラムが広がる最も一般的な方法は、共有リムーバブルメディアを介することです。
リムーバブルストレージドライブをコンピュータに挿入する前に、ブートセクタウイルスに感染していないことを確認する必要があります。メディアを接続するときにウイルスがマシンに侵入しない可能性がありますが、システムの起動中にメディアを接続したままにすると、ハードドライブが感染します。
ブートセクタウイルスからマシンを保護することは、一般的なウイルスに対して行うことと似ています。信頼できるウイルス対策ソフトウェアと防御を備え、ウイルス定義を常に最新の状態に保つ必要があります。ウイルス対策ソフトウェアの役割を強調しすぎることはできません。この場合、主に次の2つの機能に必要です。
- コンピュータシステムの悪意のある活動を監視するため。
- (Detect)コンピュータシステムで既知の悪意のあるアクションとパターンを検出します。
- ウイルスをスキャンして、システムのディスクからウイルスを取り除きます。
次のセクションでは、これらのウイルスがコンピュータシステムにどのように感染するかについて詳しく説明します。
ヒント: (TIP)MBRフィルターを使用してコンピューターの(MBR Filter)マスターブートレコード(Master Boot Record)を保護できます。
ブートセクタウイルス(Boot Sector Virus)はどのように侵入しますか?
強調したように、ブートセクタウイルスは主に物理ストレージメディアを介してPCに侵入します。ただし、特に信頼できないサイトや電子メールの添付ファイルからのダウンロードにバンドルされている場合もあります。
感染したUSBペンドライブを接続するか、フロッピーディスクをコンピュータに挿入すると、ウイルスがシステムに転送され、MBRに感染します。既存のMBR(MBR)コードを変更または完全に置き換え、次回の起動時に、ウイルスがシステムにロードされ、MBRで実行されます。
感染したファイルと電子メールの添付ファイルのダウンロードに関しては、ブートセクタウイルスはダウンロードしてもほとんど(mostly)無害です。ただし、悪意のあるファイルを開くと、ホストマシンへの感染が始まります。多くの場合、所有者は、連絡先に電子メールを送信するためのバッチを乗算および作成するためのプログラムの指示をエンコードしている可能性があります。
ありがたいことに、コンピュータのBIOSアーキテクチャが改善され、これによりブートセクタウイルスの拡散が(大幅に)抑制されました。この開発は、ユーザーがPCのハードドライブの最初のセクターを変更することからコードをブロックできるようにするオプションが含まれているためです。
BIOS(updated your BIOS)を更新したことがない場合は、今が更新する良い機会です。
読む:(Read: )MBRバックアップ(MBR Backup)またはMDHackerを使用して(MDHacker)マスターブートレコード(Master Boot Record)をバックアップおよび復元する方法。
ブートセクタウイルスを削除する方法
ほとんどのブートセクタウイルスはMBRを暗号化できます。ウイルスを適切に除去しないと、ドライブがひどく損傷する可能性があります。
一方、ウイルスがMBRを暗号化せず、ブートセクターにのみ(only)感染する場合は、DOSSYSコマンドを使用して不良セクターを復元できます。
さらに、DOS LABELコマンドを使用して、影響を受けるボリュームラベルを復元することもできます。感染が深刻で修復不可能な場合は、 FDISK/MBRコマンドを使用してMBRを置き換えることができます。(MBR)
これらの方法はすべて、場合によっては機能する可能性がありますが、無料の起動可能なウイルス対策レスキューソフトウェア(free bootable antivirus rescue software)を使用することが、ブートセクタウイルスを除去する最も安全な方法です。最も重要なことは、ウイルス対策ソフトウェアを使用すると、ハードドライブに保存されているファイルやデータが失われる可能性が低いことです。
読む(Read):マスターブートレコードを修復する方法(How to repair the Master Boot Record)。
トリビア(TRIVIA):最初のMS-DOS PCウイルス(first MS-DOS PC virus)は1986年に作成され、それは脳ウイルス(Brain virus)でした。脳(Brain)はブートセクタウイルスであり、360kフロッピーディスクにのみ感染しました。興味深いことに(Interestingly)、それは最初のウイルスでしたが、完全なステルス機能を備えていました。Vサイン(V-Sign)は最初の多形ブートセクタウイルスでした。
     
    
        What is a Boot Sector Virus and how to prevent or remove them?
        Boot Sector Viruses are malicious programs that reside in your hard drive. They infect your machine by replacing your Master Boot Record (MBR) or DOS Boot Sector with their code. In some cases, boot sector viruses will encrypt the MBR. This mode of operation is what makes boot sector viruses are potent.

What is a Boot Sector Virus?
The Master Boot Record is on the first sector of your hard drive and executes whenever you power on your PC. This means that even if you try to remove boot sector viruses using an antivirus, they get loaded back into your computer’s memory on your next boot.
Originating from your boot sector, these viruses will then spread to all the disks on your computer. This makes boot sector viruses tough to remove.
Also, if Windows is running, regular antivirus programs will not have access to the MBR. You can, however, use bootable antivirus disks to remove boot sector viruses. This guide shows you how to do this and other solutions for ridding your computer of boot sector viruses for good.
How to prevent Boot Sector Virus
While removing boot sector viruses is quite challenging, it’s easy to avoid getting them in the first place. The most common way that these malicious programs spread is through shared removable media.
Before inserting any removable storage drive into your computer, you must be sure that it isn’t infected with a boot sector virus. The virus may not get on your machine when you connect the media, but if you leave it connected while you boot up your system, then your hard drive will be infected.
Protecting your machine from boot sector viruses is similar to doing it for viruses in general – you must have reliable antivirus software and defenses and always keep their virus definitions updated. I can’t overemphasize the roles of antivirus software. In this case, you need them for these two functions, primarily:
- To monitor your computer system for malicious activity.
- Detect known malicious actions and patterns in your computer system.
- Scan for viruses and get rid of them from your system’s disks.
In the section that follows, we’ll get more in-depth on how these viruses infect your computer system.
TIP: You can protect your computer’s Master Boot Record with MBR Filter.
How does a Boot Sector Virus get in?
As we’ve emphasized, boot sector viruses enter your PC mainly via physical storage media. However, they may also come bundled in downloads, especially from untrusted sites and email attachments.
When you connect an infected USB pen drive or insert a floppy disk into your computer, the virus gets transferred to your system and infects the MBR. It modifies or completely replaces the existing MBR code, and on your next boot, the virus is loaded into your system and runs with the MBR.
Regarding the download of infected files and email attachments, boot sector viruses remain mostly harmless when you download them. However, when you open the malicious file, it then begins to infect the host machine. In many cases, the proprietor might’ve encoded instructions for the program to multiply and create batches to email your contacts.
Thankfully, the computer BIOS architecture has improved, and this has curbed (to a large extent) the spread of boot sector viruses. This development is due to the inclusion of the option to allow users to block codes from modifying the first sector of PC’s hard drives.
If you’ve never updated your BIOS, now’s a good time to do it.
Read: How to backup & restore Master Boot Record with MBR Backup or MDHacker.
How to remove a Boot Sector Virus
Most boot sector viruses can encrypt the MBR; your drive can get severely damaged if you don’t remove the virus properly.
On the other hand, if the virus doesn’t encrypt the MBR and only infects the boot sector, you can use the DOS SYS command the restore the bad sector.
Further, you can also use the DOS LABEL command to restore affected volume labels. If the infection is severe and beyond repair, you can replace the MBR with the use of the FDISK/MBR command.
While all of these methods may work for some cases, using a free bootable antivirus rescue software is the safest way to remove boot sector viruses. Most importantly, with antivirus software, you are unlikely to lose files and data saved on your hard drive.
Read: How to repair the Master Boot Record.
TRIVIA: The first MS-DOS PC virus was created in 1986 and it was the Brain virus. Brain was a boot sector virus and only infected 360k floppy disks. Interestingly, even though it was the first virus, it had the full-stealth capability. V-Sign was the first polymorphic boot sector virus.