sample-plugin
Pass
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The calculator tool evaluates mathematical expressions using the
Functionconstructor, which allows for dynamic code execution. - Evidence:
scripts/calc.tscallsFunction()to compute the result of theexpressionparameter. - Mitigation: The input is strictly validated against a regular expression whitelist (
/^[\d\s+\-*/.()]+$/) which restricts characters to numbers and basic operators, preventing the injection of arbitrary JavaScript code. - [INDIRECT_PROMPT_INJECTION]: The
py_greettool creates a surface where external data can influence agent behavior if the output is processed by other LLM steps. - Ingestion points:
nameparameter inscripts/greet.py(viaplugin.json). - Boundary markers: None; the input is interpolated directly into the greeting template.
- Capability inventory: Both
scripts/greet.pyandscripts/calc.tsare limited to standard I/O; no file system write or network operations are present. - Sanitization: No sanitization is performed on the
nameinput. - [COMMAND_EXECUTION]: The skill executes local scripts using standard interpreters.
- Evidence:
plugin.jsondefines tool commands usingpython3andnpx tsxto run the provided script files.
Audit Metadata