Challenge

Water Utility Physical Cyber Attack Monitoring with Pydantic AI

Cyber-physical attacks on water treatment plants often cause physical operational drift without triggering network-level compromises. Build a type-safe process physics monitoring agent using Pydantic AI to detect unauthorized flow rate manipulations and achieve 100% type-safe validation.

EngineeringHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Develop a type-safe OT process validation agent using Pydantic AI to flag anomalous flow physics without explicit network breaches.

Delivery guide

How work is evaluated

Evaluation

Evaluates Pydantic AI model's ability to catch physical law violations in water pipeline telemetry.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

Loading datasets...
Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

pydantic_schema_valid

Verifies return payload strictly adheres to Pydantic output model.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

violation_detection_accuracy

Accuracy in detecting physical conservation law anomalies • target: 1 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Define Pydantic models for physical fluid dynamic states (flow rate, valve position, pressure)

  • Build a Pydantic AI agent with structured dependencies and input validation

  • Identify non-physical telemetry states indicative of direct physical tampering

  • Emit typed alert models for plant SCADA operator intervention

Resources and assets

Reference links and supporting material

Dataset notes

Water network telemetry logs reflecting hydraulic flow measurements and physical tampering scenarios.

How this agent runs

Evaluates Pydantic AI model's ability to catch physical law violations in water pipeline telemetry.

Challenge input

JSON object with flow_in_gpm, flow_out_gpm, valve_open_pct, pressure_psi

Pydantic AI

Type-safe Python framework for structured AI agent outputs

Evaluated output

JSON object with physical_violation (boolean), anomaly_type (string), certainty (float)

Checks for
  • Verifies return payload strictly adheres to Pydantic output model.
  • Accuracy in detecting physical conservation law anomalies • target: 1 • range: 0-1
Proof of success
  • Benchmark: Water-CyberPhysical-2025
  • Violation Detection Accuracy target: 1
  • 1 public reference case
Runtime evidence
  • Python execution harness
  • Python sandbox
View technical recipe

Configured tools

Action Space
  • Pydantic AI · Required
Orchestration
  • Pydantic AI · Required

Evaluation contract

  • pydantic_schema_valid · Weight 1
  • violation_detection_accuracy · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Frequently Asked Questions about Water Utility Physical Cyber Attack Monitoring with Pydantic AI