Compute an IP risk score and the factors that contributed to it.
The score is a capped weighted sum of network-type flags (Tor, VPN, proxy,
hosting), impossible-travel detection, AI-agent attribution, suspicious RDAP
registrants, and changes relative to the device's most recent country or ASN.
Parameters
input: ReputationInput
Current enrichment signals plus recent device IP history.
enabled: boolean
When false, risk scoring is disabled and the function returns zero risk.
Returns {factors:string[];score:number}
Risk score in [0, 100] plus a list of factor identifiers that fired.
Compute an IP risk score and the factors that contributed to it.
The score is a capped weighted sum of network-type flags (Tor, VPN, proxy, hosting), impossible-travel detection, AI-agent attribution, suspicious RDAP registrants, and changes relative to the device's most recent country or ASN.