CISSP - Software Development Security - Section 8.5

Define and apply secure coding guidelines and standards including identification of security weaknesses, secure APIs, and software-defined security.

Define and apply secure coding guidelines and standards by identifying source code vulnerabilities, designing secure APIs, and incorporating OWASP recommendations and software-defined security principles into development standards. Distinguish injection, broken authentication, and insecure deserialisation weaknesses so that developers remediate the root cause rather than the symptom.

secure codingOWASPsecure APIssource code vulnerabilitiessoftware-defined security

Practice question for this objective

Free sampleSoftware Development Securitymedium

A SaaS provider hosts its source code in a self-managed git platform. After a contractor's stolen laptop was used to clone several private repositories, the security committee asked for a programme of controls focused on the code repository itself. As the security lead, which control should you implement FIRST?

  • AEnable repository-wide secret scanning with automatic credential revocation so any leaked tokens inside the cloned code are rendered useless within minutes.
  • BMove all private repositories behind a virtual private network so cloning is only possible when the engineer is connected to the corporate network.
  • CEncrypt all repositories at rest with a customer-managed key so a stolen clone would be unreadable outside the corporate environment.
  • DRequire phishing-resistant multi-factor authentication and short-lived hardware-bound credentials for every account that can access the source code platform. Correct
Treat strong, phishing-resistant authentication as the primary control protecting source code repositories from credential-based theft. Source code repositories are crown-jewel assets and their primary attack surface is authenticated access. Encryption at rest, secret scanning, and network gating each add value but do not stop an attacker who holds a valid credential. Phishing-resistant MFA bound to hardware breaks the credential reuse that enabled the breach and is the manager-level first move.

Why A is wrong: Secret scanning reduces the impact of secrets already inside the repositories but does not address the underlying access control failure that allowed an unauthorised clone in the first place.

Why B is wrong: VPN gating is a coarse network control that conflicts with modern remote development, is bypassed by any attacker who has the same VPN credentials, and treats network location as a proxy for trust.

Why C is wrong: Encryption at rest protects against disk theft from the hosting platform, not against an authenticated clone; once a legitimate session pulls the code, the working tree is decrypted and the control adds no protection here.

Why D is correct: The root cause was an attacker reusing a contractor's credentials from a stolen device; phishing-resistant MFA and hardware-bound short-lived credentials directly prevent that reuse and protect every repository in the platform.

See more CISSP practice questions, answers explained.

More in this domain

Back to all Software Development Security objectives, or the CISSP cert hub.

Examworthy is not affiliated with or endorsed by (ISC)2. Original, blueprint-aligned practice material only.