yml2reg
Pass
Audited by Gen Agent Trust Hub on Jul 12, 2026
Risk Level: SAFEDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The
scripts/yml2reg.pyscript usesgetpass.getuser()to retrieve the local OS username and includes it in the header comment of every generated Verilog file. This results in the exposure of user identity information within the generated artifacts. - [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection through its ingestion of untrusted YAML data. Specifically, the
namefield from the YAML input is used directly to construct the output file path inyml2reg.py(e.g.,data["name"].upper() + "_" + protocol + "_regfile.v") without any sanitization or validation. An attacker could provide a YAML file with a maliciousnamecontaining path traversal sequences (e.g.,../../) to overwrite files in unintended directories relative to the input file. - [PROMPT_INJECTION]: The skill presents an indirect prompt injection surface as it generates hardware logic (Verilog RTL) based on external data. A maliciously crafted YAML file could lead to the generation of incorrect logic or hardware backdoors.
- Ingestion points: Reads
registersandfieldsdefinitions from user-provided YAML files. - Boundary markers: None identified; the skill directly processes the YAML content.
- Capability inventory: The skill has the capability to write files to the local filesystem via the
yml2reg.pyscript. - Sanitization: There is no validation or sanitization of the YAML content before it is used to generate Verilog code or construct filenames.
Audit Metadata