Back to skill

Security audit

Publisher

Security checks for vulnerabilities and agentic risk

Overview

This publishing skill is mostly purpose-aligned, but it stores reusable account credentials locally in plaintext-like JSON and has contradictory rules that could publish a project publicly without explicit visibility confirmation.

Review this skill carefully before installing. Use it only for projects you are willing to upload to PushWebly, remove secrets from ZIP files, avoid saving passwords or bearer tokens in ~/.publisher/config.json when possible, and explicitly choose public or private visibility before any publish action.

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 persistence of account passwords and bearer tokens

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 219–220 and 247–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
}

The instructions subsequently recommend setting file mode 600 on Linux and macOS. This permission setting limits access by other local users but does not encrypt the credentials.

Technical Analysis

The Skill explicitly permits a reusable account password and bearer token to be stored in plaintext in ~/.publisher/config.json. A bearer token authorizes its holder without requiring additional proof of identity, while the stored password may allow an attacker to obtain new tokens after the existing token expires.

File mode 600 does not protect the secrets from malicious or compromised processes running under the same user account, filesystem backups, accidental file disclosure, Agent tools with home-directory access, or a broader compromise of the user account. Storing both the password and token also unnecessarily increases the number and lifetime of reusable authentication secrets exposed by one file.

Attack Path

  1. The user consents to local credential storage, and the Agent writes the username, plaintext password, and bearer token to ~/.publisher/config.json.
  2. An attacker obtains same-user filesystem access through malware, a compromised development tool, an overly broad Agent tool, an exposed backup, or accidental disclosure.
  3. The attacker reads the configuration file and extracts the password or bearer token.
  4. The attacker submits the bearer token to the publishing APIs or uses the password with ...[truncated 838 chars]
Remediation
View remediation

Remediation Suggestions

  1. Do not store account passwords or bearer tokens in plaintext JSON files.
  2. Store reusable credentials in the operating system's protected credential facility, such as macOS Keychain, Windows Credential Manager, or a Linux Secret Service implementation.
  3. Prefer short-lived, narrowly scoped access tokens and revocable refresh tokens instead of retaining the account password.
  4. If secure credential storage is unavailable, keep the token only in process memory and require reauthentication for subsequent sessions.
  5. Ensure tokens have short expiration periods, server-side revocation support, and the minimum scopes required for the requested operation.
  6. Continue applying restrictive filesystem permissions to any non-secret configuration, but do not treat mode 600 as a substitute for protected secret storage.
  7. Provide a logout or credential-removal operation that deletes locally retained authentication material and revokes server-side sessions.

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:53
Finding

Conflicting visibility rules can cause unintended public publication

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 53–62, 153–162, and 208–209
Vulnerability Type: Fail-open publication visibility configuration
Risk Level: Medium

Vulnerable Code

The mandatory publishing gate prohibits automatic visibility selection:

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.
Automatic generation of access passwords is prohibited, unless the user explicitly chooses to have the system generate them.
It is prohibited to call the release interface before completing all necessary steps.
Each response can contain at most one user-facing question.
</HARD-GATE>

The visibility state also requires an explicit answer:

text
### S2: Inquire about application visibility

If the public or private status has not been clearly defined, only ask:

> Is this application public? Public means anyone can access it via a link; private requires a 6-digit access password.

User answer:
- Public / Yes / public: Record `visibility=public`, enter `S4`
- Private / No / private: Record `visibility=private`, enter `S3`
- Unclear: Continue to ask only about this item

A later instruction directly contradicts those requirements:

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 provides mutually exclusive instructions for handling unspecified visibility. The finite-state-machine rules require explicit user input and prohibit automatically choosing public or private, while the later instruc ...[truncated 1798 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove the instruction to default to public when visibility is unspecified.
  2. Define visibility as a required field and reject publication requests when it is absent.
  3. Require an explicit, recorded user selection of public or private before invoking any publishing interface.
  4. If a technical default is unavoidable, fail closed by selecting private rather than public, while still requiring confirmation before release.
  5. Consolidate all visibility behavior into one authoritative section to prevent conflicting Agent interpretations.
  6. Add a final pre-publication check confirming the project name, selected visibility, and private-password behavior.
  7. Add tests demonstrating that missing or ambiguous visibility never results in a publishing API call.
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 (7)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill description does not clearly warn that using the skill sends project archives and possibly credentials to a third-party remote service. Users may consent to an apparently local packaging/publishing action without understanding that code and secrets embedded in the zip could be transmitted externally.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
94% confidence
Finding

The instruction explicitly permits persisting credentials in ~/.publisher/config.json after consent. Even with consent, storing reusable credentials locally increases theft risk from local malware, other users, backups, logs, or accidental file sharing, and the skill context includes credentials with access to remote publishing actions.

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
95% confidence
Finding

The trigger language is very broad and includes generic phrases like publishing, deploying, launching, sharing applications, and generating access links. That can cause the skill to activate in situations where the user did not intend remote publication, increasing the chance of accidental file upload or credential prompting.

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
97% confidence
Finding

The skill’s finite-state flow says visibility must be explicitly collected and that automatic selection is prohibited, but later guidance says to default to public if unspecified. In practice, this contradiction can cause an agent to publish content publicly without an explicit user decision, exposing project contents unintentionally.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill instructs storing username, password, and bearer token in a local config file in plaintext-like form, but does not prominently warn the user about that persistence risk. If the host is multi-user, compromised, backed up insecurely, or indexed by other tools, those credentials can be recovered and reused to access or modify published projects.

Content

No source excerpt is available for this finding.