Back to skill

Security audit

Publisher

Security checks for vulnerabilities and agentic risk

Overview

This publishing skill is mostly coherent, but it asks agents to persist plaintext account credentials and contains a conflicting default that could publish a project publicly without clear confirmation.

Install only if you are comfortable uploading project ZIPs to PushWebly and managing credentials carefully. Avoid allowing plaintext password storage in ~/.publisher/config.json when possible, remove that file when finished, and explicitly confirm public or private visibility before any publish operation.

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 (2)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:219
Finding

Plaintext Persistent Storage of Account Password and Bearer Token

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 219-256
Vulnerability Type: Plaintext sensitive credential storage
Risk Level: High

Vulnerable Code

text
2. If `~/.publisher/config.json` exists, read the stored username/password and
   log in again to refresh the token.
json
{
  "baseUrl": "https://ai-pub.pushwebly.com",
  "username": "alice",
  "password": "plain-text-password",
  "authorization": "Bearer <TOKEN>",
  "userId": 1
}
text
On Linux/macOS, set mode `600` after writing. On 401, refresh the token once by
logging in again, then retry the failed operation once.

Technical Analysis

The Skill instructs the Agent to persist both a reusable account password and an active bearer token in ~/.publisher/config.json. These credentials are stored without encryption.

File mode 600 limits access to the owning operating-system account, but it does not protect the credentials from malicious processes running as that user, compromised development tools, unintended backups, filesystem disclosure, or accidental copying. Persisting both the password and bearer token also increases exposure unnecessarily: either credential may be sufficient to access the publishing account.

The password can be used to obtain new tokens after an existing token expires or is revoked. An unexpired bearer token can be used directly without possessing the password.

Attack Path

  1. The user authorizes local credential storage after logging in or registering.
  2. The Agent writes the username, plaintext password, and bearer token to ~/.publisher/config.json.
  3. An attacker obtains same-user filesystem access through malware, a compromised extension, an exposed backup, or another process operating under the user's account.
  4. The attacker reads the configuration file.
  5. The attacker uses the bearer token directly or submits the stored username and password to the ...[truncated 718 chars]
Remediation
View remediation

Remediation Suggestions

  1. Do not persist the account password after authentication.
  2. Store credentials in the operating system's protected credential facility, such as macOS Keychain, Windows Credential Manager, or Linux Secret Service.
  3. Prefer short-lived access tokens backed by narrowly scoped, revocable refresh tokens.
  4. Store only the minimum credential material necessary for the publishing operation.
  5. If a file-based fallback is unavoidable:
    • Encrypt credential values using a key protected by the operating system.
    • Create the file atomically with restrictive permissions rather than changing permissions after creation.
    • Validate file ownership and reject symbolic links before reading or writing it.
    • Exclude the file from backups and diagnostic bundles where possible.
  6. Redact passwords and authorization headers from logs, command output, exceptions, and user-facing messages.
  7. Provide an explicit logout or credential-removal operation that revokes tokens and securely removes locally stored authentication data.

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:54
Finding

Conflicting Visibility Instructions Can Cause Unintended Public Disclosure

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 54-57 and 208-209
Vulnerability Type: Unsafe default and contradictory security configuration
Risk Level: Medium

Vulnerable Code

text
<HARD-GATE>
The publishing process is a blocking finite-state machine. As long as the current step lacks user input, the model must stop advancing, only pose one question for the current step, and wait for the user's response.
Guessing answers based on context is prohibited.
Automatic selection of public/private is prohibited.

The Skill later provides the contradictory instruction:

text
Default to `public` if the user does not specify visibility. A private access
password must match `^[A-Za-z0-9]{6}$`; otherwise ask for a valid password or let
the backend generate one.

Technical Analysis

The Skill defines visibility as a mandatory user-confirmed decision and explicitly prohibits automatic selection. It later directs the Agent to default to public visibility when the user does not specify a value.

