Defense-in-Depth. You may have seen this term, or maybe not. What does it actually mean?
In its broadest sense, Defense-in-Depth refers to an approach where multiple layers of “defense” are used for protection of a “core”. The principle being, a layered approach to defense helps reduce the risk of unwanted access to whatever the “core” contains.
Whatever is trying to access the “core” needs to penetrate multiple layers. Think of an Onion (underground bulb-shaped vegetable), with multiple layers that need to be passed through, before reaching the centre of the onion. For those that don’t like onions, think of a Castle protected by a moat, drawbridges, thick high walls, towers etc.
The concept was originally conceived by the NSA (National Security Agency) and stems from a military strategy. When applied to modern IT, it is a security-in-depth approach, with layered levels of defense, using different networks, products, profiles and permissions to reduce vulnerabilities, contain threats, and mitigate risks. In essence, an in-depth approach aimed at preventing bad actors from reaching the value found at the “core”. This could be intellectual property, finances or assets that could be monetized.
How does this apply to Passwordstate?
Encryption Of Config Files
Passwordstate offers a number of Defense-in-Depth options around protecting your privileged credentials. These include monitoring and securing access to stored privileged accounts and contextual multifactor authentication based on IP addresses or Security Group membership.
However, one of the most overlooked approaches to securing your Passwordstate instance is encrypting your configuration files. This a highly recommended best practice with Passwordstate that is often overlooked. But not for much longer!
Introduced in Version 9 Build 9960, Passwordstate now reports on configuration files that have not been encrypted. This is presented to all Security Administrators for your instance as per below,

The screen will be displayed every time you login to Passwordstate if there are any unencrypted configuration files. To acknowledge the alert, click the Okay button. Passwordstate will query the encryption status of the configuration files daily.
Please note: There is no optional setting to prevent the alert screen from being displayed. The only way to stop the Passwordstate Configuration Files Alert screen from being displayed is to encrypt all of the appropriate sections in the File Names listed on the Alert Screen.
For configuration files, with multiple sections requiring encryption, you will need to encrypt all of the required sections. If you fail to do this the Alert screen will still be displayed.
Once this has been done, you’ll need to restart the relevant windows service. In the image below, we’re restarting the Passwordstate Service as this is the only web.config file reported on the alert screen in the example above.

How Do You Encrypt The Config Files?
We’ve made it really simple for everyone. Just navigate to our Website’s Documentation page and click on the Encrypting Passwordstate Configuration Files as shown below,

This document lists how to encrypt and decrypt the relevant sections of each of the config files used in your Passwordstate instance.
Why Is This So Important?
This blog started off talking about Defense-in-Depth. To reduce vulnerabilities, contain threats, and mitigate risks you should be also making your Passwordstate instance as secure as possible.
Encrypting your configuration files removes sensitive information from those files, that an attacker could use to try and gain access to your database. Once encrypted you cannot decrypt these files on a different server preventing attackers from stealing backups and attempting to access the database.
By enforcing encryption of Passwordstate’s configuration files we’re helping all our customers move to a position that is that little bit more secure.



































































