Nœuds — Risque adaptatif


Signaux contextuels (appareil, géolocalisation, score composite) pour de l’authentification adaptative, dans le cadre d’un graphe d’authentification.

DeviceFingerprintNode — compare l’empreinte de l’appareil (en-tête X-Device-Fingerprint ou shared state) aux appareils déjà connus de l’utilisateur.

PropriétéTypeDéfaut
autoRegisterbooleanfalse

Outcomes : recognized / new / unknown.

GeoLocationDecisionNode — décide selon la géolocalisation IP, avec une option de détection de vélocité (déplacements rapprochés dans le temps).

PropriétéTypeDéfaut
allowedCountriesstring""
blockedCountriesstring""
geoApiEndpointstringendpoint par défaut du service de géolocalisation
blockUnknownGeobooleanfalse
velocityCheckEnabledbooleanfalse
velocityWindowMinutesint60

Outcomes : allowed / blocked / suspicious.

ImpossibleTravelNode — calcule la distance (formule de Haversine) entre deux localisations successives et la compare à une vitesse maximale plausible.

PropriétéTypeDéfaut
maxSpeedKmhint900
minTimeDifferenceMinutesint5

Outcomes : true / false (true = déplacement physiquement impossible détecté).

RiskScoreNode — score composite (0–100) basé sur six signaux : horaires inhabituels, user-agent suspect, appareil inconnu, tentatives excessives, IP inconnue, géolocalisation inconnue.

PropriétéTypeDéfaut
lowThresholdint30
highThresholdint70
offHoursWeightint20
suspiciousUserAgentWeightint25
unknownDeviceWeightint15
attemptsThresholdint3
excessiveAttemptsWeightint30
unknownIpWeightint10
unknownGeoWeightint10

Outcomes : low / medium / high.

Modifier cette page sur GitHub