C# Class Simulator.SimulatedLoginAttemptGenerator

This class generates simulated login attempts to be sent to the StopGuessing algorithms by the simulator
Afficher le fichier Open project: Microsoft/StopGuessing Class Usage Examples

Méthodes publiques

Свойство Type Description
ScheduledBenignAttempts SortedSet

Méthodes publiques

Méthode Description
AddTypoToPassword ( string originalPassword ) : string

Add a typo to a password for simulating user typo errors

BenignLoginAttempt ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt

Get a benign login attempt to simulate

MaliciousAttemptToSantiizeIpViaAValidLogin ( IPAddress ipAddressToSanitizeThroughLogin ) : SimulatedLoginAttempt

Attacker login with correct accounts he has, trying to fool our service into thinking his IP is benign

MaliciousLoginAttemptBreadthFirst ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution

MaliciousLoginAttemptBreadthFirstAvoidMakingPopular ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution

MaliciousLoginAttemptWeighted ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution

SimulatedLoginAttemptGenerator ( ExperimentalConfiguration experimentalConfiguration, SimulatedAccounts simAccounts, IpPool ipPool, SimulatedPasswords simPasswords ) : System

The attempt generator needs to know about the experimental configuration and have access to the sets of simulated accounts, IP addresses, and simulated passwords.

Method Details

AddTypoToPassword() public static méthode

Add a typo to a password for simulating user typo errors
public static AddTypoToPassword ( string originalPassword ) : string
originalPassword string The original password to add a typo to
Résultat string

BenignLoginAttempt() public méthode

Get a benign login attempt to simulate
public BenignLoginAttempt ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt
eventTimeUtc System.DateTime
Résultat SimulatedLoginAttempt

MaliciousAttemptToSantiizeIpViaAValidLogin() public méthode

Attacker login with correct accounts he has, trying to fool our service into thinking his IP is benign
public MaliciousAttemptToSantiizeIpViaAValidLogin ( IPAddress ipAddressToSanitizeThroughLogin ) : SimulatedLoginAttempt
ipAddressToSanitizeThroughLogin System.Net.IPAddress
Résultat SimulatedLoginAttempt

MaliciousLoginAttemptBreadthFirst() public méthode

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution
public MaliciousLoginAttemptBreadthFirst ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt
eventTimeUtc System.DateTime
Résultat SimulatedLoginAttempt

MaliciousLoginAttemptBreadthFirstAvoidMakingPopular() public méthode

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution
public MaliciousLoginAttemptBreadthFirstAvoidMakingPopular ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt
eventTimeUtc System.DateTime
Résultat SimulatedLoginAttempt

MaliciousLoginAttemptWeighted() public méthode

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution
public MaliciousLoginAttemptWeighted ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt
eventTimeUtc System.DateTime
Résultat SimulatedLoginAttempt

SimulatedLoginAttemptGenerator() public méthode

The attempt generator needs to know about the experimental configuration and have access to the sets of simulated accounts, IP addresses, and simulated passwords.
public SimulatedLoginAttemptGenerator ( ExperimentalConfiguration experimentalConfiguration, SimulatedAccounts simAccounts, IpPool ipPool, SimulatedPasswords simPasswords ) : System
experimentalConfiguration ExperimentalConfiguration
simAccounts SimulatedAccounts
ipPool IpPool
simPasswords SimulatedPasswords
Résultat System

Property Details

ScheduledBenignAttempts public_oe property

public SortedSet ScheduledBenignAttempts
Résultat SortedSet