rust-ffi-interop

Pass

Audited by Gen Agent Trust Hub on Oct 3, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
  • [SAFE]: The skill is a set of educational templates and documentation for Rust FFI. It utilizes industry-standard tools and libraries including pyo3, bindgen, and cbindgen. All external documentation references point to reputable official sources.
  • [INDIRECT_PROMPT_INJECTION]: The skill demonstrates functions that ingest external data for processing, which is a standard pattern for FFI modules.
  • Ingestion points: Functions like mylib_compress in examples/advanced.rs and batch_distances in examples/intermediate.rs take data from callers via pointers or collection types.
  • Boundary markers: The skill explicitly teaches the use of catch_unwind to create a safety boundary between Rust and foreign code.
  • Capability inventory: The provided code performs mathematical operations and data compression; it contains no logic for file writing, network communication, or system command execution.
  • Sanitization: The examples implement robust validation, including null pointer checks and buffer size verification, following secure coding standards for FFI.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 3, 2026, 01:09 AM