Practical Roadmap

AI-Assisted Cybersecurity

Use AI to organise defensive evidence, review controls, and communicate findings inside synthetic or explicitly authorised labs.

Before You Begin

  • Understand HTTP and basic logs
  • Complete a guided authorised lab
  • Use synthetic datasets and disposable local applications

What You Will Build

A verified investigation notebook, a threat model, and a defensive report with every conclusion tied to evidence.

YOUR COURSE PROJECT · 7 CONNECTED STAGES

EvidenceDesk

Create a small investigation notebook around one fully supplied synthetic StudyNotes dataset. Use an assistant to organise questions and challenge drafts, while manual counts, a deterministic parser, and a local control test provide independent evidence.

What You Need

  • A text editor and a terminal
  • A currently supported Node.js LTS release for the supplied parser and local assertions
  • An AI assistant of your choice for optional comparison; access and connectivity depend on that product
  • No real credentials, account data, malware, or public target is needed

Set Up Your Project

  1. Create a new evidencedesk folder with fixtures, notes, evidence, and lab subfolders.
  2. Keep the synthetic source file unchanged after copying it. Put rejected rows and derived results in separate evidence files.
  3. The dataset deliberately contains eight valid events, one malformed JSON line, and one record without a timestamp. The data-preparation lesson supplies every line.
  4. StudyNotes is fictional. The dataset, local permission function, and diagrams are teaching materials, not records from a production system.
  5. If an assistant is unavailable, complete the manual investigation and use the supplied flawed-draft example for review practice; do not claim an AI comparison you did not perform.

Markdown file · all lessons, examples and project steps · no account needed

01

Define Scope and an Evidence Question

Open EvidenceDesk, a separate notebook for investigating fictional StudyNotes records. Define what the data can answer before asking an assistant for analysis. Establish folders for raw input, notes, evidence, and local code, and keep assistant suggestions separate from conclusions you independently verify.

What You Will Learn

  • Define an answerable investigation question before requesting AI analysis.
  • Distinguish the dataset's observations from questions requiring unavailable evidence.
  • Create a notebook that records human and assistant contributions separately.

Understand the Idea

An investigation begins with a question that the available evidence can answer. EvidenceDesk asks what the supplied synthetic StudyNotes records show about authentication outcomes and note-access decisions during a short interval. It does not attempt to identify a real attacker or prove that a production system was compromised. The distinction matters because a model can produce a convincing narrative even when the requested conclusion is beyond the data. A written scope makes that overreach easier to detect.

Define the units before asking for counts. An HTTP response, an authentication decision, and a note-access decision are different event types. A successful page response is not automatically a successful login. An event attributed to one fictional user does not become evidence about another user merely because the event times are close. The next lesson will supply a schema and deliberately imperfect records. For now, write what information you expect to need: stable IDs, event times, event definitions, user fields, and a clear statement about missing data.

Treat an AI assistant as a collaborator whose output remains inspectable. Ask it to organise claims, cite record IDs, propose alternative explanations, and identify missing evidence. Keep its response separate from your own observations and do not write that a check was performed unless you actually performed it. A second generated answer can be useful criticism, but agreement between two answers does not replace checking the records. Your notebook should make the independent verification visible.

Set a practical boundary around the work. All supplied records are fictional, and later code runs locally with controlled fixtures. There is no need to upload private logs, search for a real person's identity, or test a public service. If you use a cloud assistant, its connectivity and data handling depend on that product. If you work without one, the manual steps still produce the casebook; use the supplied illustrative flawed draft later without mislabelling it as an actual model response.

WORKED EXAMPLE

A Scope Brief for an Evidence Question

Save this as notes/scope.md. It is also a suitable first message to an assistant once you supply the dataset in the next lesson.

text
Project: EvidenceDesk, a fictional StudyNotes investigation.
Question: What authentication outcomes and note-access decisions are explicitly recorded?
Data: only fixtures/studynotes-events.jsonl, supplied in the next step.
Do not infer: real identities, attacker intent, unrecorded logins, or events outside coverage.
Required output: observations with record IDs; hypotheses labelled separately; missing evidence.
Verification: I will count valid records and run a local parser independently.
Boundary: no public targets, private logs, account access, or external actions.
  1. The question asks about recorded outcomes rather than demanding an incident verdict.
  2. The exclusions describe conclusions that need evidence the exercise does not provide.
  3. The verification line assigns responsibility for checking results instead of asking the assistant to certify itself.

Expected Result

You have a clear investigation brief but no findings yet. It is correct for the notebook to say that the data has not been inspected.

PROJECT STAGE 01 / 7

Open the EvidenceDesk Notebook

Builds on: This starts a separate project; it does not depend on files from the cybersecurity casebook.

  1. Create evidencedesk with fixtures, notes, evidence, and lab subfolders.
  2. Create notes/scope.md from the brief and add your own wording for the investigation question.
  3. Create README.md describing the folder roles and whether you will use an assistant.
  4. Create evidence/review-log.md with sections for your observations, assistant suggestions if used, and independently verified results.
  5. Write two questions that are in scope and two that the planned data cannot answer.

Keep This Deliverable

A project index, explicit scope, and an empty review log ready for evidence.

Check Your Build

  • The question can be answered from records rather than real-world attribution.
  • No unperformed investigation is presented as a finding.
  • The notebook separates assistant suggestions from verified results.

Common Mistakes and Fixes

The opening request asks the assistant to find the attacker.
Replace attribution with a bounded question about recorded events and list the evidence attribution would require.
Synthetic data is replaced with private logs to make the task realistic.
Keep the supplied fictional records; they are sufficient to learn scope, counting, hypothesis, and verification.

Check Your Understanding

Why is 'Was learner-a successfully authenticated in these records?' more useful than 'Who attacked us?' here?

Reveal the explanation

The first asks for an event the supplied schema can record. The second assumes a real incident and demands identity evidence the fictional dataset does not provide.

Ready to Move On?

The investigation question is answerable from records and makes no assumption of a real incident or attacker.

Open the learning resource
02

Prepare a Small Trustworthy Dataset

Copy the complete ten-line EvidenceDesk dataset, including its deliberate malformed line and missing event time. Define a schema and count the valid events by hand before consulting an assistant. Preserve the raw source and record rejected lines separately instead of guessing missing values.

What You Will Learn

  • Preserve raw input while distinguishing parseable, valid, and rejected records.
  • Define the event schema and a known answer for the sample.
  • Document quality limitations before generating an interpretation.

Understand the Idea

A parseable JSON object is not necessarily a valid event. The source below includes one line that is not JSON and another object missing a required event time. Keep both in the raw file because their presence is part of the exercise. Later analysis will quarantine them with reasons instead of silently deleting them. This distinction gives you three useful counts: physical nonblank lines, successfully parsed objects, and records accepted by the investigation schema.

The schema requires a nonempty ID, a UTC clock time in HH:MM:SSZ format, a recognised event type, a user value that is either a string or null, and a source address string. All records belong to one fictional day and do not cross midnight; this format cannot order a multi-day investigation. HTTP records additionally need method, path, and integer status. Note-access records need a note ID. These are exercise rules, not a universal logging standard. Preserve null as unknown or not supplied; do not fill it with the user from the previous line. The same applies to a missing event time: guessing a nearby time would turn uncertainty into invented evidence.

The source contains ten nonblank lines. Eight satisfy the stated base and type-specific rules. One line fails JSON parsing, and one parsed object has no time. Among valid records, there are three HTTP events, two auth_failed events, one auth_success event, one note_read_denied event, and one note_read_allowed event. The explicit authentication success belongs to learner-b. learner-a later appears in an allowed-note event, but the file does not show when that user's authenticated state began. A session could predate the coverage interval.

Use these known counts as an independent reference rather than giving them to the assistant before asking it to inspect the file. Read the records yourself, then compare its answer with your manual tally. If its result differs, locate the exact record or validation rule responsible. A difference may reveal an error in the model, your own counting, or an ambiguous schema. Resolve the definition first; forcing numbers to agree without explaining why defeats the purpose.

WORKED EXAMPLE

The Complete EvidenceDesk Dataset

Copy all ten lines exactly into fixtures/studynotes-events.jsonl, including the deliberately malformed ninth line and incomplete tenth record. Do not try to run this text as JavaScript.

jsonl
{"id":"d01","time":"10:00:00Z","type":"http","user":null,"source":"192.0.2.20","method":"GET","path":"/health","status":200}
{"id":"d02","time":"10:01:00Z","type":"auth_failed","user":"learner-a","source":"192.0.2.10"}
{"id":"d03","time":"10:02:00Z","type":"auth_failed","user":"learner-a","source":"192.0.2.10"}
{"id":"d04","time":"10:03:00Z","type":"http","user":null,"source":"192.0.2.10","method":"POST","path":"/login","status":429}
{"id":"d05","time":"10:04:00Z","type":"http","user":null,"source":"192.0.2.10","method":"GET","path":"/help","status":200}
{"id":"d06","time":"10:05:00Z","type":"auth_success","user":"learner-b","source":"192.0.2.30"}
{"id":"d07","time":"10:06:00Z","type":"note_read_denied","user":"learner-b","source":"192.0.2.30","noteId":"note-a"}
{"id":"d08","time":"10:07:00Z","type":"note_read_allowed","user":"learner-a","source":"192.0.2.10","noteId":"note-a"}
{not json}
{"id":"d09","type":"http","user":null,"source":"192.0.2.20","method":"GET","path":"/health","status":200}
  1. Lines 1-8 provide complete fictional events under the exercise schema.
  2. Line 9 cannot be parsed as JSON. Line 10 can be parsed but lacks the required time field.
  3. The incomplete d09 is not included in the valid-event HTTP count, even though its type says http.

Expected Result

Expected quality counts: 10 source lines, 9 parsed objects, 8 valid events, and 2 rejected lines with different reasons.

PROJECT STAGE 02 / 7

Document Data Quality Before Analysis

Builds on: Use notes/scope.md and the review log created in the first EvidenceDesk lesson.

  1. Create fixtures/studynotes-events.jsonl with all ten supplied lines.
  2. Create notes/schema.md defining the required fields, recognised types, and type-specific fields.
  3. Create evidence/manual-counts.md and count the source lines, parsed objects, valid events, and event types by hand.
  4. Record line 9 and line 10 in a rejected-record table with distinct reasons.
  5. If using an assistant, request its independent quality summary and record disagreements without editing the raw file.

Keep This Deliverable

An unchanged raw fixture, written schema, manual tally, and rejected-record table.

Check Your Build

  • The raw file still contains both deliberate quality problems.
  • The valid-event counts match the stated rules rather than including every parseable object.
  • Null users and missing event times remain unknown instead of being guessed.

Common Mistakes and Fixes

The missing event time is copied from a neighbouring event.
Quarantine the record and document the missing field; preserving uncertainty is more accurate than inventing order.
Only parse errors are counted as invalid.
Validate required fields and event-specific structure after JSON parsing.

Check Your Understanding

Why are there nine parsed objects but only eight valid events?

Reveal the explanation

The malformed line is not an object at all, while d09 parses successfully but fails the required event time rule.

Ready to Move On?

Identify ten source lines, nine parsed objects, eight valid events, and the two distinct rejection reasons.

Open the learning resource
03

Separate Observations from Hypotheses

Audit an intentionally flawed narrative against the supplied records. Split it into individual claims, cite event IDs, and separate observed outcomes from possible causes. Use the example whether or not an AI assistant is available, while clearly labelling the origin of the text you review.

What You Will Learn

  • Attach observations to record IDs and keep explanations separate.
  • Identify a plausible but unsupported AI narrative.
  • State what additional evidence would distinguish competing explanations.

Understand the Idea

An observation is a claim about what a source records. A hypothesis is a possible explanation for those observations. The difference is not a measure of how confidently the sentence is written. 'd02 and d03 record failed authentication for learner-a' is directly checkable. 'learner-a was attacked' introduces a cause and intent that the records do not establish. Both human analysts and assistants can cross that boundary when they try to make a sparse sequence into a satisfying story.

Read identities and event types literally. d04 has an unknown user, even though its source address matches other records. d05 reports a help-page response, not a login. d06 records authentication success for learner-b. d08 reports an allowed note read for learner-a, but the sample does not include the event that established that user's session. These details support questions about session context and coverage; they do not justify relabelling d06 or inventing a missing login between two lines.

Ask an assistant for a claim table with supporting IDs, alternative explanations, and missing evidence. Keep ordinary explanations where they are plausible: repeated failures could reflect typing mistakes, a stale client, or suspicious attempts. You do not need to rank these explanations numerically from a tiny fictional sample. A confidence label without a defined basis may only decorate a guess. It is more useful to say which observation is certain within the dataset and which causal interpretation remains unresolved.

The worked example is an intentionally flawed draft written for this lesson, not a response captured from a particular model. Audit it as you would any assistant output. Split the paragraph into separate claims before correcting it. Preserve the supported part and remove or qualify the unsupported part. This is a valuable skill because rejecting an entire answer can hide useful evidence, while accepting an entire answer can smuggle unsupported conclusions into a report.

WORKED EXAMPLE

Audit a Plausible but Incorrect Narrative

Save the draft and your review in evidence/claim-review.md. The first paragraph is deliberately flawed teaching material; it is not a verified conclusion.

text
Illustrative flawed draft:
'The attacker at 192.0.2.10 failed twice, bypassed the rate limit, and successfully logged in as learner-a at 10:05. They then stole note-a.'

Supported observation:
d02 and d03 record auth_failed for learner-a.

Corrections to investigate:
d04 records a 429 response but does not establish a bypass.
d06 is auth_success for learner-b, not learner-a.
d08 records note_read_allowed for learner-a; it does not establish theft or who operated the client.
  1. Split the draft into failure count, source identity, rate-limit bypass, successful login, and theft claims.
  2. Only the two failed-authentication events are directly supported as stated; the remaining claims need correction or additional evidence.
  3. An allowed read by the named owner may be ordinary behaviour. The record does not reveal the human's identity or intent.

Expected Result

A defensible observation is that two failures for learner-a appear in the sample, while the only explicit authentication success is for learner-b. The cause and human attribution remain unknown.

PROJECT STAGE 03 / 7

Build the Claim Ledger

Builds on: Use the raw fixture, schema, and manual counts; exclude rejected records from event-level conclusions.

  1. Create evidence/claim-review.md with the illustrative draft or an actual assistant response clearly labelled by origin.
  2. Split it into individual claims and give each a verdict: supported, contradicted, or not established.
  3. For supported or contradicted claims, cite the exact record IDs and relevant fields.
  4. Write two plausible explanations for learner-a's failures and the evidence needed to distinguish them.
  5. Add the corrections and one lesson learned to evidence/review-log.md.

Keep This Deliverable

A claim ledger that preserves supported observations and identifies specific overclaims.

Check Your Build

  • d06 is correctly attributed to learner-b.
  • A 429 response is not presented as proof of either a bypass or complete prevention.
  • The report does not infer a person's identity or theft from an address and an allowed-read event.

Common Mistakes and Fixes

A confidence percentage is accepted without an evidential basis.
Replace it with an explicit statement of what is observed and what evidence remains missing.
All assistant output is discarded because one sentence is wrong.
Review claims individually, retaining supported facts and correcting the unsupported interpretation.

Check Your Understanding

Does d08 prove that the earlier failures were followed by a successful new login for learner-a?

Reveal the explanation

No. It records an allowed note read for that principal. The session may have existed before the sample, and the dataset lacks the authentication context needed to establish a new login sequence.

Ready to Move On?

Attribute d06 to learner-b and avoid inventing a rate-limit bypass, human identity, or theft.

Open the learning resource
04

Verify Counts and Interpretations Independently

Run a small deterministic parser against the unchanged EvidenceDesk fixture. Compare its validation decisions, event counts, and rejected-line report with your manual tally and any assistant analysis. The parser checks the documented exercise schema; it does not prove event authenticity or malicious intent.

What You Will Learn

  • Run a deterministic parser against the preserved source file.
  • Compare automated counts with the manual tally and assistant claims.
  • Understand the validator's scope and rejected-record reasons.

Understand the Idea

Independent verification uses a method whose result you can inspect directly. Here a small Node script parses the source line by line, applies the written schema, counts accepted event types, and reports rejected lines. It does not ask another model to repeat the analysis. Read the code before running it and connect each validation condition to notes/schema.md. The parser is still software that can contain mistakes, so the hand-counted sample is an important reference rather than something to discard once automation exists.

The script preserves original source line numbers even when blank lines are ignored. It counts a JSON value as parsed before validating its fields. A clock time must contain a valid hour from 00 to 23, minute and second from 00 to 59, and the explicit UTC marker Z. These clock times are comparable only within the fixture's single-day scope. Duplicate event IDs are rejected after the first accepted occurrence. These decisions are part of the analysis contract. A different contract may produce different counts, which is why a report should state the rules rather than presenting a number without context.

Type-specific checks matter. An HTTP event needs a method, path, and status in the valid numeric range; a note decision needs a note ID. The source field is checked only as a nonempty string here, not as a fully validated IP address. This is sufficient for the supplied synthetic fixture but should not be mistaken for a production log-ingestion system. The script also does not establish authenticity, clock accuracy, collection completeness, or whether an application correctly produced an event. Validation confirms structure under stated rules.

Compare the printed result with your manual-counts file and the claim ledger. Resolve any discrepancy by locating the precise source line and rule, then record the correction. The expected output is ten nonblank lines, nine parsed values, eight accepted events, and two rejections. Once that is established, use the result to correct numerical claims in the assistant draft. Counts support an investigation, but they still do not decide whether an event sequence was malicious.

WORKED EXAMPLE

A Small Parser With Visible Rejections

Save this complete program as lab/summarise.mjs and run node lab/summarise.mjs. It reads the supplied fixture and prints a summary without changing the source.

javascript
import fs from 'node:fs';
const lines = fs.readFileSync(new URL('../fixtures/studynotes-events.jsonl', import.meta.url), 'utf8')
  .split(/\r?\n/).map((text, i) => ({ text, line: i + 1 })).filter(({ text }) => text.trim());
const types = new Set(['http', 'auth_failed', 'auth_success', 'note_read_denied', 'note_read_allowed']);
const seen = new Set();
const counts = {};
const rejected = [];
let parsed = 0;
let valid = 0;
for (const { text, line } of lines) {
  let e;
  try { e = JSON.parse(text); parsed++; }
  catch { rejected.push({ line, reason: 'invalid JSON' }); continue; }
  const object = e && typeof e === 'object' && !Array.isArray(e);
  const clockTime = object && typeof e.time === 'string'
    && /^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\dZ$/.test(e.time);
  const base = object && typeof e.id === 'string' && e.id.length > 0 && clockTime
    && types.has(e.type) && (e.user === null || (typeof e.user === 'string' && e.user.length > 0))
    && typeof e.source === 'string' && e.source.length > 0;
  const http = object && (e.type !== 'http' || (typeof e.method === 'string' && e.method.length > 0
    && typeof e.path === 'string' && e.path.length > 0 && Number.isInteger(e.status) && e.status >= 100 && e.status <= 599));
  const note = object && (!String(e.type).startsWith('note_') || (typeof e.noteId === 'string' && e.noteId.length > 0));
  if (!base || !http || !note) { rejected.push({ line, reason: 'schema mismatch' }); continue; }
  if (seen.has(e.id)) { rejected.push({ line, reason: 'duplicate id' }); continue; }
  seen.add(e.id);
  valid++;
  counts[e.type] = (counts[e.type] ?? 0) + 1;
}
console.log(JSON.stringify({ lines: lines.length, parsed, valid, counts, rejected }, null, 2));
  1. JSON parsing and schema validation are separate stages, so the incomplete d09 contributes to parsed but not valid.
  2. The counts are updated only after all checks and duplicate handling succeed.
  3. Rejections retain source line numbers, allowing the report to connect the summary back to the original file.

Expected Result

Expected: lines 10, parsed 9, valid 8; http 3, auth_failed 2, auth_success 1, note_read_denied 1, note_read_allowed 1. Line 9 is invalid JSON; line 10 has a schema mismatch.

PROJECT STAGE 04 / 7

Reconcile Three Views of the Data

Builds on: Use notes/schema.md, evidence/manual-counts.md, and evidence/claim-review.md.

  1. Create lab/summarise.mjs and read each condition against the written schema.
  2. Run the script and save its output in evidence/parser-result.json.
  3. Compare every count and rejection with the manual tally; document any correction in evidence/review-log.md.
  4. Check numerical claims in the assistant or illustrative draft against the verified output.
  5. Write a short validator-limits note covering source authenticity, clock accuracy, and the deliberately simple source-address check.

Keep This Deliverable

A deterministic parser result reconciled with manual evidence and stated validation limits.

Check Your Build

  • The raw fixture is unchanged after the script runs.
  • The printed summary matches the known answer and identifies both rejected lines.
  • The report distinguishes structural validity from event truth or malicious intent.

Common Mistakes and Fixes

A script's output is accepted because code feels more authoritative than prose.
Compare it with the known small fixture and inspect how each count is produced.
Rejected lines disappear from the report.
Keep their source line numbers and reasons visible so the final coverage statement remains honest.

Check Your Understanding

Does a record passing this validator prove that the described event truly happened?

Reveal the explanation

No. It proves that the record satisfies the exercise's structural rules. Authenticity, correct event generation, clock accuracy, and collection completeness require separate evidence.

Ready to Move On?

The output reports eight valid events and rejects lines nine and ten for their documented reasons.

Open the learning resource
05

Use AI to Review a Local Defensive Control

Review a self-contained ownership function against a written rule, then run four local assertions. Ask an assistant for line-specific feedback if available, but verify the behaviour yourself. Keep this control experiment separate from the synthetic event history; it cannot establish which implementation produced those records.

What You Will Learn

  • Give an assistant an explicit permission rule and bounded code to review.
  • Verify the local ownership control with positive and negative assertions.
  • Keep control-test results separate from claims about the synthetic event history.

Understand the Idea

EvidenceDesk has two different questions: what the supplied logs record, and whether a small permission function follows a written rule. Testing the function can teach you how a defensive control should behave, but it cannot retroactively prove what implementation produced the synthetic records. Keep the two kinds of evidence separate. The local model below contains one fictional note owned by learner-a and accepts a controlled principal object. It has no real session system, network endpoint, or database.

