cd /news/machine-learning/machine-learning-security-training-f… · home topics machine-learning article
[ARTICLE · art-110283] src=dev.to ↗ pub= topic=machine-learning verified=true sentiment=· neutral

Machine Learning Security Training for Government Agencies

A developer argues that machine learning courses for government agencies must focus on operational metrics like precision at a fixed alert budget rather than accuracy, citing that a 99.9% accurate model on 20 million daily events yields 20,000 false alerts. The training should use federal-specific data sources such as Windows Event IDs, Sysmon, and Zeek logs, and incorporate adversarial ML frameworks like NIST AI 100-2 and MITRE ATLAS. The developer emphasizes that choosing thresholds based on analyst capacity is critical for operational success.

read5 min views4 publishedAug 25, 2026

A detection model that is 99.9 percent accurate will bury a federal SOC. That single fact should shape every machine learning course an agency buys, and most of them ignore it.

Run the arithmetic that a vendor slide never shows:

events_per_day = 20_000_000      # authentication + process + network, mid-size agency
false_positive_rate = 0.001      # 99.9% "accurate"
print(events_per_day * false_positive_rate)   # 20000.0

Twenty thousand false alerts a day, on top of the queue the team already cannot clear. The model is not broken. The evaluation metric was the wrong one, and nobody in the room had been trained to catch it. This is the single most common failure mode I have seen in government analytics work, and it is a training problem before it is a modeling problem.

Generic ML courses run on the Iris dataset and MNIST. Security-specific courses that were built for a commercial SOC run on data an agency may not have in the same shape.

The material that transfers is built on what federal environments actually retain: Windows Security Event IDs 4624 and 4625, Sysmon Event ID 1 (process creation) and Event ID 3 (network connection), Zeek conn.log

and dns.log

, EDR process telemetry, and the identity and asset inventory that CDM reporting already forces agencies to maintain. That last source is the one most teams underuse. Asset criticality and account type turn a generic outlier score into a triage decision.

The work in a good course is unglamorous and it is most of the job:

Anomalous-account behavior is T1078, Valid Accounts, and framing labs against ATT&CK technique IDs rather than "suspicious activity" is what makes the output legible to the rest of the agency.

If a syllabus spends one hour on evaluation and two days on algorithms, it is an ML course with security data pasted on.

At a base rate of one malicious event in a million, accuracy is meaningless and ROC AUC is close to it, because the false positive axis is dominated by the negative class. The metrics that decide whether a detection ships are precision at a fixed alert budget and the precision-recall curve:

from sklearn.metrics import average_precision_score, precision_recall_curve

precision, recall, thresholds = precision_recall_curve(y_true, scores)
budget = 50                                    # alerts an analyst can work per shift
cutoff = sorted(scores, reverse=True)[budget]
print(average_precision_score(y_true, scores))

In our labs students set that cutoff before they compare a single model, because the budget is the fixed constraint and the model is the variable. Choosing the threshold from analyst capacity rather than from an F1 optimum is a one-line change and a different way of thinking about detection engineering. Agencies that adopt it stop shipping models that technically work and operationally fail.

The second half of evaluation is adversarial. A deployed classifier is a target, and the vocabulary for that is standardized: NIST AI 100-2 for the adversarial ML taxonomy, MITRE ATLAS for the technique IDs. Model evasion is AML.T0015. Any course teaching agency staff to build detections should also teach them how those detections get bypassed. Governance frameworks belong here too, though briefly: NIST AI RMF gives an agency the Measure vocabulary for documenting all of this, and it is a half-day topic, not a course.

Curriculum is the easy part. Federal training dies in logistics.

Government-furnished laptops usually block local admin, virtualization, or both. Mission networks do not reach pypi.org

or a hosted model API. Cleared staff frequently cannot attend a public course at a commercial venue. Any of those turns a well-designed syllabus into a room of people watching an instructor type.

The workable answer is a lab that assumes nothing from the network: a guest image carrying its own Python, libraries, datasets, and model weights. GTK Cyber has run a full course this way inside a military cyber unit with no traffic leaving the environment. The staging work is the part to plan for, because every package and weight file has to be assembled before the image crosses the boundary, and there is no fixing an omission from inside.

Two questions worth asking any training vendor before scoping an agency delivery: can your labs run with the network cable pulled, and have they? The answers separate vendors quickly.

Machine learning training does not fix a data problem. If the agency's telemetry is scattered across systems with 30-day retention and no common identity field, students will spend a course learning techniques they cannot apply when they get back. Fix the pipeline first. A data engineering effort is less exciting than an ML course and it is the prerequisite.

It also does not produce an authority to operate, a compliance artifact, or a staffed detection engineering team. It produces people who can build, evaluate, and defend a model. Converting that into a deployed capability is a separate program with its own timeline.

And if the team's Python is shaky, sequence the training. Analysts fighting syntax do not learn feature engineering.

The defensive side is only half the picture for agencies now standing up their own AI systems. The adversarial half, including how AI red teaming is scoped and bought, is covered in AI red team training for federal security contractors. GTK Cyber's Applied Data Science and AI for Cybersecurity course covers the material above as a closed-cohort engagement, on site or virtual, with the offline lab environment described here. Delivery options and registration data for agencies are on the federal training page.

── more in #machine-learning 4 stories · sorted by recency
── more on @nist 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/machine-learning-sec…] indexed:0 read:5min 2026-08-25 ·