With the Magento2 Web Security module, the admin can provide security services for the Magento store from hackers. The admin can restrict any particular file type to get uploaded on the website and can ban the website for any country and IP address.
Brute force attack notifications to the admin and validation for the customer email address option is also available.
The Magento2 Security module provides admin to enable the unrecognized login notification.
Master Password feature to block all sub-users accounts.
Allow admin to get each file upload notification in the system.
Admin can prevent file types to be upload.
Ban any country from login into the admin panel.
Admin can prevent the admin panel from Brute Force attack.
Brute force logs available to admin.
Admin blacklist/whitelist IPs.
AbuseIPDB integrated to block and report IP.
Mailboxlayer integrated to validate emails for customers.
Real-time email validation for customers by admin.
Create custom email templates for each action.
Customers will get a zip folder and they have to extract the contents of this zip folder on their system. The extracted folder has an src folder, inside the src folder you have the app folder. You need to transfer this app folder into the Magento2 root directory on the server as shown below.
After the successful installation, you have to run these commands in the Magento2 root directory.
First Command –
php bin/magento setup:geoip2/geoip2:~2.0
Second Command –
php bin/magento setup:upgrade
Third Command –
php bin/magento setup:di:compile
Fourth Command –
php bin/magento setup:static-content:deploy
After running the commands, you have to flush the cache from the Magento admin panel by navigating through->System->Cache management as shown below.
For the multilingual support, the admin will navigate through Store->Configuration->General ->Locale Options and select the locale as German (the language into which admin wants to translate his store content).
If you want to translate their module language from English to German then follow the path src/app/code/Webkul/WebApplicationFirewall/i18n in their unzipped Magento2 web security folder. Then you will get a CSV file with the name “en_US.csv”.
Now, rename that CSV as to your region code and language code “de_DE.csv” and translate all right side content in your language.
After editing the CSV, save it and then upload it where you have installed Magento2 on the server.
The module will get translated into your desired Language.
The admin needs to configure the following sections as mentioned below to integrate the Magento2 web security into the Magento2 web.
Under the general setting section, the admin will configure the following fields:
Enable Magento Security: The admin needs to select “Yes” for enabling the following Magento2 Security. On selecting the Download GeoIP2 Library will update the library of detecting the current geolocation of customers using his IP address.
Get Alerts about Unrecognized Admin Logins: The admin will get alerts each time admin logins through unrecognized means.
Select CMS Page for Blocked IPs: The admin can select the CMS pages for IPs that are blocked by the user.
Send Password Reset Request
If the admin selects this option, all the sub-admin or users will be blocked and will be shared an email with the reset password link.
Malicious File Security
The admin will be able to enhance the Magento2 security of the website from malicious files by configuring the following as mentioned below.
Get Notification if Any File Uploads by Magento: The admin will get the notification for all the files uploaded on the Magento website.
Prevent Uploading File With Extension(s): Add the extensions that you want to prevent uploading on your website and get a notification for prevented file uploads.
Receive File Malicious Notification on Email Address: Set the Email Address on which the notification will be shared when the malicious file is uploaded.
Enable Country Ban
The admin can even configure to ban the country where the admin panel will not be accessible as mentioned below.
Enable: The admin can enable or disable this country ban functionality.
Select Specific Countries: If enabled, the admin can select the country for which country ban will be enabled.
IPs Allowed Setting
The admin will be able to configure the whitelisted and blacklisted IPs through the following fields as mentioned below.
Blacklist IP(s): The admin will be able to list all the blacklisted IPs by mentioning them in the following section. The admin can even block IPs for the complete classes like 192.168.1.*, 101.22.*.*
Whitelist IP(s): The admin will be able to list all the whitelisted IPs by mentioning them in the following section. The admin can even whitelist IPs for the complete classes like 192.168.1.*, 101.22.*.*
Enable IP Debug Log: The admin will be able to maintain the debug logs for enabling IP.
Frontend Two Step Authentication
This functionality will allow the store owner to have two-step authentication for the login. The admin will be able to configure the following module:
Enable Google Two Factor Auth: The admin can enable or disable the two-factor authentication.
Enable “trust this device” option: If this option is enabled then you can set the trust device option.
Note: The trust this device will work with the HTTPS website only.
Protect Against Brute-force
The admin can configure the website against proxy login attacks by configuring the following sections as mentioned below.
Enable: The admin enable or disable the proxy login or brute force
Send Warning Emails To: Add the email address to which warning emails will be shared.
Send Alert on Each Login Failed: To receive alerts on every failed login.
Admin User Locked Alert: If enabled, the admin can send alert mail when an admin user is locked(Admin User Lock Setting: Advanced->Admin->Security)
The admin can report IP abuse through the following module by configuring as mentioned below.
Activate: The admin needs to activate the following section.
API Key: Please add the API Key that you will get on creating the account on Abuse IPDB.
Max Days: Enter the number of days between 1-365 to determines how far back in time we go to fetch reports.
Report IPs If Brute Force Attempt Detected: If the proxy login attack is detected then the IP will be auto reported if enabled.
Block IP Based on Abuse Confidence Score: The admin can enable IP block based on the confidence score of the abuse.
Block IPs If Minimum Abuse Confidence Score: The admin can define the fixed score as to above which IP will be rejected.
Note: You need to signup for the Abuse IPDB and select a suitable plan. To know more, please visit the following link: HERE
MailBox Layered Email Verification
The admin can enable the mailbox real-time layered email address verification
API Key: The admin can add the API keys as fetched on creating the account at mailboxlayer.com
Enable for Customer: The admin can set the following mailbox to be enabled at the customer end.
Note: You need to select the plan for the MailBox layer. To know more visit the following link: HERE
Email Sender and Templates
The admin can set different templates that will be shared with the sub-user and admin in the following scenario as mentioned below.
Moreover, the admin can select the sender to whom the notification will be shared and assign a different templates for different scenarios.
Admin Login Logs
All the admin’s login logs will be displayed under the following section as shown in the image below.
The admin will be able to identify the Magento store is on Production, Developer, and Default mode.
The admin needs to select the server hosting whether shared(one user) or private(two user). Based on the same the directories will be visible as shown in the image below.
The admin will be able to view all the files and their permission. The admin will get the status error if the permission is not ideal.
In addition, this will help the admin to optimize the file permissions. Thus by protecting the websites for any vulnerability of the site.
Brute Force Login Logs
This section will display all the brute force login logs so that the store owner can view all the IP and their login URL, browser and even the login time details can be fetched.
The login time is also shared as shown in the image below.
In conclusion, this will help the admin to detect the frauds count and can even report them or can blocklist the frauds.
Customer Front End
Email Address Validation
If enabled, the mailbox real-time layered email address verification. The customer will have to enter a valid email address during registration.
However, if the valid email address is not added, the following error message will be displayed as shown in the image below.
Two Factor Authentication
If the admin enables the two-factor authentication then each time the customer will log in. Thereafter, an OTP will generate which needs to be scan through the Google Authenticator to be input for the login.
After the first time registration, the customer will navigate to the dashboard. Thereafter, the customer will register for two-step authentication as shown in the image below.
After registering, the customer will navigate to the QR code page. Thereafter, the customer will scan the QR through Google Authenticator. Please check the below screenshot
After the authentication, the customer will add the OTP in the respective field. The OTP valid notification will display as shown in the image below. The customer can now also enable or disable Google Authentication
After that, the customer will visit the OTP section again if you enable the Two Factor Authentication. The customer can now choose to add the device as a trusted device. If selected, the customer does not have to scan the QR code.
So, that’s all for the Magento2 Security module, for any question/query, please raise a Ticket at our HelpDesk system. We are always happy to help you out. You can also get back to us via mail email@example.com.
Current Product Version - 3.0.0
Supported Framework Version - 2.0.x 2.1.x 2.2.x 2.3.x