Skip to main content
SkillTotal

Is shareAI-lab/learn-claude-code safe?

Low risk - review the findings before installing
Notable — review in context (a capability is not a malicious indicator):
  • Possible command injection (shell + dynamic command)
  • Python shell/command execution
  • Python filesystem read

What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.

shareAI-lab/learn-claude-code is a GitHub repository analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 1 risky construct is reported for review. It can: filesystem read, filesystem write, mcp tools detected and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 20/100 (low).

learn-claude-code

GitHub repository, read as a directory · https://github.com/shareAI-lab/learn-claude-code
LOW
20
/ 100 risk score
Snapshot · scanned Nov 21, 2026 · learn-claude-code@448c75b · engine 1.8.0 / ruleset 107

Get notified when this component changes

Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.

Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of shareAI-lab/learn-claude-code's authors. Report a false positive.

Capabilities — what this component can do (not a risk score):
filesystem readfilesystem writemcp tools detectedshell execution

Behavioral traits

How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.

Tool surface
Tool Usage
Execution authority
Tool Access Control / Direct Tool Access
Filesystem reach
Tool Execution Context

Findings (7)

HIGHPossible command injection (shell + dynamic command)ST-CMDI-PY

The code builds an OS command out of values that can change at runtime, then runs it through a shell.

r = subprocess.run(command, shell=True, cwd=os.getcwd(),
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace",
                           timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(
                command, shell=True, cwd=WORKDIR,
                capture_output=True, text=True, errors="replace", timeout=300
            )
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(
            command, shell=True, cwd=WORKDIR,
            capture_output=True, text=True, errors="replace", timeout=120,
        )
r = subprocess.run(
            command, shell=True, cwd=WORKDIR,
            capture_output=True, text=True, errors="replace", timeout=120,
        )
r = subprocess.run(
            command, shell=True, cwd=WORKDIR,
            capture_output=True, text=True, errors="replace", timeout=120,
        )
r = subprocess.run(
                command,
                shell=True,
                cwd=path,
                capture_output=True,
                text=True, errors="replace",
                timeout=300,
            )
r = subprocess.run(
            command,
            shell=True,
            cwd=WORKDIR,
            capture_output=True,
            text=True, errors="replace",
            timeout=120,
        )
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                               capture_output=True, text=True, errors="replace", timeout=timeout)
r = subprocess.run(command, shell=True, cwd=os.getcwd(),
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace",
                           timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
result = subprocess.run(
            command, shell=True, cwd=WORKDIR,
            capture_output=True, text=True, errors="replace", timeout=120,
        )
result = subprocess.run(
            command, shell=True, cwd=WORKDIR,
            capture_output=True, text=True, errors="replace", timeout=120,
        )
result = subprocess.run(
            command, shell=True, cwd=WORKDIR,
            capture_output=True, text=True, errors="replace", timeout=120,
        )
result = subprocess.run(
            command,
            shell=True,
            cwd=WORKDIR,
            capture_output=True,
            text=True, errors="replace",
            timeout=120,
        )

Why it matters: If any of those values come from untrusted input, an attacker can run their own commands on the machine.

Fix: Pass arguments as a list without shell=True (e.g. subprocess.run(['git', 'checkout', branch])); never build a shell string from external input. If a shell is unavoidable, quote with shlex.quote.

CapabilityPython shell/command executionnot scored · severity highST-SHELL-PY

The component can run operating-system commands or spawn processes.

r = subprocess.run(command, shell=True, cwd=os.getcwd(),
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace",
                           timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(
                command, shell=True, cwd=WORKDIR,
                capture_output=True, text=True, errors="replace", timeout=300
            )
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(
            command, shell=True, cwd=WORKDIR,
            capture_output=True, text=True, errors="replace", timeout=120,
        )
r = subprocess.run(
            command, shell=True, cwd=WORKDIR,
            capture_output=True, text=True, errors="replace", timeout=120,
        )
r = subprocess.run(
            command, shell=True, cwd=WORKDIR,
            capture_output=True, text=True, errors="replace", timeout=120,
        )
r = subprocess.run(
            ["git", "rev-parse", "--show-toplevel"],
            cwd=cwd,
            capture_output=True,
            text=True, errors="replace",
            timeout=10,
        )
r = subprocess.run(
                ["git", "rev-parse", "--is-inside-work-tree"],
                cwd=self.repo_root,
                capture_output=True,
                text=True, errors="replace",
                timeout=10, …
r = subprocess.run(
            ["git", *args],
            cwd=self.repo_root,
            capture_output=True,
            text=True, errors="replace",
            timeout=120,
        )
r = subprocess.run(
            ["git", "status", "--short", "--branch"],
            cwd=path,
            capture_output=True,
            text=True, errors="replace",
            timeout=60,
        )
r = subprocess.run(
                command,
                shell=True,
                cwd=path,
                capture_output=True,
                text=True, errors="replace",
                timeout=300,
            )
r = subprocess.run(
            command,
            shell=True,
            cwd=WORKDIR,
            capture_output=True,
            text=True, errors="replace",
            timeout=120,
        )
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                               capture_output=True, text=True, errors="replace", timeout=timeout)
r = subprocess.run(command, shell=True, cwd=os.getcwd(),
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace",
                           timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)
r = subprocess.run(command, shell=True, cwd=WORKDIR,
                           capture_output=True, text=True, errors="replace", timeout=120)

Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.

Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; avoid shell=True.

CapabilityNode.js filesystem readnot scored · severity mediumST-FS-NODE-READ

The component reads files from disk.

return fs.readFileSync(filePath, "utf-8").replace(/\r\n/g, "\n");

Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.

Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.

CapabilityNode.js filesystem write/deletenot scored · severity mediumST-FS-NODE-WRITE

The component writes or deletes files on disk.

fs.rmSync(COURSE_ASSETS_DIR, { recursive: true, force: true });
fs.writeFileSync(path.join(OUT_DIR, "versions.json"), JSON.stringify(index, null, 2));
fs.writeFileSync(path.join(OUT_DIR, "docs.json"), JSON.stringify(docs, null, 2));

Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.

Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.

CapabilityPython filesystem readnot scored · severity mediumST-FS-PY-READ

The component reads files from disk.

text = safe_path(path).read_text(encoding="utf-8")
content = fp.read_text(encoding="utf-8")
lines = safe_path(path).read_text(encoding="utf-8").splitlines()
content = fp.read_text(encoding="utf-8")
lines = safe_path(path).read_text(encoding="utf-8").splitlines()
content = fp.read_text(encoding="utf-8")
text = f.read_text(encoding="utf-8")
lines = safe_path(path).read_text(encoding="utf-8").splitlines()
content = fp.read_text(encoding="utf-8")
lines = safe_path(path).read_text(encoding="utf-8").splitlines()
content = fp.read_text(encoding="utf-8")
return json.loads(path.read_text(encoding="utf-8"))
task = json.loads(f.read_text(encoding="utf-8"))
tasks.append(json.loads(f.read_text(encoding="utf-8")))
lines = safe_path(path).read_text(encoding="utf-8").splitlines()
c = fp.read_text(encoding="utf-8")
lines = safe_path(path).read_text(encoding="utf-8").splitlines()
c = fp.read_text(encoding="utf-8")
for line in inbox_path.read_text(encoding="utf-8").strip().splitlines():
return json.loads(self.config_path.read_text(encoding="utf-8"))
lines = _safe_path(path).read_text(encoding="utf-8").splitlines()
c = fp.read_text(encoding="utf-8")
for line in inbox_path.read_text(encoding="utf-8").strip().splitlines():
return json.loads(self.config_path.read_text(encoding="utf-8"))
lines = _safe_path(path).read_text(encoding="utf-8").splitlines()

Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.

Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.

CapabilityPython filesystem write/deletenot scored · severity mediumST-FS-PY-WRITE

The component writes or deletes files on disk.

fp.write_text(content, encoding="utf-8")
fp.write_text(content.replace(old_text, new_text, 1), encoding="utf-8")
fp.write_text(content, encoding="utf-8")
fp.write_text(content.replace(old_text, new_text, 1), encoding="utf-8")
fp.write_text(content, encoding="utf-8")
fp.write_text(content.replace(old_text, new_text, 1), encoding="utf-8")
fp.write_text(content, encoding="utf-8")
fp.write_text(content.replace(old_text, new_text, 1), encoding="utf-8")
with open(transcript_path, "w", encoding="utf-8") as f:
fp.write_text(content, encoding="utf-8")
fp.write_text(content.replace(old_text, new_text, 1), encoding="utf-8")
path.write_text(json.dumps(task, indent=2, ensure_ascii=False), encoding="utf-8")
fp.write_text(content, encoding="utf-8")
fp.write_text(c.replace(old_text, new_text, 1), encoding="utf-8")
fp.write_text(content, encoding="utf-8")
fp.write_text(c.replace(old_text, new_text, 1), encoding="utf-8")
with open(inbox_path, "a", encoding="utf-8") as f:
inbox_path.write_text("", encoding="utf-8")
self.config_path.write_text(json.dumps(self.config, indent=2), encoding="utf-8")
fp.write_text(content, encoding="utf-8")
fp.write_text(c.replace(old_text, new_text, 1), encoding="utf-8")
with open(inbox_path, "a", encoding="utf-8") as f:
inbox_path.write_text("", encoding="utf-8")
self.config_path.write_text(json.dumps(self.config, indent=2), encoding="utf-8")
fp.write_text(content, encoding="utf-8")

Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.

Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.

CapabilityMCP tool surface detectednot scored · severity lowST-MCP-DETECTED

An MCP tool surface (manifest or tool definitions) was found.

Why it matters: Just context — review which tools it offers and their permissions.

Fix: Review the declared MCP tools and their permissions.

How attackers abuse these capabilities

Interactive labs on the attack class behind the rules above. They show the technique, not anything found in shareAI-lab/learn-claude-code.

Maintain shareAI-lab/learn-claude-code?

Check the next package before your agent installs it

The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.

Check your own component

Run the same evidence-backed scan on any MCP server, agent skill, or package.

Scan your own component

How we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →