uncertainty-and-units

Pass

Audited by Gen Agent Trust Hub on Oct 31, 2026

Risk Level: SAFE
Full Analysis
  • [DYNAMIC_EXECUTION]: The skill implements a robust and secure expression evaluator in scripts/_common.py. Instead of using eval() or exec(), it uses ast.parse and a manual tree-walking reducer (reduce_expression). This evaluator is restricted to a whitelist of safe AST nodes, a specific list of mathematical functions (e.g., sin, sqrt, erf), and constants. It also enforces strict limits on expression length, node count, and nesting depth to prevent resource exhaustion.
  • [INDIRECT_PROMPT_INJECTION]: The skill has several ingestion points for external data, including Python source code (via audit_units.py), JSON specifications (via uncertainty_budget.py), and mathematical expressions. These are handled using secure parsing techniques. The JSON loader in _common.py is configured to reject non-standard constants and duplicate keys. While the tool outputs could theoretically be poisoned by malicious content in processed files, the use of structured output and explicit parsing logic significantly reduces the risk of the agent misinterpreting the results.
  • [EXTERNAL_DOWNLOADS]: The skill relies on well-known scientific Python libraries (pint, uncertainties, numpy, scipy). These are standard dependencies in the research community and are pinned to specific versions in the installation instructions. No unverified or suspicious remote code execution patterns were detected.
  • [DATA_EXPOSURE]: The utility functions in scripts/_common.py implement defensive file-handling logic. The checked_input_file and checked_output_file functions explicitly reject network URLs and symlinks, and enforce a 4MB size limit on inputs. File writes are performed atomically using temporary files with private permissions (0o600).
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 31, 2026, 03:30 PM