Security Awareness and Tools

This is an appendix to the CivicActions Security Policy containing details that can and should be updated regularly as new technologies or patterns of use develop, with a goal of providing team members the best tools with which to maintain the security of company confidential and personal information.

This is currently - and probably always will be - a work in progress. Pull Requests welcome.

Securing your Laptop

The operating system and software applications on your laptop - and all computers, phones, tablets, etc. in your house - should be kept up to date with new versions and security patches that ensure it presents a minimal attack surface to potential adversaries. (This is mentioned in the Security Policy but is worth repeating.)

Additionally, your laptop should lock (require a password to resume) on screen close and after 15 minutes idle time.

Password Management Tools

A password manager will enable you to have unique, strong passwords for every service that you log into. Good password managers will generate new passwords for you, auto-fill web forms, allow extra protection for high-security accounts (like banking), and more. Choose a password manager that encrypts locally (in your browser, so you don't have to trust the provider to keep their data safe) and that has iPhone and Android apps that will auto-sync with the manager. At CivicActions, we currently recommend LastPass as it is the most full-featured, but we are keeping a close eye on the FOSS KeePass and Password Safe solutions.

LastPass

  • The LastPass password generator can easily create and maintain hundreds of different passwords. And LastPass has free iPhone and Android apps.
    • We recommend a minimum of 16 character passwords using all character types. (Some old systems will need you to lessen this level of security, but those are few.)
    • Once you have all your passwords in LastPass, take the "Security Challenge" - your score should be 80% or higher.
  • LastPass is required for members of the CivicActions System Admins and Infrastructure Support Team.
  • We recommend LastPass premium but do not require it. A premium account will enable unlimited sync across your devices and more robust two-factor authentication (e.g. with a YubiKey token).
  • Set up Two Factor Authentication on your LastPass Account (see below). LastPass will be storing all your passwords, so make it secure.
  • It is fine (and perhaps preferable, because your browser can only use one LastPass account at a time) to use a personal email address to create your LastPass account.

Disable Browser Password Autofill

LastPass provides secure password management especially when unlocked via Two Factor Authentication. Storing new passwords created in LastPass in your browser completely defeats this security, enabling anyone with access to your browser access to all your sites. If asked by your browser "Do you want to save this password in your browser?" answer "No". Better, disable this action altogether:

  • In Chrome, go to chrome://settings/ and uncheck "Offer to save your web passwords"
  • In Firefox, go to about:preferences#security and uncheck "Remember logins for sites"
  • In Safari, go to Preferences >> Passwords and uncheck "AutoFill user names and passwords"

Use Two Factor (or 2-Step) Authentication (TFA, 2FA)

Two factor authentication includes something you know (e.g. your memorized password) and something you have (e.g. your smartphone or a YubiKey) and can greatly increase the security of your systems. CivicActions recommends you use Two Factor Authentication for services that support it.

For example, as your password manager grows to have more passwords in it - not only CivicActions' systems and clients but also your personal bank accounts, credit cards, school records, etc. - it becomes increasingly important to have it protected by more than just a password.

CivicActions requires that its employees and contractors that are given access to the CivicActions Google Apps - that include GMail, Hangouts and Google Docs access - use Two Factor Authentication on their CivicActions Google Account.

Two-Factor Authenticators

There are many hardware and software tools for creating secure "one time passwords" (OTP). Two that we frequently use internally are described below.

Do not use SMS text messages for general two-factor authentication as it is less secure than others listed here. At the time of this writing, however, setting up Two Factor Authentication on your Google account initially requires SMS verification. This is OK.

Google Authenticator

YubiKey

Partial List of TFA Services

TFA Backup Codes

As a final step when setting up Two Factor Authentication with most services (Google, LastPass, GitHub, etc.) you will be offered a chance to download and/or print a set of backup codes. These are worth downloading and printing (yes - on paper) and storing in a safe place, because if you lose your phone or YubiKey it can be difficult to regain access to your account unless you have these codes available. There are sometimes other options available, too, like SMS text message, but these other methods can be less secure. Hint: you can store backup codes in LastPass.

Connecting to you CivicActions' Google Account from Sevices/Apps after TFA has been Enabled

Some applications and services may need to connect to your Civicactions google account but they might not be able to handle TFA. An example of this would be a personal Gmail account trying to send e-mails through your civicactions' account. For this purpose Google has created something called App Passwords. App Passwords allows you to create a unique password for each of your services/apps. If this password is used while authenticating your service/app to access your CivicActions' account it will bypass TFA.

There are some instructions at https://support.google.com/accounts/answer/185833?hl=en on how to use App Passwords.

IT: Sharing Service Accounts

  • If a service allows individual accounts, use only individual accounts and not shared credentials.
  • Prefer services that allow individual accounts, services that allow TFA and secure password policies.
  • If a service only allows a single account, have a shared LastPass master account that ideally only 2-3 trusted people have access to. From there share passwords out on an "as needed" basis only, including to individual day-to-day Lastpass accounts for the 2-3 trusted people.
  • If the LastPass master account is a paid account it also allows sharing credentials in a way that makes the password harder for the person who you shared it with to recover/view/share (but still allow them to log in with it).
  • Shared account passwords should rotate to ensure that only those users needing access continue to have access, revoking individual accounts particularly when people leave.

Phishing and Social Engineering

Social engineering is the most common attack vector used to compromise computer systems. Social engineering relies heavily on human interaction and often involves tricking people into breaking normal security procedures. The following is a brief reminder of some of the methods used, but is in no way complete.

  • Phishing
    • Don't click on links, hover and check the URLs
    • Don't open attachments (unless you really trust the sender)
    • If in doubt, ask an IT member (e.g. via Slack)
    • More on Phishing avoidance (from EFF)
  • Windows Technical Support
    • "Windows Technical Support has noticed that you have viruses or other malware on your computer..."
  • Baiting
    • Seemingly innocent (or interesting) abandoned USB, CD, DVD media with autorun
  • Public WiFi (e.g., coffee shop, airport, library, ...)
    • Turn off sharing
    • Don't automatically connect to unknown WiFi hotspots
    • Confirm the network name - know the name of your hotspot!
    • Turn on your local firewall
    • As usual, never enter your name or password information:
      • when on an insecure (non-HTTPS or SSL encrypted) connection, or
      • to a site that you have not verified is correct (by examining at the URL)
    • More on public WiFi network safety (from LifeHacker)

Keep Your Systems Up-to-date

One of the best ways to protect yourself from being hacked (other than via a social engineering pathway) is to keep your software on your computers and phones up-to-date. Sometimes you may reasonably want to wait for a .1 or .2 release before updating after a new major release, but don't get far behind. Also, if you have a Windows machine, you must maintain an up-to-date anti-virus package on it.

Disk Encryption and Storage Management

Most modern disks (and SSDs) have self-encrypting drive (SED) technology built in. CivicActions highly recommends SSDs for their increased speed and the hardware-based encryption (self-encrypting drive or "SED" technology) that will protect the drive when the machine is off. This is particularly important for laptops that can be easily stolen. When you buy a new disk or configure a new laptop, turn on the disk encryption. Some of CivicActions' clients will demand it. (Contact your product manager to see if you are eligble for a hard disk rebate.)

Software Disk Encryption

If you haven't set up your hard drive with hardware encryption, there are software alternatives that you can use until you get yourself a new drive. Note that these methods incur a small performance penalty with respect to hardware encryption, but they are relatively quick and easy to set up.

Mac OSX: FileVault 2

Open System Preferences, click on the Security & Privacy icon, and switch to the FileVault tab. If you see a button that says "Turn Off FileVault..." then congratulations, your disk is already encrypted. Otherwise, click the lock icon in the bottom left so you can make changes, and click "Turn On FileVault...". Google "Filevault" for more information.

Much more technical detail on securing your Mac: macOS-Security-and-Privacy-Guide. This is useful but well beyond what is required by CivicActions.

Windows: BitLocker or DiskCryptor

To see if BitLocker is supported on your version of Windows, open up Windows Explorer, right-click on C drive, and see if you have a "Turn on BitLocker" option (if you see a "Manage BitLocker" option, then congratulations, your disk is already encrypted.) If you don't have BitLocker available, google the open source DiskCryptor.

GNU/Linux: use the hardware

Unline Mac and Windows, you can only encrypt your drive during system installation. Might as well buy a new SSD...

Backups

With more work captured in the cloud by Slack, Gmail, Google Drive, GitHub, etc. there is less that needs to be backed up. But you won't know what you'll miss until your system doesn't boot up because of an unrecoverable hard drive (or SSD) error. At the least, back up your security keys and personal preferences directories, such as (examples in GNU/Linux):

  • ~/.ssh/
  • ~/.gnupg/
  • ~/.config

Consider committing your personalization files (like ~/.bashrc) into a Git repository. Just make sure that you do not commit any files that may contain private keys or passwords.

While it's preferable that you not backup any company or client sensitive files or data, it is critical that such data is completely deleted from your machine(s) when you stop working for that client.

If you use any backup mechanism more complicated than simply copying the files to another medium, ensure that you know how to restore the files, too, as backups are worthless if you can't retrieve them.

Finally, there is no good reason not to be making backups: a one terabyte external USB drive costs less than $60 on Amazon.

Securely Delete Files and Wipe Disks

When you delete a file, it doesn't actually go away. Usually, all that occurs is the file name and a pointer to its bits are removed from a directory listing. With the proper tools, deleted files can be recovered. For this reason, it's important that old disks be securely wiped before being given or thrown away. Some pointers are given below:

GNU/Linux:

Mac OS X:

Erasing an entire disk:

Protecting Your Privacy

CivicActions believes that your privacy is a right, and that private communications can be beneficial to business. Here's some tips on how FOSS can help: