# Web Security Cheat Sheet

Security follows a very basic formula:

    Awareness + Protection = Security


## Fundamental Principles

* Least privilege
* Simple is more secure
* Never trust users
* Expect the unexpected
* Defence in depth
* Security through Obscurity

# Web Security Cheat Sheet

Security follows a very basic formula:

    Awareness + Protection = Security


## Fundamental Principles

* Least privilege
* Simple is more secure
* Never trust users
* Expect the unexpected
* Defence in depth
* Security through Obscurity

### Least Privilege

> Every program and every privileged user of the system should operate using the least
> amount of privilege necessary to complete the job.

**Benefits**

* Code stability
  - Controlled data access
  - Easier to test actions and interactions
* System security
  - Vulnerabilities are limited and localized

Add a Least Privilege Section
Add a Least Privilege Section