Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maldet will never send slack notifications in monitor mode. #387

Open
zelch opened this issue Jun 30, 2021 · 1 comment
Open

maldet will never send slack notifications in monitor mode. #387

zelch opened this issue Jun 30, 2021 · 1 comment

Comments

@zelch
Copy link

zelch commented Jun 30, 2021

If we are running in monitor mode, then the daily crontab will simply call 'maldet --monitor-report', this calls genalert in digest mode instead of file mode.

The scan function calls genalert in file mode, but that function doesn't get used by monitor mode.

The trap function calls genalert in file mode, but only if svc is a, r, or f, and for monitor mode it is m.

As such, though it is not documented as such, using monitor mode prevents all slack alerts from being generated.

Would a pull request to add slack notification support to record_hit be accepted? Alternatively, what about one to allow some form of custom command hooks for record_hit and genalert?

@JPaulMora
Copy link

Dang, thanks for this. I was wondering what broke my notifications. Guess I'll have a manual cron job stop monitor before my full scan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants