Class: Nexpose::VulnerabilityInstance

Inherits:
APIObject
  • Object
show all
Defined in:
lib/nexpose/vuln.rb

Overview

An instance of a vulnerability discovered on an asset. Accessible from Asset#vulnerability_instances.

Instance Attribute Summary collapse

Method Summary

Methods inherited from APIObject

#object_from_hash

Instance Attribute Details

#asset_idObject (readonly)

ID of the asset where the vulnerability instance was detected.



306
307
308
# File 'lib/nexpose/vuln.rb', line 306

def asset_id
  @asset_id
end

#asset_ip_addressObject (readonly)

IP Address of the asset where the vulnerability instance was detected.



308
309
310
# File 'lib/nexpose/vuln.rb', line 308

def asset_ip_address
  @asset_ip_address
end

#dateObject (readonly)

The time at which the vulnerability test was performed.



314
315
316
# File 'lib/nexpose/vuln.rb', line 314

def date
  @date
end

#keyObject (readonly)

Key that can distinguish the instances of the same type on the system. For spider vulnerabilities, this is typically the relative URI where the vuln was discovered.



323
324
325
# File 'lib/nexpose/vuln.rb', line 323

def key
  @key
end

#portObject (readonly)

The port on which the service was running if the vulnerability was found through a network service, -1 if not defined.



328
329
330
# File 'lib/nexpose/vuln.rb', line 328

def port
  @port
end

#proofObject (readonly)

The proof which explains why the vulnerability is present on the asset. The value is often HTML-formatted text.



319
320
321
# File 'lib/nexpose/vuln.rb', line 319

def proof
  @proof
end

#protocolObject (readonly)

Protocol the service was providing on which the vulnerability was found.



330
331
332
# File 'lib/nexpose/vuln.rb', line 330

def protocol
  @protocol
end

#scan_idObject (readonly)

ID of the scan where the vulnerability instance was detected.



310
311
312
# File 'lib/nexpose/vuln.rb', line 310

def scan_id
  @scan_id
end

#serviceObject (readonly)

The service that the vulnerability test was performed against.



325
326
327
# File 'lib/nexpose/vuln.rb', line 325

def service
  @service
end

#statusObject (readonly)

The vulnerable status of the vulnerability.



316
317
318
# File 'lib/nexpose/vuln.rb', line 316

def status
  @status
end

#vulnerability_idObject (readonly)

The ID (natural key) of the vulnerability.



312
313
314
# File 'lib/nexpose/vuln.rb', line 312

def vulnerability_id
  @vulnerability_id
end