Overview
Thejira download command retrieves file attachments from Jira issues using their attachment IDs. This command is essential for offensive operations involving data exfiltration, reconnaissance of uploaded files, analysis of potential sensitive documents, or retrieving payloads uploaded by other team members during collaborative red team engagements.
Syntax
Required Parameters
The base URL of the target Jira instance (e.g.,
https://company.atlassian.net)Comma-separated list of attachment IDs to download (no spaces). Use
jira listattachments to obtain attachment IDs. Example: 10234,10235,10236Optional Parameters
Authentication cookie (
cloud.session.token or tenant.session.token). Required for downloading attachments from non-public issuesDirectory path where downloaded files will be saved. If not specified, files are saved to the current working directory
Save command output logs to a specified file
Examples
Download Single Attachment
Download a single file by its attachment ID:Download Multiple Attachments
Download several files at once using comma-separated IDs:Download to Current Directory
Download files to the current working directory:Bulk Document Exfiltration
Download multiple documents after reconnaissance:Use Cases
- Red Team
- Blue Team
Offensive Security Applications
- Data Exfiltration: Download sensitive documents attached to issues (financial reports, credentials, configs)
- Reconnaissance: Analyze uploaded files for intelligence gathering
- Payload Retrieval: Download files uploaded by other attackers or team members
- Credential Harvesting: Extract password files, configuration files, or documents containing credentials
- Source Code Theft: Download source code or intellectual property attached to development issues
- Document Analysis: Retrieve files for metadata analysis or embedded credential discovery
- Evidence Collection: Download files demonstrating security misconfigurations
- Lateral Movement: Obtain configuration files or scripts that aid in network traversal
Output
The command downloads files and saves them with their original filenames to the specified directory. Example output:File Handling
- Files are saved with their original filenames as stored in Jira
- If the output directory doesn’t exist, the command may fail (ensure directory exists)
- Files with duplicate names will overwrite existing files in the output directory
- File metadata (creation date, author) is not preserved in the downloaded file
Attachment ID Discovery
Usejira listattachments to discover attachment IDs:
Detection Considerations
Jira Audit Log Entries
This command generates the following audit log events:attachment_viewedorattachment_downloaded- Records the download activity- Includes: User ID, attachment ID, issue key, timestamp, IP address
Network Indicators
- HTTP GET requests to
/rest/api/3/attachment/{attachmentId}(metadata retrieval) - HTTP GET requests to attachment content URLs
- Large HTTP response sizes corresponding to file downloads
- Multiple sequential requests if downloading multiple attachments
OPSEC Considerations
Download Limitations
- Requires valid authentication cookie for non-public attachments
- File size limits may apply based on network/system constraints
- Some attachments may be restricted by issue-level permissions
- Deleted attachments cannot be downloaded (404 errors)
Cookie Considerations
- Session cookies can be extracted from user browsers using tools like SharpChrome
- Ensure cookie validity before initiating large download operations
- Different cookies may have different permissions based on the user’s role
- Anonymous downloads typically not permitted
File System Considerations
- Ensure sufficient disk space for downloaded files
- Be aware of file system path length limitations (Windows: 260 characters)
- Downloaded files inherit local system permissions
- Antivirus may scan downloaded files and potentially alert
Related Commands
- jira listattachments - List attachments and obtain attachment IDs for download
- jira attach - Upload files to issues
- jira listissues - View issues and their attachments
- jira searchissues - Search for issues containing specific attachments
- jira listprojects - Identify projects that may contain valuable attachments