State the rule before asking an assistant to inspect code: an authenticated principal may read the note only when their ID matches ownerId. Ask it to trace the lookup, missing-input handling, ownership comparison, and returned value. Require any reported issue to refer to a specific line or path through the function. An assistant may identify useful edge cases, but a generic warning about all applications is not the same as a supported finding in this code.

The four assertions cover an owner, another user, an unauthenticated caller, and a missing note. The owner test is important because a function that returns null for everyone would otherwise satisfy all denial tests while making the feature unusable. The other-user test is the key authorization boundary. The final case ensures that absent data is handled deliberately rather than causing an accidental exception. These checks test the function's visible behaviour without depending on a particular implementation style.

Use the code review as a learning conversation. Predict each assertion's result before running the program, then explain which conditional produces it. If the assistant suggests a change, rerun the same tests and inspect whether the proposed change addresses a demonstrated requirement. Do not automatically add complexity such as new roles, tokens, or dependencies to this small exercise. Close with a clear limit: the local control passes these cases, while the dataset's real-world provenance is fictional and no production service has been assessed.

WORKED EXAMPLE

A Complete Local Ownership Check

Save this as lab/ownership-check.mjs. It is self-contained and does not require a server or fixture file. Run node lab/ownership-check.mjs after predicting the results.

javascript
import assert from 'node:assert/strict';
const notes = [{ id: 'note-a', ownerId: 'learner-a', title: 'HTTP Notes' }];

function readNote(noteId, principal) {
  const note = notes.find((item) => item.id === noteId);
  if (!principal || !note || principal.id !== note.ownerId) return null;
  return note;
}

assert.equal(readNote('note-a', { id: 'learner-a' })?.title, 'HTTP Notes');
assert.equal(readNote('note-a', { id: 'learner-b' }), null);
assert.equal(readNote('note-a', null), null);
assert.equal(readNote('missing', { id: 'learner-a' }), null);
console.log('PASS: four EvidenceDesk ownership checks');
  1. The lookup identifies the requested resource, but returning it is conditional on the principal-note relationship.
  2. The first assertion protects legitimate use; the next three exercise denied or missing cases.
  3. The principal object is a trusted test input here. A real service must derive that identity from verified authentication, not arbitrary client fields.

Expected Result

The program prints PASS: four EvidenceDesk ownership checks. This verifies the isolated function under these inputs, not the implementation behind the fictional JSONL records.

PROJECT STAGE 05 / 7

Review and Verify One Defensive Control

Builds on: Use the investigation's separation between observed data and hypotheses; add a new local-test evidence category.

  1. Create lab/ownership-check.mjs and write the owner-only rule in notes/control-policy.md.
  2. Predict each assertion result and, if using an assistant, request a line-specific review against that rule.
  3. Run the program and save the actual output in evidence/control-check.md.
  4. Record one supported assistant suggestion or explain why no change was necessary; do not invent a finding.
  5. Add a limit statement distinguishing this local function from the synthetic event dataset and any production service.

Keep This Deliverable

A written policy, a self-contained local test, and an evidence-based review note.

Check Your Build

  • All four assertions pass and the owner remains able to read the note.
  • Any code-review finding points to an actual requirement or execution path.
  • The result is not used to claim that a real application or historical incident was verified.

Common Mistakes and Fixes

The principal is treated as a secure identity merely because it is an object.
Explain that it is controlled test input; production code must obtain identity from verified authentication.
The assistant proposes broad changes unrelated to the ownership rule.
Ask which current requirement or failing test justifies each change, and keep the exercise focused.

Check Your Understanding

Can passing this test prove that d07 was generated by this exact control?

Reveal the explanation

No. The dataset is supplied synthetic material, and the function is a separate teaching model. Their concepts align, but there is no provenance connecting the event to this implementation.

Ready to Move On?

The owner case succeeds, the other three cases return no note, and the report states the local test's limits.

Open the learning resource
06

Turn a System Diagram into Practical Questions

Draw the fictional StudyNotes service and the separate analyst workflow. Connect three specific concerns to assets, boundaries, and checks you already have: ownership, evidence validation, and report accuracy. Use assistant suggestions only when they fit the described system, without inventing components or permissions.

What You Will Learn

  • Create a small diagram with explicit assets and trust boundaries.
  • Turn plausible failures into controls and local verification questions.
  • Keep AI-generated scenarios tied to the system actually described.

Understand the Idea

