mal-lang / coreLang

A probabilistic attack simulation language for the (abstract) IT domain
https://mal-lang.org/coreLang/
Other
10 stars 12 forks source link

Improve Credentials guessCredentials Functionality #79

Closed andrewbwm closed 2 years ago

andrewbwm commented 2 years ago

An attacker can attempt to guess a set of credentials if the NotGuessable defence on the asset is disabled. The likelihood of succeeding in guessing them is based on the SecurityAwareness defence of the User associated with the Identity that uses the Credentials to represent that more security aware people tend to ensure they use stronger credentials, while more oblivious individuals are more careless and their credentials tend to be weaker and easier to guess.

However, this implementation means that if the Credentials are not associated with an Identity and/or the Identity to which the Credentials belong is not associated with a User we lack a SecurityAwareness defence to determine the strength of the credentials.

This pull request improves this behaviour by simply assuming that if the Identity or User in the Credentials -> Identity -> User chain are missing the Credendials are weak. This worst case scenario assumption means that models that want to represent the attacker guessing credentials, but in which the strength of those credentials is not particularly relevant, are simpler to implement.