Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3 show a summary of the attack graph for a consequence in the web UI #18

Merged
Show file tree
Hide file tree
Changes from 41 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
ac8149d
(issue: #1) attack path algorithm initial implementation
panositi Apr 3, 2023
97da30c
#3 initial get attack path threats calculation
panositi Apr 4, 2023
33286aa
#3 basic fetch and display attack path threats working
panositi Apr 5, 2023
fb93e48
return distances to ms accordion
panositi Apr 5, 2023
d8a104a
#3: Add spinner for "Calculate Attack Path" button
kenmeacham Apr 5, 2023
5a6733e
Merge branch '3-show-a-summary-of-the-attack-graph-for-a-consequence-…
panositi Apr 5, 2023
7d7225a
#3: Add missing hoverThreat function
kenmeacham Apr 17, 2023
58b6ea6
#3: Fix styling for "Attack path threats" collapsible panel
kenmeacham Apr 17, 2023
52e3e99
Merge branch '3-show-a-summary-of-the-attack-graph-for-a-consequence-…
panositi Apr 17, 2023
5643cbe
#3 modify threats panel to display distance
panositi Apr 18, 2023
0ea6be2
sort attack threats, fix default sorting
panositi Apr 18, 2023
0c75075
#3: Check if we have attackPathThreats defined, prior to locating the…
kenmeacham Apr 20, 2023
841436d
#1 copy currnet_path between nested iterations
panositi Apr 20, 2023
c2858ee
#3 implement basic attack path threat cache
panositi Apr 21, 2023
11cb2fa
#3 clear attack path cache on validation/risk calculation
panositi Apr 21, 2023
1efc1d7
#3 disable attack path button when data is fetched
panositi Apr 21, 2023
7816829
#3 add code-fork icon for the attack path button
panositi Apr 21, 2023
10082cf
Merge branch '1-implement-the-attack-graph-algorithm' into 3-show-a-s…
panositi Apr 24, 2023
b33715d
#3 addressing revision comments
panositi Apr 28, 2023
bab7379
#3 addressing code review issues
panositi May 31, 2023
208975d
#3 refactoring code, addressing sonarlint issues
panositi Jun 5, 2023
d25f2cb
Merge remote-tracking branch 'origin/dev' into 3-show-a-summary-of-th…
scp93ch Jun 21, 2023
c868c8b
#3 remove icon from attack path button, merge with dev
panositi Jun 22, 2023
ff68813
#3 change AttackTree object initialistion for FUTURE risk mode
panositi Jun 22, 2023
74db62c
#3 add risksValid and riskCalculationMode in ModelDB
panositi Jun 27, 2023
0565532
#3: Ensure that the ModelDB riskCalculationMode and risksValid flags …
kenmeacham Jun 28, 2023
95bfef4
#3 check last risk calculation mode, no risk re-calculation
panositi Jun 28, 2023
0921aea
Merge branch '3-show-a-summary-of-the-attack-graph-for-a-consequence-…
panositi Jun 28, 2023
70765ef
#3, #48: Change menu options to save risk calc by default. Reorder ot…
kenmeacham Jun 28, 2023
5fc3655
#3 refactor check risk calculation mode
panositi Jun 28, 2023
375b4d7
#3 read riskMode parameter from UI
panositi Jun 28, 2023
85cf1c1
#3 adjust default params for threatgraph
panositi Jun 29, 2023
b5636f9
Merge branch '3-show-a-summary-of-the-attack-graph-for-a-consequence-…
kenmeacham Jun 29, 2023
d216b22
Merge branch '3-show-a-summary-of-the-attack-graph-for-a-consequence-…
panositi Jun 29, 2023
6c51cf4
#3 blocking button if riskmode is not defined
panositi Jun 30, 2023
65eb637
#51, #3: Ensure that risksValid and riskCalculationMode updates are n…
kenmeacham Jun 30, 2023
466d9f6
#3 add tooltip on threat graph button
panositi Jun 30, 2023
5dfe1a9
Merge branch '3-show-a-summary-of-the-attack-graph-for-a-consequence-…
panositi Jun 30, 2023
6fa21dc
#3: Ensure that loadingAttackPath flag is reset after error, to preve…
kenmeacham Jul 3, 2023
0f45097
#3, #49: Add riskCalculationMode to ModelDTO. Fix unit tests
kenmeacham Jul 3, 2023
6e5b3b9
Merge branch '3-show-a-summary-of-the-attack-graph-for-a-consequence-…
scp93ch Jul 4, 2023
2b82987
Formats new classes and organises imports (#3)
scp93ch Jul 5, 2023
5460ce6
Formats and organises imports (#3)
scp93ch Jul 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ dependencies {
compile('org.apache.jena:jena-tdb:3.14.0')
annotationProcessor('com.github.therapi:therapi-runtime-javadoc-scribe:0.12.0')
compile("net.lingala.zip4j:zip4j:2.10.0")
compile("com.bpodgursky:jbool_expressions:1.23")

//test dependencies
testCompile('org.springframework.boot:spring-boot-starter-test') {exclude group: "com.vaadin.external.google", module:"android-json"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ public ModelDB () {
protected String label;
@SerializedName("rdfs#comment")
protected String description;

@SerializedName("hasRisk")
private String risk;

private boolean risksValid;

private String riskCalculationMode;

//@SerializedName("http://www.w3.org/2002/07/owl#versionInfo")
private String versionInfo;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ public boolean calculateRiskLevels(RiskCalculationMode mode, boolean saveResults
* why the unit test fails, which will run in parallel with the risk calculator developments.
*/

// First, store the risk calc mode (FUTURE/CURRENT), to ensure this is returned in the results
model.setRiskCalculationMode(mode.toString());

// TODO: Remove prints
progress.updateProgress(0.1, "Creating maps");
createMaps();
Expand Down Expand Up @@ -1447,8 +1450,10 @@ private void calculateMisbehaviourRiskLevels() {
querier.store(ms, "system-inf");
}
}

if (worstRiskLevel != null) {
model.setRisk(worstRiskLevel.getUri());
model.setRisksValid(true); //ensure that flag is set for returning in the response
querier.store(model, "system-inf");
}

Expand Down
Loading