Skip to content

Latest commit

 

History

History
144 lines (101 loc) · 11.4 KB

tools.md

File metadata and controls

144 lines (101 loc) · 11.4 KB

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.

Table of Contents

  1. Password Management Tools
  2. Use Two Factor (or 2-Step) Authentication (TFA, 2FA)
  3. IT: Sharing Service Accounts
  4. Phishing and Social Engineering
  5. Keep Your Systems Up-to-date
  6. Disk Encryption and Storage Management
  7. Drupal Best Practices and Writing Secure Code

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 16 character (or more!) passwords. And LastPass has free iPhone and Android apps.
  • LastPass is used by 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"

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.

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.

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)
  • 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)

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.

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.

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:

Drupal Best Practices and Writing Secure Code

CivicActions Drupal Developers are expected to know, understand and integrate into their work: