scenario-unity-expert

Warn

Audited by Gen Agent Trust Hub on Oct 29, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
  • [DYNAMIC_EXECUTION]: The skill implements a live bridge (AgentBridge.cs) and an evaluation utility (ut_live.py) that allow for the runtime generation and execution of arbitrary C# code within the Unity Editor environment.
  • Evidence in scripts/ut_live.py shows an eval function that writes C# snippets to Assets/Editor/AgentEval/ and triggers their compilation and execution.
  • Evidence in scripts/AgentKit/AgentBridge.cs shows the bridge polling an inbox directory for JSON requests and using reflection to find and invoke static methods by name.
  • [COMMAND_EXECUTION]: The toolkit frequently spawns external processes to manage the Unity Editor lifecycle and execute batch jobs.
  • scripts/ut_run.py and scripts/ut_live.py use subprocess.Popen and subprocess.run to launch Unity binaries with various command-line arguments.
  • scripts/ut_env.py uses subprocess.run to perform filesystem operations like cloning projects via cp and checking Xcode versions.
  • [EXTERNAL_DOWNLOADS]: The documentation references official installation methods that involve pipe-to-shell patterns from external sources.
  • references/live-channels.md mentions the official Unity CLI installer: curl -fsSL https://public-cdn.cloud.unity3d.com/hub/prod/cli/install.sh | bash.
  • Note: This targets a well-known service (Unity) and is documented for environment setup purposes.
  • [DATA_EXPOSURE]: The skill accesses local Unity license files to verify activation status.
  • scripts/ut_env.py reads ~/Library/Unity/licenses/UnityEntitlementLicense.xml to parse the <UpdateDate> field for checking the 30-day offline window.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from external sources which could serve as an injection surface.
  • Ingestion points: Reads Unity editor logs (scripts/ut_run.py), NUnit XML test results (scripts/ut_stat.py), and frame timing CSVs (scripts/ut_stat.py).
  • Boundary markers: The protocol uses an AGENT_RESULT prefix and JSON envelopes to delimit job output from engine log noise.
  • Capability inventory: The skill can write files to the project directory and execute shell commands to Unity.
  • Sanitization: External data is parsed into structured JSON objects before being returned to the agent context.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Oct 29, 2026, 04:40 PM