Lucene search
K

Microsoft Windows Mounted Devices

🗓️ 28 Nov 2012 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 32 Views

Checks for historical mounted device usage on Microsoft Window

Refs
Code
SourceLink
nessuswww.nessus.org/u
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(63080);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/02/01");

  script_name(english:"Microsoft Windows Mounted Devices");
  script_summary(english:"Checks for Historic mounted device usage"); 

  script_set_attribute(attribute:"synopsis", value:
"It is possible to get a list of mounted devices that may have been
connected to the remote system in the past.");
  script_set_attribute(attribute:"description", value:
"By connecting to the remote host with the supplied credentials, this
plugin enumerates mounted devices that have been connected to the remote
host in the past.");
  # https://docs.microsoft.com/en-us/windows-hardware/drivers/storage/supporting-mount-manager-requests-in-a-storage-class-driver
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?99fcc329");
  script_set_attribute(attribute:"solution", value:
"Make sure that the mounted drives agree with your organization's
acceptable use and security policies.");
  script_set_attribute(attribute:"risk_factor", value:"None");

  script_set_attribute(attribute:"plugin_publication_date", value:"2012/11/28");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"asset_inventory", value:"True");
  script_set_attribute(attribute:"agent", value:"windows");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2012-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("smb_hotfixes.nasl", "smb_reg_service_pack.nasl");
  script_require_keys("SMB/Registry/Enumerated");
  script_require_ports(139, 445);

  exit(0);
}

include("audit.inc");
include("charset_func.inc");
include("global_settings.inc");
include("misc_func.inc");
include("smb_func.inc");
include("smb_hotfixes_fcheck.inc");
include("smb_reg_query.inc");

registry_init();
hklm = registry_hive_connect(hive:HKEY_LOCAL_MACHINE, exit_on_fail:TRUE);
drives = get_reg_name_value_table(handle:hklm, key:"SYSTEM\MountedDevices");
RegCloseKey(handle:hklm);
close_registry();

if (isnull(drives)) exit(0, "Unable to read the 'HKLM\SYSTEM\MountedDevices' registry key."); 

report = '\n';
foreach key (keys(drives))
{
  cval = "";
  data = drives[key];
  for (j=0; j<strlen(data); j++)
  {
    if (is_ascii_printable(char:data[j]))
      cval += data[j];
  }

  report += '  Name     : ' + key + '\n';
  report += '  Data     : ' + cval + '\n';
  report += '  Raw data : ' + hexstr(drives[key]) + '\n';
  report += '\n';
}

port = kb_smb_transport();
if (report_verbosity > 0) security_note(port:port, extra:report);
else security_note(port);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Feb 2022 00:00Current
5.5Medium risk
Vulners AI Score5.5
32