ktor-routing

Pass

Audited by Gen Agent Trust Hub on Jun 19, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill defines patterns for REST API routing in Kotlin using the Ktor framework, emphasizing extension functions and manual dependency injection rather than runtime annotations.
  • [SAFE]: Centralized error handling is demonstrated using StatusPages, which maps internal exceptions to structured ApiError responses, preventing sensitive stack trace leakage.
  • [SAFE]: Authentication logic demonstrates standard JWT validation and claim extraction using JWTPrincipal, including appropriate authorization checks through specialized error helpers.
  • [SAFE]: Data ingestion from request parameters and bodies includes explicit validation steps and type-safe wrapping into value classes, reducing the risk of common injection vulnerabilities.
Audit Metadata
Risk Level
SAFE
Analyzed
Jun 19, 2026, 09:43 PM
Security Audit — agent-trust-hub — ktor-routing