Score:0

How to make OSSEC send email when it is stopped?

pk flag

OSSEC sends an email when it is started, but not when it is stopped. So, if someone would somehow get access to the server, he could just stop the OSSEC and do whatever he wants without me knowing it. Or am I missing something?

Score:1
bd flag

If someone gets access to the server with sufficient privilege to stop OSSEC then she will also be able to prevent OSSEC from emitting an email informing you about its termination.

The proper approach for addressing this scenario is to monitor the OSSEC service from a different system, typically your network monitoring system. Of course there's still a small probability that an attacker might fake a positive response to the monitoring system's check whether OSSEC is still running. But you can make that arbitrarily difficult, depending on your paranoia level.

pk flag
Yeah, would need to monitor it from another server/service.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.