Skip to content

Different alert text and subject for different alerters #362

Closed Locked Answered by ferozsalam
Neuro-HSOC asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

This is possible with TheHive alerter, which sets defaults but also checks the provided config and updates anything which is populated in it:

        alert_config = {
            'artifacts': [],
            'customFields': {},
            'date': int(time.time()) * 1000,
            'description': self.create_alert_body(matches),
            'sourceRef': str(uuid.uuid4())[0:6],
            'tags': [],
            'title': self.create_title(matches),
        }
        alert_config.update(self.rule.get('hive_alert_config', {}))

If you set:

hive_alert_config:
  title: 'Custom subject'
  description: 'Custom description'

It should give you what you need. Let me know if this doesn't …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Neuro-HSOC
Comment options

@ferozsalam
Comment options

Answer selected by Neuro-HSOC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants