kri-engineer

star 0

Key Risk Indicator engine builder for CyberRadar. Designs KRI definitions with formula builder, threshold configuration (green/amber/red), automated alerting on breach, trend tracking with forecasting, dashboard widgets, escalation workflows, and board report integration. KRIs aggregate signals from all platform modules (CSPM, CRQ, compliance, vendor risk, evidence, vulnerabilities) into governance-level risk signals. Triggers on: KRI, key risk indicator, threshold, risk indicator, risk signal, risk alerting, risk threshold, risk dashboard, risk trend.

Muath2000 By Muath2000 schedule Updated 2/22/2026

name: kri-engineer description: > Key Risk Indicator engine builder for CyberRadar. Designs KRI definitions with formula builder, threshold configuration (green/amber/red), automated alerting on breach, trend tracking with forecasting, dashboard widgets, escalation workflows, and board report integration. KRIs aggregate signals from all platform modules (CSPM, CRQ, compliance, vendor risk, evidence, vulnerabilities) into governance-level risk signals. Triggers on: KRI, key risk indicator, threshold, risk indicator, risk signal, risk alerting, risk threshold, risk dashboard, risk trend.

Act as KRI Engine Lead for CyberRadar.

Mission

Build a Key Risk Indicator engine that transforms raw platform data into governance-level risk signals with configurable thresholds, automated alerting, and board-ready visualization.

KRI Architecture

Data Sources (all services) → KRI Formula Engine → Threshold Evaluation → Alert/Escalate
                                     ↓
                              KRI Dashboard + Board Report

Pre-Built KRI Library (30+ indicators)

Category: Compliance
- KRI-C01: Framework compliance score drop >5% in 30 days
- KRI-C02: % of controls failing >10%
- KRI-C03: Evidence expiring within 30 days >20% of total
- KRI-C04: Audit findings open >60 days

Category: Vulnerability
- KRI-V01: Critical vulnerabilities unpatched >24 hours
- KRI-V02: Average MTTR for high+ vulnerabilities >14 days
- KRI-V03: New critical CVEs affecting tenant assets >5/week
- KRI-V04: Vulnerability SLA breach rate >10%

Category: Vendor
- KRI-VN01: Vendors with risk score >80 (critical tier)
- KRI-VN02: Vendor assessment overdue >30 days
- KRI-VN03: Vendor breach detected (any vendor)

Category: Posture
- KRI-P01: Cyber Score drop >10 points in 7 days
- KRI-P02: CIS benchmark pass rate <80%
- KRI-P03: External attack surface findings (critical) >0
- KRI-P04: Shadow IT assets discovered >5/month

Category: Financial
- KRI-F01: Aggregate ALE exceeds risk appetite threshold
- KRI-F02: Single risk ALE >$1M (configurable)
- KRI-F03: CRQ loss exceedance P90 >budget threshold

Category: Operational
- KRI-O01: Overdue remediation tasks >20%
- KRI-O02: Approval chain SLA breach rate >15%
- KRI-O03: Policy review overdue >5 policies
- KRI-O04: Incident response time >4 hours

Data Model

kri_definitions — KRI templates and custom definitions (RLS)
  id uuid PK, tenant_id uuid,
  kri_code text NOT NULL, name text NOT NULL, description text,
  category text NOT NULL, formula jsonb NOT NULL,
  data_sources text[] NOT NULL,
  is_platform_template boolean DEFAULT false,
  enabled boolean DEFAULT true,
  created_at timestamptz, updated_at timestamptz

kri_thresholds — per-KRI threshold configuration (RLS)
  id uuid PK, tenant_id uuid, kri_id FK→kri_definitions,
  green_max numeric, amber_max numeric, red_min numeric,
  direction text ('higher_is_worse','lower_is_worse'),
  escalation_config jsonb,
  notify_roles text[] DEFAULT '{tenant_admin}',
  auto_create_task boolean DEFAULT false

kri_values — computed KRI values over time (RLS)
  id uuid PK, tenant_id uuid, kri_id FK→kri_definitions,
  value numeric NOT NULL, status text ('green','amber','red'),
  previous_value numeric, delta numeric,
  contributing_entities jsonb,
  computed_at timestamptz NOT NULL,
  INDEX(tenant_id, kri_id, computed_at DESC)

kri_alerts — threshold breach alerts (RLS)
  id uuid PK, tenant_id uuid, kri_id FK→kri_definitions,
  kri_value_id FK→kri_values,
  alert_type ('breach','recovery','trend_warning'),
  severity text, message text,
  acknowledged_by uuid, acknowledged_at timestamptz,
  created_at timestamptz

Formula Engine

KRI formulas are JSON expressions evaluated against platform data:

{
  "type": "percentage",
  "numerator": {
    "source": "compliance-svc",
    "query": "controls_failing",
    "filter": { "severity": ["critical", "high"] }
  },
  "denominator": {
    "source": "compliance-svc",
    "query": "controls_total"
  },
  "period": "30d"
}

Supported formula types: percentage, count, average, sum, ratio, threshold_count, trend_slope (linear regression over period), delta (change over period)

Computation Schedule

  • Default: hourly for all enabled KRIs
  • Critical KRIs (category: vulnerability, posture): every 15 minutes
  • Financial KRIs: daily (aligned with CRQ computation)
  • Configurable per KRI via kri_definitions

Trend Forecasting

  • Store 365 days of KRI values
  • Linear regression for 30/60/90 day forecast
  • Alert on predicted threshold breach ("KRI-V01 projected to breach red threshold in 14 days")
  • Trend visualization: sparkline + forecast line (dashed)

Board Report Integration

  • Top 10 KRIs section in executive board report
  • Status matrix: all KRIs with current status (green/amber/red)
  • Trend arrows for each KRI
  • Breaches in reporting period with resolution status

Downstream Wiring

  • kri.threshold_breached → notification-svc → relevant roles
  • kri.threshold_breached (auto_create_task) → workflow-svc creates remediation task
  • KRI status feeds into Cyber Score "Incident Readiness" dimension
  • KRI trends feed into AI recommendations engine
  • KRI values feed into CRQ scenario inputs

Anti-Patterns

  • NEVER evaluate KRIs against stale data (check source freshness)
  • NEVER alert without context (include contributing entities in alert)
  • NEVER allow KRI deletion — only disable (audit trail)
  • NEVER compute KRIs without tenant isolation
  • NEVER hardcode thresholds — they must be configurable

Additional Capabilities (Merged)

From Risk Manager

  • Training initiatives
  • Culture embedded
  • Stress testing
  • Commodity risk
  • Loss data analysis
  • Limit monitoring
  • Historical scenarios
  • Insurance strategies
  • Hypothetical scenarios
  • Documentation requirements
Install via CLI
npx skills add https://github.com/Muath2000/TradeStation --skill kri-engineer
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator