Lucene search
+L

Cisco FireSIGHT Management Center Detection

🗓️ 29 Oct 2015 00:00:00Reported by Copyright (C) 2015 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 20 Views

This script performs SSH based detection of Cisco FireSIGHT Management Cente

Code
# SPDX-FileCopyrightText: 2015 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.105427");
  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_version("2023-07-25T05:05:58+0000");
  script_tag(name:"last_modification", value:"2023-07-25 05:05:58 +0000 (Tue, 25 Jul 2023)");
  script_tag(name:"creation_date", value:"2015-10-29 13:14:47 +0100 (Thu, 29 Oct 2015)");
  script_name("Cisco FireSIGHT Management Center Detection");

  script_tag(name:"summary", value:"This script performs SSH based detection of Cisco FireSIGHT Management Center");

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

  script_category(ACT_GATHER_INFO);
  script_family("Product detection");
  script_copyright("Copyright (C) 2015 Greenbone AG");
  script_dependencies("gather-package-list.nasl");
  script_mandatory_keys("sourcefire_linux_os/installed");
  exit(0);
}


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

if( ! get_kb_item( "sourcefire_linux_os/installed" ) ) exit( 0 );

sock = ssh_login_or_reuse_connection();
if( ! sock ) exit( 0 );

sf_version = ssh_cmd( socket:sock, cmd:"cat /etc/sf/sf-version" );

close( sock );

if( "Defense Center" >!< sf_version ) exit( 0 );

cpe = 'cpe:/a:cisco:firesight_management_center';

if( "/ Sourcefire Linux OS" >< sf_version )
{
  sf = split( sf_version, sep:"/", keep:FALSE );
  if( ! isnull( sf[0] ) ) sf_version = sf[0];
}

vb = eregmatch( pattern:'v([^ ]+) \\(build ([^)]+)\\)', string:sf_version );

rep_version = 'unknown';

if( ! isnull( vb[1] ) )
{
  version = vb[1];
  cpe += ':' + version;
  set_kb_item( name:"cisco_firesight_management_center/version", value:version );
  rep_version = version;
}

if( ! isnull( vb[2] ) )
{
  build = vb[2];
  set_kb_item( name:"cisco_firesight_management_center/build", value:build );
  rep_version += ' (build ' + build + ')';
}

register_product( cpe:cpe, location:'ssh' );

if( "Virtual Defense Center" >< sf_version )
  model = "VM";
else
{
  ms = sf_version;
  ms = ereg_replace( string:ms, pattern:'(32|64)bit', replace:'' );
  _m = eregmatch( pattern:'Defense Center ([^ v]+) v', string:ms );
  if( ! isnull( _m[1] ) ) model = _m[1];
}

if( model )
{
  set_kb_item( name:"cisco_firesight_management_center/model", value:model );
  rep_model = 'Model: ' + model + '\n';
}

log_message( data: build_detection_report( app:'Cisco FireSIGHT Management Center',
                                           version:rep_version,
                                           install:'ssh',
                                           cpe:cpe,
                                           extra: rep_model,
                                           concluded: sf_version ),
             port:0 );

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