What Are Secure System Design Principles?

Secure system design principles are a set of architectural guidelines that determine whether a system resists attack by virtue of how it is structured, rather than through controls bolted on after the fact.

In 1975 at MIT, Saltzer and Schroeder laid out these principles (least privilege, defense in depth, fail-secure defaults and economy of mechanism) for the first time in print. They cover the structural decisions that produce or remove whole classes of vulnerabilities.

They take a different approach from what reactive security measures like firewalls and intrusion detection use. The focus is on making systems fundamentally more difficult to compromise by making deliberate architectural choices before any line of application code gets written.

Jerome Saltzer and Michael Schroeder published a paper at MIT called "The Protection of Information in Computer Systems" in 1975. They set out eight design principles for building secure systems and almost fifty years on, those principles are still the foundation of secure system design.

The technology has changed beyond recognition, yet the fundamental challenge has not: how do you build systems that stay secure even when parts fail, people err and attackers look for weaknesses?

Architecture that is better turns out to be the solution. It is not about better firewalls or more advanced intrusion detection. Designing systems to be secure by design makes them resist attack through their structure instead of something put on later.

A castle that has thick walls, a moat and a drawbridge is more defensible than a house that comes with an alarm system. Security measures exist in both but one makes security an architectural principle and the other treats it as an afterthought.

The article goes through the main principles of secure system design that are defense in depth, least privilege, fail-secure defaults, separation of concerns, economy of mechanism as well as several other principles.

Each gets explained as a concept, shown in application within modern systems and illustrated by what happens when it is violated. Practical guidance for putting it into practice comes too.


Defense in Depth

Multiple Layers, Independent Failures

Defense in depth is about putting in place several independent security layers so that the system keeps protecting itself even if one layer fails. There is no expectation that any single control will be perfect and the system's security comes out of how imperfect controls work together.

This metaphor comes out of military strategy. A single defensive line can be breached but an attacker who gets past the first line runs into a second then a third line. Each needs different capabilities to be overcome.

1. Network layer. These controls that limit what traffic reaches the application consist of firewalls, network segmentation, intrusion detection and prevention systems (IDS/IPS) as well as VPNs.

2. Application layer. Input validation, output encoding, parameterized queries, authentication and authorization checks go into this layer. They make sure that the application handles only legitimate requests.

3. Data layer. Encryption at rest as well as in transit, database access controls, data masking and tokenization are the controls that protect data even if the network and application layers get compromised.

4. Monitoring layer. Security logging, SIEM (Security Information and Event Management), anomaly detection and audit trails are the controls that find attacks that get past preventive controls.

5. Response layer. These controls consist of incident response plans, automated containment and forensic capabilities that put limits on damage once detection has taken place.

Example. In 2013, when hackers broke into Target's point-of-sale networks, they had already penetrated the network perimeter by getting into a compromised HVAC vendor account.

Had Target put in place network segmentation by separating the HVAC network from the payment processing network, the breach of the vendor network would not have given access to payment systems. With defense in depth in place, the breach would have been confined to a non-critical network segment.

Example: The 2020 SolarWinds attack bypassed perimeter defenses entirely by compromising trusted software.

Strong defense in depth in particular robust monitoring and anomaly detection enabled organizations to detect suspicious behavior coming from the compromised SolarWinds Orion software and to contain the breach before any major damage occurred.

Those relying primarily on perimeter defense were fully compromised.

"A defense in depth strategy acknowledges that any security control can fail. The question is not whether a control will fail, but what happens when it does."

NIST Special Publication 800-27

Implementation Guidance

1. Map out the layers of your system and find what controls exist at each one.2. Controls at different layers must be independent. That a single failure does not defeat several controls.3. Put in both preventive controls (stop attacks) and detective controls (find attacks that get past prevention).

4. Test each layer on its own and test them together as well. Make sure that failures at one layer get picked up by the others.5. Do not create a system that has a hard outer shell and weak inner core putting strong perimeter controls over weak internal security.


The Principle of Least Privilege

Minimum Access for Maximum Safety

Least privilege. Every user, process and system component should run with just the minimum set of privileges needed for what it is supposed to do and nothing extra.

If an account gets compromised, the attacker takes over its privileges. Administrative access on an account gives the attacker administrative capabilities and an account with read-only access to a single database confines the attacker to reading that database.

