upload-github-attachment
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/upload-github-attachment.shexecutes theghCLI andcurlto interact with GitHub APIs and perform file uploads. - [DATA_EXFILTRATION]: The skill transmits local files to GitHub's user-attachment infrastructure using the user's
GH_TOKENorGITHUB_TOKEN. The script and instructions include explicit protections to prevent the leakage of these credentials in diagnostic output. - [EXTERNAL_DOWNLOADS]: The skill performs network requests to
uploads.github.comandapi.github.comas part of its core functionality to upload attachments and resolve repository information. - [INDIRECT_PROMPT_INJECTION]: The skill has an attack surface where it ingests local file paths for processing and upload.
- Ingestion points: Local file paths provided as arguments to the
upload-github-attachment.shscript inSKILL.mdandREADME.md. - Boundary markers: None; the tool performs a direct binary upload of the target file to GitHub.
- Capability inventory: File system read access, execution of system commands (
gh,curl,file,sed), and network POST access to GitHub domains. - Sanitization: The script validates that the returned URL starts with
https://github.com/user-attachments/before outputting it. The skill instructions also direct the agent not to issue network requests to verify the uploaded assets, reducing the risk of processing malicious content.
Audit Metadata