Lucene search
K

IT-Grundschutz M4.048: Passwortschutz unter Windows-Systemen

🗓️ 25 Mar 2015 00:00:00Reported by Copyright (c) 2015 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 34 Views

IT-Grundschutz M4.048: Passwortschutz unter Windows-Systemen. Maßnahme 4.048

Refs
Code
###############################################################################
# OpenVAS Vulnerability Test
# $Id: GSHB_M4_048.nasl 7883 2017-11-23 11:22:59Z emoss $
#
# IT-Grundschutz, 14. EL, Maßnahme 4.048
#
# Authors:
# Thomas Rotter <[email protected]>
#
# Copyright:
# Copyright (c) 2015 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_id(94204);
  script_version("$Revision: 7883 $");
  script_tag(name:"last_modification", value:"$Date: 2017-11-23 12:22:59 +0100 (Thu, 23 Nov 2017) $");
  script_tag(name:"creation_date", value:"2015-03-25 10:14:11 +0100 (Wed, 25 Mar 2015)");
  script_tag(name:"cvss_base", value:"0.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
  script_tag(name:"qod_type", value:"registry");
  script_name("IT-Grundschutz M4.048: Passwortschutz unter Windows-Systemen");
  script_xref(name : "URL" , value : " http://www.bsi.bund.de/DE/Themen/ITGrundschutz/ITGrundschutzKataloge/Inhalt/_content/m/m04/m04048.html");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2015 Greenbone Networks GmbH");
  script_family("IT-Grundschutz-15");
  script_mandatory_keys("Tools/Present/wmi");
  script_mandatory_keys("Compliance/Launch/GSHB-15");
  script_dependencies("GSHB/GSHB_WMI_PasswdPolicie.nasl", "GSHB/GSHB_WMI_OSInfo.nasl");
  script_tag(name : "summary" , value :
"IT-Grundschutz M4.048: Passwortschutz unter Windows-Systemen

Stand: 14. Ergänzungslieferung (14. EL).
");

  exit(0);
}

include("itg.inc");

name = 'IT-Grundschutz M4.048: Passwortschutz unter Windows-Systemen\n';

gshbm =  "IT-Grundschutz M4.048: ";

OSVER = get_kb_item("WMI/WMI_OSVER");
WMIOSLOG = get_kb_item("WMI/WMI_OS/log");

PP = get_kb_item("WMI/passwdpolicy");
LP = get_kb_item("WMI/lockoutpolicy");

PPS = get_kb_item("WMI/lockoutpolicy/stat");
LPS = get_kb_item("WMI/passwdpolicy/stat");

MINPA = get_kb_item("WMI/passwdpolicy/MinimumPasswordAge");
PHS = get_kb_item("WMI/passwdpolicy/PasswordHistorySize");
PHS = int(PHS);
LD = get_kb_item("WMI/passwdpolicy/LockoutDuration");
RLC = get_kb_item("WMI/passwdpolicy/ResetLockoutCount");
MPL = get_kb_item("WMI/passwdpolicy/MinimumPasswordLength");
LBC = get_kb_item("WMI/passwdpolicy/LockoutBadCount");
MAXPA = get_kb_item("WMI/passwdpolicy/MaximumPasswordAge");
RLTCP = get_kb_item("WMI/lockoutpolicy/RequireLogonToChangePassword");
PC = get_kb_item("WMI/lockoutpolicy/PasswordComplexity");
FLWHE = get_kb_item("WMI/lockoutpolicy/ForceLogoffWhenHourExpire");
CTP = get_kb_item("WMI/lockoutpolicy/ClearTextPassword");
PINLOGIN = get_kb_item("WMI/passwdpolicy/pinLogin");
log = get_kb_item("WMI/passwdpolicy/log");

if (WMIOSLOG == "On the Target System runs Samba, it is not an Microsoft System."){
  result = string("nicht zutreffend");
  desc = string("Auf dem System läuft Samba, es ist kein\nMicrosoft Windows System.");
}else if(!OSVER){
  result = string("Fehler");
  desc = string("Beim Testen des Systems trat ein Fehler auf.");
}else if(!PPS || !LPS){
  result = string("Fehler");
  desc = string("Beim Testen des Systems trat ein Fehler auf.");
  if (!PPS)desc += string("\nDie Passwordpolicy konnte nicht ermittelt werden.");
  if (!LPS)desc += string("\nDie Lockoutpolicy konnte nicht ermittelt werden.");
}else if("error" >< PP || "error" >< LP){
  result = string("Fehler");
  if (!log) desc = string("Beim Testen des Systems trat ein Fehler auf.");
  if (log) desc = string("Beim Testen des Systems trat ein Fehler auf:\n" + log);
}else if(MINPA >= 1 && PHS >= 6 && LD >= 60 && RLC >= 30 && MPL >= 8 && LBC <= 3 && MAXPA <= 90 && RLTCP >< "False" && PC >< "True" && CTP >< "False" && PINLOGIN != "0") {
  result = string("erfüllt");
  desc = string("Die Kennwortrichtlinien und Kontosperrungsrichtlinien\nentsprechen der IT-Grundschutz Maßnahme 4.048.");
}else{
  result = string("nicht erfüllt");
  desc = string("Die Kennwortrichtlinien und Kontosperrungsrichtlinien\nentsprechen nicht der IT-Grundschutz Maßnahme 4.048.\n");
  if (LP >!< "False")
  {
    if (MINPA < 1)desc = desc + string("Das minimale Kennwortalter ist: " + MINPA + '\n');
    if (PHS < 6)desc = desc + string("Die Kennwortchronik umfasst nur " + PHS + ' Kennwörter\n');
    if (LD < 60)desc = desc + string("Die Kontosperrdauer beträgt nur " + LD + ' Minuten\n');
    if (RLC < 30)desc = desc + string("Die Zurücksetzungsdauer des Kontosperrungszählers\nbeträgt nur " + RLC + ' Minuten\n');
    if (MPL < 8)desc = desc + string("Die minimale Kennwortlänge beträgt nur: " + MPL + '\n');
    if (LBC > 3)desc = desc + string("Die Kontosperrungsschwelle beträgt " + LBC + '\nVersuche\n');
    if (MAXPA > 90)desc = desc + string("Das maximale Kennwortalter beträgt nur " + MAXPA + '\nTage\n');
    if (PINLOGIN != "0")desc = desc + string('Die PIN-Anmeldung ist nicht deaktiviert (ab Windows 8, Registry-Value: HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System ! AllowSignInOptions = DWORD(0) )\n');
  }
  if (PP >!< "False")
  {
    if (RLTCP >< "True")desc = desc + string('-Benutzer muss sich anmelden, um Kennwort zu ändern-\nist gesetzt\n');
    if (PC >< "False")desc = desc + string('-Kennwort muss Komplexittsvoraussetzungen entsprechen-\nist nicht gesetzt\n');
    if (CTP >< "True")desc = desc + string('-Kennwörter für alle Domänenbenutzer mit umkehrbarer\nVerschlüsselung speichern- ist gesetzt\n');
  }
}

set_kb_item(name:"GSHB/M4_048/result", value:result);
set_kb_item(name:"GSHB/M4_048/desc", value:desc);
set_kb_item(name:"GSHB/M4_048/name", value:name);

silence = get_kb_item("GSHB/silence");
if (!silence) itg_send_details (itg_id: 'GSHB/M4_048');

exit(0);

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