AI × White-box security research

TEREM

Fairy-Tale Characters.
Real Security Work.

Eight AI agents go looking for trouble hiding between the lines. They trace source code, connect attack paths, and challenge findings before they reach the report.

A warmly lit TEREM cottage surrounded by eight fairy-tale teammates: Vasilisa, Volk, Yaga, Gorynych, Leshy, Koschei, Mirror, and Kot.
A little magic. A lot of evidence.
8 specialist agentsSink-first analysis5 gates before reportingStatic source review

Meet TEREM's inhabitants

Eight characters. Distinct responsibilities.

The fairy-tale names give the team a personality. Source evidence and review rules govern its conclusions.

Vasilisa

Lead & orchestrator

Owns scope, the initial inventory, work routing, triage, and the final report.

Volk

Web application security

Hunts for injection, object access flaws, unsafe inputs, and overlooked application paths.

Yaga

Identity & access

Reviews authentication, authorization, tokens, sessions, and trust boundaries.

Gorynych

Infrastructure & cloud

Reviews cloud and container configuration, proxies, secrets, and CI/CD.

Leshy

Codebase reconnaissance

Maps the codebase, dependencies, and connections that other reviewers may overlook.

Koschei

Root causes & attack chains

Connects candidate weaknesses into source-backed paths and checks every hop.

Mirror

Independent validation

Challenges evidence, exploitability, severity, and mitigations through five gates.

Kot

Memory & documentation

Preserves decisions, handoffs, coverage, and the team's session history.

Start where data leaves a trace

One sink. Every relevant angle.

A security review can lose the thread as it moves from one vulnerability class to another. TEREM organizes the work around output sinks: HTTP responses, email, logs, generated PDFs, files, and redirects.

For each sink, the team traces data back to its sources, examines the controls along the path, and applies the relevant vulnerability classes. An email builder deserves the same scrutiny as the endpoint that calls it.

TEREM is a security-team configuration built on GitHub Squad: specialist roles, explicit handoffs, validation rules, report templates, and structural validators.

Illustrative review · email notification

  1. Email output Start at the sink. What reaches the recipient?
  2. Template & notification service Trace encoding, field binding, and content assembly.
  3. Endpoint & input sources Check ownership, authorization, and attacker control.

Review angles: HTML injection, access control, mass assignment, and privilege boundaries. A review angle is a question to investigate, not a finding.

From source to a defensible report

A team with explicit handoffs.

Discovery, triage, chain analysis, and validation have separate owners. Candidate issues stay provisional until the evidence has been reviewed.

  1. Inventory

    Vasilisa enforces Phase 0: map output sinks and inventory query parameters before discovery starts.

  2. Investigate in parallel

    Specialists inspect application code, identity boundaries, infrastructure, and dependencies within the static review scope.

  3. Triage the candidates

    Vasilisa consolidates evidence and routes the candidate set for deeper analysis.

  4. Connect attack chains

    Koschei connects candidates across agents, traces each hop in source, and looks for controls that break the path.

  5. Challenge the evidence

    Mirror independently applies all five validation gates to standalone candidates and complete chains.

  6. Report & preserve

    Vasilisa assembles validated findings and manual verification steps. Kot preserves decisions, coverage, and session records.

Mirror's Five-Gates review

A plausible story needs proof.

Every candidate must survive an independent review. For an attack chain, the evidence must support every hop and the final impact. One effective control can break the entire chain.

“Confirmed” means the candidate passed the source-based validation process. Runtime reproduction remains a separate, manual step for the user.

CONFIRMEDOBSERVATIONREJECTED
  1. Source code verification

    Does the claim match exact file-and-line evidence on a reachable code path?

  2. Attack flow validation

    Is the sequence realistic, with explicit prerequisites and traceable state changes?

  3. Severity calibration

    Does the demonstrated impact support the proposed severity?

  4. False-positive review

    Do sanitization, ownership checks, framework protections, or other controls defeat the claim?

  5. Reproducibility & manual PoC

    Are the steps and prerequisites clear enough for a person to verify the issue?

What comes out of a review

Findings you can follow back to code.

The review package

  • Findings report with source locations, impact, and manual proof-of-concept steps.
  • Attack-chain analysis with per-hop evidence and an end-to-end verification path.
  • Execution summary documenting the team's review work, coverage, and handoffs.
  • Supporting records preserving analysis, validation decisions, and session context.

Source review, with human verification

TEREM analyzes an approved local copy of source code. Its workflow does not execute the target or access live environments. The user performs runtime verification separately.

The report separates findings that passed validation from observations and gaps, so a reviewer can see both the evidence and its limits.

What is needed to run the full workflow?

A compatible Squad host, Python 3 for report validation, the target source code, and all 51 mapped active local checklist files from authorized sources. Checklist contents are supplied separately and are not bundled in the repository. See the README for setup requirements.

Explore TEREM on GitHub ↗

Built on GitHub Squad, © 2026 Brady Gaster and contributors (MIT). Some separately obtained local checklist references originate from SnailSploit/offensive-checklist; checklist text is not reproduced here. See TEREM's third-party notices for attribution and redistribution status.