ktor-patterns
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill establishes an attack surface for indirect prompt injection by defining how to ingest and process untrusted data from external network APIs.
- Ingestion points: Data enters the agent's context through
client.get,client.post, andclient.body()calls within theUserApiclass andsafeRequestfunction inSKILL.md. - Boundary markers: No natural language boundary markers or instructions to ignore embedded commands are present in the provided templates.
- Capability inventory: The skill utilizes network communication (HTTP GET/POST/PUT/DELETE) and uses the
OkHttpengine for request execution. - Sanitization: The skill employs
kotlinx.serialization(DTO mapping) to ensure type safety, which serves as a basic form of data validation by enforcing a fixed schema on incoming JSON payloads. - [SAFE]: The skill uses established, standard libraries (io.ktor) for all networking tasks.
- [SAFE]: The implementation of security features such as Certificate Pinning and Bearer token authentication follows industry-standard security protocols for Android networking.
- [SAFE]: Logging is correctly configured to only output network body details during debug builds (
BuildConfig.DEBUG), preventing sensitive data leakage in production environments.
Audit Metadata