Backdoor.G_Door Malware Vulnerability Mar16 (Windows)

2016-03-30T00:00:00
ID OPENVAS:1361412562310807531
Type openvas
Reporter Copyright (C) 2016 Greenbone Networks GmbH
Modified 2018-11-21T00:00:00

Description

This host is installed with Trojan

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_backdoor_malware_vuln_mar16.nasl 12455 2018-11-21 09:17:27Z cfischer $
#
# Backdoor.G_Door Malware Vulnerability Mar16 (Windows)
#
# Authors:
# Rinu Kuriakose <krinu@secpod.com>
#
# Copyright:
# Copyright (C) 2016 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.807531");
  script_version("$Revision: 12455 $");
  script_tag(name:"cvss_base", value:"5.5");
  script_tag(name:"cvss_base_vector", value:"AV:L/AC:M/Au:S/C:P/I:P/A:C");
  script_tag(name:"last_modification", value:"$Date: 2018-11-21 10:17:27 +0100 (Wed, 21 Nov 2018) $");
  script_tag(name:"creation_date", value:"2016-03-30 11:25:31 +0530 (Wed, 30 Mar 2016)");
  script_name("Backdoor.G_Door Malware Vulnerability Mar16 (Windows)");

  script_tag(name:"summary", value:"This host is installed with Trojan
  'Backdoor.G_Door' which has its own SMTP engine. It create some files and
   make changes to the registry on its execution.");

  script_tag(name:"vuldetect", value:"Check the value change for some registry
  entries and also check for the presence of some files which are created  when
  the trojan get executed.");

  script_tag(name:"insight", value:"The flaw exists due to execution of Trojan
  'Backdoor.G_Door'.");

  script_tag(name:"impact", value:"Successful activation of this Trojan
  allows the attacker unrestricted remote control over the system.");

  script_tag(name:"affected", value:"All windows platforms.");

  script_tag(name:"solution", value:"To remove this Trojan, delete any files
  that are detected as Backdoor.G_Door, and reverse the changes that it made to
  the registry.");

  script_tag(name:"solution_type", value:"VendorFix");

  script_tag(name:"qod_type", value:"executable_version");

  script_xref(name:"URL", value:"https://www.symantec.com/security_response/writeup.jsp?docid=2001-083111-3551-99&tabid=2");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2016 Greenbone Networks GmbH");
  script_family("Malware");
  script_dependencies("smb_reg_service_pack.nasl");
  script_mandatory_keys("SMB/WindowsVersion", "SMB/Windows/Arch");
  script_require_ports(139, 445);
  script_xref(name:"URL", value:"https://www.symantec.com/security_response/writeup.jsp?docid=2001-083111-3551-99&tabid=3");
  exit(0);
}


include("smb_nt.inc");
include("secpod_smb_func.inc");
include("host_details.inc");

sysPath = smb_get_systemroot();
if(!sysPath ){
  exit(0);
}

## Files created when trojan get executed
trojanPath1 =  sysPath + "\System\Sysdll32.exe";
trojanPath2 =  sysPath + "\System\Sysexplr.exe";

pathList = make_list(trojanPath1, trojanPath2);
if(isnull(pathList)){
  exit(0);
}

foreach key (pathList)
{
  share = ereg_replace(pattern:"([A-Z]):.*", replace:"\1$", string:key);
  file =  ereg_replace(pattern:"[A-Z]:(.*)", replace:"\1", string:key);
  dllSize = get_file_size(share:share, file:file);

  if(dllSize)
  {
    report = "This host is affected with Trojan 'Backdoor.G_Door'";
    security_message(data:report);
    exit(0);
  }
}