Views
No views yet
1pip install -r requirements.txt
2python example.py1from identity_score import score_event
2score_event({"src_user":"u1@DOM","src_pc":"PC1","auth_type":"Kerberos",
3 "logon_type":"Network","orientation":"LogOn","success":"Success"})
4# -> {"is_anomaly": false, "anomaly_score": ..., "hourly_count": 1, "unique_pcs": 1}1docker run -p 8081:8080 ghcr.io/samuelgtetteh/identity-anomaly:0.1
2curl -s localhost:8081/score -H 'Content-Type: application/json' \
3 -d '{"src_user":"u1@DOM","src_pc":"PC1","auth_type":"Kerberos","logon_type":"Network","orientation":"LogOn","success":"Success"}'isolation_forest_model.pkl — the trained model · scaler.pkl — the fitted StandardScaleridentity_score.py — feature engineering + scoring · serve.py — FastAPI wrapperLICENSE).