Class: HeimdallTools::ProwlerMapper

Inherits:
ASFFMapper show all
Defined in:
lib/heimdall_tools/prowler_mapper.rb

Constant Summary

Constants inherited from ASFFMapper

ASFFMapper::IMPACT_MAPPING, ASFFMapper::PRODUCT_ARN_MAPPING

Instance Method Summary collapse

Methods inherited from ASFFMapper

#desc_tags, #encode, #external_product_handler, #impact, #nist_tag, #subfindings, #to_hdf

Constructor Details

#initialize(prowler_asff_json) ⇒ ProwlerMapper

Returns a new instance of ProwlerMapper.



3
4
5
6
# File 'lib/heimdall_tools/prowler_mapper.rb', line 3

def initialize(prowler_asff_json)
  # comes as an asff-json file which is basically all the findings concatenated into one file instead of putting it in the proper wrapper data structure
  super("{ \"Findings\": [#{prowler_asff_json.split("\n").join(',')}]}", meta: { 'name' => 'Prowler', 'title' => 'Prowler findings' })
end