These instructions cannot both be followed. Depending on instruction interpretation, an Agent may apply the public default and invoke the publishing endpoint without informed confirmation. Public is not a fail-safe default because it changes the confidentiality boundary of uploaded content.

The public publishing example also omits an explicit visibility field, meaning backend-default behavior can reinforce the unsafe result if the Agent follows the later instruction.

Attack Path

  1. A user requests publication of a ZIP project but does not state whether it should be public or private.
  2. The Agent encounters the instruction to default unspecified visibility to public.
  3. Instead of stopping at the visibility confirmation state, the Agent submits the project through the public publishing request.
  4. The service creates a publicly accessible project URL without an access password. ...[truncated 611 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove the instruction to default unspecified visibility to public.
  2. Require an explicit public or private choice before every initial publication.
  3. Fail closed when visibility is absent, ambiguous, or invalid.
  4. Keep a single authoritative visibility rule and remove all conflicting fallback behavior.
  5. Include "visibility": "public" explicitly in public API requests only after the user confirms that choice.
  6. Immediately before submission, verify that the recorded visibility came from explicit user input.
  7. Add negative test cases confirming that no publishing API is called when visibility has not been selected.
  8. Consider requiring an additional confirmation when changing an existing private project to public.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (6)

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill instructs the agent to store credentials in ~/.publisher/config.json, and the documented file format includes plaintext username, password, and bearer token. The user-facing description does not clearly disclose this sensitive local persistence risk, so users may provide credentials without informed consent, increasing exposure from local compromise, backups, logs, or multi-user systems.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
98% confidence
Finding

The skill explicitly permits persistent local storage of account credentials in ~/.publisher/config.json, and later specifies storing plaintext username/password plus bearer token. Persistent plaintext secrets materially raise account-takeover risk if the workstation, home directory, shell history, backups, or sync tooling are exposed.

Content

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

md
- Do not require Python. Optional scripts, if present, are for CLI/CI users only.
- Ask only for genuinely missing information: credentials, zip path, project
  name, public/private visibility, or private access password preference.
- Never write credentials into a project zip or repository file. Store them only
  in the user's local `~/.publisher/config.json` after consent.
- On Windows/PowerShell, use a temp JSON file for request bodies instead of
  shell-escaping inline JSON.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The activation language is overly broad, including generic intents like launching, sharing, or generating access links, which can cause the skill to trigger outside a clearly scoped publishing request. That increases the chance an agent will move into an externally publishing workflow and ask for credentials or upload artifacts when the user meant something less sensitive.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

  1. Query the latest platform version (no login required):

    bash
    curl -s https://ai-pub.pushwebly.com/api/skill/latest-version
    

    The response data contains: version (latest), downloadUrl (cross-platform doc package, unzip-and-use), downloadUrlWindows (Windows installer .exe), and downloadUrlMac (macOS installer .zip).

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
- macOS → use `downloadUrlMac`
     - OS unknown, or the matching field is empty → fall back to the generic `downloadUrl`

     Notice text (**output it in the SAME language the user is conversing in** — Chinese if they write Chinese, English if English; do not hard-code one language; the example below is English only as a template; replace the URL with the real selected one; **write the download URL as a clickable Markdown link `[URL](URL)` — do NOT wrap it in backticks as inline code, or the user cannot click it**; never leave a placeholder, never say "a new version exists" without giving the link):

     > Note: a newer Publisher skill version `<version>` is available (you are on `<local version>`). Download: [https://ai-pub.pushwebly.com/downloads/AI_Publisher_skill.exe](https://ai-pub.pushwebly.com/downloads/AI_Publisher_skill.exe) (updating does not affect the current publish).

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill contains contradictory control flow: the hard-gate explicitly forbids automatic public/private selection, but S4 later says to default to public when the user does not specify visibility. In practice, that can cause an agent to publish content with broader exposure than the user intended, creating unintended data disclosure or premature public release.

Content

No source excerpt is available for this finding.