Lucene search
K

Microsoft Windows Portable Devices

🗓️ 03 Apr 2013 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 28 Views

Checks for connected Microsoft Windows Portable Devices

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

include("compat.inc");

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

  script_name(english:"Microsoft Windows Portable Devices");
  script_summary(english:"Checks for Historic Portable Device usage");

  script_set_attribute(attribute:"synopsis", value:
"It is possible to get a list of portable 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 portable devices that have been connected to the
remote host in the past.");
  # http://msdn.microsoft.com/en-us/library/windows/hardware/gg463541.aspx
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?af102b66");
  script_set_attribute(attribute:"solution", value:
"Make sure that use of the portable devices agrees 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:"2013/04/03");

  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) 2013-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("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);

deviceList = get_registry_subkeys(handle:hklm, key:"SOFTWARE\Microsoft\Windows Portable Devices\Devices\\");
if (isnull(deviceList))
{
  RegCloseKey(handle:hklm);
  close_registry();
  audit(AUDIT_REG_FAIL);
}

report = "";
foreach device (deviceList)
{
  wpd_device = get_reg_name_value_table(handle:hklm, key:"SOFTWARE\Microsoft\Windows Portable Devices\Devices\\"+device);
  if (isnull(wpd_device)) continue;

  report += '\n  Friendly name : ' + wpd_device["friendlyname"] +
            '\n  Device        : ' + device +
            '\n';
}

RegCloseKey(handle:hklm);
close_registry();

if (strlen(report) > 0)
{
  port = kb_smb_transport();
  if (report_verbosity > 0) security_note(port:port, extra:report);
  else security_note(port);
}
else exit(0, 'No portable devices found.');

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
28