A threat model asks what you are protecting, how the system works, what could go wrong, and how you would know whether a control helps. For EvidenceDesk, model the fictional StudyNotes service as a browser, application server, and note store. Add a separate evidence export that produces records for an analyst. The assistant is a reviewer of synthetic exported material, not a component with permission to administer the service. Keeping that distinction visible prevents the diagram from silently granting actions your workflow never authorised.

Identify assets in concrete terms. A learner's note content should be available only under the ownership policy. Event records should be interpretable and retain enough provenance for investigation. The integrity of the analyst's report matters because an unsupported accusation can mislead a decision. At each boundary, ask who supplies the data, what is trusted, and what checks occur. A browser claiming an owner ID and a verified session identifying a user are different inputs.

Ask an assistant for failure questions tied to these components. A missing ownership check belongs at the server-to-note decision. Missing event times affect the evidence export and analysis. An instruction hidden inside an imported note should remain source content, not authority to change an analyst's task. Remove scenarios involving payment systems, cloud credentials, or autonomous agents unless you deliberately add those components. A shorter model grounded in the actual diagram is more useful than a long list of unrelated threats.

For each selected concern, choose a preventive control, an observable signal, and a bounded verification method. You already have an ownership test and a parser rejection result, so connect the model to those artifacts. Other questions can remain untested with a proposed next check. Avoid assigning precise numerical risk scores without a defined method or sufficient evidence. State the consequence and uncertainty plainly so a reader can understand why one follow-up is more useful than another.

WORKED EXAMPLE

A Diagram With an Analyst Boundary

Save this as notes/threat-model.txt. It describes a fictional system and the separate EvidenceDesk workflow; it does not claim those components are deployed.

text
Fictional StudyNotes:
Browser -> Application Server -> Note Store
             |
             +-> Event Export -> Analyst's EvidenceDesk Folder
                                      |
                                      +-> Optional AI Review of Synthetic Text

Boundary A: client request -> verified server identity and permission decision
Boundary B: event export -> preserved source and validated working records
Boundary C: imported text -> analyst instructions (text is data, not authority)

Concern | Control | Existing Check
Other user reads note | owner comparison | lab/ownership-check.mjs
Missing event time | schema validation | lab/summarise.mjs
Unsupported report claim | record-ID review | evidence/claim-review.md
  1. The analyst's assistant receives only the synthetic material deliberately provided; it has no service-management role in this diagram.
  2. Each concern names the point where a rule can fail instead of simply listing a security buzzword.
  3. The check column ties two controls to executable local work and one to a documented review process.

Expected Result

The threat model contains three bounded concerns with relevant controls and evidence. It does not imply that untested service authentication, storage, or deployment controls have been verified.

PROJECT STAGE 06 / 7

Connect Threat Questions to Your Evidence

Builds on: Use the parser result, claim ledger, and local ownership test rather than starting a generic list.

  1. Create notes/threat-model.txt with the supplied component diagram and adapt it only if you explicitly change the fictional design.
  2. List note confidentiality, evidence integrity, and report accuracy as assets, explaining who depends on each.
  3. Mark the three boundaries and write one failure question for each.
  4. Link the relevant existing check or mark the concern untested with a specific proposed local check.
  5. If an assistant proposes additional threats, keep only those tied to a component, asset, and plausible data flow in this model.

Keep This Deliverable

A small threat model whose controls connect to named evidence and whose unknowns remain visible.

Check Your Build

  • Every retained concern identifies an asset and a boundary.
  • The model grants the assistant no invented administrative capability.
  • Verified local checks and proposed future checks are labelled differently.

Common Mistakes and Fixes

A long AI-generated threat list is accepted without checking the architecture.
Ask where each concern enters this specific diagram; remove unsupported components and assumptions.
A control's existence is equated with proven effectiveness.
Link a relevant check and state what it covers; otherwise keep effectiveness unverified.

Check Your Understanding

Why is an assistant's instruction-like sentence inside an imported note not permission to change the investigation?

Reveal the explanation

The note is source data crossing the analyst's input boundary. Only the authorised task and workflow define what the analyst or tools may do; imported text does not acquire that authority.

Ready to Move On?

Every concern names an asset and boundary, and verified controls are distinguished from proposed checks.

Open the learning resource
07

Write a Report That Preserves Uncertainty

Write EvidenceDesk's final report from verified counts, record IDs, and local test results. Keep rejected data and missing context visible, distinguish control testing from event provenance, and document what you checked independently. The finished notebook explains recorded outcomes without declaring an unsupported real-world incident.

What You Will Learn

  • Produce a report whose conclusions can be traced to source records and tests.
  • Preserve limitations, rejected data, and alternative explanations.
  • Document what AI contributed and what you verified independently.

