Skill Wiki v0.1.0
principle @security/principle-defense-in-depth

Defense In Depth

Assume every individual control will fail at some point. Design so that the system survives any single failure: a successful XSS hits a session cookie that is HttpOnly; a leaked database has bcrypt'd passwords; a stolen …

Skill
@security
Domain
security
Version
0.1.0
Quality
4.0
Edges
4 out · 14 in
Tokens
195/301/301
$ prime install @security/principle-defense-in-depth

Projection

Always in _index.xml · the agent never has to ask for this.

DefenseInDepth [principle] v0.1.0

Layer independent controls so that the failure of any one does not equal compromise. Validation at the boundary, parameterisation at the database, encoding at the HTML sink, hashing at the password store, encryption at rest, encryption in transit, least-privilege at every component — each addresses a different failure mode and each is mandatory.

Assume every individual control will fail at some point. Design so that the system survives any single failure: a successful XSS hits a session cookie that is HttpOnly; a leaked database has bcrypt'd passwords; a stolen backup is encrypted; a compromised service account has narrow permissions; a successful injection runs as a low-privileged DB user that cannot drop tables.

Source

prime-system/examples/security-appsec/primes/compiled/@security/principle-defense-in-depth/atom.yaml

Compiled at 2026-05-10