teamcity-cli

Pass

Audited by Gen Agent Trust Hub on Sep 14, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADS
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The babysit-build agent in _agents/babysit-build.md is designed to autonomously diagnose and fix build failures by analyzing build logs and test results, which are untrusted data sources.
  • Ingestion points: The agent ingests build logs via teamcity run log <id> --raw and test results via teamcity run tests <id> --failed to identify failure causes.
  • Boundary markers: The instructions do not define delimiters or specific warnings to ignore instructions that might be embedded within build output or logs.
  • Capability inventory: The agent is granted capabilities to execute Bash commands, perform file Write operations for source code modification, and use teamcity agent exec for remote diagnostics.
  • Sanitization: There is no mention of sanitization or validation logic for the content of build logs before they are interpreted by the agent to determine fix strategies.
  • [COMMAND_EXECUTION]: The autonomous agent babysit-build operates with high authority, configured with background: true and permissionMode: auto. It is instructed to apply "Code and DSL fixes (repo changes)" immediately without human confirmation, allowing it to modify repository content based on potentially manipulated build output.
  • [REMOTE_CODE_EXECUTION]: The skill exposes several administrative commands that allow for remote code execution across the CI/CD environment:
  • teamcity agent exec and teamcity agent term enable running arbitrary shell commands and interactive terminals on remote build agents.
  • teamcity server plugin upload facilitates the installation of executable plugin archives to the TeamCity server, with support for hot-reloading.
  • [CREDENTIALS_UNSAFE]: The teamcity auth login command provides an --insecure-storage flag. When enabled, the tool stores the TeamCity access token in a plain-text configuration file instead of the system's secure keyring.
  • [EXTERNAL_DOWNLOADS]: The teamcity update command retrieves and installs updates for the CLI tool from a remote release feed, potentially executing new code when the --yes flag is used.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 14, 2026, 05:13 PM