Hi, I am working on generating the random graph and I found some logical issues with the random graph generation design (maybe).
- First, I think the
add_leak_neighbors_vulnerability function in generate_network.py should not return library directly. Since it is a global dictionary, using it to assign the vulnerability will make all nodes share the same vulnerability outcomes which is not reasonable. It can be fixed by return return copy.deepcopy(library)
- Here the nodes except the entry node are iteratively assigned with vulnerabilities and services. However, some nodes may be assigned empty services before their corresponding access passwords are generated in the
assigned_passwords. I fix this issue simply by repeating the loop.
I am not familiar with network attacks, so would it be convenient for you to check whether the editions are right? Thx a lot.
Hi, I am working on generating the random graph and I found some logical issues with the random graph generation design (maybe).
add_leak_neighbors_vulnerabilityfunction in generate_network.py should not returnlibrarydirectly. Since it is a global dictionary, using it to assign the vulnerability will make all nodes share the same vulnerability outcomes which is not reasonable. It can be fixed by returnreturn copy.deepcopy(library)assigned_passwords. I fix this issue simply by repeating the loop.I am not familiar with network attacks, so would it be convenient for you to check whether the editions are right? Thx a lot.