CIT-2650 / CIT-2642

Module 3 · Information Gathering

AI Test Harness Builder

An AI can run a scan in seconds — and just as fast it will scan a host you weren't hired to test, launch a denial-of-service, or report a vulnerability it never verified. A prompt that says “please stay in scope” cannot stop it. A test harness is the framework that wraps the AI so it can help safely: it holds the engagement's authorization, enforces a policy on every operation the AI proposes, and logs every decision. The rule it runs on: the AI proposes, the harness governs, the human validates. In this lab you build the governing core of a harness for a scanning and vulnerability-testing engagement.
How this works: Work the three stages on the right. In Stage 1 you authorize the engagement; in Stage 2 you build the policy engine; in Stage 3 you run your harness against the operations the AI proposes and watch it govern them. Each decision has free Background and Hint help. Finding validation — the “human validates” part — is the Week 5 lab. Auto-graded; screenshot the Finish & Grade summary.

AI Test Harness Builder

—
Built 0/10 · Score 0/10

LAB STEPS

// ENGAGEMENT BRIEF (your authority)

CONFIDENTIAL
PenTest Contract
Statement of Work · SOW-2026-SHS
Client: Sticker Heist Shop, Inc.

// PARTS OF A HARNESS

// BUILD THE HARNESS

harness.yaml · generated from your configuration
A real harness stores its configuration as a structured file like this (the spec calls them engagement.yaml and scope.yaml). It is machine-readable, can be version-controlled, and survives the AI's context window — the harness reads this file, not the chat history. Stage 3 runs against exactly these settings.