Understand the Idea

The final report should answer the original question first. Start with data quality: ten nonblank source lines, eight accepted events, and two rejected lines. State the recorded authentication and note-access outcomes using their IDs. Keep the local ownership test in a separate section because it is a teaching control experiment, not evidence of how the synthetic log events were produced. This structure lets the reader assess the conclusion without reconstructing your whole notebook.

Describe uncertainty in terms of missing evidence. The records do not establish the human behind a source address, the cause of learner-a's failures, or when that user's authenticated state began. d08 records an allowed note read, but there is no session identifier or matching prior authentication event for learner-a within the sample. The rejected line without a event time cannot safely be placed in the timeline. These limits are not weaknesses to hide; they define which conclusions are justified and which next questions remain open.

Use an assistant, if available, as a critical reader of your draft. Ask it to identify the source or test supporting each factual sentence and to flag any leap from pattern to intent. Inspect its criticism just as carefully as its earlier analysis. Keep one clear example of a suggestion you corrected or rejected. A final report should not imply that every action was automated or that the model independently verified data it merely received. Credit the actual workflow: manual counts, deterministic parsing, local assertions, and editorial review.

Finish with a narrow recommendation and a reproducibility appendix. For this fictional case, useful next evidence would include documented session identifiers and event-generation rules, rather than an unbounded search for an attacker. Link the raw fixture, schema, parser, claim ledger, and control test. Re-run the two scripts and record their actual outcomes. The finished EvidenceDesk project demonstrates how to organise an investigation and resist unsupported conclusions; it is a learning artifact, not an incident verdict about a real organisation.

WORKED EXAMPLE

An Executive Note That Matches the Evidence

Adapt this into notes/final-report.md after checking your own parser and assertion results. Do not copy the verification statements if you have not performed those checks.

text
Scope: the supplied fictional StudyNotes dataset only.
Quality: 10 nonblank lines; 8 valid events; line 9 invalid JSON; line 10 missing time.
Observed: d02 and d03 record auth_failed for learner-a.
Observed: d06 records auth_success for learner-b.
Observed: d07 denies learner-b access to note-a; d08 allows learner-a.
Not established: attacker identity, cause of failures, or learner-a's session start.
Separate local test: ownership-check.mjs passes four stated policy cases.
Next evidence: session correlation and documented event-generation rules.
Verification: manual tally, summarise.mjs output, and local assertion output are linked below.
  1. The note leads with scope and data quality so the reader knows which records support the answer.
  2. Recorded outcomes are named without assigning motive or borrowing identity from neighbouring events.
  3. The ownership check is explicitly separate, preserving the difference between modelled control behaviour and event provenance.

Expected Result

The conclusion is limited but useful: the accepted records contain two failed events for learner-a and one explicit authentication success for learner-b, plus two distinct note decisions. A confirmed attack is not established.

PROJECT STAGE 07 / 7

Finish the EvidenceDesk Investigation

Builds on: Use every previous artifact, preserving the raw source and the original claim-review corrections.

  1. Create notes/final-report.md with scope, quality, observed outcomes, unknowns, separate control tests, and a bounded next-evidence request.
  2. Link each factual conclusion to record IDs or a named test result.
  3. Ask an assistant to review unsupported claims if available, and record the actual response or clearly state that this step was manual.
  4. Run lab/summarise.mjs and lab/ownership-check.mjs again, saving the actual results and updating any stale claims.
  5. Complete README.md with the artifact map, reproduction commands, and one AI-related mistake you learned to catch.

Keep This Deliverable

A final evidence-linked report and a reproducible EvidenceDesk notebook.

Check Your Build

  • The report includes both rejected lines and their implications for coverage.
  • No observation is silently converted into an attacker-attribution or compromise claim.
  • Another learner can reproduce the counts and local control result from the supplied files.

Common Mistakes and Fixes

Uncertainty disappears from the short summary even though it remains in the appendix.
Keep the most decision-relevant unknowns in the main report where a reader will see them.
The assistant is credited with tests it did not execute.
Name the actual verification method and distinguish a suggested check from a performed one.

Check Your Understanding

What is the strongest defensible conclusion about a confirmed attack in this project?

Reveal the explanation

The supplied fictional records support specific event observations and questions, but they do not establish a confirmed attack, human attribution, or the cause of the authentication failures.

Ready to Move On?

Every factual conclusion points to a record or test, and uncertainty remains visible in the main report.

Open the learning resource

Project References

HACKTRONIAN_CLI // COMMAND PALETTE
QUICK_EXEC: