Any single protective mechanism — a firewall, a password, antivirus software — fails sooner or later, or is tricked. Defence in depth starts from this and places another barrier behind each one, so that an attacker has to overcome them all, while the defender can notice and stop the attack at one of the intermediate lines.
What the layers are made of
The layers are arranged so that several barriers of different kinds stand between the attacker and the assets: technical, software and administrative.
| Layer | Example measures |
|---|---|
| Perimeter and network | firewalls, network segmentation, restricting outbound connections |
| Access | multi-factor authentication, least privilege, separation of permissions |
| Application | input validation, parameterised queries, web application firewall |
| Data | encryption at rest and in transit, backups |
| Monitoring | event logs, security information and event management, incident response plan |
Why the layers must be independent
A layer works only if it has its own failure mode. Two firewalls from the same vendor with the same vulnerability are in effect a single barrier. That is why layers combine different technologies and kinds of measures — network, software, physical and organisational — so that an attack missed by one technology is caught by another.
Example: a SQL injection is found in a web application. The filter in front of the application fails to recognise the request, but the parameters are substituted into database queries separately from the code, so the input is not executed; even if something goes wrong, the application’s database account sees only its own schema and cannot dump other tables; the anomalous queries are visible in the logs and alerts fire. One layer let the attack through — the rest held it.
Where the term comes from
The expression comes from warfare, where defences are built in echelons: taking a line costs the attacker losses and time rather than victory. In information security, the NIST glossary defines defence in depth as a strategy that combines people, technology and operational processes to establish variable barriers across the many levels and areas of an organisation’s activity; the IEC 62443 standard gives a similar definition for industrial systems.
Sources
the term is written from these pagesVerified 9 Nov