Create representative telemetry
Collect and clean relevant event fields (session rates, failed logins, bytes transferred) and ensure timestamps, identities and anonymisation policies are handled correctly.
Score access risk. Prioritise analyst review.
Zero-trust access risk scoring assigns risk values to access events so analysts can prioritise investigation. In practice this combines labelled incident data, anomaly detection for novel patterns, thresholding and audited alerts; common issues include class imbalance, noisy telemetry and adversarial behaviour.
Learning concept · Not a validated service
Zero-trust access risk scoring assigns risk values to access events so analysts can prioritise investigation. In practice this combines labelled incident data, anomaly detection for novel patterns, thresholding and audited alerts; common issues include class imbalance, noisy telemetry and adversarial behaviour.
A proposed use: surface risky sessions to a security operations centre (SOC) where analysts review alerts. A human should remain in the decision loop; this project does not provide a deployable alerting pipeline.
Collect and clean relevant event fields (session rates, failed logins, bytes transferred) and ensure timestamps, identities and anonymisation policies are handled correctly.
Start with an unsupervised anomaly detector on numeric features to find outliers, and keep the pipeline reproducible for later comparison with supervised models.
Use labelled incidents if available to choose thresholds that balance recall and analyst false-positive load and measure false positive rate and time to detect.
Expose risk scores, key feature contributions and audit logs in a dashboard so analysts can triage, correct labels and feed data back to retrain models.
The supplied starter creates synthetic 'normal' and 'suspicious' numeric telemetry, concatenates them, fits an IsolationForest with contamination=0.05 and uses fit_predict to mark -1 labelled anomalies. It prints the count and head of detected alerts. It is an unsupervised anomaly-detection prototype on toy data, not a full zero-trust scoring system with calibrated risk scores, labels, thresholds or deployment.
}
)
logs = pd.concat([normal, suspicious], ignore_index=True)
detector = IsolationForest(contamination=0.05, random_state=42)
logs["anomaly_score"] = detector.fit_predict(logs)
alerts = logs[logs["anomaly_score"] == -1]This starter uses small synthetic numeric data and a single IsolationForest call. It does not produce calibrated risk probabilities, explainable feature contributions, or evaluation on real labelled incidents. The one-line fit_predict result stores -1/1 rather than a continuous score, and there is no split for validation, experiment tracking, or integration with alerting/audit systems.
A proposed extension is to replace the toy data with real telemetry, augment unsupervised detection with supervised incident labels, compute a continuous risk score with feature attributions, and expose an API/dashboard that allows analysts to confirm or reject alerts for retraining.
This is a potential application pathway, not a delivered product. The supplied starter does not implement this service or validate it with real users.
Networkers Home runs this topic inside its Cybersecurity Course, with placement support and hands-on labs.