Scores & probabilities

Prev Next

Darwinium gives scores and probabilities to form a risk based assessment. Rule sets and the decision strategy all score on the same scale, so you can compare them and set thresholds the same way everywhere.

How scores work

Score range from -1000 (risk, red) through 0 (neutral) to +1000 (trust, green)

Where scores are stored

  • outcome[CHAMPION].models.score['step_name.model_name']. One score for each rule set or machine learning model run in a step, keyed by step name and model name.
  • outcome[CHAMPION].decision_strategy.score. The decision strategy's score. The strategy runs last in a step, so its rules can use every other score.
  • outcome[CHAMPION].journey_score. The journey model's score for the journey this event belongs to.

Rule sets and machine learning models write to models.score, and the decision strategy reads those scores with modelScore and writes decision_strategy.score

Each score, and each rule's contribution to it, shows in the Event view, so investigators can see why an event scored the way it did.

Use a score in a rule

modelScore('model_name') reads a model's score in a rule condition without needing to write out the full attribute or key it on step name. This lets a rule set or the decision strategy act on another model's verdict, for example to catch any event a rule set scored -800 or lower:

modelScore('ato_rules') <= -800

In a rule, modelScore reads the model run in the same step. The model must run before the rule set that reads it. The decision strategy always runs last, so it can read any model. See Models & scores for how models are scheduled.

Scores hard limits

Darwinium enforces these:

  • Range: a rule set or decision strategy score is always between -1000 and +1000. Anything beyond is capped at the end of the range.
  • Cap applied last: a rule set adds up the scores of every rule that fired, then caps the total once. Individual rules aren't capped, so a single rule can score -1500.
  • Decimal numbers: scores from rulesets are usually integer valued from convention, but the attribute itself permits floats. models.score, decision_strategy.score and journey_score are stored with 7 significant digits.
  • Machine learning models: their output is written to models.score as-is and isn't capped. Most output a probability between 0 and 1 (covered below).

Three rules fire: -1500, +700 and -400. Added up they total -1200, then the cap gives -1000

Because the cap comes last, a rule scored beyond ±1000 keeps its full weight against the other rules that fire with it. In this example the +700 can't pull the score back out of the cap.

Scores conventions

These aren't enforced, but we follow them across Darwinium and recommend them:

  • Sign: negative means risk, positive means trust, and 0 is neutral. The further a score is from 0, the stronger the evidence.
  • Whole numbers for rules: give each rule a whole-number score, for example -200 for a risky signal.
  • Rules within -2000 to +2000: go beyond ±1000 only when one rule should outweigh the others, as in the example above. Past ±2000, a single rule holds the score at the cap almost whatever else fires.
  • A positive bias first: there are often 'more' risk rules, so a rule set can reach the -1000 cap quickly, and past that point a very risky event scores the same as a merely risky one. A first rule that fires on every event and adds a positive score, for example +300, leaves risk rules more room. Teams often name it ALWAYS or BIAS. The trade-off is that a clean event now scores +300 rather than 0, so set your thresholds with the bias in mind.

Probabilities

A probability runs from 0 to 1 and measures how likely the thing in its name is. For example, profiling.agentic_ai.agent_probability at 0.9 means the browser is very likely being controlled by an AI agent.

Probability scale from 0 (no evidence) through 0.5 (inconclusive) to 1 (strongest evidence), with 0.9 marked as very likely an AI agent

  • profiling.agentic_ai.agent_probability - the browser is being controlled by an AI agent.
  • profiling.vpn_probability - the connection uses a VPN.
  • profiling.proxy_probability - the connection uses a proxy.
  • profiling.private_relay_probability - the device uses a private relay service, such as iCloud Private Relay.

A probability doesn't follow the score sign convention. For example a 'high' VPN probability may point to more risk.

To bring one into a score, write a rule on the probability, for example profiling.vpn_probability > 0.7, and give that rule a negative score.

Machine learning models you run in Darwinium usually output a probability too, stored in models.score alongside rule set scores. Check a model's range before you set a threshold on it: modelScore('my_model') <= -800 never fires on a model that outputs 0 to 1. Its direction depends on how it was trained, so a model trained to predict fraud gives high values to risky events.

.