uncertainty-and-units
Pass
Audited by Gen Agent Trust Hub on Sep 28, 2026
Risk Level: SAFE
Full Analysis
- [DYNAMIC_EXECUTION]: The skill processes measurement models provided as strings. However, instead of using unsafe functions like
eval()orexec(), it implements a secure expression evaluator inscripts/_common.py. This evaluator parses the input into an Abstract Syntax Tree (AST), validates it against a strict whitelist of allowed nodes (basic arithmetic and specific mathematical functions), and performs a controlled walk of the tree to compute the result. - [REMOTE_CODE_EXECUTION]: The skill requires standard scientific Python libraries (pint, uncertainties, numpy, scipy). Installation instructions use pinned versions and the
uvpackage manager. The scripts themselves do not perform any remote code execution or download external scripts at runtime. - [DATA_EXFILTRATION]: All bundled tools run locally. The file handling logic in
scripts/_common.pyspecifically rejects network URLs and symlinks for both input and output paths, ensuring data stays within the local environment. - [INDIRECT_PROMPT_INJECTION]: While the skill processes user-supplied expressions and code for auditing, it does so using static analysis and a restricted parser. The
audit_units.pyscript parses target code without importing or executing it, mitigating risks associated with malicious code content. - [PRIVILEGE_ESCALATION]: File writing is performed atomically using temporary files with private permissions (0o600), following security best practices to prevent unauthorized access to generated reports.
Audit Metadata