Website defacement is an attack on a website that changes the visual appearance of the site or a webpage.
The Website Defacement Wizard provides an automated method for monitoring your website for
defacement, and notifies you when your website contains undesirable content
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related Nagios queries.
In this context, we shall look into how to monitor Website Defacement.
To begin, the Website Defacement Wizard provides an automated method for monitoring our website for defacement and notify us when our website contains undesirable content.
Here, we will use the Website Defacement Wizard to monitor our websites for defacement, modification and malicious insertions with Nagios XI.
Basically, Website Defacement wizard uses the regular expression check to find a specific string that we do not want to appear on our website.
To begin using the Website Defacement wizard, navigate via the top menu bar to Configure > Run a configuration wizard and select the Website Defacement wizard.
Step 1:
Step 2:
Here is where the majority of the configuration takes place and is broken up into multiple sections.
URL Details specifies the following:
URL Options specifies the following:
Defacement Monitoring Services allows us to select which defacement methods we would like to use to monitor our website.
Website Defacement service will be created once we check the box next to Defacement Content Locator.
The Defacement Content Locator allows us to enter a list of words which should be considered "bad" if they appear on the page:
Web Page Regular Expression Match allows us to check that the content of the webpage includes specific words or expressions.
Web page Regex Match service will create, If we check the box next to Web Page Regular Expression Match.
Then, we will enter a string we wish to search for on the website.
If the entered string does not appear on our website, we will receive an alert.
We can also choose to invert the search by checking the Invert Regex Search check box.
Step 3:
Once we have finish making our selections, click Next and then complete the wizard by choosing the required options.
Step 4:
The error "301 Moved Permanently – pattern not found" implies that Web Page Regex Service is in a critical state, whereas the Website Defacement Service is in an OK state.
However, we need to correct the error "301 Moved Permanently – pattern not found" for the service to function properly.
Some sites will issue a HTTP 301 code which is just a simple redirect and can cause some issues with the check_http plugin.
i. We have to adjust the "-f xxxx" switch on the services to use the follow argument.
ii. Locate the services by navigating to Configure > Core Config Manager > Monitoring > Services.
iii. Click the services in the Service Name column to begin editing it:
If $ARG3$ has the value "-f ok", change "ok" to "follow".
iv. Now $ARG3$ has the value:
-f follow
v. Click Save to save the changes.
vi. Repeat this for any other services that need updating and then click Apply Configuration to make the changes go into production.
vii. Once the configuration has applied, view the services. After they have performed a check with the new setting, they should be working correctly.
This article covers how to Monitor Website Defacement With Nagios. Basically, Nagios XI can monitor for potential Website defacement using the Website Defacement monitoring wizard.
Benefits of Website Defacement Detection: