skills/ag2ai/ag2-skills/calculator/Gen Agent Trust Hub

calculator

Pass

Audited by Gen Agent Trust Hub on May 8, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill uses a robust security pattern for evaluating mathematical expressions. The script scripts/calc.py parses input using ast.parse and manually traverses the tree, only allowing a strictly defined whitelist of arithmetic operations (Add, Sub, Mult, Div, FloorDiv, Mod, Pow, Unary Negation/Positive) and numeric constants. Any attempt to use functions, classes, or imports will result in a ValueError, preventing arbitrary code execution.
Audit Metadata
Risk Level
SAFE
Analyzed
May 8, 2026, 09:14 PM
Security Audit — agent-trust-hub — calculator