module Dradis::Plugins::OpenVAS module Mapping DEFAULT_MAPPING = { evidence: { 'Port' => '{{ openvas[evidence.port] }}', 'Description' => '{{ openvas[evidence.description] }}' }, result: { 'Title' => '{{ openvas[result.name] }}', 'CVSSv2' => '{{ openvas[result.cvss_base] }}', 'AffectedSoftware' => '{{ openvas[result.affected_software] }}', 'Description' => '{{ openvas[result.summary] }}', 'Recommendation' => '{{ openvas[result.solution] }}', 'References' => "CVE: {{ openvas[result.cve] }}\nCVSS Vector: {{ cvss_base_vector }}\nBID: {{ openvas[result.bid] }}\nOther: {{ openvas[result.xref] }}", 'RawDescription' => "(note that some of the information below can change from instance to instance of this problem)\n {{ openvas[result.description] }}" } }.freeze SOURCE_FIELDS = { evidence: [ 'evidence.port', 'evidence.description' ], result: [ 'result.threat', 'result.description', 'result.original_threat', 'result.notes', 'result.overrides', 'result.name', 'result.cvss_base', 'result.cvss_base_vector', 'result.risk_factor', 'result.cve', 'result.bid', 'result.xref', 'result.summary', 'result.insight', 'result.info_gathered', 'result.impact', 'result.impact_level', 'result.affected_software', 'result.solution', 'result.solution_type', 'result.vuldetect' ] }.freeze end end