Zum Inhalt springen
Prototyp pruefen

Context Risk Engine (Spec)

This specification defines the Context Risk Engine (CRE): how it correlates multiple signals into compound risk scores, the scoring model, temporal/context multipliers, and decision thresholds.

Audience: Detection/ML engineers, security auditors.


In-ScopeOut-of-Scope
Risk scoring model (base + multipliers)Individual detector implementation
Temporal correlation windowsEvent persistence and delivery
Context multiplier definitionsPolicy hierarchy and conflict resolution
Decision thresholds and actionsCloud Enrichment internals


The compound risk score is computed from three factors:

Each individual signal carries an inherent danger rating.

Signal TypeBase ScoreSource
Call from unknown number15Call Monitor
Call from known fraud database80Call Monitor + Cloud
Urgency language detected40ML NLP (Stage 2)
App installation (sideload)35App Monitor
App installation (official store)5App Monitor
Remote access app detected60App Monitor
Banking app opened10App Monitor
Phishing URL detected70Network Monitor
Unknown HID device25System Monitor

When multiple signals occur within the same time window, their risk scores are multiplied, not added. This reflects the exponentially increased danger of simultaneous threat indicators.

Time WindowMultiplierRationale
0–2 minutes2.0×Short-window correlation (e.g., call + app install within 2 minutes)
2–10 minutes1.5×Medium-window correlation
10–60 minutes1.2×Long-window correlation (multi-hour attack progression)

Specific signal combinations are classified as extra dangerous, receiving additional multipliers.

Signal CombinationContext MultiplierRationale
Active call + remote access app install3.0×Classic tech-support scam pattern
Active call + banking app opened2.5×Bank impersonation pattern
Sideload + accessibility permission request2.5×Malware installation pattern
Unknown call + urgency language + transfer attempt3.0×Financial fraud pattern

Compound Risk ScoreActionGuardian Notification
0–29Allow (logged, no visible intervention)No
30–69Warn (user sees explanation + decision prompt)Optional (configurable)
70–100Block (automatic intervention)Yes (immediate)

Current workspace note: the prototype policy path currently uses simpler thresholds and does not implement the full documented target model on this page.

ActionUser ExperienceAudit
AllowNo visible interventionEvent logged with full context
WarnUser sees context explanation + recommendation. User can proceed or abort.Event logged with user decision
BlockAutomatic intervention (app install stopped, permission denied, connection blocked)Event logged. Guardian notified with timeline.

target_compound_score = Σ(base_scores) × temporal_multiplier × context_multiplier

Where:

  • Σ(base_scores) = sum of all active signal base scores in the current evaluation window
  • temporal_multiplier = multiplier based on time proximity of signals (≥ 1.0)
  • context_multiplier = multiplier for known dangerous combinations (≥ 1.0)

The compound score is clamped to the range [0, 100].

Current workspace note: the implemented prototype context engine is currently additive and does not yet apply the documented temporal/context multipliers.


Scenario A: Call + Remote Access Install (Tech-Support Scam)

Abschnitt betitelt „Scenario A: Call + Remote Access Install (Tech-Support Scam)“
TimeEventSignal ScoreRunning CompoundAction
T+0sIncoming call from unknown numberLowLowAllow
T+30sUrgency language detected in call contextMediumMediumAllow
T+90sAnyDesk installation attempted during active callHighCritical (temporal × context multiplier)Block + Guardian Alert

Scenario B: Call + Banking Action (Bank Impersonation)

Abschnitt betitelt „Scenario B: Call + Banking Action (Bank Impersonation)“
TimeEventSignal ScoreRunning CompoundAction
T+0sIncoming call from spoofed bank numberLowLowAllow
T+45sBanking app opened during callMediumMediumAllow
T+120sUnusually high transfer amount initiatedHighVery High (temporal × context multiplier)Warn + Context Explanation

Scenario C: Sideload + Accessibility + Unknown Call

Abschnitt betitelt „Scenario C: Sideload + Accessibility + Unknown Call“
TimeEventSignal ScoreRunning CompoundAction
T+0sSideloaded app installedMediumMediumAllow
T+10sApp requests accessibility permissionHighHigh (context multiplier: sideload + accessibility)Warn
T+60sIncoming call from unknown numberMedium → CriticalCritical (three-signal compound)Block + Disable App + Guardian Alert

ComponentTargetStatus
Signal ingestion → base score< 10 msTarget only
Temporal correlation evaluation< 5 msTarget only
Context multiplier lookup< 1 msTarget only
Total CRE evaluation< 20 msTarget only

FailureImpactMitigation
Signal source unavailableIncomplete compound scoreCRE evaluates available signals only. Reduced correlation but no false silence.
Temporal window missedLate signal not correlatedConfigurable window extension. Late signals trigger re-evaluation.
Context multiplier misconfiguredOver-blocking or under-blockingPolicy Engine validates multiplier ranges. Out-of-range values rejected.
CRE process crashNo compound scoringSignals fall through to Policy Engine with individual scores. Fail-open for allow, fail-closed for high-confidence threats.