Skip to content

Commit

Permalink
Adding MISP URL for SIEM monitoring (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
4quarks committed Aug 30, 2023
1 parent 3f88f53 commit 4a89f33
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
1 change: 1 addition & 0 deletions lib/alerts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def query_misp(misp_server, ioc_detected, type_ioc, all_uuids)
'misp_info' => misp_event.info,
'misp_id' => misp_event.id,
'misp_server' => misp_server["domain"],
'event_url' => MISP_URL % [s:misp_server["domain"], i:misp_event.id],
'num_iocs' => misp_event.attribute_count,
'publication' => misp_event.date,
'organisation' => misp_event.orgc.name,
Expand Down
1 change: 1 addition & 0 deletions lib/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module ConstantsConfig
PATH_HTML = ENV['PATH_HTML'] || "/etc/pdnssoc/notification_email.html"
FILENAME_LOG_ALERT = ENV['FILENAME_LOG_ALERT'] || "alerts.log"
FILENAME_LOG_SYS = ENV['FILENAME_LOG_SYS'] || "pdnssoc_sys.log"
MISP_URL = "https://%{s}/events/view/%{i}"
end

module ConstantsGeneral
Expand Down
16 changes: 0 additions & 16 deletions lib/post_install.rb

This file was deleted.

0 comments on commit 4a89f33

Please sign in to comment.