Here are the answers for the exercises at the end of each chapter.
Chapter 1
-
A, C, and D. Requiring multi-factor authentication is also a good idea, but it’s an example of the principle of defense in depth, not least privilege.
-
A and D. Strict firewall controls may help, but they don’t demonstrate defense in depth unless paired with another control. Trust boundaries are also important, and may be used to define controls, but are not a defense in depth control.
-
A, B, C, and D. Threat actors may want to do all of these things, although historically making money is by far the largest motivator. In addition, some threat actors may be motivated simply by the challenge of breaking in or enhancing their reputations in hacking circles.
-
A. Depending on the service delivery model, network security and operating security may be the cloud provider’s responsibility, or may not be. Data access security—choosing who gets access to the data—is almost always the consumer’s responsibility.
-
A and B. Most risk assessment systems use some form of likelihood and impact assessment to determine the overall risk level. Transferring a risk doesn’t determine the severity of the risk, but may be a way to deal with the risk. Your risk severity is also not directly affected by whether the attacker’s actions are legal or not, although taking illegal actions may raise the attacker’s risk of going to jail.
Chapter 2
-
A. While you may need more than 3 data classification levels, 30 is excessive for almost all organizations, and 300 is in there just to see if you read the question at all before answering.
-
A, B, C, and D. While the IP addresses themselves are public information, when linked to customer requests on your systems, they are considered personal information in many jurisdictions and need to be protected.
-
A, B, and C. While data can be cryptographically erased to make it unreadable, that doesn’t involve encrypting the data at the time of deletion. Cryptographic erasure works by deleting the encryption keys, so that the already encrypted data can no longer be decrypted.
-
C. Hardware security modules have the benefit of being physically tamper-resistant and are required for some high-risk areas or compliance regimes, but you can perform proper key management without one. Storing encrypted (or “wrapped”) encryption keys along with the data is a completely acceptable practice, as long as the key encryption key (KEK) is stored elsewhere, but storing unprotected encryption keys alongside the data is useless.
-
C. An attacker in the application or the database will request the data, and the disk controller will decrypt the data on disk and provide it. This is required for normal functioning of the system.
Chapter 3
-
A and B. Many organizations don’t have a single team that’s responsible for deploying cloud assets, but having such a team would not making tracking the assets more error-prone. Cloud APIs will allow you to use automation to export lists of cloud assets, so they make tracking of cloud assets easier, not harder.
-
A, B, and C. Encryption is used to protect data at rest, in motion, and in use, but is not a type of asset. A key management instance used to manage encryption keys for your data could be a cloud asset, however.
-
False. Containers do have a larger attack surface by default than virtual machines, and may not be a good choice for running untrusted code without additional protections, but they are not inherently insecure.
-
A, B, and C. Having only known risks, and an acceptable quantity and severity of them for the organization’s risk appetite, is a good goal and not an issue.
-
A, B, C, and D. These are all reasonable tags you can apply to assets that can be helpful for tracking assets and creating security policies.
Chapter 4
-
A, B, C, and D. All of these are common access management life cycle activities.
-
A. Authentication followed by authorization is what allows you to access an application, although some applications allow access to all authenticated users. API keys are not multifactor authentication, but they are a stronger single factor authentication method than simple passwords, and are often used by automation that cannot perform multi-factor authentication. The final statement is also incorrect, because following zero trust principles, internal communications also require authentication and authorization.
-
A, B, and C. All of these are true about authorization; while centralized authorization has advantages and is becoming more popular, decentralized authorization can still be very effective.
-
A, B, and D. While Cloud IAM systems often have methods for authenticating and authorizing users and other entities, different cloud services such as secrets management services and encryption key management services are generally used for storing secrets and encryption keys.
-
B and C. A is not correct because federation is the concept, and single sign-on is a technology that allows users to use federated identities. D is not correct because single sign-on is generally more secure, because fewer applications see the user’s password.
Chapter 5
-
B, C, and D. While physical security controls are very important, they are almost always the IaaS cloud provider’s responsibility, and are not a significant factor in known breaches. Everything else is your responsibility when using IaaS services.
-
A and B. Dynamic and static application scanners are useful to find security issues with code that you maintain, but won’t find missing operating system patches.
-
C and D. Agentless scanners and configuration management tools are generally focused on the operating system and middleware layers, and not the application layer. Container scanners will typically find vulnerable configurations and missing patches in container images or running containers, but will not typically find application-level issues unless combined with another tool type.
-
False. A network vulnerability scan will generally only find operating system or middleware issues, and will not find application vulnerabilities unless the tool also includes dynamic application scanner capabilities and you have specifically configured it to test the web application.
-
False. Penetration testers will generally only find one or a few ways in, not all possible ways into a vulnerable system. If your penetration test scope is the complete application and environment and it shows only minor issues, you can be fairly confident. If the penetration test scope leaves out important parts of the environment, or if major issues are found, you need to retest with a complete scope after fixing those issues.
-
False. After looking at the likelihood and impact of someone exploiting a vulnerability, you may decide to accept the risk, either as is or after applying additional controls or mitigations. It’s important not to accept too much risk in aggregate (if you have 100 things, each with a 1% chance of happening, one of them is likely to happen) but you must usually accept a certain amount of risk to function.
Chapter 6
-
A, B, and C. While a few cloud providers allow you to rent physical network appliances, for the most part you will rely upon security groups and network access control lists, and occasionally on virtual firewall appliances.
-
A. In most cases, VPC offerings don’t provide dedicated storage, although you are typically provided with isolation by encryption. VPCs also typically don’t provide dedicated CPUs or bare-metal systems, although that is a separately orderable option in many cases. Use of VPCs doesn’t affect encryption keys.
-
A, B, and C. A firewall will block network connections, but TLS will not.
-
False. Although a perimeter may not always be possible, and may require more access than some traditional environments, many applications can still benefit from having a perimeter as long as it’s not the only line of defense.
-
A, B, and D. Security groups are also useful, but they are like “host firewalls” and operate independently from subnet creation.
-
False. While anti-DDoS appliances can mitigate denial-of-service attacks that depend on sending traffic that’s difficult to service, a single appliance (or its network connection) will generally be overwhelmed by a large-scale volumetric attack.
-
A, B, and D. Egress filtering is not typically very effective using IP-based controls, because you will typically need to open up the same ports, such as tcp/443, that attackers and malware use. Also, egress filtering is not an easy control to implement in either cloud or traditional environments, because you often don’t have a good inventory of all of the outbound calls that your application and its dependencies need to make.
Chapter 7
-
A and B. Metrics refer to any sort of count of activity over time, such as web requests. In addition, most logs do not need to contain sensitive information or personally identifiable information, although it may be unavoidable in a few limited cases.
-
A, B, C, and D. All of these are good sources of security-relevant logs and metrics.
-
False. You may use a combined tool to aggregate logs and analyze them, or you may choose to use one tool to aggregate the logs and then feed security-relevant logs to another tool for analysis. Both functions are very important, but do not have to be performed by the same tool.
-
A, B, and C. As of this writing, there’s no reliable way to automatically clean up an affected system other than rebuilding it.
-
A, B, and C. Attackers are very inconsiderate and will often try to do all of these things.
-
B and C. Antivirus software and other tools generally cannot remove all persistent malware from a system with a high level of confidence, so rebuilding the systems controlled by attackers is by far the safest route.