Remove deduplication for session rewriting vulnerability report#6895
Merged
Remove deduplication for session rewriting vulnerability report#6895
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 50 metrics, 13 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.33.0-SNAPSHOT~299a865fb0, baseline=1.33.0-SNAPSHOT~8a3889a6aa
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.074 s) : 0, 1074241
Total [baseline] (8.551 s) : 0, 8550583
Agent [candidate] (1.076 s) : 0, 1075618
Total [candidate] (8.571 s) : 0, 8570705
section iast
Agent [baseline] (1.194 s) : 0, 1194080
Total [baseline] (9.002 s) : 0, 9001975
Agent [candidate] (1.2 s) : 0, 1199979
Total [candidate] (9.026 s) : 0, 9025900
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.199 s) : 0, 1198702
Total [baseline] (9.007 s) : 0, 9007188
Agent [candidate] (1.204 s) : 0, 1204471
Total [candidate] (9.011 s) : 0, 9011013
section iast_TELEMETRY_OFF
Agent [baseline] (1.202 s) : 0, 1202288
Total [baseline] (8.998 s) : 0, 8997675
Agent [candidate] (1.197 s) : 0, 1196501
Total [candidate] (8.989 s) : 0, 8989317
gantt
title insecure-bank - break down per module: candidate=1.33.0-SNAPSHOT~299a865fb0, baseline=1.33.0-SNAPSHOT~8a3889a6aa
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (673.007 ms) : 0, 673007
BytebuddyAgent [candidate] (673.797 ms) : 0, 673797
GlobalTracer [baseline] (309.249 ms) : 0, 309249
GlobalTracer [candidate] (309.771 ms) : 0, 309771
AppSec [baseline] (49.459 ms) : 0, 49459
AppSec [candidate] (49.472 ms) : 0, 49472
Remote Config [baseline] (662.848 µs) : 0, 663
Remote Config [candidate] (655.557 µs) : 0, 656
Telemetry [baseline] (7.628 ms) : 0, 7628
Telemetry [candidate] (7.601 ms) : 0, 7601
section iast
BytebuddyAgent [baseline] (792.606 ms) : 0, 792606
BytebuddyAgent [candidate] (794.784 ms) : 0, 794784
GlobalTracer [baseline] (287.257 ms) : 0, 287257
GlobalTracer [candidate] (288.65 ms) : 0, 288650
AppSec [baseline] (50.151 ms) : 0, 50151
AppSec [candidate] (49.506 ms) : 0, 49506
IAST [baseline] (21.84 ms) : 0, 21840
IAST [candidate] (23.82 ms) : 0, 23820
Remote Config [baseline] (588.824 µs) : 0, 589
Remote Config [candidate] (576.638 µs) : 0, 577
Telemetry [baseline] (7.425 ms) : 0, 7425
Telemetry [candidate] (8.187 ms) : 0, 8187
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (795.267 ms) : 0, 795267
BytebuddyAgent [candidate] (798.542 ms) : 0, 798542
GlobalTracer [baseline] (288.193 ms) : 0, 288193
GlobalTracer [candidate] (289.501 ms) : 0, 289501
AppSec [baseline] (50.099 ms) : 0, 50099
AppSec [candidate] (50.994 ms) : 0, 50994
IAST [baseline] (23.527 ms) : 0, 23527
IAST [candidate] (22.039 ms) : 0, 22039
Remote Config [baseline] (585.879 µs) : 0, 586
Remote Config [candidate] (582.105 µs) : 0, 582
Telemetry [baseline] (6.619 ms) : 0, 6619
Telemetry [candidate] (8.158 ms) : 0, 8158
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (796.815 ms) : 0, 796815
BytebuddyAgent [candidate] (792.249 ms) : 0, 792249
GlobalTracer [baseline] (289.739 ms) : 0, 289739
GlobalTracer [candidate] (288.446 ms) : 0, 288446
AppSec [baseline] (49.891 ms) : 0, 49891
AppSec [candidate] (50.483 ms) : 0, 50483
IAST [baseline] (24.074 ms) : 0, 24074
IAST [candidate] (22.399 ms) : 0, 22399
Remote Config [baseline] (594.111 µs) : 0, 594
Remote Config [candidate] (581.084 µs) : 0, 581
Telemetry [baseline] (6.596 ms) : 0, 6596
Telemetry [candidate] (8.053 ms) : 0, 8053
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.33.0-SNAPSHOT~299a865fb0, baseline=1.33.0-SNAPSHOT~8a3889a6aa
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.078 s) : 0, 1077585
Total [baseline] (10.396 s) : 0, 10395778
Agent [candidate] (1.075 s) : 0, 1075336
Total [candidate] (10.464 s) : 0, 10464272
section appsec
Agent [baseline] (1.206 s) : 0, 1206207
Total [baseline] (10.489 s) : 0, 10488576
Agent [candidate] (1.207 s) : 0, 1206857
Total [candidate] (10.536 s) : 0, 10536192
section iast
Agent [baseline] (1.207 s) : 0, 1206943
Total [baseline] (10.807 s) : 0, 10806537
Agent [candidate] (1.21 s) : 0, 1209949
Total [candidate] (10.873 s) : 0, 10872979
section profiling
Agent [baseline] (1.275 s) : 0, 1275038
Total [baseline] (10.691 s) : 0, 10691327
Agent [candidate] (1.286 s) : 0, 1286265
Total [candidate] (10.636 s) : 0, 10636288
gantt
title petclinic - break down per module: candidate=1.33.0-SNAPSHOT~299a865fb0, baseline=1.33.0-SNAPSHOT~8a3889a6aa
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (675.299 ms) : 0, 675299
BytebuddyAgent [candidate] (673.284 ms) : 0, 673284
GlobalTracer [baseline] (309.946 ms) : 0, 309946
GlobalTracer [candidate] (309.923 ms) : 0, 309923
AppSec [baseline] (49.513 ms) : 0, 49513
AppSec [candidate] (49.637 ms) : 0, 49637
Remote Config [baseline] (668.594 µs) : 0, 669
Remote Config [candidate] (656.064 µs) : 0, 656
Telemetry [baseline] (7.647 ms) : 0, 7647
Telemetry [candidate] (7.551 ms) : 0, 7551
section appsec
BytebuddyAgent [baseline] (701.422 ms) : 0, 701422
BytebuddyAgent [candidate] (700.399 ms) : 0, 700399
GlobalTracer [baseline] (293.236 ms) : 0, 293236
GlobalTracer [candidate] (293.78 ms) : 0, 293780
AppSec [baseline] (149.81 ms) : 0, 149810
AppSec [candidate] (150.778 ms) : 0, 150778
IAST [baseline] (18.984 ms) : 0, 18984
IAST [candidate] (19.067 ms) : 0, 19067
Remote Config [baseline] (609.197 µs) : 0, 609
Remote Config [candidate] (613.049 µs) : 0, 613
Telemetry [baseline] (7.51 ms) : 0, 7510
Telemetry [candidate] (7.51 ms) : 0, 7510
section iast
BytebuddyAgent [baseline] (800.679 ms) : 0, 800679
BytebuddyAgent [candidate] (802.853 ms) : 0, 802853
GlobalTracer [baseline] (289.893 ms) : 0, 289893
GlobalTracer [candidate] (291.334 ms) : 0, 291334
AppSec [baseline] (50.251 ms) : 0, 50251
AppSec [candidate] (52.683 ms) : 0, 52683
IAST [baseline] (23.669 ms) : 0, 23669
IAST [candidate] (21.255 ms) : 0, 21255
Remote Config [baseline] (565.01 µs) : 0, 565
Remote Config [candidate] (566.166 µs) : 0, 566
Telemetry [baseline] (7.287 ms) : 0, 7287
Telemetry [candidate] (6.609 ms) : 0, 6609
section profiling
BytebuddyAgent [baseline] (681.182 ms) : 0, 681182
BytebuddyAgent [candidate] (687.08 ms) : 0, 687080
GlobalTracer [baseline] (382.4 ms) : 0, 382400
GlobalTracer [candidate] (385.667 ms) : 0, 385667
AppSec [baseline] (50.535 ms) : 0, 50535
AppSec [candidate] (50.808 ms) : 0, 50808
Remote Config [baseline] (743.055 µs) : 0, 743
Remote Config [candidate] (732.443 µs) : 0, 732
Telemetry [baseline] (7.511 ms) : 0, 7511
Telemetry [candidate] (7.568 ms) : 0, 7568
ProfilingAgent [baseline] (96.019 ms) : 0, 96019
ProfilingAgent [candidate] (97.145 ms) : 0, 97145
Profiling [baseline] (96.044 ms) : 0, 96044
Profiling [candidate] (97.169 ms) : 0, 97169
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 17 unstable metrics. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.33.0-SNAPSHOT~299a865fb0, baseline=1.33.0-SNAPSHOT~8a3889a6aa
dateFormat X
axisFormat %s
section baseline
no_agent (368.281 µs) : 347, 389
. : milestone, 368,
iast (467.917 µs) : 447, 489
. : milestone, 468,
iast_FULL (537.715 µs) : 516, 559
. : milestone, 538,
iast_GLOBAL (489.839 µs) : 469, 511
. : milestone, 490,
iast_HARDCODED_SECRET_DISABLED (475.873 µs) : 455, 497
. : milestone, 476,
iast_INACTIVE (444.117 µs) : 423, 465
. : milestone, 444,
iast_TELEMETRY_OFF (462.977 µs) : 443, 483
. : milestone, 463,
tracing (440.639 µs) : 420, 462
. : milestone, 441,
section candidate
no_agent (363.796 µs) : 344, 383
. : milestone, 364,
iast (470.972 µs) : 449, 493
. : milestone, 471,
iast_FULL (532.546 µs) : 511, 554
. : milestone, 533,
iast_GLOBAL (494.461 µs) : 473, 516
. : milestone, 494,
iast_HARDCODED_SECRET_DISABLED (466.768 µs) : 446, 487
. : milestone, 467,
iast_INACTIVE (447.248 µs) : 426, 469
. : milestone, 447,
iast_TELEMETRY_OFF (462.756 µs) : 442, 483
. : milestone, 463,
tracing (434.27 µs) : 414, 454
. : milestone, 434,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.33.0-SNAPSHOT~299a865fb0, baseline=1.33.0-SNAPSHOT~8a3889a6aa
dateFormat X
axisFormat %s
section baseline
no_agent (1.344 ms) : 1324, 1364
. : milestone, 1344,
appsec (1.732 ms) : 1708, 1757
. : milestone, 1732,
appsec_no_iast (1.73 ms) : 1707, 1754
. : milestone, 1730,
iast (1.501 ms) : 1479, 1523
. : milestone, 1501,
profiling (1.549 ms) : 1524, 1575
. : milestone, 1549,
tracing (1.489 ms) : 1465, 1513
. : milestone, 1489,
section candidate
no_agent (1.342 ms) : 1322, 1361
. : milestone, 1342,
appsec (1.718 ms) : 1694, 1743
. : milestone, 1718,
appsec_no_iast (1.726 ms) : 1702, 1750
. : milestone, 1726,
iast (1.497 ms) : 1475, 1519
. : milestone, 1497,
profiling (1.513 ms) : 1488, 1539
. : milestone, 1513,
tracing (1.475 ms) : 1451, 1499
. : milestone, 1475,
|
dougqh
approved these changes
Apr 8, 2024
| if (duplicated.test(vulnerability)) { | ||
| return; | ||
| } | ||
| noDedupReport(span, vulnerability); |
Member
There was a problem hiding this comment.
Can we move this information to the vulnerability metadata? (e.g. a flag in the vulnerability that specifies if it requires deduplication). This way we remove the extra method and it's easier to check which vulnerabilities require no dedup.
Member
Author
There was a problem hiding this comment.
Thanks for the advice!
manuel-alvarez-alvarez
approved these changes
Apr 15, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
Motivation
If several apps are deployed in the same server only the first one session rewriting vulnerability find will be reported
Additional Notes
Jira ticket: APPSEC-52434