bitbucket-helper
Warn
Audited by Gen Agent Trust Hub on Sep 19, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/bitbucket_server_pr.pydynamically imports and executes a module namedpr_writerfrom a relative file path (../../pr-writing/scripts/pr_writer.py). This dynamic loading from a computed path outside the skill's own directory presents a potential security risk if the environment structure is manipulated. - [COMMAND_EXECUTION]: The skill uses
subprocess.runto execute localgitcommands. Although it passes arguments as a list to prevent shell injection, the ability to invoke local binaries based on user-supplied repository directories grants significant local execution power. - [DATA_EXFILTRATION]: The
createandupdatecommands include a--description-fileargument that allows the skill to read content from an arbitrary local file path usingPath.read_text. This capability could be misused to read sensitive system files (e.g., credentials or configuration files) and transmit their contents to Bitbucket servers via pull request API calls. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data retrieved from external Bitbucket repositories, such as diffs, commit messages, and pull request descriptions. This data is formatted and presented to the agent, creating a surface for indirect prompt injection attacks.
- Ingestion points: Untrusted data enters the agent context via API calls in
get_pr,pr_diff,repo_file,pr_changes, andpr_commitswithinscripts/bitbucket_server_pr.py. - Boundary markers: There are no explicit delimiters or instructions provided to the agent to treat external PR content as potentially untrusted data.
- Capability inventory: The skill has access to local file reading, network operations (via
urllib), and command execution (git). - Sanitization: The script includes a
previewfunction that truncates long output strings, but it does not perform sanitization or escaping of characters that might influence the agent's behavior.
Audit Metadata