Ask a Question

Advanced Search

Alert ID : INFO1699

Last Modified : 05/03/2018

Guidelines for removing malware from your Web site


Malicious code can be added to your Web pages or embedded in your Web server or database. This article will provide guidelines for removing malware that has been identified by GeoTrust's malware scan.

As a GeoTrust Trust Seal customer, you benefit from GeoTrust malware scans. We scan your Web site daily for malicious code. This code is targeting your Web site visitors' (end-users') Personal Computers (PCs) with a type of malware called Drive-by Downloads.

If malware is found on any page within your Web site you will receive an email notification that your Trust Seal has been turned off and the details of the malware found will be displayed on the Malware tab of your GeoTrust User Portal. If you have not already done so, sign in to your GeoTrust Trust Center account to see if malware has been found on your Web site.

How does GeoTrust determine if there is malicious code on my Web site?

GeoTrust's malware scan follows the malicious code back to its source and identifies pages that are actively delivering malware to your end users' PCs. This means that if a Web page on your Web site is identified to have malicious code, your Web site visitors are receiving malware on their PCs.

How do I remove malicious code from my Web site?

The method to remove the malware from your Web site depends on whether the malware is on your Web pages or injected into your database. Below are some general guidelines for removing the malicious code. If you are not familiar with how to maintain your Web pages or database, consult an IT professional or contact GeoTrust Technical Support at for further assistance.

When your Web site is infected with malware, it is very likely that one of the following has occurred:

  • The password to your Web server has been compromised. You need to change your password immediately to prevent future malware attacks.
  • There is a vulnerability in your database. You should consider having a vulnerability scan done on your database to prevent future injections of malicious code.
  • An advertisement (ad) being served to your site is delivering malicious code. You should contact the ad provider and ask them to validate that the ads they are serving you are free of malware.

Replace infected pages with a clean backed-up version: If you back up your Web pages regularly, and you believe you have a clean version of the Web pages, you can always replace your infected Web pages with the clean backed up version.

Remove malicious code from infected Web pages manually: If you do not have a clean backup of your Web pages, then you can remove the malicious code from the infected Web pages. Do the following:

  • Get the Web pages from your Web server (typically, you can use FTP software to do this).
  • Open the page in an HTML editor, find the malicious code that was identified in the malware tab of the GeoTrust Trust Center, and delete the malicious code from your Web page.
  • Put the Web page back on your Web server. Do this for each page that is shown in the malware tab.

Remove malicious code from your database: If the same malicious code appears on multiple pages or you previously removed malicious code from your site and it reappears, then the malicious code most likely is residing in your database. To remove malicious code from your database:

  • Search for the malicious code string in character fields.
  • Delete the malicious code string from your database.
  • Remove the malicious code from any infected Web pages.

Ensure that all instances of malware are removed from your site: If malicious code is found on your site, there is an increased likelihood that additional hidden instances exist on your Web pages that are not actively delivering malware to your end users' PCs. As a best practice, we highly recommend that you review your Web pages for any iframes that point to sites that you do not recognize or that appear suspicious to you.

Where do I see what malicious code was found on my Web site?

  1. Sign in to your Trust Center account.
  2. On the Summary page, click the Show me my malware link to go to the Malware tab, where you can view details about the malware found on your Web site. (For easy reference, copy or print the page.)
  3. Select a page from the Page/Occurrences table to view the malicious code. The page that is infected is displayed in the Malware found on section. The malicious code that you need to remove is displayed in the Malware requiring removal section.

I have removed the malicious code from my site. What do I do next?

  1. Sign in to your Trust Center account.
  2. On the Summary page, click the Show me my malware link to go to the Malware tab.
  3. Click the I removed the malware button to initiate a rescan of your Web site. When the scan is complete, the results will be posted to your Trust Center account. If additional malware is found, you will receive an email notification and the information will be posted to your Trust Center account.

Other related articles:
Malware 101
Malware Reports
How to find unidentified malicious code

Note: Clicking on the attachment below will open a new browser window.