claude-night-market
- Type
- Plugin
- Scanned
- Nov 17, 2026
- Version
- 9388cbbe6b09
- Files read
- 3386
Claude Night Market is a collection of 23 plugins for Claude Code that automate git workflows, code reviews, project planning, research, and autonomous coding. The biggest risks are that flaws in its permission checks, pull-request workflows, and repository hooks can let untrusted input run commands without asking you, while default features can leak private data by auto-posting session details to GitHub or sending local secret files to external AI services.
What it can reach
- Files
- Reads, edits, and deletes project files and git repositories, reads Claude session transcripts, and stores logs, caches, and plugin state in ~/.claude/ and hidden project folders.
- Shell commands
- Runs terminal commands, build and git tools, background hooks (including one that auto-approves certain commands), external AI command-line tools, and unpinned runtime packages via uvx.
- Network
- Connects to GitHub and GitLab (including creating issues and posting to discussions), external AI services, package registries, public research APIs, and optional webhooks, and can run a local server on your machine.
- Secrets
- Reads API keys and tokens from environment variables (such as GitHub, GitLab, Anthropic, Gemini, and OpenAI keys) and uses saved login credentials from local GitHub, GitLab, and AI command-line tools.
- Browser
- Automates web browsers, controls local Chrome sessions, and records videos of web pages using Playwright and Chrome DevTools.
- System
- Optional features can take desktop screenshots, control your mouse and keyboard, install background scheduled tasks on macOS or Linux, send desktop notifications, and check system memory.
Findings
-
HighExternal LLM delegation allows arbitrary @file inclusion in prompts and does not filter secret files
plugins/conjure/scripts/delegation_prompt.py:235
Conjure delegates tasks to external AI CLIs by default, with Gemini and Qwen first in priority order. Both CLIs treat @path tokens inside the prompt string as directives to read local files and send their contents to the remote model, yet delegation_prompt.py passes prompt text unescaped. If untrusted text from an issue, pull request, or log contains tokens like @.env or @~/.ssh/id_rsa and is delegated for analysis, the external CLI will read those secret files off disk; similarly, passing a directory via --files expands to all files without excluding .env, .netrc, or private keys, bypassing conserve's shell credential-read guard.
Fix: Escape or strip @path tokens inside prompt text before invoking Gemini or Qwen, and filter sensitive filenames (.env*, .netrc, *.pem, *.key, .ssh/*, credentials) during directory expansion and file inlining.
-
HighShell quoting bypasses conserve PermissionRequest hook to auto-approve code execution
plugins/conserve/hooks/permission_request.py:457
The conserve plugin's PermissionRequest hook auto-approves read-only Bash commands so Claude Code runs them without showing a permission prompt. Although evaluate_permission() strips quotes and backslashes via shlex.split() before checking DANGEROUS_PATTERNS, check_safe() tests _WRITE_OR_EXEC_OPTIONS and SAFE_PATTERNS negative lookaheads against the raw command string. If a prompt-injected agent quotes or backslash-escapes dangerous flags—such as running find . -name . '-exec' bash -c '...' +, rg '--pre' sh pattern, ag '--pager' sh pattern, or git diff '--output=/path/to/file'—the blocklists miss the flags and the hook returns allow, executing commands or overwriting files without user confirmation.
Fix: Parse the command into argv tokens via shlex.split() and validate every subcommand and option flag against a strict per-tool allowlist of known read-only flags rather than regex negative lookaheads on the raw command text.
-
HighCloned repositories with .egregore files hijack sessions and inject prompts via Stop hook
plugins/egregore/hooks/stop_hook.py:104
When the egregore plugin is installed, its SessionStart, UserPromptSubmit, and Stop hooks automatically search the current working directory and its parent directories for .egregore/manifest.json without verifying that the user started egregore in that repository. If a user opens Claude Code inside a cloned repository or pull request branch containing an active .egregore/manifest.json and .egregore/relaunch-prompt.md, the Stop hook blocks Claude from ending its turn and feeds the attacker-controlled relaunch-prompt.md directly back to the model as its next instruction, while SessionStart and UserPromptSubmit inject unsanitized manifest fields and instruct Claude to run the autonomous summon loop.
Fix: Store active egregore session state and relaunch prompts in a user-private directory keyed by an explicit user invocation, or require a local cryptographic session token before honoring any workspace .egregore/ files.
-
HighPR validation executes commands and browser actions from unverified public PR comments
plugins/sanctum/commands/fix-pr-modules/steps/5-validate.md:186
Step 5.4 of /fix-pr fetches all issue comments on a pull request that contain markdown checkboxes and instructs the agent to attempt every item by running test commands in the shell, probing URLs with curl, driving the user's local Chrome browser, or invoking desktop GUI control. On a public GitHub repository, any stranger can post a comment on an open PR, and the provided jq filter strips user.login and author_association so the agent cannot verify whether the commenter is a trusted maintainer.
Fix: Include user.login and author_association in the jq filter, restrict candidate test plans to OWNER, MEMBER, or COLLABORATOR comments, and require explicit user confirmation before executing commands or browser actions extracted from PR comments.
-
HighWorkflow reflection posts observations to a hardcoded public GitHub repository without user consent
plugins/sanctum/commands/fix-pr-modules/steps/6-complete.md:50
Sub-Step 6.7 of /fix-pr (and the matching Tooling Reflection step in plugins/sanctum/skills/do-issue/modules/completion.md) instructs the agent to automatically create a public GitHub Discussion on athola/claude-night-market whenever a skill, agent, command, or hook behaved unexpectedly, with no confirmation prompt and no opt-out flag. Unlike the network behaviors disclosed in README.md, this cross-repo posting is undocumented; if run inside a private repository or steered by prompt injection in a PR or issue comment, the agent can publish sensitive repository paths, error context, or code details to a public third-party board under the user's GitHub account.
Fix: Default tooling feedback to local logging or require an explicit interactive confirmation showing the target repository (athola/claude-night-market) and full discussion body before posting, and document this behavior with an opt-out setting in README.md.
-
MediumUnsanitized skill error output from all projects is logged and auto-posted to GitHub Discussions
plugins/abstract/hooks/skill_execution_logger.py:332
When a skill fails, skill_execution_logger.py stores the first 500 characters of raw tool output in the error field without passing it through sanitize_output() (unlike output_preview a few lines below, which redacts API keys, passwords, AWS keys, and GitHub tokens). Because logs are stored globally in ~/.claude/skills/logs/, aggregate_learnings_daily.py collects these unredacted error snippets across every private project on the computer into ~/.claude/skills/LEARNINGS.md, and post_learnings_stop.py automatically publishes them to the GitHub Discussions board of whichever repository is open when a session ends.
Fix: Pass error through sanitize_output() before saving, scope skill logs per repository so private project errors cannot cross into public repositories, and omit raw error text from automated GitHub posts.
-
MediumLearnings opt-out setting fails to disable automatic GitHub Issue and Discussion posting
plugins/abstract/hooks/post_learnings_stop.py:107
The README states that setting auto_post_learnings: false in ~/.claude/skills/discussions/config.json disables automatic learnings posting on session stop. However, post_learnings_stop.py runs _promote (auto_promote_learnings.py) and _run_insight_lenses (post_insights_to_discussions.py) without checking auto_post_learnings, and neither of those scripts checks that setting either. As a result, users who opt out still have GitHub Issues and Discussions automatically created in their active repository via gh whenever ~/.claude/skills/LEARNINGS.md has entries.
Fix: Check DiscussionConfig.load().auto_post_learnings at the top of post_learnings_stop.py, run_auto_promote(), and post_findings() so opting out disables all automated GitHub writes.
-
MediumSession replay generator emits transcript text and tool outputs as live VHS shell commands
plugins/scribe/src/scribe/tape_generator.py:295
generate_tape() converts recorded Claude Code and Codex session transcripts—including assistant prose, code snippets, and short ToolResult outputs from external files or web fetches—into Charmbracelet VHS .tape files by emitting Type followed by Enter for every line without launching a non-executing display program first. Because VHS types commands directly into an interactive bash or zsh shell, rendering a replay GIF with vhs executes every line of the conversation and short tool results as real shell commands on the user's machine.
Fix: Do not type transcript lines into an active shell; instead render the transcript from a static file using a read-only viewer script or set the VHS shell to a non-executing sink.
-
MediumDeferred-item Stop hook creates unprompted GitHub issues and leaks items across repositories
plugins/sanctum/hooks/deferred_item_sweep.py:45
Sanctum's PostToolUse watcher scans outputs from common skills (such as brainstorm, war-room, and unified-review) for ordinary words like 'deferred', 'rejected', or 'out of scope' and appends titles to a single global file (~/.claude/deferred-items-session.json) without recording which repository they came from. On every Stop event, deferred_item_sweep.py automatically runs deferred_capture.py to create GitHub labels and issues via gh in the current directory with no user prompt, no opt-out flag, and no mention in the root README's Network and data section. If filing fails in a private or local-only repository, the unfiled entries remain in the global ledger and are published as issues on whatever GitHub repository the user opens next.
Fix: Scope the deferred-items ledger to the originating repository, require explicit user opt-in or confirmation before creating GitHub issues, and document the network behavior and opt-out setting.
-
MediumUndocumented SessionStart hook injects public GitHub Discussions as project decisions
plugins/leyline/hooks/fetch-recent-discussions.sh:411
On SessionStart in any repository whose origin URL contains github.com, fetch-recent-discussions.sh runs an undocumented gh api graphql query (with no opt-out flag) to fetch recent Discussions in the Decisions and Insights/Learnings categories without checking authorAssociation. On public repositories with Discussions enabled, any GitHub user can post a Discussion whose title and body snippet are automatically injected into every developer's startup context under the heading 'Recent Decisions (from GitHub Discussions):', providing a direct prompt-injection channel for phrasing that avoids simple blocklist keywords.
Fix: Filter fetched Discussions to trusted authorAssociation roles (OWNER, MEMBER, COLLABORATOR), label the content clearly as untrusted community input, add an opt-out environment variable, and document the network call in README.md.
-
MediumAutonomous orchestrator polls and processes untrusted open PRs and issues without author filtering
plugins/egregore/agents/orchestrator.md:406
When /egregore:summon is used, the orchestrator runs with Bash, Write, and Edit tools and is instructed never to ask for human confirmation. Once initial tasks complete (in both default indefinite mode and bounded mode while time remains), its Scan for New Work routine automatically fetches open GitHub issues and checks open PRs needing review fixes, adding them as active work items. On a public repository, any stranger can open a PR or leave comments (or open an auto-labeled issue), injecting untrusted instructions or malicious branch code into an unattended agent loop.
Fix: Restrict automatic issue and PR intake to trusted GitHub authorAssociation values (OWNER, MEMBER, COLLABORATOR), never check out untrusted fork PR branches automatically, and require explicit opt-in before polling for new work.
-
MediumShell and Python code injection in PR review insight posting snippet
plugins/sanctum/skills/pr-review/modules/insight-generation.md:36
After reviewing a pull request, this module (along with plugins/pensive/skills/code-refinement/modules/insight-generation.md) instructs the agent to run a double-quoted python3 -c command that interpolates PR findings, code evidence ($EVIDENCE), and changed filenames ($CHANGED_FILES) directly into Python source literals. When reviewing an untrusted PR whose code snippets or filenames contain single quotes, backticks, or $() substitutions, expanding or filling this template can break out of the string and execute arbitrary Python or shell commands on the reviewer's machine, while also posting security bug alerts to GitHub Discussions without prompting.
Fix: Pass finding fields via JSON on stdin or environment variables read with os.environ inside a standalone script instead of interpolating untrusted text into python3 -c, and prompt before publishing security findings to Discussions.
-
MediumUnquoted heredoc in /fix-pr description generator evaluates backticks and command substitutions
plugins/sanctum/commands/fix-pr-modules/steps/1-analyze.md:97
When a pull request has an empty description, Step 1.2 instructs the agent to write a generated Markdown summary derived from commit messages, PR title, and changed files using an unquoted heredoc (cat > "$TEMP_DESC" << EOF). In bash, an unquoted EOF delimiter causes all backticks (including normal Markdown inline code spans) and $() expressions inside the body to be executed as shell commands, allowing crafted commit messages or filenames in a PR to trigger unintended command execution.
Fix: Use the Write tool or a single-quoted heredoc delimiter (<< 'EOF') when writing the temporary PR description file so bash does not evaluate backticks or $() expressions.
-
LowWorkflow-improvement skill instructs agent to post session observations to a public upstream repository without asking
plugins/sanctum/skills/workflow-improvement/SKILL.md:219
Step 7.2 of the sanctum:workflow-improvement skill (/fix-workflow) tells the AI agent to post observations about tooling, commands, and hooks directly to the public athola/claude-night-market GitHub Discussions board regardless of which repository the user is working in, with no confirmation prompt. When run inside a private repository, session details such as commands, file paths, or error context can be published publicly using the user's GitHub credentials, and this cross-repo upload is not mentioned in the README's network disclosure.
Fix: Require explicit user confirmation displaying the exact payload and public target repository (athola/claude-night-market) before posting, and document this behavior in README.md.
-
LowPython code injection via crafted YAML filename in validate-pr skill
plugins/sanctum/skills/validate-pr/SKILL.md:139
In the Build/config parse check of sanctum:validate-pr, each changed YAML filename from gh pr diff --name-only is interpolated directly inside a Python code string (open('$YML')). If a maintainer runs /validate-pr on a pull request that includes a crafted .yml or .yaml filename containing single quotes and Python expressions (even on a config-only PR with no code changes), breaking out of open('$YML') executes arbitrary Python code during what appears to be a safe yaml.safe_load syntax check.
Fix: Pass the filename as a command-line argument (python3 -c 'import sys, yaml; yaml.safe_load(open(sys.argv[1]))' "$YML") and read file paths line-by-line instead of interpolating $YML into Python source.
-
LowPermissionDenied hook automatically encourages retrying blocked file reads and web requests
plugins/conserve/hooks/permission_denied_logger.py:20
When Claude Code's auto-mode safety classifier blocks a tool call, permission_denied_logger.py unconditionally returns {"retry": true} for Read, Glob, Grep, WebFetch, and WebSearch without inspecting the target path, URL, or denial reason. Because auto-mode denies these tools specifically when they attempt sensitive credential reads (such as ~/.ssh or .env) or outbound data exfiltration via URLs and search queries, telling the model to retry weakens the built-in classifier guardrail.
Fix: Remove WebFetch and WebSearch from automatic retry, and inspect tool_input for Read, Glob, and Grep so denials targeting sensitive files or paths outside the workspace never return {"retry": true}.
-
LowMissing path containment check in pre_skill_execution hook state file write
plugins/abstract/hooks/pre_skill_execution.py:111
Before a Skill call runs, pre_skill_execution.py constructs invocation_id from tool_input['skill'] and joins it onto state_dir without verifying that the resulting path stays inside state_dir (unlike the companion skill_execution_logger.py hook, which enforces is_relative_to()). If a prompt-injected agent passes a skill name starting with / and containing :, Python's Path join discards state_dir and writes a JSON state file to an arbitrary writable directory before Claude Code checks whether the skill exists.
Fix: Hash or sanitize skill_ref to alphanumeric characters and verify state_file.resolve().is_relative_to(state_dir.resolve()) before writing.
-
LowUnpinned markitdown-mcp package executed at runtime via uvx
The root .mcp.json configuration (also recommended in leyline:document-conversion) launches markitdown-mcp using uvx without pinning a package version. Whenever the MCP server starts, uvx can resolve and run the latest version published on PyPI, exposing users to upstream package compromise.
Fix: Pin markitdown-mcp to a vetted version (for example, markitdown-mcp==x.y.z) in .mcp.json and documentation snippets.
-
LowUnpinned remote shell installers and global npm installs in provider setup
plugins/conjure/scripts/delegation_services.py:66
Conjure's guided provider installer (delegation_setup.py) maps muse and ollama to curl ... | sh pipelines and other providers to unpinned npm install -g commands. Although it prompts for confirmation before running, piping remote scripts directly into /bin/sh without version pins or checksum verification trusts live remote content at install time.
Fix: Pin npm package versions in VERIFIED_BINARIES and download installer scripts to a temporary file so users can inspect or verify checksums before execution.
-
LowMemory Palace CLI enable command grants global find and plugin-write permissions
plugins/memory-palace/scripts/memory_palace_cli.py:190
Running memory_palace_cli.py enable modifies the user's global ~/.claude/settings.json to add Bash(find*), Bash(mkdir*), Bash(ls*), and Write(<plugin_dir>/**) to permissions.allow. Bash(find*) auto-approves any find invocation across all projects—including find -exec for arbitrary command execution and find -delete for file deletion—while Write(<plugin_dir>/**) lets a prompt-injected agent overwrite executable plugin hook scripts without confirmation. Furthermore, memory_palace_cli.py disable only removes entries containing the plugin path, leaving Bash(find*), Bash(mkdir*), and Bash(ls*) permanently enabled.
Fix: Do not add broad Bash(find*) or plugin-code Write(**) rules to ~/.claude/settings.json; scope any data writes strictly to the user data directory and remove all added rules on disable.
-
LowPhantom --confirm prompt hides action parameters and can be spoofed by extra keys
plugins/phantom/src/phantom/cli.py:101
When phantom is run with --confirm for human-in-the-loop safety, _ask_before_acting() displays only action.get('action', action) and ConfirmationGate.check() does not receive the tool name. For computer actions like type, key, or left_click, the user only sees 'Run type? [y/N]' without seeing what commands are being typed or where the mouse will click; for bash or text-editor calls, a prompt-injected model that includes an extra 'action': 'screenshot' field in its tool input causes the prompt to ask 'Run screenshot? [y/N]' before executing an arbitrary shell command.
Fix: Pass both the tool name and full structured parameters (command, path, text, coordinates) to the confirmation callback and display the complete action details to the user.
-
LowPackage-hallucination guard sends private package names to public registries
plugins/imbue/hooks/guard_package_hallucination.py:44
imbue's PreToolUse hook intercepts package install commands before user confirmation and queries unknown package names against public pypi.org, registry.npmjs.org, and crates.io. Because package_guard.py strips --index-url, --extra-index-url, --index, and --registry as ordinary value flags instead of skipping public lookups when a custom registry is specified, internal or proprietary package names are leaked to public registries (exposing them to dependency-confusion reconnaissance), and this network behavior is omitted from the root README's Network and data section.
Fix: Skip public registry lookups whenever --index-url, --extra-index-url, --index, --registry, or private registry environment variables are present, and list the hook in the root README's Network and data section.
-
LowSession notification hook opens predictable /tmp state file without O_NOFOLLOW
plugins/sanctum/hooks/session_complete_notify.py:72
NotificationState.save() writes to a predictable path in the shared temporary directory (/tmp/.claude-notify-<session_id>.json) using os.open() with O_CREAT | O_TRUNC and without O_NOFOLLOW or a private 0700 per-user directory. On multi-user systems without kernel symlink protection (such as macOS), another local user can plant a symlink at that path to truncate or overwrite files owned by the user running Claude Code.
Fix: Store notification state inside a mode-0700 per-user directory or ~/.claude/state/ and include os.O_NOFOLLOW when opening the state file, matching imbue's secure_state_dir() helper.
-
LowMakefile dogfooder interpolates unescaped README command arguments into shell recipes
plugins/abstract/scripts/dogfooder/validator.py:154
DocumentationCommandExtractor extracts slash-command examples and their arguments from README files, and MakefileTargetGenerator embeds the extracted invocation string directly inside double-quoted @echo shell recipes without escaping quotes, dollar signs, or backticks. If a developer runs the dogfooder to generate Makefile targets from an untrusted README and runs make demo-*, shell metacharacters in the documented arguments will execute arbitrary commands.
Fix: Shell-quote invocation with shlex.quote() and escape $ as $$ before embedding extracted text into Makefile recipes.
-
LowContinuation agent trusts workspace session-state file to enable dangerous mode, skip prompts, and chain without limit
plugins/conserve/agents/continuation-agent.md:87
At high context usage, the conserve plugin directs Claude to spawn continuation-agent (an Opus agent with Bash, Write, Edit, and Task tools) which reads .claude/session-state.md from the current workspace as its source of truth. If that file sets mode to dangerous or auto_continue to true (for example in a cloned untrusted repository or via prompt injection), the agent is instructed to continue without prompts, skip permission checks, ignore wrap-up signals from context hooks, propagate dangerous mode to child agents, and chain recursively with no cap on handoff_count.
Fix: Store session state outside the repository tree under ~/.claude/ keyed by session ID, remove instructions to skip permission checks or ignore hook warnings, and enforce a strict maximum handoff count.
-
LowDouble-quoted external paper title in Bash command template risks shell command substitution
plugins/tome/agents/literature-reviewer.md:99
During /tome:research, the literature-reviewer subagent searches external APIs (arXiv, Semantic Scholar, OpenAlex) and is instructed to run a Bash command passing the paper's title inside double quotes (--title "<exact title>"). Because external users can publish preprints indexed by these services and academic titles frequently contain dollar signs or backticks, interpolating an untrusted title inside double quotes allows Bash command substitution via $(...) or backticks.
Fix: Pass untrusted external titles using single quotes with proper single-quote escaping or read them from stdin/environment variables instead of interpolating into a double-quoted Bash string.
-
LowDouble-quoted PR title in git tag command template risks shell command injection
plugins/sanctum/commands/create-tag.md:69
The /create-tag command fetches the title of a merged GitHub pull request and instructs the agent to run git tag with the message wrapped in double quotes (-m "<tag message>"), where <tag message> contains <PR title>. Because an external contributor can include $(...) or backticks in a PR title (and can edit a PR title on GitHub even after merge), interpolating it inside double quotes in Bash risks command injection.
Fix: Pass the tag message via git tag -F - with a single-quoted heredoc (<<'EOF') so shell metacharacters in PR titles are never expanded.
-
LowPR review command posts findings to GitHub Discussions by default without honoring --local or --dry-run
plugins/sanctum/commands/pr-review.md:208
When run inside a repository checkout where plugins/abstract/scripts/post_review_insights.py exists, Step 10 of /pr-review posts review findings to GitHub Discussions by default unless --no-insights is passed. Unlike Steps 7-9, Step 10 is not marked skipped under --local, --dry-run, or GitLab MR URLs, and this off-machine data flow is omitted from the root README Network and data disclosure.
Fix: Skip Step 10 automatically when --local, --dry-run, or a non-GitHub MR URL is used, and document post_review_insights.py in the root README Network and data section.
-
LowOptional skrills binary wrapper skips SHA-256 verification by default despite provenance claim
plugins/abstract/bin/skrills-or-fallback:32
plugins/abstract/bin/PROVENANCE.md states that tampered skrills binaries are mitigated by a SHA-256 hash pinned in .skrills-version. However, skrills-or-fallback never reads .skrills-version, defaults SKRILLS_EXPECTED_HASH to empty, and skips verification unless both SKRILLS_EXPECTED_HASH and SKRILLS_VERIFY_HASH environment variables are manually set.
Fix: Read the expected SHA-256 hash from .skrills-version and enforce verification whenever a skrills binary is executed.
-
LowUnquoted CLAUDE_PLUGIN_ROOT in attune hook template
plugins/attune/templates/hooks/hooks.json.template:10
Unlike the shipped plugin hooks.json files, attune's hooks.json.template leaves ${CLAUDE_PLUGIN_ROOT} unquoted in the command string, which causes word-splitting failures or unexpected argument parsing if the plugin path contains spaces.
Fix: Quote the path in the template command: "uv run python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/pre_commit_tdd.py\"".
-
LowUnpinned and unverified binary download in sem-integration install prompt
plugins/leyline/skills/sem-integration/modules/detection.md:41
When the sem CLI is missing on Linux, the sem-integration skill offers a one-line curl command that downloads a precompiled binary from GitHub's mutable releases/latest URL into ~/.local/bin/sem and marks it executable without checking a SHA-256 digest or signature. If the upstream repository or release asset is compromised, accepting the prompt executes untrusted code.
Fix: Pin a specific release version and verify the downloaded binary against a known SHA-256 checksum before marking it executable, or rely on cargo install --locked.
-
LowMutable @master branch reference in generated Rust GitHub Actions workflow template
plugins/attune/templates/rust/workflows/ci.yml.template:40
The Rust CI workflow template scaffolded by attune into user projects references dtolnay/rust-toolchain@master rather than a pinned commit SHA. Any compromise of the upstream master branch would execute untrusted code inside CI runs of projects initialized from this template.
Fix: Pin third-party GitHub Actions in project templates to full 40-character commit SHAs.
-
LowIncident response checklist dumps environment secrets to a world-readable file in /tmp
plugins/leyline/skills/supply-chain-advisory/modules/incident-response.md:19
The supply-chain containment checklist instructs the operator or agent to capture all environment variables with env > /tmp/env_snapshot_$(date +%s).txt without setting restrictive permissions. Under a standard 022 umask, this writes API keys, cloud tokens, and database credentials in cleartext to a world-readable file with a predictable name in /tmp.
Fix: Wrap the snapshot in a subshell with umask 077 and write it to a private user-owned directory (for example, (umask 077 && env > ~/.claude/forensics_env_$(date +%s).txt)).
-
LowPython async skill teaches f-string SQL query interpolation
plugins/parseltongue/skills/python-async/modules/real-world-applications.md:45
The real-world database example in the python-async skill builds SQL queries using Python f-strings instead of parameterized queries. Because Python type hints like user_id: int are not enforced at runtime, application code generated by the agent following this exemplar can be vulnerable to SQL injection.
Fix: Update the database example to use parameterized query placeholders (such as $1 or ?) with bound arguments instead of f-strings.
-
LowSecurity example PermissionRequest hook auto-approves chained commands and secret reads
docs/examples/hook-development/security-patterns.md:411
The reference PermissionRequest hook in docs/examples/hook-development/security-patterns.md states that ^-anchored regexes prevent command injection and returns behavior=allow whenever SAFE_READ_COMMANDS matches the beginning of a command string. Because SAFE_READ_COMMANDS.match(command) only checks the leading command word and does not block shell chaining operators (;, &&, ||, |, $(), backticks) or sensitive file paths (.env, ~/.ssh), commands like 'ls && malicious_cmd' or 'cat ~/.ssh/id_rsa' are auto-approved without prompting. Installed plugins do not execute this example file, so it cannot harm users directly unless copied into a custom hook.
Fix: Update the example hook to reject shell control operators, subshell expansions, and sensitive credential paths before matching any auto-approval allowlist.
-
LowExample destructive-command rule misses common variants and tells the agent how to disable itself
plugins/hookify/examples/dangerous-rm.local.md:5
If a user copies this example rule into .claude/, its regex misses destructive variants such as 'rm -fr', 'rm -r -f', 'rm --recursive --force', and 'dd of=/dev/...' (direct device writes use of=/dev/, whereas if=/dev/ only matches reads). In addition, hookify returns a blocking rule's markdown body to the AI agent as permissionDecisionReason, and this rule's body instructs the reader to bypass the block by editing .claude/hookify.dangerous-rm.local.md to set 'enabled: false' without requiring user approval or protecting that file from Edit or Write tools.
Fix: Update the pattern to cover reordered or long rm flags and 'dd ... of=/dev/', remove self-disable instructions from the agent-visible message, and block agent edits to .claude/hookify.*.local.md.
-
LowPredictable /tmp cache directory in interactive auth test script
plugins/leyline/skills/authentication-patterns/tests/test-interactive-auth.sh:107
This test script sets its temporary cache path to /tmp/test-auth-cache-$$ using only the shell process ID instead of mktemp -d, writes auth status and session files inside it, and removes it on exit. The installed plugin never runs this test script during normal use, but on a shared multi-user machine another local user could pre-create symlinks under that predictable /tmp path to overwrite files owned by a developer running the test suite.
Fix: Create the temporary directory with mktemp -d instead of building a predictable path in /tmp from $$.
