← All case studies
Intelligent Pathways — training paths built only from MITRE ATT&CK and NIST NICE
AI case study

Intelligent Pathways: training paths built only from MITRE ATT&CK and NIST NICE

SecDojo's business customers asked for training pathways they could defend in front of a CISO or an auditor, where every course and lab is there because of a MITRE technique or a NIST NICE work role, never because someone liked it. I built the feature end to end. A manager describes the goal in plain words. The platform maps it to the two frameworks, pulls only the resources mapped to those items, ranks them, and hands back an ordered pathway the manager can edit and publish.

RoleAI Engineer · feature owner
ScopePathway builder · Laravel API & queue job · AI mapping · guardrails
TimelineSep – Nov 2025
ProductSecDojo CyberLearn · company managers
Gemini 2.5 Pro Laravel queues MySQL TypeScript Python eval harness MITRE ATT&CK · ATLAS · D3FEND NIST NICE

TL;DR

01 · Context & goal

“Build us a pathway, but only from the standards”

Security managers at our customers think in frameworks. Their SOC is measured against MITRE ATT&CK coverage and their job descriptions follow the NIST NICE work roles. When they assign training, they need to explain why each item is there. SecDojo already tagged every course with NICE tasks, knowledge and skills, and every lab with the MITRE techniques it exercises. What was missing was a way to go from a sentence like “train my SOC team on ransomware” to a pathway built only from those tags.

Before

Browse, guess, justify after the fact.

Catalog of courses & labs→pick by title→map to frameworks by hand→gaps found late

After

The frameworks decide, the manager approves.

Goal in plain words→MITRE + NICE items→only mapped resources→ordered pathway

The goal

02 · The product

From one sentence to a pathway, inside the builder

The pathway builder has two modes behind one toggle. In manual selection, managers pick MITRE techniques and NICE items themselves and set a minimum TKS match. In Intelligent Cyber Framework Pathway mode, the AI Training Assistant does the mapping. Its plan lands in the same selectors, so the manager can adjust it before building the pathway.

Screens recorded on a staging environment with demo content and the model calls simulated (the platform's built-in demo mode), which is why the mapping step takes 2 s and the picks are generic. Click any image to enlarge.

03 · Architecture

The model chooses IDs, the database chooses content

The design rests on one rule: the model never names a course or a lab. It only selects identifiers from catalogs it is shown. The step from framework items to resources is plain SQL over mappings the content team maintains. That gives every recommendation an audit trail and makes hallucinated content structurally impossible.

job id PlanAndRecommendAI poll status every 3 s · fetch result (owner only) plan + pathway used items only TKS / TTP mappings ManagerB2B customer Pathway builderassistant · progress overlayplan view · ordering Laravel APIJWT · role · input gaterate limit · dedupe Queue worker6 tracked steps2 tries · 600 s · 3-call budget Result storeprogress + result · 24 hbound to user and company CatalogsMITRE ×5 · NICE treelanguage prioritycached 20 min Shortlist + prompttopic shortlistgoal as escaped datacanary token Map to IDsGemini 2.5 Proresponse schematemperature 0.2 Plan validatorallowlist per frameworkcaps · text screeningretry, then fallback Retrieve + rankmapped items onlytenant + publish filtercoverage score Rerankscreened descriptionsmay only keepnever empty Framework tablesATT&CK · ATLAS · D3FEND · NICE Courses & labstagged by content team
Request path on top, job steps below. Purple-highlighted steps are where model output enters the system, and each one is followed by a validator.

Key decisions

Async job, not a long request

Two Pro calls over a large catalog can take minutes. The API validates the goal, queues a job and returns its ID at once. The builder polls status every 3 seconds and renders each step's state and timing.

Job timeout 600 s, 280 s per model call, 2 tries with a 30 s back-off.

Structured output over free text

The mapping call uses a response schema: version, five MITRE arrays, four NICE arrays, rationale, warnings. No parsing of prose, and the schema already rejects most malformed answers.

Same contract for the real model and the demo simulator.

Catalog built from what's teachable

The NICE tree only includes TKS statements actually used by content, with names in the manager's language through a language-priority fallback. The MITRE catalog only includes techniques that labs exercise, so the model can't choose an item that maps to nothing.

Cached per language for 20 minutes; a forced refresh rebuilds it.

Two calls with different jobs

The first call maps the goal to standards. The second reranks the retrieved resources against the goal's intent. The reranker can only remove items. It can never add one.

Fit to intent without giving up the audit trail.

Rank by coverage, not by any match

A resource is scored by how much of it is about the plan, not by whether it touches one selected ID. A broad lab that matches 1 of its 30 techniques no longer makes the list.

Section 06 has the numbers.

Demo mode built in

A configuration switch replaces both model calls with a local simulator that follows the same schema, using keyword matches on the real catalogs. Sales demos, UI work and tests run with no model cost and no external calls.

Used for the screens above.
04 · How a pathway is built

Six steps, each one visible to the manager

InitializeResolve the manager and their company. The job is bound to both.
FrameworksLoad the MITRE and NICE catalogs in the manager's language.
AI mappingShortlist, prompt, schema-bound call, plan validation.
RecommendationsSQL over TKS and TTP mappings, with tenant and publish filters.
AI filteringRerank with screened descriptions, then filter validation.
CompletedPlan, ranked items and notes saved for the owner.

The contract the model must follow

The mapping call returns IDs only, grouped by framework. Each MITRE ID must sit under the framework it belongs to, so an ICS technique under Enterprise is treated as an error, not a lucky match.

{ "version": "2.0", "mitre": { "mitre_attack_entreprise": ["T1548", "T1053", …], "mitre_attack_mobile": [], "mitre_attack_ics": [], "mitre_atlas": [], "mitre_defend": ["D3-UAP"] }, "nist": { "work_role_ids": [5], "task_ids": [109], "knowledge_ids": [205, 209], "skill_ids": [307] }, "rationale": "plain text, ≤ 120 words", "warnings": ["assumptions, ambiguity"] }

Scoring a resource

For each course or lab the platform already knows which TKS statements and techniques it covers, so relevance is the share of the resource that's about the plan.

relevance = ½ × ( matched TKS ÷ TKS of the resource + matched techniques ÷ techniques of the resource )

Resources under 0.5 are dropped. Among the rest, a small bonus goes to items that cover plan entries nothing else covers yet, so six labs on the same technique don't crowd out the rest. Here is the goal from the demo, “I need to train my team on Linux”, on the evaluation replica:

ResourceTKSTechniquesRelevanceKept
Course · Linux Privilege Escalation6/612/121.00✓
Lab · Log Tampering Hunt6/810/100.88✓
Lab · Evidence Collection on Linux6/1110/120.69✓
Lab · Pass-the-Hash Lateral Movement1/37/110.48✗
Course · Windows and Active Directory Attacks2/68/140.45✗
Course · SOC Analyst Foundations1/152/130.11✗
Lab · Network Recon and Service Discovery0/121/80.06✗

“Any match” logic returned 24 resources for this goal. Coverage ranking returned 7, all of them about Linux.

Ordering the pathway

Easy to hard. Within each level, theory comes before practice. The manager can still reorder in the builder.

Course · beginnerLinux Fundamentals for Defenders→ Course · beginnerBash Scripting for Security→ Lab · beginnerSudo Misconfigurations→ Course · intermediateLinux Privilege Escalation→ Lab · intermediateCron Job Takeover→ Lab · intermediateLog Tampering Hunt→ Lab · intermediateEvidence Collection on Linux
05 · Guardrails

Three gates around every model call

This feature sends customer-written text to an external model, together with our whole framework catalog, and turns the answer into recommendations shown to paying customers. I treated all three of those as attack surface: the goal a manager types, the prompt we assemble, and the answer the model returns. Each one has its own gate, and each gate has a test set.

Gate 1 · before the model

Input validation

  • Length cap (2,000 characters), Unicode normalisation, invisible characters stripped.
  • Prompt-injection scoring: override, prompt extraction, persona switch, fake role tags, spaced-out and French variants.
  • Hard block for patterns that only make sense as attacks in a goal box, such as role tags or markdown-image exfiltration.
  • Requests to dump the catalog, SQL fragments, and asks for other companies' content are refused.
  • Off-topic requests are refused. Vague goals get a clarifying question.
  • Emails, phone numbers and links are redacted before the model and the logs see them.
Gate 2 · the prompt itself

Prompt validation

  • Rules live in the system message. The goal and the catalog are passed as data.
  • The goal is embedded as an escaped string inside <goal>, with tag look-alikes removed so it can't close the block.
  • A topic shortlist of the catalog cuts prompt size and leaves fewer wrong IDs to choose from.
  • Precision rules and hard caps: ≤ 25 techniques, ≤ 4 work roles, ≤ 30 TKS.
  • A per-job canary token detects system-prompt leakage.
  • Course and lab descriptions, which customers can write, are screened before the rerank prompt, and suspicious ones are withheld.
Gate 3 · after the model

Output validation

  • Strict schema and version check. Malformed JSON triggers a retry.
  • Each ID must exist, sit under its own framework, and be one the model was actually shown.
  • Strict typing: "9999abc" isn't quietly read as 9999.
  • Duplicates removed and caps enforced.
  • Rationale and warnings are shown to managers, so links, markup and instruction echoes are stripped. A leaked canary rejects the answer.
  • Fails closed: one retry with the findings, then a fallback plan clearly labelled as such. Unknown IDs never move forward.
  • The reranker may only keep candidates. An empty or broken answer falls back to the coverage ranking, never to everything.

Around the gates: who may run what, and how often

A

Role and tenant from the session

Only a company-manager authenticated by JWT can start a job. The job is bound to that user and company. Retrieval only returns published resources that are public or private to that company.

B

Owner-only results that can't be probed

Job IDs are random UUIDs. Status and result calls check the owner, and a missing job and someone else's job get the same answer.

C

Cost controls

Per-user and per-company rate limits, de-duplication of identical requests within 10 minutes, and a budget of three model calls per job (map, one retry, rerank).

D

Logs that don't become a data leak

Job logs keep counts, IDs and step timings, not the full goal text or the serialised catalogs. Results expire after 24 hours.

Gate 1: attacks on the goal box

25 attacks in 9 categories, all blocked. 0 of 32 real goals refused.
Show as table
CategoryExampleBlocked

Gate 3: broken or hostile model answers

14 failure types × 32 goals. Answers where bad content got through.
Earlier validatorGate 3
Show as table
Failure typeEarlierGate 3

The earlier validator already dropped unknown IDs when some were valid. But when every ID was invalid, it kept the model's raw selections and passed them on. It also displayed the rationale unscreened. Gate 3 closes both gaps.

06 · Evaluation

A recommender that has to stand up in front of an auditor

“Looks relevant” isn't a metric. I built an evaluation harness that scores every stage separately, so a regression points to the layer that caused it. It runs offline on a replica of the catalogs: public MITRE identifiers, NICE work roles, and a fictional set of courses and labs, including another company's private items, a draft, and one lab with a poisoned description.

Test sets

32 goals, 8 families

Linux, SOC, incident response, offensive, AppSec, cloud and identity, ICS/OT, and others (phishing, AI, mobile). Each goal is labelled with the topics an expert expects. Those labels define the gold techniques, work roles, TKS and resources.

12 held-out goals

Written before any tuning and never used for it. They give the honest number when the dev set looks too good.

25 attacks · 6 vague · 3 with PII

Goal-box attacks in 9 categories, vague goals that should get a question, and goals with emails, phones and links that must be redacted.

448 model answers

14 failure types derived from each goal's correct plan: invented IDs, wrong framework, loose integers, duplicates, oversized lists, links, markup, prompt echo, canary leak, broken JSON and more.

What is scored at each stage

StageMetrics
Input gateattacks blocked · real goals refused · vague goals clarified · PII reaching the prompt
Shortlistrecall of gold techniques, work roles and TKS (the ceiling for everything after) · prompt size
MappingID precision, recall and F1 per framework against gold · invalid-ID rate · cap violations · stability over 3 runs per goal
Output gateunknown IDs reaching retrieval · unscreened text shown · clean plans left untouched
Retrieval & rankingprecision, recall and F1 against gold resources · list size · off-topic items · cross-tenant or draft leaks, per family
End to endrecorded scenarios: model invents IDs twice, reranker adds or drops everything, poisoned description

Retrieval is scored with the gold plan as input, so ranking quality is measured apart from mapping quality. The mapping stage takes a pluggable model client and is scored with the same functions against the live model.

0
precision of recommended resources (was 0.32)
0
recall (was 0.97): fewer items, nearly all of them right
0
items per pathway draft (was 19.3)
0
unknown IDs reaching retrieval (was 160)
0
of 32 clean plans passed untouched
0
cross-tenant or draft items recommended

Precision of recommended resources, by goal family

Same gold plan in, two ranking strategies out. Hover for recall and list size.
Any match (union)Coverage ranking
Show as table
FamilyPrecisionRecallItems

Shortlist recall of gold techniques

The model can only pick what the shortlist contains.

Prompt size for the mapping call

Characters, average per goal on the replica catalog.

What the first run caught

3 of 25 attacks got through. “Pretend you are the database”, a reversed phrasing of the cross-tenant ask, and a markdown image pointing at an outside server. They scored as suspicious but not blockable. Patterns that only make sense as attacks in a goal box now block outright.
3 of 32 real goals were refused, including “I want something for developers” and “our devops team leaks keys in S3 buckets”. The domain check didn't know sudo, cron, S3 or developers. It now reuses the shortlist's topic vocabulary, so the gate and the mapper agree on what counts as security.
2 of 6 vague goals were handled badly. “Help” was refused instead of getting a question. Very short goals are now always clarified.
6 goals had shortlist gaps. Response verbs like contain, recover and investigate didn't pull the defensive techniques, and plurals like “PLCs” or “pentesters” didn't match. I added those terms and light stemming. Held-out technique recall rose from 0.63 to 0.89 and work-role recall from 0.85 to 1.0. The remaining misses are PowerShell-style tradecraft and evidence collection, which is next on the list.

All figures were measured offline on the replica catalog with recorded model answers; none come from customer data. The topic labels, vocabulary and gold set were written by the same person, so dev-set scores are optimistic. The held-out set is the fairer number.

07 · My role

From the customer request to the last validator

Teammates ran the queue in the background and extended the AI job timeouts for production.

08 · Results & impact

Pathways a manager can defend line by line