Topics in this domain

Security Testing During Development and Acceptance (Annex A 8.29)

Change and testing · 2 min read

Types of security testing

Testing shows whether security requirements were actually met. Annex A control 8.29 calls for security testing processes to be defined and implemented in the development life cycle. The diagram compares the main types of testing.

Static analysis finds coding flaws in source, on every commit or build. Dependency scanning finds vulnerable libraries, on every build. Dynamic testing finds flaws in the running application, in the test environment for each release. A penetration test shows what a skilled attacker can do, before major releases and yearly. Acceptance testing confirms security requirements are met, before go-live.

Static analysis on every build finds coding flaws; dependency scanning finds vulnerable libraries; dynamic testing finds flaws in the running app each release; penetration testing finds what a skilled attacker can do before major releases; acceptance testing confirms requirements before go-live.

Testing against requirements

Testing should be driven by the approved security requirements, not just by generic scans:

  1. take the approved security requirements (8.26);
  2. turn them into test cases;
  3. automate tests in the pipeline;
  4. add expert testing for higher-risk systems;
  5. make the acceptance decision with the results.

The test environment should resemble production, but use masked or synthetic data rather than live sensitive data (8.33).

Acceptance criteria

Security belongs in acceptance criteria:

  • all security requirements tested;
  • no open critical or high findings;
  • any exceptions accepted by the risk owner;
  • configuration matching the baseline;
  • results recorded.

Releasing with a known critical flaw to meet a deadline is a risk decision for the risk owner, recorded and time-limited, not a quiet choice by the project team.

How the exam asks about it

If the question asks…The answer is usually…
Control for security testing in development8.29
What security testing tests againstThe security requirements
Critical finding found before go-liveFix it or get a formal risk decision
Test data for security testingNot live sensitive data (8.33)

In short

  • Annex A 8.29 calls for security testing processes to be defined and implemented in the development life cycle.
  • Test new systems, upgrades and new versions against their security requirements before acceptance.
  • Combine automated testing (static, dependency, dynamic) with expert testing (penetration tests).
  • Test in an environment that resembles production, without using live sensitive data.
  • Acceptance criteria include security; failed security tests block go-live.

Exam traps

  • Only functional testing before go-live.
  • Penetration testing once a year while releasing weekly.
  • Testing with copies of live personal data.
  • Known security failures accepted to meet a deadline without a risk decision.

Check yourself

  1. A new release fails its security tests just before launch. What should happen?

  2. Which combination of testing is BEST?

  3. Which environment should security testing use?

Slides

Click the slide and use the arrow keys. F toggles full screen.

Turn your phone sideways for a bigger view. Tap any diagram to enlarge it.

ISO 27001 LI · Domain 6 · Change and testing

Security Testing During Development and Acceptance (Annex A 8.29)

How Annex A 8.29 builds security testing into the development life cycle and acceptance: the types of tests, when each runs, testing against requirements, and acceptance criteria before go-live.

1 / 7

Turn your phone sideways or scroll to see all of it.