=== SafetyBis Security ===
Contributors: safetysolutions
Tags: security, malware scanner, file integrity, spam, updates
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Finds changed WordPress, plugin and theme files, outdated or abandoned plugins, and spam links or injected code in your database.

== Description ==

SafetyBis Security checks your site for the most common signs of a hack and for the problems that lead to one.

= File integrity =

* Compares every WordPress core file with the original from WordPress.org for your version and language.
* Compares plugin and theme files with the original packages from the WordPress.org directory.
* Reports changed, missing and unexpected files. Unexpected PHP files, a common way to hide a backdoor, get high priority.
* Recognises files left behind by older WordPress versions and documentation files, so they do not raise false alarms.

= Updates =

* Shows available updates for WordPress, plugins and themes.
* Warns about plugins that were closed on WordPress.org, often because of a security problem.
* Warns about plugins and themes that have not been updated for more than two years.
* Lists items that do not come from the WordPress.org directory, so you know their updates depend on the vendor.

= Database =

* Looks for casino, betting, adult, pharmacy, loan and SEO spam in posts, pages, custom fields, comments, user profiles and settings, in English, German, French, Italian and Spanish.
* Finds hidden links, suspicious scripts and hidden frames that attackers inject into content.
* Shows where each match is, with a link to edit it. The plugin never changes your content.
* A legitimate site can switch off a category, for example a casino hotel or a pharmacy.

= How it works =

* Scans run in short steps, so they work on any hosting, including shared hosting with strict time limits.
* A full scan can run once a week in the background, with an optional email to the site administrator.
* You can ignore an issue. It comes back if the file or content changes again.
* All results stay in your own database.

= Translations =

The plugin is available in English, German, French, Italian and Spanish.

== Installation ==

1. Install the plugin from the Plugins screen, or upload the `safetybis-security` folder to `/wp-content/plugins/`.
2. Activate the plugin.
3. Open SafetyBis Security in the admin menu, choose your settings and start the first scan.

== Frequently Asked Questions ==

= Does the plugin change or delete anything? =

No. It only reads files and database records and shows what it found. You decide what to do with each issue.

= Why is a plugin marked "Cannot be checked"? =

Premium and custom plugins are not in the WordPress.org directory, so there is no original to compare with. The same applies to versions that were never published in the directory.

= A file I changed myself is reported. What should I do? =

Editing plugin or theme files directly is not recommended, because updates overwrite the changes. If you know the change, click "Ignore". The issue comes back only if the file changes again.

= My site is about casinos. Will every page be reported? =

Single words are not enough for a report: the scan needs clear spam phrases, spam link addresses or several spam words together. You can also switch off any category in the settings.

= Does the scan slow down my site? =

Scans run in short steps in the admin area or in the background (WP-Cron), never while visitors load pages.

= Does it work on multisite? =

Not yet. On a multisite network the plugin shows a notice and stays inactive.

== External services ==

This plugin connects to the following services.

1. WordPress.org (api.wordpress.org, downloads.wordpress.org)

Used to get the reference checksums of WordPress core and plugins, the theme packages to build theme checksums, information about available updates, and whether a plugin or theme was closed or is still maintained. The requests contain the WordPress version, the site language, and the names (slugs) and versions of the installed plugins and themes. They are sent when you start a scan and during the weekly scan, if it is enabled. These are the same services WordPress uses for its own updates. Privacy policy: https://wordpress.org/about/privacy/

2. SafetyBis API (plugins.safetybis.com)

Used only if you enable "Download the updated detection list" (on the first screen or in Settings). Once a month, and when you click "Check now", the plugin downloads the latest list of spam words, link addresses and code patterns for the database scan. The request contains the plugin version and the version of the list the plugin already has, and the server sees your server's IP address. No site address, content or user data is sent. Every list is signed and checked before use. Terms of use: https://plugins.safetybis.com/terms/ Privacy policy: https://plugins.safetybis.com/privacy/

== Privacy ==

The plugin does not send the content of your site, its files, database records or user data to any server. Scan results are stored in your own WordPress database and are removed when you delete the plugin.

== Screenshots ==

1. First screen: choose whether to download detection list updates, run a weekly scan and receive an email report.
2. Dashboard: results of the last scan for each area, by priority.
3. File integrity: changed and unexpected files in WordPress core, plugins and themes, with an explanation for each.
4. Database: spam links, hidden links and injected code, with a link to the post, comment or setting.
5. Updates: available updates, closed and abandoned plugins, and items installed from other sources.

== Changelog ==

= 1.0.0 =
* First release: file integrity for WordPress core, plugins and themes; updates, closed and abandoned plugins; database scan for spam and injected code; weekly scan and email report; English, German, French, Italian and Spanish.
