TypeScript AI SDK Cyber Exposure Risk Model for Acquisitions
Cyber insurance underwriters need fast risk scoring engines to evaluate enterprise security postures prior to portfolio acquisition. Build a TypeScript Vercel AI SDK workflow to assess cyber vulnerability scan reports and predict expected annual loss (EAL).
What you are building
Construct an AI SDK stream-enabled pipeline in TypeScript to analyze network telemetry and quantify cyber M&A exposure.
How work is evaluated
Evaluates precision of extracted vulnerability severity ratings and expected financial loss calculations.
Datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
zod_schema_match
Ensures output validates against Zod contract schema
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
eal_accuracy
Accuracy of loss estimate compared to actuarial model • target: 0.88 • range: 0-1
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Learning goals
Use Vercel AI SDK streamText and generateObject functions in TypeScript
Parse external attack surface vulnerability scans (CVE lists, open ports)
Calculate Cyber Expected Annual Loss (EAL) using structured LLM output schemas
Resources
Cyber vulnerability scan dataset of 300 target enterprise networks with ground truth loss histories.
Challenge setup
Evaluates precision of extracted vulnerability severity ratings and expected financial loss calculations.
Challenge input
JSON with cve_list and asset_count
AI SDK
Vercel's framework for streamable, type-safe AI workflows
Evaluated output
JSON containing eal_usd, risk_grade, and key_vulnerabilities
- Ensures output validates against Zod contract schema
- Accuracy of loss estimate compared to actuarial model • target: 0.88 • range: 0-1
- Benchmark: Cyber-Risk-Bench
- Eal Accuracy target: 0.88
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
Shows the first task, up to three tools, and up to three evidence items.
View technical recipe
Configured tools
- TensorRT-LLM · Required
- Writer · Optional
- Qwen 3 · Optional
Evaluation contract
- zod_schema_match · Weight 1
- eal_accuracy · Weight 1
Metrics
- eal_accuracy · Target 0.88
Benchmarks
- Cyber-Risk-Bench
- security
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON with cve_list and asset_count
Output: JSON containing eal_usd, risk_grade, and key_vulnerabilities
Execution harness: JavaScript
Evaluation tools
- AI SDK · Agent TypeScript Framework
Recipe freeze marker
No recipe freeze time is recorded.