How far a compromise spreads depends directly on the privileges of the account that was compromised.

1. User privileges. Employees should have access only to the systems and data that their job function needs. Old access should be removed before new access is given when they change roles.

In practice, organizations fail time after time at this. As employees move between roles, privileges build up and accounts get much more access than any single role calls for.

Example: Edward Snowden was a systems administrator contractor for the NSA. His role required broad access to maintain systems, but the breadth of his access which extended to programs and data far beyond his administrative responsibilities-enabled the largest intelligence leak in U.S. history. Least privilege, properly applied, would have limited his access to the systems he maintained, not the data they contained.

2. Application privileges. The software must run with the least operating system permissions needed and a web application that can only read from a database should not get write or delete privileges. Network access to the payment system should not go to a microservice that deals with images.

3. Service account privileges. Automated processes, CI/CD pipelines and integrations work with service accounts that get too many privileges by default for convenience when they are set up and then never get cut back. The accounts are high risk because they most often lack MFA and their credentials are kept in configuration files.

Privilege LevelExampleBlast Radius if Compromised
Global adminFull control of all systemsComplete organizational compromise
Department adminAdmin of department systemsDepartment-wide compromise
Application adminAdmin of specific applicationApplication and its data
Power userExtended access within scopeSensitive data exposure within scope
Standard userBasic access for daily workLimited to personal data and shared resources
Read-onlyView access to specific dataInformation disclosure only
No standing access (JIT)Temporary elevated accessLimited to approval window

Just-In-Time Access

The most rigorous implementation of least privilege is Just-In-Time (JIT) access: no standing privileges at all.

Engineers who need database admin access go through a request, get approval and obtain temporary credentials that expire after a set time and all actions during that period get logged. That removes the persistent attack surface that comes from having standing administrative accounts.

Following the SolarWinds breach, Microsoft transformed its internal security by cutting standing admin privileges massively across Azure and putting in their place JIT access via Azure Privileged Identity Management.[7] Attackers found a much smaller target but there was no reduction in what admins could do.


Fail-Secure Defaults

When Things Break, Stay Locked

Fail-secure (also called fail-safe or fail-closed) means that when a system component fails, it defaults to a state that denies access rather than allowing it. The opposite-fail-open-means failures result in allowing access.

1. Authentication service failure. Should the system let everyone in (fail-open) or lock everyone out (fail-secure) when the authentication server is unreachable? Sensitive systems call for fail-secure as the right choice. An hour without availability is better than an hour of unlimited access.

2. Firewall failure. When a firewall fails open, all traffic gets through and internal systems may be exposed to the internet. A firewall that fails closed blocks all traffic and causes a service outage but it stops unauthorized access.

3. Input validation failure. Should the application process unvalidated input (fail-open) or turn down the request (fail-secure) when the input validation component fails? It is by processing unvalidated input that SQL injection and cross-site scripting attacks succeed.

Example. A Cloudflare outage in 2019 that came from a misconfigured WAF rule showed the tension between fail-secure and availability.[10] Legitimate traffic to many major websites was blocked for 27 minutes by the rule that was too aggressive.

The fail-secure design made sure that no security was compromised during the outage even though it was disruptive. Failing open as an alternative would have put those sites at risk from unfiltered traffic.

The choice between fail-secure and fail-open involves security tradeoffs: fail-secure puts confidentiality and integrity first at the price of availability and fail-open puts availability first at the price of security.

Context determines the right choice and a hospital monitoring system calls for failing open (availability is life-critical) and a financial trading system needs failing secure (unauthorized transactions are unacceptable).

"The security of a system is determined not by how it behaves when everything works correctly, but by how it behaves when something fails."

Saltzer and Schroeder, "The Protection of Information in Computer Systems," 1975

Separation of Concerns

Isolating Components to Contain Damage

Separation of concerns. A system gets split into distinct components that have specific, bounded responsibilities. Security uses this approach for two things. It limits how far a compromise can spread by capping its effect to the component that is hit and it makes each component simpler and that makes them easier to secure.

1. Network segmentation. By sensitivity and function, networks should be divided into zones. Production networks, development networks, management networks as well as public-facing networks have to be isolated from each other. Traffic moving between zones needs to go through controlled checkpoints that include firewalls and proxies.

