Coder Social home page Coder Social logo

virgilsecurity / virgil-pure-wordpress Goto Github PK

View Code? Open in Web Editor NEW
6.0 8.0 2.0 916 KB

Free Wordpress Plugin based on a powerful and revolutionary cryptographic technology that protects user passwords from data breaches and both online and offline attacks.

License: BSD 3-Clause "New" or "Revised" License

PHP 93.74% CSS 5.03% Hack 1.22%
wordpress-plugin password-hardened-encryption aead pure-plugin cryptography protect-database plugin

virgil-pure-wordpress's Introduction

Virgil Pure WordPress Plugin

Introduction | Features | Installation | How To Use Plugin | F.A.Q | License | Support

Introduction

Virgil Pure Wordpress Plugin is a free tool that protects user passwords from data breaches and both online and offline attacks, and renders stolen passwords useless if the database is compromised.

Virgil Pure is based on a powerful and revolutionary cryptographic technology that provides stronger and more advanced security than salting and hashing, and it can be used within any database or login system that uses a password, so it's accessible for businesses of any industry or size.

Learn more about the Pure technology here.

Features

Available

  • Zero knowledge of users' passwords
  • Protects passwords from online and offline attacks
  • Instant invalidation of stolen database records
  • Plugin deactivation and restoration of the previous user authorization system

Coming soon

  • User data encryption with a personal key

Installation

Currently the plugin is available only for PHP7.2 and PHP7.3!

To install the Pure Plugin you need to go through the following steps:

Step #1. Add the crypto extensions into your server before using the Plugin

  • Download virgil-test.zip, unzip it and execute on your server virgil-test.php file.

  • Download and unzip %YOUR_OS%_extensions.zip archive according to your server operating system and PHP version.

  • Make sure you have access to edit the php.ini file (for example, use root for the Linux/Darwin or run cmd under administrator for the Windows).

  • Copy extension files to the extensions directory.

    • For Linux/Darwin:
     $ path="%PATH_TO_EXTENSIONS_DIR%" && cp vsce_phe_php.so $path && cp virgil_crypto_php.so $path
    
    • For Windows:
     $ set path=%PATH_TO_EXTENSIONS_DIR% && copy vsce_phe_php.dll %path% && copy virgil_crypto_php.dll %path%
    
  • Add the extensions into the php.ini file

    $ echo -e "extension=vsce_phe_php\nextension=virgil_crypto_php” >> %PATH_TO_PHP.INI%
    
  • Restart your server or php-fpm service

Extension installation example

Our web stack is: Linux, nginx, php7.2-fpm

  • Execute the virgil-test.php to find your path to the extensions directory and path to the php.ini file:

  • Then, go to the command line interface (CLI) to specify the paths you identified in the previous step:

  • Reload the page in your browser to see that the extension is loaded (IS_VSCE_PHE_PHP_EXTENSION_LOADED => true and IS_VIRGIL_CRYPTO_PHP_EXTENSION_LOADED => true):

Now it's time to add the Virgil Pure Plugin to your WordPress project.

Step #2. Install Virgil Pure WordPress Plugin

  • From the WordPress Plugin Directory

    • Navigate to the WordPress Dashboard
    • Open "Plugins → Add New" tab
    • Find "Virgil Pure" in the WordPress Plugin Directory
    • Install and activate the Plugin
  • From this repository

    • Download the virgil-pure.zip file
    • Navigate to the WordPress Dashboard
    • Open "Plugins → Add New" tab
    • Upload the virgil-pure.zip file
    • Install and activate the Plugin

The Pure Plugin should now be activated:

How To Use Plugin

Set up Credentials

To start working with the plugin, in the plugin tab on your WordPress dashboard, you'll need to input some credentials in the corresponding fields via the following steps:

  • create an account at Virgil Dashboard
  • create a Pure application
  • copy your Pure application's credentials from the config file or Virgil Security dashboard: APP_TOKEN, APP_SECRET_KEY, SERVICE_PUBLIC_KEY
  • paste them into the corresponding fields

Generate Recovery Keys

You’ll need to generate a recovery key so that the password hashes that are currently in your database can be recovered if you ever need to deactivate the Pure plugin. Your recovery key will encrypt the original password hashes and will store the encrypted values in a (wp_usermeta) table in your database.

The recovery key utilizes a public and private key pair. The public key will be stored in your database and the private key must be stored by you securely on another external device. Please read our FAQ section for best practices and more information.

Migration

Migration is the process by which the plugin requests cryptographic data from the Virgil server to associate user passwords (user_pass) with cryptographic enrollments provided by the server. New enrollment records are then created and stored in your database (wp_usermeta) place of the of user passwords.

Once the Pure plugin is configured in your system, simply click the "Start migration" button to start the migration process.

Records Update (optional)

This function allows you to use a special UPDATE_TOKEN to update all of the enrollment records in your database. This action doesn't require changing user passwords or modifying the scheme of the existing table.

Navigate to your Pure application panel at Virgil Dashboard, press "BEGIN ROTATION PROCESS", then “SHOW UPDATE TOKEN” button to get the UPDATE_TOKEN. Insert the UPDATE_TOKEN into the field at the Virgil Pure plugin tab.

This can be used when a database is known to be breached. For security reasons, we recommend proactively updating records every one week.

Recovery (optional)

When you need to deactivate the Pure plugin, you can go through the Recovery process via the Wordpress dashboard and use the recovery key to restore the original password hashes in place of the cryptographic values generated by the Pure plugin.

F.A.Q.

- Do users have to change their passwords if the database has been compromised?

If a database has been stolen, users do not need to change their original passwords. However, you will need to rotate all user records in your database. This will use cryptography to disconnect the compromised Pure records from the original passwords, leaving any unauthorized party empty handed.

- How does the Recovery Key work?

Recovery Key is a key pair that allows you to recover the original user password hashes if you ever need to deactivate the Pure plugin. The Recovery Key encrypts the password hashes, and stores the encrypted values into the wp_usermeta table in your database.

The Recovery Key utilizes a public and private key pair. The public key is stored in the wp_option table and the Private Key must be stored by you securely on an external device.

- How much does it cost?

Pure is a FREE toolkit. All libraries are open source and can be found on GitHub, where they are available for free to any user.

- What if an App Private Key gets lost?

There is no way to restore the APP_SECRET_KEY. The database records become inaccessible and therefore useless. So, it is highly recommended that you immediately create a backup of the key in a secure location to avoid losing it.

License

See LICENSE for details.

Support

Our developer support team is here to help you. Find out more information on our Help Center.

You can find us on Twitter or via email at [email protected].

Also, get extra help from our support team on Slack.

virgil-pure-wordpress's People

Contributors

mariiamalitska avatar petrenkoanton avatar rebeccaly avatar sanjodeundiak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.