Skip to content

Commit

Permalink
Creation of the common module and notification system
Browse files Browse the repository at this point in the history
Created a new Django App to centralize the generic functions of Watcher used by multiple modules.
Refactored the notification system to integrate SMTPS protocol (replacing SMTP).
Added automatic alert creation in TheHive via Feeder.
Integrated notifications through the Citadel enterprise application (via APIs).
Added Slack notifications (via APIs).
  • Loading branch information
ygalnezri committed Dec 4, 2024
1 parent 2ef3f67 commit 505988f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ EMAIL_CLASSIFICATION=INTERNAL
# THE HIVE Setup
THE_HIVE_URL=
THE_HIVE_VERIFY_SSL=False
THEHIVE_API_KEY=
THE_HIVE_API_KEY=
THE_HIVE_CASE_ASSIGNEE=watcher
THE_HIVE_TAGS=Watcher,Impersonation,Malicious Domain,Typosquatting
THE_HIVE_CUSTOM_FIELD=watcher-id
Expand Down
2 changes: 1 addition & 1 deletion Watcher/Watcher/common/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .mail_template.site_monitoring_template import get_site_monitoring_template

thehive_url = settings.THE_HIVE_URL
api_key = settings.THEHIVE_API_KEY
api_key = settings.THE_HIVE_API_KEY

from datetime import datetime
from secrets import token_hex
Expand Down
2 changes: 1 addition & 1 deletion Watcher/Watcher/common/utils/send_thehive_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def send_thehive_alert(title, description, severity, tags, app_name, domain_name
:rtype: None
"""
thehive_url = thehive_url or settings.THE_HIVE_URL
api_key = api_key or settings.THEHIVE_API_KEY
api_key = api_key or settings.THE_HIVE_API_KEY

ticket_id = None

Expand Down
2 changes: 1 addition & 1 deletion Watcher/Watcher/watcher/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
THE_HIVE_VERIFY_SSL = True
if THE_HIVE_VERIFY_SSL == "False":
THE_HIVE_VERIFY_SSL = False
THEHIVE_API_KEY = os.environ.get('THEHIVE_API_KEY', '')
THE_HIVE_API_KEY = os.environ.get('THE_HIVE_API_KEY', '')
THE_HIVE_CASE_ASSIGNEE = os.environ.get('THE_HIVE_CASE_ASSIGNEE', 'watcher')
THE_HIVE_TAGS = os.environ.get('THE_HIVE_TAGS', "Watcher,Impersonation,Malicious Domain,Typosquatting").split(",")
THE_HIVE_CUSTOM_FIELD = os.environ.get('THE_HIVE_CUSTOM_FIELD', 'watcher-id')
Expand Down

0 comments on commit 505988f

Please sign in to comment.