Version 0.4.0 of the WP Backup script adds several new security features to the script:
- Password protection – allows the user to add a password to the BackupFile. The password is used when extracting data from the backup. While the password will be required when extracting the data using the script, it is still written without any encryption and a malicious person with some time and and text editor knowledge can still get to your data. For that reason, the next feature should help a lot
- Data encryption – allows the user to encrypt the data portion of the BackupFile. Both the “files” porting and the “database” portion will be encrypted using the a portion of the password hash as the key. For security, a different one-way hash is used when generating the key then the hash used to store the password in the BackupFile header. This was, the header can’t be used to obtain the encryption key.
- Remove content from verbose messages – certain portions of the message displayed at higher verbosity levels have been removed in order to prevent giving out any clues about the MySQL password to anyone who could be peeking over our shoulder.
Important Notes
There are a couple of important things that I wanted to mention about the Data Encryption feature:
- Only the data portions of the BackupFile are encrypted. The header is still stored clear, without any encryption. The key used for the encryption is not stored in the header at all. Rather, the password (which is required when encrypting) is used to generate the key.
- The encryption is handled by the PyCrypto module. The module is not included with this script on purpose. There are very strict rules about distributing cryptography code and I am neither familiar with it, nor do I ever want to be. Therefore, if you want to use the encryption feature, you’ll have download and install the PyCrypto module yourself.
While I have attempted to test the new features and make sure that most bugs have been worked out, additional testing is surely appreciated. If you run into any problems with the script, please, let me know.
Download the new version of the script from the WP Backup project page.
