Class: Mdm::Vuln
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Mdm::Vuln
- Defined in:
- app/models/mdm/vuln.rb
Overview
Instance Attribute Summary collapse
-
#exploit_attempts ⇒ ActiveRecord::Relation<Mdm::ExploitAttempt>
Attempts to exploit this vulnerability.
-
#exploited_at ⇒ DateTime
When the vulnerability was exploited.
-
#host ⇒ Mdm::Host
The host with this vulnerability.
-
#info ⇒ String
Additional information about the vulnerability.
-
#matches ⇒ ActiveRecord::Relation<MetasploitDataModels::AutomaticExploitation::Match>
The matches for this vuln.
-
#module_details ⇒ ActiveRecord::Relation<Mdm::Module::Detail>
readonly
Modules that share the same external references as this vuln.
- #module_refs ⇒ ActiveRecord::Relation<Mdm::Module::Ref> readonly
-
#module_runs ⇒ ActiveRecord::Relation<MetasploitDataModels::ModuleRun>
readonly
References to times that a module has been run to exercise this vuln.
-
#name ⇒ String
The name of the vulnerability in metasploit-framework or from the import source.
-
#notes ⇒ <ActiveRecord::RelationMdm::Note>
Notes about the vuln entered by a user with oldest notes first.
-
#origin ⇒ ActiveRecord::Relation<origin>
A polymorphic association to the origin that found the vulnerability.
-
#refs ⇒ ActiveRecord::Relation<Mdm::Ref>
readonly
External references to this vulnerability.
-
#service ⇒ Mdm::Service
The service with the vulnerability.
-
#vuln_attempt_count ⇒ Integer
Counter cache for number of #vuln_attempts.
-
#vuln_attempts ⇒ ActiveRecord::Relation<Mdm::VulnAttempt>
Attempts to exploit this vulnerability.
-
#vuln_detail_count ⇒ Integer
Counter cache for number of #vuln_details.
-
#vuln_details ⇒ ActiveRecord::Relation<Mdm::VulnDetail>
Additional information about this vulnerability.
-
#vulns_refs ⇒ ActiveRecord::Relation<Mdm::VulnRef>
Join model that joins this vuln to its external references.
Instance Attribute Details
#exploit_attempts ⇒ ActiveRecord::Relation<Mdm::ExploitAttempt>
Attempts to exploit this vulnerability.
12 13 14 |
# File 'app/models/mdm/vuln.rb', line 12 has_many :exploit_attempts, class_name: 'Mdm::ExploitAttempt', inverse_of: :vuln |
#exploited_at ⇒ DateTime
When the vulnerability was exploited
|
# File 'app/models/mdm/vuln.rb', line 135
|
#host ⇒ Mdm::Host
The host with this vulnerability.
20 21 22 23 |
# File 'app/models/mdm/vuln.rb', line 20 belongs_to :host, class_name: 'Mdm::Host', counter_cache: :vuln_count, inverse_of: :vulns |
#info ⇒ String
Additional information about the vulnerability
|
# File 'app/models/mdm/vuln.rb', line 145
|
#matches ⇒ ActiveRecord::Relation<MetasploitDataModels::AutomaticExploitation::Match>
The matches for this vuln
29 30 31 |
# File 'app/models/mdm/vuln.rb', line 29 has_many :matches, class_name: "MetasploitDataModels::AutomaticExploitation::Match", as: :matchable, dependent: :destroy |
#module_details ⇒ ActiveRecord::Relation<Mdm::Module::Detail> (readonly)
Modules that share the same external references as this vuln.
124 125 126 127 128 |
# File 'app/models/mdm/vuln.rb', line 124 has_many :module_details, -> { distinct }, :class_name => 'Mdm::Module::Detail', :source => :detail, :through => :module_refs |
#module_refs ⇒ ActiveRecord::Relation<Mdm::Module::Ref> (readonly)
105 |
# File 'app/models/mdm/vuln.rb', line 105 has_many :module_refs, :class_name => 'Mdm::Module::Ref', :through => :refs |
#module_runs ⇒ ActiveRecord::Relation<MetasploitDataModels::ModuleRun> (readonly)
References to times that a module has been run to exercise this vuln
112 113 114 |
# File 'app/models/mdm/vuln.rb', line 112 has_many :module_runs, class_name: 'MetasploitDataModels::ModuleRun', as: :trackable |
#name ⇒ String
The name of the vulnerability in metasploit-framework or from the import source.
|
# File 'app/models/mdm/vuln.rb', line 140
|
#notes ⇒ <ActiveRecord::RelationMdm::Note>
Notes about the vuln entered by a user with oldest notes first.
80 81 82 83 84 |
# File 'app/models/mdm/vuln.rb', line 80 has_many :notes, -> { order('notes.created_at') }, class_name: 'Mdm::Note', inverse_of: :vuln, dependent: :delete_all |
#origin ⇒ ActiveRecord::Relation<origin>
A polymorphic association to the origin that found the vulnerability.
46 47 |
# File 'app/models/mdm/vuln.rb', line 46 belongs_to :origin, polymorphic: true |
#refs ⇒ ActiveRecord::Relation<Mdm::Ref> (readonly)
External references to this vulnerability.
95 |
# File 'app/models/mdm/vuln.rb', line 95 has_many :refs, :class_name => 'Mdm::Ref', :through => :vulns_refs |
#service ⇒ Mdm::Service
The service with the vulnerability.
37 38 39 |
# File 'app/models/mdm/vuln.rb', line 37 belongs_to :service, class_name: 'Mdm::Service', inverse_of: :vulns |
#vuln_attempt_count ⇒ Integer
Counter cache for number of #vuln_attempts.
|
# File 'app/models/mdm/vuln.rb', line 150
|
#vuln_attempts ⇒ ActiveRecord::Relation<Mdm::VulnAttempt>
Attempts to exploit this vulnerability.
53 54 55 56 |
# File 'app/models/mdm/vuln.rb', line 53 has_many :vuln_attempts, class_name: 'Mdm::VulnAttempt', dependent: :destroy, inverse_of: :vuln |
#vuln_detail_count ⇒ Integer
Counter cache for number of #vuln_details.
|
# File 'app/models/mdm/vuln.rb', line 155
|
#vuln_details ⇒ ActiveRecord::Relation<Mdm::VulnDetail>
Additional information about this vulnerability.
62 63 64 65 |
# File 'app/models/mdm/vuln.rb', line 62 has_many :vuln_details, class_name: 'Mdm::VulnDetail', dependent: :destroy, inverse_of: :vuln |
#vulns_refs ⇒ ActiveRecord::Relation<Mdm::VulnRef>
Join model that joins this vuln to its external references.
71 72 73 74 |
# File 'app/models/mdm/vuln.rb', line 71 has_many :vulns_refs, class_name: 'Mdm::VulnRef', dependent: :destroy, inverse_of: :vuln |