From 5bc918d98324a88c216e96fe8c690444b3a15c1b Mon Sep 17 00:00:00 2001 From: martiivGylden <martin.iversen@gyldendal.no> Date: Mon, 8 Apr 2024 17:10:37 +0200 Subject: [PATCH] Working on labeling for bowtie unstable, needs more fix --- components.py | 1 + dashBoard.py | 28 +++++++-- dashboardUtils.py | 41 ++++++++++++- diagramParser.py | 4 +- diagrams/Test4.csv | 141 +++++++++++++++++++++++++++++++++++++++++++++ dynamics.py | 14 +++-- matrices.py | 4 +- 7 files changed, 218 insertions(+), 15 deletions(-) create mode 100644 diagrams/Test4.csv diff --git a/components.py b/components.py index 4bb351f..44b0b95 100644 --- a/components.py +++ b/components.py @@ -75,6 +75,7 @@ class Diagram(): attacks : dict[Attack] dynamics : dict[DynamicComponent] metrics : dict[Metric] + erComponents : dict[str] def __init__(self) -> None: self.threats = {} diff --git a/dashBoard.py b/dashBoard.py index d00674e..d2549d7 100644 --- a/dashBoard.py +++ b/dashBoard.py @@ -8,6 +8,7 @@ import customtkinter from components import Diagram import diagramParser as parse +import dashboardUtils as utils def openFile(): fileName = filedialog.askopenfilename(initialdir= "/", @@ -106,7 +107,8 @@ def createMetrics(diagram: Diagram, frame, canvasWidth): s.configure('Test.TFrame', background='#51D88F',foreground="#1A323B", relief='raised') s.configure('Head.TLabel', background='#51D88F', foreground="#1A323B" ,font=('Helvetica', 20, 'bold')) s.configure('Test.TLabel', background='#51D88F', foreground="#1A323B" ,font=('Helvetica', 20)) - + s.configure('ListFrame.TFrame', background='white', foreground="#155E53") + s.configure('ListFrame.TLabel', background='white', foreground="#155E53", font=('Helvetica', 20, 'bold')) metrics = diagram.metrics.values() rowIndex = 0 @@ -151,15 +153,33 @@ def createMetrics(diagram: Diagram, frame, canvasWidth): ttk.Label(metricFrame, text= f"Metric Name: {metricName}", style="Test.TLabel").grid(row=1, column=0, sticky="nw") # First label = Metric id and description - ttk.Label(metricFrame, text= f"Metric value: {metricValue}", style="Test.TLabel", wraplength=0.5*canvasWidth).grid(row=2, column=0, sticky="nw") # First label = Metric id and description + ttk.Label(metricFrame, text= f"Metric value: {metricValue}", style="Test.TLabel", wraplength=0.3*canvasWidth).grid(row=2, column=0, sticky="nw") # First label = Metric id and description - ttk.Label(metricFrame, text = f"Number of associated components: {amountOFComponents}", style="Test.TLabel").grid(row=1, column=2, sticky="n") # Second label = Number of associated components in both diagrams + ttk.Label(metricFrame, text = f"Number of associated components: {amountOFComponents}", style="Test.TLabel").grid(row=1, column=1, sticky="n") # Second label = Number of associated components in both diagrams + + ttk.Label (metricFrame, text = f"Last update: {metricDate}", style="Test.TLabel").grid(row=2, column=1, sticky="e") # Third label = Last update of the metric - ttk.Label (metricFrame, text = f"Last update: {metricDate}", style="Test.TLabel").grid(row=2, column=2, sticky="e") # Third label = Last update of the metric for child in metricFrame.winfo_children(): child.grid_configure(padx=3, pady=3) + # Add 2 Frames, one withe Entity relationship components and one with bowtie components + erFrame = ttk.Frame(metricFrame, style='ListFrame.TFrame', height= 200, width=0.3*canvasWidth, padding=10) + erFrame.grid(row=3, column=0, sticky="nsew", rowspan=1, padx=10, pady=10) + ttk.Label(erFrame, text="Entity Relationship components", style="ListFrame.TLabel").grid(row=0, column=0, sticky="nw") + + erList = utils.createERLabel(erFrame, diagram.metrics[metricID], diagram) + for i in range(len(erList)): + erList[i].grid(row=i+1, column=0, sticky="nw") + + bowTieFrame = ttk.Frame(metricFrame, style='ListFrame.TFrame', height= 200, width=0.3*canvasWidth, padding=10) + bowTieFrame.grid(row=3, column=1, sticky="nsew", rowspan=1, padx=10, pady=10) + ttk.Label(bowTieFrame, text="BowTie components", style="ListFrame.TLabel").grid(row=0, column=0, sticky="nw") + + bowTieList = utils.createBowtieLabel(bowTieFrame, diagram.metrics[metricID], diagram) + for i in range(len(bowTieList)): + bowTieList[i].grid(row=i+1, column=0, sticky="nw") + return frame guiRoot = Tk() diff --git a/dashboardUtils.py b/dashboardUtils.py index 15d7b35..2ac386b 100644 --- a/dashboardUtils.py +++ b/dashboardUtils.py @@ -4,10 +4,49 @@ from tkinter import filedialog import ERFormatConstants as const -from components import Diagram +from components import * import diagramParser as parse +def createERLabel(top, metric: Metric, diagram: Diagram): + nameList = [] + labelList = [] + for i in metric.erID: + for j in diagram.dynamics.values(): + if j.type == "ER": + if i in j.associatedERComponents.keys(): + if j.associatedERComponents[i] in nameList: + pass + else: + nameList.append(j.associatedERComponents[i]) + else: + pass + for k in nameList: + label = ttk.Label(top, text= f"{k}") + labelList.append(label) + return labelList + +def createBowtieLabel(top, metric: Metric, diagram: Diagram): + nameList = [] + labelList = [] + for i in metric.bowtieID: + try: + nameList.append(diagram.threats[i].description) + except KeyError: + try: + nameList.append(diagram.consequences[i].description) + except KeyError: + try: + nameList.append(diagram.attacks[i].description) + except KeyError: + continue + + for k in nameList: + label = ttk.Label(top, text= f"{k}") + labelList.append(label) + + return labelList + def findMetrics(diagram, id:int, typeOfObject:str): relevantMetrics = [] relatedComponents = [] diff --git a/diagramParser.py b/diagramParser.py index 5ac8964..9e8e180 100644 --- a/diagramParser.py +++ b/diagramParser.py @@ -25,8 +25,10 @@ def parseDiagramFile(csvFile) -> component.Diagram: metrics, dynamics = parseDynamic(df, metrics, dynamics) metricsMatrix, metrics = matrix.parseTable(df, metrics, diagram) #Parse the table + + + return diagram - return diagram def parseThreats(df, threatDict): for i in range(len(df)): diff --git a/diagrams/Test4.csv b/diagrams/Test4.csv new file mode 100644 index 0000000..fea5c62 --- /dev/null +++ b/diagrams/Test4.csv @@ -0,0 +1,141 @@ +Id,Name,Shape Library,Page ID,Contained By,Group,Line Source,Line Destination,Source Arrow,Destination Arrow,Status,Text Area 1,Text Area 2,Text Area 3,Text Area 4,Text Area 5,Text Area 6,Text Area 7,Text Area 8,Text Area 9,Text Area 10,Text Area 11,Text Area 12,Text Area 13,Text Area 14,Text Area 15,Text Area 16,Text Area 17,Text Area 18,Text Area 19,Text Area 20,Text Area 21,Text Area 22,Text Area 23,Text Area 24,Text Area 25,Text Area 26,Text Area 27,Text Area 28,Text Area 29,Text Area 30,Text Area 31,Text Area 32,Text Area 33,Text Area 34,Text Area 35,Text Area 36,Text Area 37,Text Area 38,Text Area 39,Text Area 40,Text Area 41,Text Area 42,Text Area 43,Text Area 44,Text Area 45,Text Area 46,Text Area 47,Text Area 48,Text Area 49,Text Area 50,Text Area 51,Text Area 52,Text Area 53,Text Area 54,Text Area 55,Text Area 56,Text Area 57,Text Area 58,Text Area 59,Text Area 60,Text Area 61,Text Area 62,Text Area 63,Text Area 64,Text Area 65,Text Area 66,Text Area 67,Text Area 68,Text Area 69,Text Area 70,Text Area 71,Text Area 72,Text Area 73,Text Area 74,Text Area 75,Text Area 76,Text Area 77,Text Area 78,Text Area 79,Text Area 80,Text Area 81,Text Area 82,Text Area 83,Text Area 84,Text Area 85,Text Area 86,Text Area 87,Text Area 88,Text Area 89,Text Area 90,Text Area 91,Text Area 92,Text Area 93,Text Area 94,Text Area 95,Text Area 96,Text Area 97,Text Area 98,Text Area 99,Text Area 100,Text Area 101,Text Area 102,Text Area 103,Text Area 104,Text Area 105,Text Area 106,Text Area 107,Text Area 108,Text Area 109,Text Area 110,Text Area 111,Text Area 112,Text Area 113,Text Area 114,Text Area 115,Text Area 116,Text Area 117,Text Area 118,Text Area 119,Text Area 120,Text Area 121,Text Area 122,Text Area 123,Text Area 124,Text Area 125,Text Area 126,Text Area 127,Text Area 128,Text Area 129,Text Area 130,Text Area 131,Text Area 132,Text Area 133,Text Area 134,Text Area 135,Text Area 136,Text Area 137,Text Area 138,Text Area 139,Text Area 140,Text Area 141,Text Area 142,Text Area 143,Text Area 144,Text Area 145,Text Area 146,Text Area 147,Text Area 148,Text Area 149,Text Area 150,Text Area 151,Text Area 152,Text Area 153,Text Area 154,Text Area 155,Text Area 156,Text Area 157,Text Area 158,Text Area 159,Text Area 160,Text Area 161,Text Area 162,Text Area 163,Text Area 164,Text Area 165,Text Area 166,Text Area 167,Text Area 168,Comments,property 1 +1,Document,,,,,,,,,Draft,Thesis Bow-Tie and architecture,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +3,Entity,Entity Relationship,2,,,,,,,,Barrier,Only update to stable versions,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +4,Entity,Entity Relationship,2,,,,,,,,Barrier,Use dependabot to alert new versions,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +5,Entity,Entity Relationship,2,,,,,,,,Barrier,Create dev policy enforcing updates,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +6,Entity,Entity Relationship,2,,,,,,,,Barrier,Have inclusion criteria for dependencies,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +7,Entity,Entity Relationship,2,,,,,,,,Barrier,Scan packages prior to install,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +8,Entity,Entity Relationship,2,,,,,,,,Barrier,Dont install dependencies via terminal,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +9,Entity,Entity Relationship,2,,,,,,,,Barrier,Research lbrary before install,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +10,Entity,Entity Relationship,2,,,,,,,,Barrier,Have backup database ready ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +11,Entity,Entity Relationship,2,,,,,,,,Barrier,Response plan to terminate database,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +12,Entity,Entity Relationship,2,,,,,,,,Barrier,Have backup vendor ready,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +13,Entity,Entity Relationship,2,,,,,,,,Barrier,Inform vendor of dependencies used (SBOM),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +14,Entity,Entity Relationship,2,,,,,,,,Barrier,Monitor network and logs,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +15,Entity,Entity Relationship,2,,,,,,,,Barrier,Have response plan,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +16,Entity,Entity Relationship,2,,,,,,,,Barrier,Fork library,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +17,Entity,Entity Relationship,2,,,,,,,,Linked consequences,Css library injection,Http routing gets monitored,Database queries are monitored,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +18,Entity,Entity Relationship,2,,,,,,,,Linked threats,Static dependency,Vulnerable version,Malicious library,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +19,Entity,Entity Relationship,2,,,,,,,,Linked consequences,Css library injection,Http routing gets monitored,Database queries are monitored,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +20,Entity,Entity Relationship,2,,,,,,,,Linked consequences,Css library injection,Http routing gets monitored,Database queries are monitored,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +21,Entity,Entity Relationship,2,,,,,,,,Linked consequences,Css library injection,Http routing gets monitored,Database queries are monitored,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +22,Entity,Entity Relationship,2,,,,,,,,Risk,Using open source libraries for routing,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +23,Entity,Entity Relationship,2,,,,,,,,Open source attack,Type,Open source attack,Component,Field,Description,Field,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +24,Entity,Entity Relationship,2,,,,,,,,Git Repository,ID,2,Description,Field,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +25,Entity,Entity Relationship,2,,,,,,,,Frontend-web-application,ID,15,Description,Incident response web application,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +26,Entity,Entity Relationship,2,,,,,,,,Database,ID,3,Description,Database hosted on skyhigh,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +27,Entity,Entity Relationship,2,,,,,,,,Backend API,ID,5,Description,Incident response backend API,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +28,Phone,Google Cloud Platform 2018,2,,,,,,,,Warning receiver,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +29,Desktop,Google Cloud Platform 2018,2,,,,,,,,System manager,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +30,Entity,Entity Relationship,2,,,,,,,,SkyHiigh hosting,ID,6,Description,Skyhigh hosting provider,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +31,Users,Google Cloud Platform 2018,2,,,,,,,,Extenarl vendor,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +32,Entity,Entity Relationship,2,,,,,,,,Development environment,ID,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +33,Users,Google Cloud Platform 2018,2,,,,,,,,Users,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +34,Entity,Entity Relationship,2,,,,,,,,NPM,ID,10,Description,Produces application,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +35,Entity,Entity Relationship,2,,,,,,,,Bootstrap,ID,12,Description,CSS lib,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +36,Entity,Entity Relationship,2,,,,,,,,Emotion,ID,13,Description,CSS lib,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +37,Entity,Entity Relationship,2,,,,,,,,Web-vitals,ID,14,Description,OS log lib,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +38,Entity,Entity Relationship,2,,,,,,,,CORS,ID,11,Description,Routing lib,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +39,Entity,Entity Relationship,2,,,,,,,,Go mod,ID,4,Description,Go mod package manager,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +40,Entity,Entity Relationship,2,,,,,,,,Go-SQL,ID,9,Description,Database package,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +41,Entity,Entity Relationship,2,,,,,,,,Api-test,ID,8,Description,Test library,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +42,Entity,Entity Relationship,2,,,,,,,,Gorilla mux,ID,7,Description,Router library,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +43,Entity,Entity Relationship,2,,,,,,,,Finished application,ID,16,Description,Finished application interacting with end users,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +44,Entity,Entity Relationship,2,,,,,,,,Start,Supply chain begins,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +45,Entity,Entity Relationship,2,,,,,,,,End,Application is finished,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +46,Entity,Entity Relationship,2,,,,,,,,Dynamics,Type,ER,Description,Test,15,Anomalies in log file,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +47,Entity,Entity Relationship,2,,,,,,,,Generative AI tool,ChatGPT,Field,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +48,Entity,Entity Relationship,2,,,,,,,,Generative AI tool,Github Copilot,Field,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +49,Entity,Entity Relationship,2,,,,,,,,Dynamics,Type,ER,Description,Web application uses open source libraries to fullfill requirements,1,Development policy,2,Commit messages,3,NVD,10,OpenSSF scorecard score,11,Github score,12,Library update notes,13,Necessity for libraries,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +50,Entity,Entity Relationship,2,,,,,,,,Dynamics,Type,ER,Description,Test,4,Reliant files,5,NPM update log ,6 ,Package manager file,7,Functional requirements,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +51,Entity,Entity Relationship,2,,,,,,,,Dynamics,Type,ER,Description,Test,9,Documentation,15,Anomalies in log file,16 ,Response time for API,19,Time per query,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +52,Entity,Entity Relationship,2,,,,,,,,Dynamics,Type,ER,Description,Test,1,Development policy,2,Commit messages,12,Library update notes,10,OpenSSF scorecard score,11,Github score,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +53,Entity,Entity Relationship,2,,,,,,,,Dynamics,Type,ER,Description,Test,15,Anomalies in log file,20,Network traffic,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +54,Entity,Entity Relationship,2,,,,,,,,Dynamics,Type,ER,Description,Test,4,Reliant files,6 ,Package manager file,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +55,Entity,Entity Relationship,2,,,,,,,,Dynamics,Type,ER,Description,Test,15,Anomalies in log file,20,Network traffic,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +56,Entity,Entity Relationship,2,,,,,,,,Dynamics,Type,ER,Description,Test,15,Anomalies in log file,20,Network traffic,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +57,Entity,Entity Relationship,2,,,,,,,,Dynamics,Type,ER,Description,Test,19,Time per query,20,Network traffic,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +58,Threat dynamic,Entity Relationship,2,,,,,,,,Dynamics,Type,Threat,1,Development policy,2,Commit messages,3,NVD,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +59,Threat dynamic,Entity Relationship,2,,,,,,,,Dynamics,Type,Threat,4,Reliant files,5,NPM update log,3,NVD,6,Package manager file,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +60,Threat dynamic,Entity Relationship,2,,,,,,,,Dynamics,Type,Threat,3,NVD,7,Functional requirements,1,Development policy,15,Contributor score,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +61,Threat dynamic,Entity Relationship,2,,,,,,,,Dynamics,Type,Threat,3,NVD,1,Development policy,8,Search results,9,Documentation,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +62,Attack dynamic,Entity Relationship,2,,,,,,,,Dynamics,Type,Attack,10,OpenSSF scorecard,11,Github score,12,Update notes,13,Lib necessity,14,Lib popularity,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +63,Consequence dynamic,Entity Relationship,2,,,,,,,,Dynamics,Type,Consequence,15,Anomalies in log file,16,Response time for API,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +64,Consequence,Entity Relationship,2,,,,,,,,Consequence,ID,5,Description,Backend API or Front end application is being audited through libraries,Consequence,8,Affected components,"Backend API, Web application",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +65,Threat,Entity Relationship,2,,,,,,,,Threat,ID,1,Description,A new version of an open source library can contain malware,Threat source,Malicious contributor,Likelihood,4,Vulnerability,Combosquat attack,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +67,Threat,Entity Relationship,2,,,,,,,,Threat,ID,2,Description,Using locked versions of open source libraries,Threat source,Legacy code in library,Likelihood,6,Vulnerability,Legacy code attack,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +68,Threat,Entity Relationship,2,,,,,,,,Threat,ID,3,Description,Malware disguised as package,Threat source,Attacker creating package,Likelihood,2,Vulnerability,Package creation attack,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +69,Threat,Entity Relationship,2,,,,,,,,Threat,ID,4,Description,Installing package with name similar to intended package,Threat source,Attacker impersonating pacakge,Likelihood,6,Vulnerability,Typosquat attack,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +70,Consequence,Entity Relationship,2,,,,,,,,Consequence,ID,6,Description,Skyhiigh vendor drops application as it is vulnerable,Consequence,8,Affected components,Entire application,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +71,Consequence,Entity Relationship,2,,,,,,,,Consequence,ID,7,Description,Database queries are monitored,Consequence,8,Affected components,"Database, Backend API",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +72,Consequence dynamic,Entity Relationship,2,,,,,,,,Dynamics,Type,Consequence,17,SLA,18,Transparency,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +73,Consequence dynamic,Entity Relationship,2,,,,,,,,Dynamics,Type,Consequence,19,Time per query,20,Network traffic,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +74,Metric matrix,Tables,2,,,,,,,,ERID,Bowtie model ID,Metric ID,"7,8,9,4,11,12,13,14,10","1,3,4",1,"7,8,9,4,11,12,13,14,10",1,2,"10,11,12,13,14","1, 2,3,4",3,NVD,No results related to libraries,14.03.2024,Every 2 weeks,Search for exploits and vulnerabilities related to leveraged libraries,"10,15,4,5",2,4,Reliant files,6,12.02.2024,Monthly,Count the number dependants the OS library has in the codebase,"10,15",2,5,NPM update log,NPM update log shows no sign of injected malware,10.02.2024,Monthly,Inspect NPM build logs to ensure everything builds as intended and no anomalies are present,"10,15,4,5",2,6,Package manager file,Unchanged since last update,01.03.2024,Upon new releases,"Inspect the size of the package JSON file, does it contain new libraries?","10,15",3,7,Functional requirements ,3 functional requirements are reliant on open source packages ,05.03.2024,Every three weeks ,"Inspect functional requirements, how many requirements are reliant on open source libraries",ID,4,8,Search results,OS library is authentic,02.02.2024,Every three months,"Search for leveraged library, using the exact name from the package manager file, is the library the authentic one?","9,15",4,9,Documentation,Sufficent,03.03.2024,Every three months,"Inspect the documentation of leveraged packages, is the documentation of high enough quality","4,7,8,9,10,11,12,13,14",ID,10,OpenSSF scorecard score,OS packages have sufficent scores,02.02.2024,Every month ,Scan libraries using the openssf tool and report scores ,"4,7,8,9,10,11,12,13,14",ID,11,Github repository score,Average scores 4.2,01.02.2024,Weekly,Collect average score for the github repositories,"4,7,8,9,10,11,12,13,14",ID,12,Library update notes,The libraries have all representative update notes,17.12.2023,Every three months,"Inspect update notes of open source libraries, are they sufficent","10,11,12,13,14",ID,13,Necessity for libraries,7,01.01.2024,Every two months,"Analyze what kind of functionality libraries provide? Are they necessary, can standard lib provide the same functionality?",ID,ID,14,Popularity of library,Popular,03.02.2024,Every three months,Check amount of eyes watching and download for libraries,"2,4,6,3,5,15,10","3, 5",15,Anomalies in log file,No anomalies,04.05.2023,Every month,"Scan recent logs for anomalies, are there any unusual values and/or traffic in libraries","5,15",5,16,Response time for API,5 ms average for all endpoints,02.02.2024,Every week (On new update) ,"Test endpoints and record time, has it changed from last measurement",ID,6,17,Software level agreement,SLA indicates that vendor is reliable,05.01.2024,Every quarter,"Inspect SLA, what are vendor actions if API is compromised",ID,6,18,Transparency of vendor,Vendor has clear guidelines and actions for applications,04.03.2024,Every quarter,Inspect agreement with vendor what does it indicate.....,"3,5,15",7,19,Time per query,10 ms,28.11.2023,Every month,Run queries through fuzzy testing and record time per request ,"3,5",7,20,Network traffic,No anomalies detected,14.03.2024,Daily,Inspect network logs are there any unknown IP adresses,Metric name,Value,Measurement date,Frequency,Measurement guide,Development policy ,"Development policy states that if open source libraries should be leveraged, a case must be presented",12.03.2024,Every 6 months,"Read development policy, and determine how developers can use open source libraries.",Commit messages,Commit messages are sound and seem apprapriate,03.03.2024,Every 4 weeks,"Inspect commit messages related to software update, are they explanitory?",, +75,Line,,2,,,67,23,None,None,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +76,Line,,2,,,23,64,CFN ERD One Arrow,CFN ERD Many Arrow,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +77,Line,,2,,,23,71,CFN ERD One Arrow,CFN ERD Many Arrow,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +78,Line,,2,,,23,70,CFN ERD One Arrow,CFN ERD Many Arrow,,,,,,,,,,,,,,,,,,,,,,,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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +139,Line,,2,,,62,23,CFN ERD One Arrow,CFN ERD Many Arrow,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +140,Line,,2,,,63,76,CFN ERD One Arrow,CFN ERD Many Arrow,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +141,Line,,2,,,72,78,CFN ERD One Arrow,CFN ERD Many Arrow,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, +142,Line,,2,,,73,77,CFN ERD One Arrow,CFN ERD Many Arrow,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, \ No newline at end of file diff --git a/dynamics.py b/dynamics.py index 82d79f3..d0e8365 100644 --- a/dynamics.py +++ b/dynamics.py @@ -188,7 +188,7 @@ class ERDynamic(DynamicComponent): super().__init__(componentID) self.description = description # Description of the dynamic - self.associatedERComponents = [] # Associated ER component + self.associatedERComponents = {} # Associated ER component self.type = type def __str__(self) -> str: @@ -227,8 +227,10 @@ class ERDynamic(DynamicComponent): else: associatedComponentID = lineSource associatedComponent = df.iloc[df.index[df[const.Id] == associatedComponentID]] # Find the component associated with the line - - self.associatedERComponents.append(associatedComponent) # Add the associated component to the list of associated components + associatedComponentRegularID = associatedComponent[const.textArea3].item() # Find the ID of the associated component + associatedComponentName = associatedComponent[const.textArea1].item() # Find the description of the associated component + + self.associatedERComponents[associatedComponentRegularID] = associatedComponentName # Add the associated component to the list of associated components self.linkMetric(df, metricsDict) # Link the metrics to the ER dynamic component @@ -260,9 +262,9 @@ class ERDynamic(DynamicComponent): else: metric = metricsDict[metricID] - for i in range(len(self.associatedERComponents)): - erID = self.associatedERComponents[i][const.Id].item() - + for i in self.associatedERComponents.keys(): + erID = i + if checkDuplicate(metric.erID, erID): #* If the associated component is a duplicate continue metric.erID.append(erID) diff --git a/matrices.py b/matrices.py index ab8bae4..566b997 100644 --- a/matrices.py +++ b/matrices.py @@ -111,8 +111,6 @@ def fillMetricinfo(erID1: str, else: erID1 = erID1.split(",") erID1 = [eval(i) for i in erID1] # Parse ERID list to int - - print(erID1) if type(BowTieID1) == str: if "," in BowTieID1: # If the amount of associated bowtie IDs is only one or none @@ -131,7 +129,7 @@ def fillMetricinfo(erID1: str, BowTieID1 = [BowTieID1] # Updates the metric with the information found in the dynamics matrix - metric.erID = erID1 # Should be string + #! metric.erID = erID1 # Should be string metric.bowtieID = BowTieID1 # is list and should be i guess metric.name = MetricName1 # Should be string metric.value = Value1 # Should be string -- GitLab