Back to skill

Security audit

Jira API (REST + Agile)

Security checks for vulnerabilities and agentic risk

Overview

This Jira automation skill is mostly coherent, but its generic request command can send Jira credentials to non-Jira URLs if misused or influenced by untrusted instructions.

Review before installing. Use a narrowly scoped Jira token if possible, confirm all destructive Jira changes, and avoid the generic request command unless the path is a Jira-relative path such as /rest/api/3/myself. The helper should be fixed to reject absolute URLs, validate the final Jira origin, and constrain --data-file before broad agent-driven use.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/jira_api.py:187
Finding

Jira API Token Disclosure Through Arbitrary Generic Request Destinations

Content
View full analysis
str: raw = f"{user}:{token}".encode("utf-8") return "Basic " + base64.b64encode(raw).decode("ascii") ``` Generic request handling at lines 187–200: ```python def cmd_request(args, cfg): server = cfg["server"] url = urllib.parse.urljoin(server + "/", args.path.lstrip("/")) if args.query: q = urllib.parse.urlencode(args.query) url += ("&" if "?" in url else "?") + q body = None if args.data_json: body = json.loads(args.data_json) elif args.data_file: with open(args.data_file, "r", encoding="utf-8") as f: body = json.load(f) status, j, raw = _http(args.method, url, args.headers, body) ``` Credential loading and header assignment at lines 636–646: ```python cfg = _read_jira_config(args.jira_config) host = urllib.parse.urlparse(cfg["server"]).hostname if not host: raise RuntimeError("Could not parse Jira hostname") user, token = _netrc_auth_for_host(host, args.netrc) args.headers = { "Accept": "application/json", "Authorization": _basic_auth_header(user, token), "User-Agent": "openclaw-skill/jira-api", } ``` ### Technical Analysis The script legitimately reads a Jira API token from `.netrc` and encodes the username and token using Base64 for HTTP Basic authentication. Base64 encoding is required by the authentication protocol and is not, by itself, evidence of covert exfiltration. The vulnerability occurs because the generic `request` command does not require `args.path` to be a relative Jira API path. It passes the value to `urllib.parse.urljoin()`: ```python url = urllib.parse.urljoin(server + ...[truncated 3103 chars]
Remediation
View remediation
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (10)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/endpoint-map.md (reported line 30)May include surrounding context.

md
- list: `GET /rest/api/3/issue/{key}/worklog`
- add: `POST /rest/api/3/issue/{key}/worklog`
- update: `PUT /rest/api/3/issue/{key}/worklog/{id}`
- delete: `DELETE /rest/api/3/issue/{key}/worklog/{id}`

Query params for update/delete:
- `adjustEstimate=auto|new|leave`

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 51)May include surrounding context.

md
## Auth

- Prefer **Basic auth** with Atlassian API token.
- In this workspace, credentials are typically stored in `~/.netrc`:
  - machine: `<your-domain>.atlassian.net`
  - login: `<email>`
  - password: `<api_token>`

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/jira-rest-notes.md (reported line 8)May include surrounding context.

md
## Auth

- Prefer **Basic auth** with Atlassian API token.
- In this workspace, credentials are typically stored in `~/.netrc`:
  - machine: `<your-domain>.atlassian.net`
  - login: `<email>`
  - password: `<api_token>`

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/jira_api.py (reported line 11)May include surrounding context.

python
## Auth

- Prefer **Basic auth** with Atlassian API token.
- In this workspace, credentials are typically stored in `~/.netrc`:
  - machine: `<your-domain>.atlassian.net`
  - login: `<email>`
  - password: `<api_token>`

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/jira_api.py (reported line 81)May include surrounding context.

python
## Auth

- Prefer **Basic auth** with Atlassian API token.
- In this workspace, credentials are typically stored in `~/.netrc`:
  - machine: `<your-domain>.atlassian.net`
  - login: `<email>`
  - password: `<api_token>`

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/jira-rest-notes.md (reported line 26)May include surrounding context.

md
### Worklogs

- List: `GET /rest/api/3/issue/{issueKey}/worklog`
- Delete: `DELETE /rest/api/3/issue/{issueKey}/worklog/{worklogId}?adjustEstimate=auto`
- Update: `PUT /rest/api/3/issue/{issueKey}/worklog/{worklogId}`
  - Body supports fields like `timeSpent`, `started`, and `comment` (ADF).

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/jira_api.py (reported line 106)May include surrounding context.

python
def _netrc_auth_for_host(hostname: str, netrc_path: str = DEFAULT_NETRC) -> tuple[str, str]:
    if not os.path.exists(netrc_path):
        raise FileNotFoundError(f".netrc not found: {netrc_path}")
    n = netrc.netrc(netrc_path)
    auth = n.authenticators(hostname)
    if not auth:

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/jira_api.py (reported line 107)May include surrounding context.

python
def _netrc_auth_for_host(hostname: str, netrc_path: str = DEFAULT_NETRC) -> tuple[str, str]:
    if not os.path.exists(netrc_path):
        raise FileNotFoundError(f".netrc not found: {netrc_path}")
    n = netrc.netrc(netrc_path)
    auth = n.authenticators(hostname)
    if not auth:

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/jira_api.py (reported line 641)May include surrounding context.

python
def _netrc_auth_for_host(hostname: str, netrc_path: str = DEFAULT_NETRC) -> tuple[str, str]:
    if not os.path.exists(netrc_path):
        raise FileNotFoundError(f".netrc not found: {netrc_path}")
    n = netrc.netrc(netrc_path)
    auth = n.authenticators(hostname)
    if not auth:

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill contains user-facing instructions primarily in Spanish, including usage guidance, warnings, and examples, but does not indicate that the language is optional or provide an alternative. This can violate a language/locale policy when users are not explicitly opted into Spanish-only documentation.

Content

No source excerpt is available for this finding.