A test manager is explaining to a project board the security testing methods the team will use.
Match each method to what it does.
Choose the match for each entry. Every match has to be right.
Software is tested at several levels before anyone relies on it. Security testing uses tools that look at the program in different ways: reading its code, attacking it from outside, watching it from inside. Each tool finds some flaws and misses others. What is found then has to be weighed as risk, fixed or formally accepted, and measured over time. No background in testing or programming is assumed.
An illustrative example
A theatre's box office software miscalculated discounts for school groups. The supplier corrected the calculation, tested the discount screen, and confirmed it now gave the right price. The theatre installed the update on Friday.
On Saturday the box office could not issue refunds. The refund screen used the same calculation, and nobody had tried it. Two hundred customers queued for a cancelled matinee while staff wrote refunds by hand.
The supplier tested its fix and the fix worked. What kind of testing was missing?
A car maker tests each part on a bench, then tests parts fitted together. Next it drives the finished car, and finally the buyer takes it for a drive. Software is tested at the same four levels.
Every change to a program can break something that was not changed. Regression testing repeats earlier tests after a change, to check that parts that used to work still work. It differs from retesting, which only checks that the change itself works. The theatre's supplier retested the discount screen and did no regression testing, so the broken refund screen went unnoticed.
Retest asks: does the fix work. Regression test asks: did the fix break anything else.
A tailor can make a suit exactly to the measurements written on the order, and the customer can still find it useless because he needed a coat. The suit passed one check and failed another.
System testing against the specification is verification. Acceptance testing by users is mostly validation. A security requirement can pass verification and fail validation: the specification asked for passwords of eight characters, the code enforces eight, and the users' real needed a second factor.
Testing is worth more when the tester is not the author. Independent verification and validation (IV&V) is done by an organisation that is independent of the developers technically, in its management and in its funding. A developer who tests his own code checks the cases he already thought of. An independent tester brings the cases he missed.
Static application security testing (SAST) examines code without running it, like proofreading a recipe. It usually reads the source code, and some tools analyse the compiled program instead. Dynamic application security testing (DAST) attacks the running program from outside through its screens and requests, as an attacker would, without seeing the code. Interactive application security testing (IAST) places an agent inside the running program during testing and watches what each test makes the code do.
Runtime application self-protection (RASP) also sits inside the running program, but in live use, and blocks inputs that would exploit a flaw. Software composition analysis (SCA) lists the outside components a product includes and checks them against known flaws and licence terms. Fuzzing feeds a running program large amounts of malformed or random input to make it fail. Mutation fuzzing, also called dumb fuzzing, changes real inputs at random. Generation fuzzing, also called intelligent fuzzing, builds inputs from a model of the data the program expects, so it reaches deeper code.
| Method | Looks at | Program running | Good at | Main limit |
|---|---|---|---|---|
| SAST | Source code, or the compiled program | No | Known flaw patterns, with the file and line | Many false alarms. Misses configuration and runtime faults |
| DAST | The program from outside | Yes | Flaws an attacker can reach, including configuration | Cannot name the line at fault. Tests only what it reaches |
| IAST | The program from inside, during testing | Yes | Flaws with the line and the runtime context | Sees only code that the tests exercise |
| RASP | The program from inside, in live use | Yes | Blocking an attack as it happens | Shields the flaw. Does not remove it |
| SCA | Outside components and libraries | No | Known flaws and licences in borrowed code | Says nothing about the team's own code |
| Fuzzing | Responses to malformed input | Yes | Crashes and memory faults from unexpected input | Each failure still needs analysis |
Common misconception
“RASP is a kind of testing that finds flaws before release.”
RASP is a protection that runs in production and blocks attacks on flaws that are still there. The testing methods find flaws so that they can be fixed.
Automated tools find flaws that follow a known pattern. Some flaws need knowledge of what the program is for. Whether a clerk should see another branch's customers, or whether is used properly, depends on the business rules. Tools find these poorly.
Manual code review is a person reading the source code against the requirements. It is slow, so it is kept for the most critical parts, such as sign-in, payments and access checks. A , an authorised attack by skilled people, joins several small weaknesses into one real attack in a way no single tool does.
The strongest assurance combines the two kinds. Tools run on every change and catch common mistakes early and cheaply. People review the critical code and attack the finished system before release.
Testing produces a list of flaws. A flaw is not yet a decision. Each one is analysed as a risk: how likely it is to be exploited, and what the harm would be. The drawn up during design says which and attackers matter most, so it guides that judgement.
The risk left after treatment is the . A developer or tester does not accept it. The or the senior official who authorises the system to operate does, in writing, before release.
A single test result shows the state of one release. Effectiveness shows in measures tracked over many releases. Organisations set criteria for security checks in advance and record each approval, rejection and exception.
Key performance indicators measure how well the security work is done. warn that risk is rising. A falling count of severe flaws found after release, with more found before it, is evidence that security moved earlier in development.
An insurer has bought a claims application from a supplier. It received the compiled program only, with no source code. Before go-live the security manager must find whether the screens that accept claim details can be abused by injection. A test copy of the application is running in the insurer's test environment.
Which testing method is the BEST choice?
Answer: A. Dynamic application security testing of the running test copy
Follow a finding from the test result to the owner's decision and the retest.
Loading the preview.
5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 5
A test manager is explaining to a project board the security testing methods the team will use.
Match each method to what it does.
Choose the match for each entry. Every match has to be right.
SAST examines code without running it, usually the source but sometimes the compiled program, and names the line, with many false alarms. DAST attacks the running program from outside and needs no source. IAST watches the running program from inside during tests. SCA checks outside components for known flaws and licences. RASP blocks attacks in production. Fuzzing feeds malformed input.
It is recorded, rated by likelihood and impact, then mitigated by a fix or another control, avoided by removing the feature, transferred or accepted, with a temporary mitigation if the fix takes time. Its root cause is found and the process changed. The system owner or authorising official accepts the residual risk in writing.
Retesting only checks that the change itself works. Regression testing repeats earlier tests after a change, to check that parts that used to work still work. Retest asks whether the fix works; regression testing asks whether the fix broke anything else.
Verification is objective evidence that the specified requirements were met: the product was built right. Validation is objective evidence that it meets the needs of its intended use: the right product was built. Independent verification and validation is done by an organisation independent of the developers technically, in its management and in its funding.
Flaws that need knowledge of what the program is for, such as whether a clerk should see another branch's customers, or whether encryption is used properly. Manual review is kept for critical parts such as sign-in, payments and access checks. A penetration test joins several small weaknesses into one real attack.
Open flaws by severity and whether the count is falling, and how long flaws stay open. Flaws found before release against after it, the share of releases passing every security check without an exception, and repeat flaws. More severe flaws found before release and fewer after shows security moved earlier.