Lucene search
K

Microsoft Windows AppLocker Configuration

🗓️ 19 Jul 2016 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 50 Views

Nessus collected AppLocker configuration information and generated a CSV report attachment

Code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(92362);
  script_version("1.6");
  script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/12");

  script_name(english:"Microsoft Windows AppLocker Configuration");
  script_summary(english:"Report Applocker's configuration.");

  script_set_attribute(attribute:"synopsis", value:
"Nessus was able to collect and report AppLocker's configuration on the
remote host.");
  script_set_attribute(attribute:"description", value:
"Nessus was able to collect AppLocker configuration information on the
remote Windows host and generate a report as a CSV attachment.");
  script_set_attribute(attribute:"solution", value:"n/a");
  script_set_attribute(attribute:"risk_factor", value:"None");

  script_set_attribute(attribute:"plugin_publication_date", value:"2016/07/19");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows");
  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) 2016-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");

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

  exit(0);
}

include("audit.inc");
include("smb_func.inc");
include("smb_hotfixes.inc");
include("smb_hotfixes_fcheck.inc");
include("smb_reg_query.inc");
include("misc_func.inc");
include("data_protection.inc");

# Disable if GDPR is set
data_protection::disable_plugin_if_set();

function enum_applocker_registry(key, hklm, wow)
{
  local_var close_hklm, values, index, subkeys, subkey, ret;

  if (isnull(key))
  {
    if (wow)
    {
      key = "SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\SrpV2";
    }
    else
    {
      key = "SOFTWARE\Policies\Microsoft\Windows\SrpV2";
    }
  }

  if (isnull(hklm))
  {
    hklm = registry_hive_connect(hive:HKEY_LOCAL_MACHINE, exit_on_fail:TRUE);

    if (isnull(hklm))
    {
      close_registry();
      audit(AUDIT_REG_FAIL);
    }
    close_hklm = TRUE;
  }
  else
  {
    close_hklm = FALSE;
  }

  values = get_reg_name_value_table(handle:hklm, key:key);
  subkeys = get_registry_subkeys(handle:hklm, key:key);
  ret = make_list();
  if (max_index(keys(values)) > 0)
  {
    foreach index(keys(values))
    {
      ret[max_index(ret)] = make_array("key", 'HKLM\\' + key + '\\' + index, "value", values[index]);
    }
  }

  foreach subkey(subkeys)
  {
    ret = make_list(ret, enum_applocker_registry(key:key + '\\' + subkey, hklm:hklm));
  }

  if (close_hklm)
  {
    RegCloseKey(handle:hklm);
  }

  return ret;
}

get_kb_item_or_exit("SMB/Registry/Enumerated");

arch = get_kb_item_or_exit('SMB/ARCH');

registry_init();

applocker_configs = enum_applocker_registry();
if (arch == "x64")
{
  applocker_configs = make_list(applocker_configs, enum_applocker_registry(wow:TRUE));
}
close_registry();

if (max_index(applocker_configs) == 0)
{
  exit(0, "No AppLocker configuration found.");
}
else
{
  foreach applocker_config (applocker_configs)
  {
    key = applocker_config['key'];
    value = applocker_config['value'];
    report += key + " : " +  value + '\n';
  }

  security_report_v4(port:0, severity:SECURITY_NOTE, extra:report);
}

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

12 Jun 2020 00:00Current
5.4Medium risk
Vulners AI Score5.4
50