uncertainty-and-units
Pass
Audited by Gen Agent Trust Hub on Nov 7, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes external data including Python source files, JSON specification files, and mathematical expressions, which presents an indirect injection surface.
- Ingestion points:
scripts/audit_units.pyreads Python files;scripts/uncertainty_budget.pyandscripts/propagate_uncertainty.pyread JSON specification files;scripts/propagate_uncertainty.pyandscripts/check_plausibility.pyaccept mathematical expressions as command-line arguments. - Boundary markers: No explicit delimiters are used for the input data in the prompt context.
- Capability inventory: The skill can read local files and write results to the filesystem using
atomic_write_bytesinscripts/_common.py. It evaluates mathematical logic through a custom AST walker. - Sanitization: The skill employs robust sanitization by using a strict whitelist for AST nodes during expression parsing and a hardened JSON loader that rejects non-standard constants.\n- [DYNAMIC_EXECUTION]: The skill evaluates mathematical expressions provided at runtime.
- Evidence:
scripts/_common.pyimplementsparse_expressionandreduce_expressionto evaluate measurement models. This is done by parsing the input string into an Abstract Syntax Tree (AST) and manually walking the tree against a whitelist of allowed nodes and functions (e.g.,abs,sin,cos,sqrt), avoiding the use of dangerous functions likeeval()orexec()on arbitrary input.
Audit Metadata