Principle:AISecurityLab Hackagent Model Reachability Preflight
| Knowledge Sources | |
|---|---|
| Domains | Security_Testing, Validation |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
A fail-fast validation pattern that checks every model a campaign depends on is reachable before any attack starts, so an unreachable endpoint fails immediately rather than mid-run.
Description
Building a model validates its configuration but sends nothing, so a wrong endpoint or a down server only shows up on the first real call — after the run has started and partly recorded results. Preflight checks every model the campaign uses (target, guardrails, attack roles and embedders, judges, goal classifier) before the first attack.
Key properties:
- Deduplication: A model used in several places is checked once, not once per use.
- Concurrent checks: All probes run concurrently with per-model timeouts.
- Collective reporting: Every failure is reported together in a single error, so the analyst sees all problems at once rather than fixing them one at a time.
This solves the problem of silent mid-run failures — a run that starts recording against an unreachable target wastes API calls, produces incomplete records, and requires manual inspection to diagnose.
Usage
Use this principle when a pipeline depends on multiple external services that may be unreachable. Preflight should be optional (skippable for development) but on by default. Each model's reachability check is its own business — the preflight layer only decides which to check and reports failures.
Theoretical Basis
# Abstract algorithm (NOT real implementation)
async def preflight(resolved):
# Run all reachability checks concurrently
results = await asyncio.gather(*(
asyncio.wait_for(probe.check(), timeout=probe.timeout)
for probe in resolved.probes
))
failures = [
f"{probe.name}: {result.detail}"
for probe, result in zip(resolved.probes, results)
if not result
]
if failures:
raise PreflightError(failures)