Example. In 2021 the Colonial Pipeline suffered a ransomware attack that made the company have to shut down its fuel pipeline. That was not because the operational technology had been compromised. It was because the system was on the same network as the IT systems that had been compromised.

If proper network segmentation had been put in place between IT and OT (operational technology) networks, the ransomware would have stayed on the IT network and fuel operations could have gone on as normal.[8]

2. Microservice architecture. When monolithic applications get split into independent microservices, security boundaries come built in naturally. Authentication, the data store and permissions are each the job of one service. One service getting compromised does not automatically bring down others.

3. Separating the control plane from the data plane. A system should have management functions like configuring systems, managing users and deploying code on different infrastructure from the data processing functions. The attacker who gets into the data plane should not be able to change how systems are configured and the reverse holds true as well.

4. Environment separation. All development, testing, staging and production environments need to be strictly isolated from each other. Development or testing must never use production data without anonymizing it first and credentials have to be specific to each environment.


Input Validation and Trust Boundaries

Treating All Input as Hostile

Never trust input from external sources. Under this principle come user input, API requests, data from partner systems, file uploads as well as any data that crosses trust boundaries from internal services. Every bit of input must be validated prior to processing since all input can be malicious.

1. SQL injection prevention. Parameterized queries or prepared statements should be used exclusively and user input must never be put together with SQL strings. Over the past two decades, SQL injection has ranked as the top web application vulnerability and it can be prevented completely by dealing with input correctly.

Example. More than 2,600 organizations were hit by the 2023 MOVEit breach that exposed data on 84 million people and it came from a SQL injection vulnerability. A vulnerability class that had been known since the 1990s and could have been prevented completely was used in what turned out to be the biggest data breach of the year.

2. Cross-site scripting (XSS) prevention. User-supplied data appearing in any output has to be encoded. Content Security Policies should be put in place to restrict which scripts can run. When XSS happens, attackers manage to insert malicious scripts into web pages that other users read.

3. Path traversal prevention. Make sure file paths do not contain directory traversal sequences (../) that could get at files outside the intended directory and keeping file operations sandboxed to particular directories blocks this whole class of attack.

4. Deserialization attacks. Without validation, do not deserialize untrusted data. Remote code execution is possible through insecure deserialization as the attacker sends a data object crafted specially that runs arbitrary code on the server when deserialization takes place.

5. Whitelist validation over blacklist. Create a whitelist that lists what is allowed instead of listing everything that is not allowed as a blacklist. Attackers are creative so your blacklist will never be complete enough and anything that does not match expected patterns gets rejected under a whitelist approach.


Economy of Mechanism

Simpler Systems Are More Secure Systems

Economy of mechanism. Security-critical code should be as simple as possible according to the principle of economy of mechanism. Complex systems have more ways to fail. They also have more code to audit, more interactions to test and more places for vulnerabilities to hide.

1. Minimize the attack surface. Turn off unnecessary services, close unused ports, remove default accounts and strip out features that are not needed. Every feature, endpoint and line of code adds potential attack surface.

Example. When installed with default configuration, the Apache web server comes with many optional modules enabled by default. Every module brings in functionality as well as more attack surface. To harden an Apache installation means to disable every module that is not specifically needed and that cuts the codebase that could hold exploitable vulnerabilities.

2. Use established, well-tested libraries. Do not roll your own cryptography, authentication or session management. rely on libraries that the security community has reviewed, tested and hardened.

Homegrown implementations of security-critical functions are almost always worse than established alternatives.

3. Reduce code complexity. When security is at stake, code paths need to be short, well documented and easy to audit. Complex conditional logic, deeply nested control flow and clever optimizations in security code are anti patterns. Security depends directly on code quality.

4. Centralize security logic. Shared, reusable modules that implement authentication, authorization, input validation and encryption should be used instead of reimplementing them differently in each component. Consistency is ensured by centralization and auditing becomes feasible as well.


Secure Defaults

Making the Safe Choice the Easy Choice

Without needing administrators to harden them, systems should be secure out of the box. All configuration settings should default to the most secure option. Once that is in place, users can choose to lower security for specific needs with full knowledge of what that means.

1. Default deny. Firewalls work on the principle that by default they block all traffic and need explicit rules to allow what is needed. Access control systems should have denial of access as the default and access can be given only through explicit grants and API endpoints call for authentication to be mandatory by default.

2. Strong default configurations. Passwords should have complex requirements by default. Sessions should expire by design. Encryption should turn on by default and debug modes should be off by default as well as administrative interfaces not opening to the public.

3. Secure deployment templates. Security hardening should be built in by default to infrastructure-as-code templates such as Terraform, CloudFormation and Ansible. Without any extra work, engineers using those templates for deployment should get secure configurations.

Example. Before version 2.6 came out, MongoDB did not have any authentication turned on by default and listened on all network interfaces. Thousands of MongoDB instances got put onto the internet with no controls for access and that exposed terabytes of data.

Following widespread criticism, MongoDB changed its defaults to bind only to localhost (authentication still needs to be turned on explicitly).[9] This change cut the number of exposed instances by a lot and showed that secure defaults count for more than documentation.


Designing for Monitoring and Response

Assuming Breach, Planning Detection

No defensive architecture is impenetrable. Secure system design must therefore include the assumption that defenses will eventually be breached, and design for detection and response.

1. Full logging. Security-relevant events across the board should get logged. That means authentication attempts that succeed and fail, authorization decisions, data access, changes to configuration, privilege escalations as well as administrative actions. Logs must be structured, in JSON format and have enough context built in for investigating what happened.

2. Immutable log storage. Logs must go into a place that the systems that generate them cannot modify. Compromised systems routinely have attackers delete or alter logs to hide their trail. When logs go to another storage system that allows only appending, the forensic evidence stays preserved.

3. Anomaly detection. Set up baselines for what is normal in system and user behavior. Get alerts when there is a deviation. That means unusual login times, access to data outside what is normal and patterns of data download that suddenly spike or administrative actions coming from unexpected sources.

4. Incident response integration. Automated response should be built in through hooks in the security architecture that allow account disabling, IP blocking, network segment isolation and quick change rollback. And the quicker containment starts once detection occurs, the less damage an attacker can do.

5. Through DevSecOps practices, secure system design principles should get built into the DevOps culture. Rather than gating security at the end, security testing in CI/CD pipelines, infrastructure-as-code security scanning and automated compliance checking put security into the development workflow.


Putting It All Together

Architecture Decisions That Compound

These principles do not work as independent checkboxes. They reinforce each other in ways that make security postures far stronger than what any single principle could achieve on its own.

When a component gets compromised, least privilege along with separation of concerns gives it minimal access to isolated resources. Defense in depth together with fail-secure makes sure that each security layer goes into protection mode by default when it fails and that other layers keep working.

Input validation combined with economy of mechanism means that validation logic is simple, centralized, and consistently applied.

Violating these principles in turn creates a cascade of vulnerabilities. When there are excessive privileges in a monolithic design, any breach gives full access to everything. When defense at a single layer fails open, one failure opens up the whole system.

Complex, distributed input validation with inconsistent implementation creates gaps attackers can find.

The organizations that consistently build secure systems-Google, Apple, Microsoft's Azure team-don't do so because they have smarter engineers (though they do).

These principles have been built into their architectural decision-making processes, code review practices and engineering culture and that is why they do it. Security is not a feature they add to their systems. It is a property of how the systems are designed.

Upfront investment goes into architecture and engineering for secure design and that is the cost of secure design. Insecure design comes with a price in breaches, data loss and remediation, which is always more expensive and is what users pay when they trust the system to keep them safe.


What Research and Industry Reports Show

Since the 1970s, the principles of secure system design have received systematic study and the research time after time supports the same basic conclusions.[11]

Saltzer and Schroeder's Foundational Research (1975): Jerome Saltzer and Michael Schroeder's paper "The Protection of Information in Computer Systems," published in the Proceedings of the IEEE, is the bedrock document of the field.[1]

They set out eight design principles (economy of mechanism, fail-safe defaults, complete mediation, open design, separation of privilege, least privilege, least common mechanism and psychological acceptability). These were not intuitions. They came from systematic analysis of protection systems on the early Multics time-sharing system at MIT.

Nearly five decades of security research that came after has validated all eight principles and every major security framework (NIST, ISO 27001 and OWASP) bases its design guidance on what this paper proposed.

Gary McGraw's Software Security Research: Gary McGraw, a security researcher who co-authored Exploiting Software and Software Security: Building Security In, conducted extensive research on how software vulnerabilities arise in practice.

Most serious vulnerabilities fell into a small set of recurring patterns that showed up in thousands of software security assessments (buffer overflows, injection attacks, authentication failures and authorization bypasses). At the same time, those patterns can be dealt with directly by deciding how things should be designed.

Through his research, McGraw set up the idea of touchpoints for software security that are particular development steps (threat modeling, code review, penetration testing) put in place at specific points in the development cycle. They yield measurably better security results than security efforts that spring up haphazardly.

The OWASP Top Ten has been published since 2003 and represents the consensus of security researchers and practitioners on the most critical web application security risks.[3]

The 2021 edition, based on analysis of data from more than 500 contributing organizations covering over 400 types of CWEs (Common Weakness Enumerations), found that broken access control moved to the top position - present in 94 percent of applications tested.

Directly validating the least privilege and separation of concerns principles is this finding. Almost everywhere, access control fails because designs treat authorization as an afterthought instead of a foundational constraint.

NIST SP 800-27, "Engineering Principles for Information Technology Security" brought together decades of research into 33 engineering principles that each rested on empirical evidence from security failures in the past.[2]

How security is framed in the document (security properties must go in at design time rather than being added later) shows what case studies keep finding. Retrofitting security into systems that are already deployed costs 5 to 100 times as much as putting it in from the start and that depends on how severe the architectural mismatch is.

Google's BeyondCorp Research: Google published a series of research papers beginning in 2014 describing the design and deployment of its BeyondCorp zero trust architecture.

The research, drawing on Google's operational experience after the Operation Aurora attack in 2010, provides one of the most detailed public case studies of applying least privilege and defense in depth principles at scale.[6]

Google's published results show what happens when moving from perimeter security to identity- and device-aware access controls. The blast radius of a credential compromise got much smaller and the security architecture became simpler by getting rid of a complex VPN infrastructure that itself was a large attack surface.

Real-World Case Studies

The MongoDB Default Configuration Exposure (2015-2017) provides a large-scale natural experiment in the consequences of insecure defaults. MongoDB prior to version 2.6 shipped with no authentication enabled and bound to all network interfaces by default.

Once cloud hosting made it easy to expose servers directly to the internet, tens of thousands of MongoDB instances opened up publicly with no controls for access. Medical records databases, financial records databases, personal data on millions of people and company data all became unprotected.

Ransomware operators deleted database contents and called for payment to restore them and this was one of the forms of criminal exploitation that followed. Version 3.6 came out in 2017 and MongoDB responded by changing what it made the default in that version. The change was to bind only to localhost by default (authentication still needs to be turned on explicitly).

With no other architectural change, the shift in defaults alone brought down the number of exposed instances within months. That shows that secure defaults have more effect than documentation, guidelines or training of administrators.

The MOVEit SQL Injection Breach (2023) is the recent example that shows best how input validation fails at scale. Thousands of organizations use MOVEit Transfer as a managed file transfer app, including government agencies, financial institutions and healthcare providers. The web interface of this app had a SQL injection vulnerability.[4]

Beginning in late May 2023 and before it was made public, the Clop ransomware group found the vulnerability and exploited it to steal data from more than 2,600 organizations that affected about 84 million people.

Since the 1990s, this kind of vulnerability has been understood well and can be fully prevented by using parameterized queries. Attackers could get in by injecting SQL commands through a specially crafted HTTP request and the vulnerability belongs to a class that has appeared in the OWASP Top Ten since the list began.

A security-critical application contained a vulnerability of this type in 2023 and that led to what proved the most consequential data theft of the year. Economy of mechanism as well as input validation continue to be underimplemented in commercial software development.

The Therac-25 Radiation Overdose Incidents (1985-1987) remain the most studied case study in what happens when fail-secure design is omitted from safety-critical systems.

The Therac-25 was a radiation therapy machine that replaced earlier hardware safety interlocks with software controls - a design change that eliminated the fail-secure backup that previous models had.

When race conditions in the software produced incorrect state, the machine could deliver radiation doses 100 times the intended level.

Six patients got massive overdoses and at least two died. In 1993, investigations by Nancy Leveson and Clark Turner that appeared in IEEE Computer traced the root causes to the removal of hardware interlocks, failure to verify software independently. A design assumption that software could not fail in ways hardware had to guard against.

Fail-secure mechanisms have to be built into the architecture at the same time as every major treatment of safety and security engineering takes this case as proof that they must be designed in at the architectural level. Other safeguards present cannot assume that fail-secure mechanisms are not needed.

The Equifax Breach and Complexity (2017): An element of the Equifax breach less discussed than the Apache Struts vulnerability is the role of architectural complexity in enabling its scope.

Equifax's environment included multiple business units with separate systems, acquired companies with incompatible infrastructure, and a security scanning program that did not cover all assets - in part because the asset inventory was incomplete.

The vulnerable web application was not in the scanning scope precisely because it was a system that security teams did not know existed.

When applied at the organizational architecture level, economy of mechanism principles would have brought about a smaller, better-inventoried environment where unknown assets were an exception instead of a routine condition.

The breach put data from 147 million people partly into the open because the environment was too complex for full security monitoring.

Key Security Metrics and Evidence

Research consistently produces measurable data on the cost and effectiveness of secure design principles.

Cost of Fixing Defects by Phase: Multiple subsequent studies confirmed research from the IBM Systems Sciences Institute that as a security defect gets later in the development lifecycle to be found, the relative cost to fix it rises exponentially.

When a defect appears during design, fixing it costs about 1x as much. At implementation it takes 6x as much, at testing 15x as much and once deployed it is 100x as much. This result makes the economic case for security by design and threat modeling and investing in secure design pay off many times through avoided remediation costs.[5]

Least Privilege Effectiveness: Internal security data from Microsoft that appears in its Security Intelligence Reports shows that taking away administrator-level access from standard user accounts would get rid of 94 percent of critical Microsoft vulnerabilities.

Between 2013 and 2019, a look at Windows vulnerabilities found that 85 to 95 percent of what was mitigated came from removing administrative rights across all vulnerability types. Least privilege in practice is measured by how much is mitigated as shown here.

Input Validation Failure Rates: Veracode's State of Software Security reports, based on analysis of hundreds of thousands of application scans, consistently find that 76 percent of applications contain at least one vulnerability in their first scan, and that injection flaws (SQL injection, command injection, XSS) are among the most common.

Apps that put input validation frameworks into their development standards arrive with much fewer defects at first scan and that proves economy of mechanism (centralized, standardized validation) performs better than each developer building validation from scratch.

Breach Dwell Time and Detection: Organizations that have mature logging and monitoring in place get a result from IBM's research. Breaches are detected in an average of 197 days compared to 274 days for organizations that do not have it.

On the other hand, a reduction of 77 days comes with direct savings on breach cost and IBM discovered that companies having mature detection capabilities save an average of $3.05 per record over those that do not. Monitoring and response as the defense in depth layer gives the best return on investment and that data supports spending on these areas.

Patch Application and Known Vulnerability Exploitation: The Ponemon Institute's Vulnerability Management research found that 60 percent of breach victims stated they were breached due to a known vulnerability for which a patch was available but not applied.

This figure has been stable for years and that shows the problem is not too few patch releases. Automated patching, exception handling and verified compliance scanning make the case for economy of mechanism at the level of managing vulnerabilities.

Sources & Further Reading

  1. Saltzer, Jerome H. and Schroeder, Michael D. "The Protection of Information in Computer Systems." Proceedings of the IEEE, Vol. 63, No. 9, September 1975.
  2. NIST. "SP 800-27, Engineering Principles for Information Technology Security." Published by the National Institute of Standards and Technology in 2004.
  3. OWASP Foundation. "OWASP Top Ten 2024." OWASP, 2024.
  4. Progress Software. "MOVEit Transfer Vulnerability Advisory." Progress, June 2023.
  5. Shostack, Adam. "Threat Modeling: Designing for Security." Wiley, 2014.
  6. Google Infrastructure Security Design Overview. Google Cloud, 2023.
  7. Microsoft. "Zero Trust Architecture." Microsoft Security Documentation, 2024.
  8. Brian Krebs wrote about the Colonial Pipeline breach in a June 2021 post on his Krebs on Security blog.
  9. MongoDB Inc. "Security Hardening and Default Configuration Changes." MongoDB Documentation, 2016.
  10. Cloudflare. "Cloudflare outage on June 21, 2022." Cloudflare Blog, 2022.
  11. Bishop, Matt. "Computer Security: Art and Science." Addison-Wesley, 2018.