Class: Mihari::Analyzers::VirusTotal
- Defined in:
- lib/mihari/analyzers/virustotal.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#indicator ⇒ Object
readonly
Returns the value of attribute indicator.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Base
#ignore_old_artifacts, #ignore_threshold
Instance Method Summary collapse
- #artifacts ⇒ Object
-
#initialize(indicator, title: nil, description: nil, tags: []) ⇒ VirusTotal
constructor
A new instance of VirusTotal.
Methods inherited from Base
inherited, #run, #run_emitter, #source
Methods included from Retriable
Methods included from Configurable
#configuration_values, #configured?
Constructor Details
#initialize(indicator, title: nil, description: nil, tags: []) ⇒ VirusTotal
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/mihari/analyzers/virustotal.rb', line 10 def initialize(indicator, title: nil, description: nil, tags: []) super() @indicator = indicator @type = TypeChecker.type(indicator) @title = title || "VirusTotal lookup" @description = description || "indicator = #{indicator}" = end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
8 9 10 |
# File 'lib/mihari/analyzers/virustotal.rb', line 8 def description @description end |
#indicator ⇒ Object (readonly)
Returns the value of attribute indicator.
8 9 10 |
# File 'lib/mihari/analyzers/virustotal.rb', line 8 def indicator @indicator end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
8 9 10 |
# File 'lib/mihari/analyzers/virustotal.rb', line 8 def end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
8 9 10 |
# File 'lib/mihari/analyzers/virustotal.rb', line 8 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/mihari/analyzers/virustotal.rb', line 8 def type @type end |
Instance Method Details
#artifacts ⇒ Object
21 22 23 |
# File 'lib/mihari/analyzers/virustotal.rb', line 21 def artifacts lookup || [] end |