lab-hardware-cad

Pass

Audited by Gen Agent Trust Hub on Nov 7, 2026

Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The import_model function in scripts/_common.py uses importlib.util.spec_from_file_location and spec.loader.exec_module to dynamically load and execute model files (*_model.py). This is the primary mechanism of the skill, as build123d models are defined as Python source code. The skill documentation explicitly warns that model files execute arbitrary Python and advises users to vet code from untrusted sources.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from user requests (e.g., dimensions from vendor drawings or measurements) and interpolates them into generated Python model files. While the scripts include normalise_interfaces and normalise_checks functions in scripts/_common.py to validate the schema of the model's metadata, the generated code is subsequently executed in the current environment.
  • Ingestion points: User-provided measurements, vendor drawings, and the bundled assets/standards.json are used to define model parameters.
  • Boundary markers: The skill enforces a structured model format with INTERFACE and DESIGN blocks and uses specific functions (interfaces(), checks(), build()) to scope different parts of the model code.
  • Capability inventory: The skill's scripts (gen.py, check.py, snapshot.py) can execute Python modules, write files (STEP, STL, DXF, PNG, JSON), and perform geometric calculations.
  • Sanitization: The _coerce function in _common.py casts input strings to specific types (int, float, bool), and metadata structures are validated against expected types and required keys.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 7, 2026, 12:21 PM