Using the data security lifecycle, as stated in my previous blog, can help you gain control and visibility over the security of your database backups. Though, another critical aspect of security that is equally important is event logging, monitoring and alerting. It's no coincidence that most, if not all, cyber/information security and compliance standards and guidelines - such as ISO 27001, PCI-DSS, SANS Top 20 - treat logging and monitoring as a critical control. Having an event logging and monitoring capability puts you one step ahead in being able to fight cyber threats as you are able to readily detect and respond to malicious activity. This article talks about the event logging, monitoring and alerting features that are available in Backup Ninja.
Logging, Monitoring and Alerting with Backup Ninja
Backup Ninja gives you an array of options that enable you to monitor events, receive alerts and audit backup activities. With it, you have three event facilities that can give you visibility of all your events, these are: the backup ninja web portal, alerts to your email and the bartender agent log file that resides on your database server. Moreover, there are a couple of factors for event correlation that are available to you. These are: event names and descriptions, ip addresses, timestamps for the start of an activity.
Events in Backup Ninja are broadly categorized as below:
- User events - Provide information about the following user events:
- User registration (EventUserRegister)
- User login (EventUserLogin)
- User logout (EventUserLogout)
- Password change (EventUserChangePassword)
- Password restore (EventRestorePasswordStart)
- Password restore confirmation (EventUserRestorePasswordConfirm)
- Email confirmation for registration (EventUserConfirmEmail)
- Create a contact (EventUserCreateContact)
- Delete a contact (EventUserDeleteContact)
- Delete a user (EventUserDelete)
- Resend a verification email (EventUserResendVerificationEmail)
- Change a username (EventUserChangeName)
- Agent events - Provide information about the following bartender agent events:
- Agent installation (EventAgentInstall)
- Agent restart (EventAgentRestart)
- Agent upgrades (EventAgentUpgrade)
- Agent deletion (EventAgentDelete)
- Uninstalling the agent (EventAgentUninstall)
- Creation of cloud credentials by the agent (EventAgentCreateCloudCredentials)
- Deletion of cloud credentials by the agent (EventAgentDeleteCloudCredentials)
- Backup events - Provide information about the following backup related events:
- Create backup schedules (EventBackupCreateSchedule)
- Pause backup schedules (EventBackupPauseSchedule)
- Resume backup schedules (EventBackupResumeSchedule)
- Delete backup schedules (EventBackupDeleteSchedule)
- Create backups (EventBackupCreate)
- Remove a backup file (EventBackupRemoveFile)
- Edit a backup schedule (EventBackupEditSchedule)
- Get a backup file (EventBackupGetFile)
All these events are relevant at the point that you want to detect malicious activity. At any one time, you should be able to use these events to answer the critical questions of: Who did what? What do they actually do? Where did they do it from? When they did it? Those questions should help you in understanding the tell tale signs of suspicious activity.
Backup Ninja’s User Activity Log
On the backup ninja web portal, you can get access to user activity logs by selecting the activity logs menu item on the left hand side of the web portal, after you have already logged in. The user activity log displays entries, as shown under user events earlier, on a table with the following columns:
- Description - A description of the event
- Event - The name of the event
- Created - When the event started
- IP - the originating IP Address of the user who triggered the event.
Below is a sample capture of the user activity logs.
Backup Ninja’s Email Alerts
To receive email alerts, you have to activate them on the Backup Ninja web portal. By navigating to the Personal information menu item, you should be able to see all the alerting options. The section, with the title Manage system alerts, is divided into three sections:
- Backup events
- Schedule events
- Agent Events
Backup event notifications alert you when a backup is created, has failed or is removed. Schedule events notifications alert you when a schedule is created, removed, paused or resumes operation. Lastly, agent events alert you when the bartender agent is installed, deleted, reports an error, gets started or stopped. Below are snippets of the section for enabling notifications/alerts.
Bartender Agent Log
You can also get a glimpse of the Bartender agent log activity by viewing the bartender log on your database server. By navigating to the /var/log/ directory you can view the logs by tailing the logs as in the image below or viewing old log entries using more or any other linux viewing or editing utility. In this log you should be able to see logs with verbosity such as: debug, info, warn, error, dpanic, panic, and fatal.
Backup Ninja gives you visibility of all the relevant events concerning the security of your database backup. In the case that you suspect or you actually succumb to a security incident you can readily detect and respond to suspicious or actual malicious activity.