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_modelfunction inscripts/_common.pyusesimportlib.util.spec_from_file_locationandspec.loader.exec_moduleto 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_interfacesandnormalise_checksfunctions inscripts/_common.pyto 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.jsonare used to define model parameters. - Boundary markers: The skill enforces a structured model format with
INTERFACEandDESIGNblocks 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
_coercefunction in_common.pycasts input strings to specific types (int, float, bool), and metadata structures are validated against expected types and required keys.
Audit Metadata