TrendMicro TippingPoint Security Management System (SMS) Detection (SNMP)

2019-04-25T00:00:00
ID OPENVAS:1361412562310108569
Type openvas
Reporter Copyright (c) 2019 Greenbone Networks GmbH
Modified 2019-04-25T00:00:00

Description

This script performs SNMP based detection of a TrendMicro TippingPoint Security Management System (SMS).

                                        
                                            # Copyright (C) 2019 Greenbone Networks GmbH
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# 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.108569");
  script_version("2019-04-25T09:49:09+0000");
  script_tag(name:"last_modification", value:"2019-04-25 09:49:09 +0000 (Thu, 25 Apr 2019)");
  script_tag(name:"creation_date", value:"2019-04-25 08:00:03 +0000 (Thu, 25 Apr 2019)");
  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_name("TrendMicro TippingPoint Security Management System (SMS) Detection (SNMP)");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2019 Greenbone Networks GmbH");
  script_family("Product detection");
  script_dependencies("gb_snmp_sysdesc.nasl");
  script_require_udp_ports("Services/udp/snmp", 161);
  script_mandatory_keys("SNMP/sysdesc/available");

  script_tag(name:"summary", value:"This script performs SNMP based detection of a TrendMicro
  TippingPoint Security Management System (SMS).");

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

  exit(0);
}

include("host_details.inc");
include("snmp_func.inc");

port    = get_snmp_port( default:161 );
sysdesc = get_snmp_sysdesc( port:port );
if( ! sysdesc || sysdesc !~ "^SMS [^ ]+ v?SMS" )
  exit( 0 );

version = "unknown";

# SMS sms-server vSMS 5.0.0.106258.1
vers = eregmatch( pattern:"^SMS [^ ]+ v?SMS ([0-9.]+)", string:sysdesc );
if( vers[1] )
  version = vers[1];

set_kb_item( name:"tippingpoint/sms/detected", value:TRUE );
set_kb_item( name:"tippingpoint/sms/snmp/detected", value:TRUE );
set_kb_item( name:"tippingpoint/sms/snmp/port", value:port );
set_kb_item( name:"tippingpoint/sms/snmp/" + port + "/concluded", value:sysdesc );
set_kb_item( name:"tippingpoint/sms/snmp/" + port + "/version", value:version );

exit( 0 );