Back to skill

Security audit

flora-flow 花间搭配

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report risks around photo handling, external data sharing, and path or command safety; they did not establish malicious intent.

Consider not installing until the service destination and photo or text handling are clearly disclosed, and the reported URL, file-path, and Windows resizing risks are addressed. The scan was marked partial because a referenced local path was missing, so the evidence is incomplete.

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

Warning
Location
scripts/flora.py
Finding

Server-controlled identifiers escape the local cache and overwrite files

Content
View full analysis

Impact

The response provider can overwrite any writable .jpg file at a known path with attacker-selected bytes. The identifier paths also permit JSON cache writes outside the intended directories. This does not establish arbitrary code execution.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (25)

Tainted flow: 'req' from os.environ.get (line 138, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/flora.py (reported line 140)May include surrounding context.

python
h.update(headers or {})
    req = urllib.request.Request(url, data=body, headers=h, method=method)
    try:
        with urllib.request.urlopen(req, timeout=timeout) as r:
            status, raw = r.status, r.read()
    except urllib.error.HTTPError as e:
        status = e.code

Tainted flow: 'req' from os.environ.get (line 188, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
96% confidence
Finding

The specific environment-exfiltration characterization is inaccurate, but this downloader accepts image URLs from service responses without validating their scheme, destination, or redirects. A malicious service response can trigger requests to loopback or internal services, or read file URLs into the cache, crossing a network and local-file trust boundary.

Content

Scanner excerpt · scripts/flora.py (reported line 189)May include surrounding context.

python
def download(url, path, timeout=60.0):
    try:
        req = urllib.request.Request(url, headers={"User-Agent": USER_AGENT})
        with urllib.request.urlopen(req, timeout=timeout) as r:
            data = r.read()
        write_bytes(path, data)
        return str(path)

Agent Config Directory Access

High
Category
Agent Snooping
Confidence
90% confidence
Finding

Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.

Content

Scanner excerpt · REFERENCE.md (reported line 41)May include surrounding context.

md
the agent. Edit the host's configuration yourself only if the user asks you to. (If `FLORA_FLOW_SERVER` or
   `FLORA_FLOW_HOME` is set in your environment, the printed entry carries it along.) A host with another
   settings format takes the same `command`, `args` and `env`; Codex, for example, keeps them in a
   `[mcp_servers.flora-flow]` table in `~/.codex/config.toml`.

`flora.py mcp-config --remote` prints the server's own endpoint instead (a URL that contains the user ID). Use it
only for hosts that cannot run local commands. It has no `scan_photo`, and the URL is a credential.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · README.md (reported line 12)May include surrounding context.

把整个文件夹放进助手的 skills 目录,或者让助手下载这三个文件:

text
https://flora.groundrl.com/skill/install/SKILL.md
https://flora.groundrl.com/skill/install/flora.py
https://flora.groundrl.com/skill/install/REFERENCE.md

The presentation workflow requires Chinese server output to be passed through unchanged without user language opt-in.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The workflow directs the agent to pass the server's result and shopping-list lines on as printed, including prescribed Chinese wording. This imposes Chinese on user-facing output without offering a language choice or documenting a justified locale restriction; the separate instruction to translate notices does not cover these result lines.

Content

No source excerpt is available for this finding.

Behavior Manipulation

Medium
Category
Prompt Injection
Confidence
75% confidence
Finding

Subtle instructions detected that may alter agent decision-making or introduce hidden biases.

Content

Scanner excerpt · REFERENCE.md (reported line 263)May include surrounding context.

md
- **Relay notices verbatim**, translated faithfully into the user's language. `no_flowers` means nothing was
  detected in that photo: pass on its advice.
- **A label is not a flower name.** Never tell the user that a box "is" what its label says, and don't list the
  labels as what was found: they are usually wrong (section 3). Name flowers from what you see in the pictures,
  as your own reading. If you cannot view images, say that you cannot tell which flowers they are.
- **Never describe a picture you have not seen**, and never invent a reference work's contents.

The privacy rule instructs the agent to upload photos without notifying the user.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The privacy rule explicitly directs the agent to upload photos without announcing the transfer, even though analysis requests do not necessarily authorize disclosure to a separate service. This conflicts with the earlier requirement to disclose the destination before uploading and can expose bystanders or other sensitive image content before the user can object.

Content

No source excerpt is available for this finding.

A privacy instruction reframes photo analysis as permission for undisclosed remote uploads.

Medium
Category
Prompt Injection
Confidence
98% confidence
Finding

The instruction treats a request to analyze photos as permission for an undisclosed third-party upload. Metadata removal and seven-day deletion reduce some exposure but do not resolve the lack of informed authorization for transferring image content.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

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

md
Photos of flowers at a market or shop came in (花市照片、这些花怎么配、配什么花): do this, and read nothing else first.

Install or update (all three together, same version): `https://flora.groundrl.com/skill/install/SKILL.md` and
`.../REFERENCE.md` into this skill folder, `.../flora.py` into its `scripts/` folder. `flora.py --version` prints the version.

1. Run at once, before any question, with the photos in the order the user sent them (numbered 1, 2, ...), always

The server-backed workflow processes users' photos and words without warning about external data sharing.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The workflow mandates immediate server-backed processing and includes the user's words in the request without first explaining the external transfer. A flower-photo analysis request does not necessarily imply informed authorization to share photos and conversational text with this service.

Content

No source excerpt is available for this finding.

The skill mandates Chinese response text without user language opt-in.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The workflow requires reproducing two Chinese lines exactly and prohibits any other explanation. This forces a specific response language regardless of the user's language, without offering a choice or documenting a justified locale restriction.

Content

No source excerpt is available for this finding.

Tainted flow: 'tmp' from os.environ.get (line 78, credential/environment) → open (file write)

Medium
Category
Data Flow
Confidence
96% confidence
Finding

An environment-selected storage directory is not itself a vulnerability, but this writer also receives paths constructed from unvalidated server-returned scan_id and find_id values. Absolute identifiers or traversal components can escape the intended cache directory and overwrite accessible JSON files, making a malicious or compromised flower-service response a local file-integrity threat.

Content

Scanner excerpt · scripts/flora.py (reported line 79)May include surrounding context.

python
path = Path(path)
    path.parent.mkdir(parents=True, exist_ok=True)
    tmp = path.with_name(path.name + ".tmp")
    with open(tmp, "w", encoding="utf-8") as f:
        json.dump(obj, f, ensure_ascii=False, indent=1)
    os.replace(tmp, path)

Tainted flow: 'tmp' from os.environ.get (line 87, credential/environment) → open (file write)

Medium
Category
Data Flow
Confidence
96% confidence
Finding

The environment-variable flow is expected configuration, but downloaded bytes are written under paths containing unvalidated remote scan_id, find_id, work_id, or label values. A malicious response can use absolute paths or traversal to place attacker-controlled files outside the cache, subject to the fixed filenames or suffixes imposed by each caller.

Content

Scanner excerpt · scripts/flora.py (reported line 88)May include surrounding context.

python
path = Path(path)
    path.parent.mkdir(parents=True, exist_ok=True)
    tmp = path.with_name(path.name + ".tmp")
    with open(tmp, "wb") as f:
        f.write(data)
    os.replace(tmp, path)

Behavior Manipulation

Medium
Category
Prompt Injection
Confidence
75% confidence
Finding

Subtle instructions detected that may alter agent decision-making or introduce hidden biases.

Content

Scanner excerpt · scripts/flora.py (reported line 297)May include surrounding context.

python
lines.append("  box %d: label guess %s / %s%s, score %.2f, x=%.0f%% y=%.0f%% w=%.0f%% h=%.0f%%"
                         % (b["box_id"], b.get("label_en"), b.get("label"), " (generic)" if b.get("generic") else "", b.get("score") or 0, x, y, w, h))
        if scan.get("boxes"):
            lines.append("The label guesses are usually wrong or just 'flower': choose boxes by the pictures, and never tell the user "
                         "a label as the flower's name.")
        if files and files.get("overview"):
            lines.append("Overview picture (numbers = box_id): %s" % files["overview"])

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/flora.py (reported line 607)May include surrounding context.

python
out.parent.mkdir(parents=True, exist_ok=True)
    try:
        if sys.platform == "darwin" and shutil.which("sips"):
            info = subprocess.run(["sips", "-g", "pixelWidth", "-g", "pixelHeight", str(path)], capture_output=True, text=True, timeout=30)
            sides = [int(t) for t in info.stdout.split() if t.isdigit()]
            if not sides or max(sides) <= SHRINK_SIDE:
                return data

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/flora.py (reported line 611)May include surrounding context.

python
sides = [int(t) for t in info.stdout.split() if t.isdigit()]
            if not sides or max(sides) <= SHRINK_SIDE:
                return data
            subprocess.run(["sips", "-Z", str(SHRINK_SIDE), "-s", "format", "jpeg", "-s", "formatOptions", "88", str(path), "--out", str(out)],
                           capture_output=True, timeout=60, check=True)
        elif os.name == "nt" and shutil.which("powershell"):
            script = (

Tainted flow: 'out' from os.environ.get (line 603, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/flora.py (reported line 611)May include surrounding context.

python
sides = [int(t) for t in info.stdout.split() if t.isdigit()]
            if not sides or max(sides) <= SHRINK_SIDE:
                return data
            subprocess.run(["sips", "-Z", str(SHRINK_SIDE), "-s", "format", "jpeg", "-s", "formatOptions", "88", str(path), "--out", str(out)],
                           capture_output=True, timeout=60, check=True)
        elif os.name == "nt" and shutil.which("powershell"):
            script = (

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
90% confidence
Finding

PowerShell's -Command interface interprets the trailing command-line text as PowerShell code; supplying a Python argument list does not provide the same data-only separation as an ordinary executable. A specially constructed photo path can therefore introduce PowerShell expressions during resizing, potentially executing commands with the agent's privileges on Windows.

Content

Scanner excerpt · scripts/flora.py (reported line 621)May include surrounding context.

python
"$m=[Math]::Max($i.Width,$i.Height); if ($m -le %d) { exit 3 }; $s=%d/$m; "
                "$b=New-Object System.Drawing.Bitmap $i,([int]($i.Width*$s)),([int]($i.Height*$s)); "
                "$b.Save($args[1],[System.Drawing.Imaging.ImageFormat]::Jpeg)" % (SHRINK_SIDE, SHRINK_SIDE))
            r = subprocess.run(["powershell", "-NoProfile", "-Command", script, str(path), str(out)], capture_output=True, timeout=60)
            if r.returncode != 0:
                return data
        else:

Tainted flow: 'out' from os.environ.get (line 603, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
89% confidence
Finding

This is the same PowerShell command-construction weakness as the AST4 finding: paths following -Command can be interpreted as PowerShell syntax rather than opaque arguments. The environment-derived output directory is an additional possible source, although an attacker controlling the process environment already has a stronger foothold than one merely influencing a photo filename.

Content

Scanner excerpt · scripts/flora.py (reported line 621)May include surrounding context.

python
"$m=[Math]::Max($i.Width,$i.Height); if ($m -le %d) { exit 3 }; $s=%d/$m; "
                "$b=New-Object System.Drawing.Bitmap $i,([int]($i.Width*$s)),([int]($i.Height*$s)); "
                "$b.Save($args[1],[System.Drawing.Imaging.ImageFormat]::Jpeg)" % (SHRINK_SIDE, SHRINK_SIDE))
            r = subprocess.run(["powershell", "-NoProfile", "-Command", script, str(path), str(out)], capture_output=True, timeout=60)
            if r.returncode != 0:
                return data
        else:

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/flora.py (reported line 628)May include surrounding context.

python
tool = shutil.which("magick") or shutil.which("convert")
            if not tool:
                return data
            subprocess.run([tool, str(path), "-auto-orient", "-resize", "%dx%d>" % (SHRINK_SIDE, SHRINK_SIDE), "-quality", "88", str(out)],
                           capture_output=True, timeout=60, check=True)
        small = out.read_bytes()
        return small if 0 < len(small) < len(data) else data

Tainted flow: 'out' from os.environ.get (line 603, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/flora.py (reported line 628)May include surrounding context.

python
tool = shutil.which("magick") or shutil.which("convert")
            if not tool:
                return data
            subprocess.run([tool, str(path), "-auto-orient", "-resize", "%dx%d>" % (SHRINK_SIDE, SHRINK_SIDE), "-quality", "88", str(out)],
                           capture_output=True, timeout=60, check=True)
        small = out.read_bytes()
        return small if 0 < len(small) < len(data) else data

The skill requires Chinese-language replies without user language opt-in.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The skill selects line_zh, appends a Chinese-language link caption, and instructs the agent to send these lines exactly with nothing else. This forces Chinese user-facing output regardless of the user's language, without offering a language choice or documenting a justified locale restriction.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · scripts/flora.py (reported line 1223)May include surrounding context.

python
"Always the first step with photos of a flower market, before any question. Give the paths of all the photos of this "
        "visit (1-8; numbered 1, 2, ... in this order) and only what the user pointed at or what you can see: flower_photo "
        "(which photo), flower_color (e.g. 'pink'), flower (an English name, only if you recognise the flower in the photo "
        "yourself; never ask the user what it is called). A colour or style wish with no flower: the main colour you see as "
        "flower_color; nothing to go by: give none. One call uploads the photos, waits for the recognition and returns the "
        "answer: one picture (left the user's market photo with only the flowers to buy framed and numbered, right the "
        "reference work) and one line. Send the user that picture and the lines as they are, nothing else; open no other "

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · LICENSE (reported line 12)May include surrounding context.

text
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE