Scenario-Based Risk Certificates for Multi-Property Vulnerability Discovery in Parametric MDPs
Authors: Zhiming Chi, Andrea Turrini, Yong Li, Lijun Zhang
Organizations: Key Laboratory of System Software (Chinese Academy of Sciences), Beijing, China · Institute of Software, Chinese Academy of Sciences, Beijing, China · University of Chinese Academy of Sciences, Beijing, China
Safety-critical systems such as network protocols and distributed algorithms depend on environmental parameters whose exact values are uncertain. Parametric Markov decision processes (pMDPs) model such systems by making transition probabilities symbolic functions of the parameters. For a single quantitative requirement, parametric verification asks which parameter valuations satisfy the requirement. In practice, however, engineers often monitor several safety and performance requirements at once, and one valuation may make several requirements vulnerable simultaneously. In this paper we study multi-property vulnerability discovery under requirement-wise semantics: given a pMDP and M quantitative requirements, we construct candidate regions of the parameter space that may contain violations, and study budgets for random testing under a specified parameter distribution. To solve this, we adopt a two-layered approach in which the scenario-approximation layer provides PAC guarantees on identifying conservative vulnerability regions for each requirement while the testing layer treats random parameter exploration as coverage of overlapping regions and yields a stopping certificate computed from the marginal region masses alone; a composition theorem then bounds the expected non-discovery score by the scenario approximation error plus the testing risk from the two layers. For confirmed discoveries, candidate hits are checked by model checking and budgets use independently certified discovery probabilities. Experiment evaluate these certificates using empirical surrogates and independent confidence bounds.
Figures & tables
Figure 1: Framework overview. Scenario-approximation layer : the model checker is queried at sampled parameters (dots), and a polynomial proxy (curve) with a one-sided PAC margin (shaded) yields a conservative vulnerability region Vj . Testing layer : random draws test the parameter space; region hits are candidates for confirmation, and an overlap (purple) allows one draw to expose several requirements.
Method / Tool
Model and semantics
Parameter-region output
Guarantee
PRISM [ 36 ] ; Storm [ 28 ]
MDP; common scheduler
none (concrete model)
none
PROPhESY [ 16 ] ; Storm-pars [ 32 ]
pMC/pMDP; separate requirements
exact partition per requirement
none
DiPS [ 25 ]
pMC; joint data constraints over PCTL requirements
adaptive box partition
data-derived CIs
PacPMA [ 42 ]
pMC; one requirement
approximate region
per-requirement PAC
Badings et al. [ 5 ]
pMDP; one requirement
approximate region
per-requirement PAC
Forejt et al. [ 21 ] ; Hartmanns et al. [ 26 ]
MDP; common scheduler
Pareto/multi-cost tradeoff
none
Table 1: Comparison of our approach with the related work.
Benchmark
States
M
maxmU
minaimpl
μ10cert
μobs
BRP
2691
2
0.031
0.257
0.077
0.016
Consensus
272
3
0.031
0.300
0.064
0.000
Crowds
1145
2
0.031
0.257
0.078
0.000
EGL
23863
2
0.031
0.285
0.053
0.016
FireWire
4093
4
0.031
0.303
0.101
0.047
Herman
9
2
0.031
0.282
0.073
0.000
Table 2: Model sizes and simultaneous certification bounds for fixed candidate regions, together with the observed mean non-discovery score from independent random parameter tests at k=10 .
Benchmark
M
Scenario
Certification
Testing
Total (s)
BRP
2
0.7 / 282
6.5 / 512
1.8 / 137 (1280)
9.3
Consensus
3
1.6 / 423
4.7 / 768
1.7 / 257 (1920)
8.1
Crowds
2
0.6 / 362
1.3 / 512
0.3 / 131 (1280)
2.4
EGL
2
2.1 / 282
9.7 / 512
2.3 / 133 (1280)
14.3
FireWire
4
1.5 / 564
5.5 / 1024
1.3 / 253 (2560)
8.5
Herman
2
0.6 / 362
0.1 / 512
0.04 / 171 (1280)
0.8
Table 3: Cost of the complete procedure by phase; cells report seconds / model-checking evaluations. The Testing column also shows, in parentheses, the always-check-all count ( 64 repetitions ×10 tests ×M requirements).
Figure 2: Runtime versus reachable states for controlled sequences of all ten families; both axes are logarithmic.
Benchmark
M
kcert
kalloc
E[T]emp
BRP
2
10
11
3.92
Consensus
3
9
10
3.99
Crowds
2
10
11
3.94
EGL
2
9
9
3.10
FireWire
4
11
11
4.13
Herman
2
10
10
2.61
Table 4: Stopping budgets from the certified lower bounds.
M
kUB
k⋆
Saving vs. union bound
ρ=0
ρ=0.25
ρ=0.5
ρ=0.75
ρ=0
ρ=0.25
ρ=0.5
ρ=0.75
2
33
29
29
29
29
12%
12%
12%
12%
4
37
30
30
30
30
19%
19%
19%
19%
8
42
33
33
33
33
21%
21%
21%
21%
16
46
36
36
36
36
22%
22%
22%
22%
Table 5: Marginal-mass stopping budget k⋆ vs. naive union-bound kUB for the synthetic scaling experiment.
qmax/qmin
k⋆
kUB
Saving
1
42
42
0%
2
33
42
21%
4
31
42
26%
8
30
42
29%
Table 6: Asymmetry amplifies savings.
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Benchmark
Requirement
Formula
Bound
BRP
Pmax no reception
P=?max[F(srep=0∧¬recv)]
≤
Rmin steps
Rstepsmin[Fdone]
≤
Consensus
Pmin heads
P=?min[Fheads_consensus]
≥
Pmax disagree
P=?max[Fdisagree_done]
≤
Rmin steps
Rstepsmin[Ffinished]
≤
Crowds
Pmax observe twice
P=?max[Fobserve_sender_twice]
≤
Appendix
Table 7: The requirements used in the experiments.
Benchmark
Requirement
a^
m^
b^
uL
aL
mU
aimplL
BRP
Pmax no reception
0.410
0.000
0.000
0.307
0.307
0.031
0.307
Rmin steps
0.355
0.000
0.039
0.257
0.257
0.031
0.257
Consensus
Pmin heads
0.445
0.000
0.020
0.340
0.340
0.031
0.340
Pmax disagree
0.430
0.000
0.078
0.325
0.325
0.031
0.325
Rmin steps
0.402
0.000
0.430
0.300
0.300
0.031
0.300
Crowds
Pmax observe twice
0.355
0.000
0.008
0.257
0.257
0.031
0.257
Appendix
Table 8: Requirement-level probability estimates and simultaneous confidence bounds.
Model instance
States
Scenario
Certification
Testing
Total (s)
Crowds (small)
1145
0.6 / 170
0.3 / 128
0.1 / 56
1.1
Crowds (medium)
42115
1.2 / 170
15.5 / 128
7.0 / 59
23.8
Crowds (large)
321751
33.1 / 170
184.6 / 128
89.9 / 64
308.1
FireWire (small)
4093
0.7 / 130
0.6 / 128
0.3 / 59
1.7
FireWire (medium)
17190
1.1 / 130
2.6 / 128
1.1 / 57
4.9
FireWire (large)
212268
11.6 / 130
52.6 / 128
23.1 / 58
88.0
Appendix
Table 9: Cost of one complete execution in the scaling experiment; cells report seconds / model-checking evaluations.
Family
Largest completed states
Time (s)
BRP
20,744
356.6
Consensus
3,088
793.0
Crowds
572,153
407.8
EGL
3,342,334
596.1
FireWire
883,109
1203.9
Herman
129
118.8
Appendix
Table 10: Exact state count and runtime of the largest completed instance in each controlled family sequence. Every execution has a 30-minute limit.
Benchmark
Absolute error
True
Conservative
Miss
Emp.
PAC.
Emp.
PAC.
Emp.
PAC.
BRP
0.164
0.260
0.375
0.458
0.403
0.000
0.000
Consensus
0.025
0.037
0.438
0.673
0.528
0.000
0.000
Crowds
0.010
0.019
0.395
0.423
0.398
0.000
0.000
EGL
0.005
0.007
0.413
0.433
0.415
0.000
0.000
FireWire
< 1e-4
< 1e-4
0.408
0.408
0.408
0.000
0.000
Appendix
Table 11: Numerical maximum-residual construction vs. the certified PacPMA -style construction. The absolute-error and region-mass entries are means over the two requirements of each family; Miss is the maximum.
Degree
Scenario ℓ
Consensus
EGL
Herman
WLAN
Mean
Max miss
1
280–320
0.091
0.037
0.003
1.232
0.341
0.000
2
400–560
0.024
0.006
6e-05
0.349
0.095
0.000
3
560–960
0.022
5e-04
6e-05
0.344
0.091
0.000
4
760–1560
0.009
5e-05
2e-06
0.175
0.046
0.000
5
1000–2400
0.009
7e-06
2e-06
0.185
0.048
0.000
Appendix
Table 12: Polynomial-degree sensitivity on the first configuration of four families. Each family cell is the mean absolute value-function error, first averaged over the independently drawn measurement valuations and then over the two requirements; Mean averages the four displayed family values.
Key Laboratory of System Software (Chinese Academy of Sciences), Beijing, China · Institute of Software, Chinese Academy of Sciences, Beijing, China · University of Chinese Academy of Sciences, Beijing, China +2