Skip to main content
SkillTotal

Is ZhuLinsen/daily_stock_analysis safe?

Some risk - review before installing
Notable — review in context (a capability is not a malicious indicator):
  • Defense-evasion command idiom
  • Server bound to all network interfaces
  • Python shell/command execution

What to do: Read the findings below before installing: each one opens the exact line of code it was found on.

ZhuLinsen/daily_stock_analysis is a GitHub repository analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 2 risky constructs are reported for review. It can: delegated authentication, filesystem read, filesystem write, mcp tools detected, network egress and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 30/100 (medium).

daily_stock_analysis

GitHub repository, read as a PyPI package · https://github.com/ZhuLinsen/daily_stock_analysis
MEDIUM
30
/ 100 risk score
Snapshot · scanned Nov 22, 2026 · daily_stock_analysis@bd7b767 · 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 ZhuLinsen/daily_stock_analysis's authors. Report a false positive.

Capabilities — what this component can do (not a risk score):
delegated authenticationfilesystem readfilesystem writemcp tools detectednetwork egressshell 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
Network egress
Interaction & Communication / Direct Communication
Network exposure
Interaction & Communication
Delegated authentication
Tool Execution Context / User Delegated Credentials

Findings (12)

HIGHDefense-evasion command idiomST-SHELL-EVASION

A command uses a known defense-evasion idiom: PowerShell execution-policy bypass / encoded command / hidden window, macOS code-signing bypass, or launching a payload from a world-writable temp directory. These are hallmarks of droppers and rarely appear in legitimate code.

$probeProcess = Start-Process -FilePath $packagedEntry -Wait -PassThru -WindowStyle Hidden

Fix: Verify why the component bypasses execution policy / code signing or runs from a temp directory; these patterns are characteristic of malware staging.

CapabilityNode.js shell/command executionnot scored · severity highST-SHELL-NODE

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

const { spawn } = require('child_process');
backendProcess = spawn(backendPath, args, {
backendProcess = spawn(pythonPath, pythonArgs, {
spawn('taskkill', ['/PID', String(processToStop.pid), '/T', '/F'], { windowsHide: true }).on('error', () => {
const { execFileSync } = require('node:child_process')
import { execFileSync } from 'node:child_process'

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; prefer execFile with an argument array.

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

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

result = subprocess.run(args, capture_output=True, text=True)
return subprocess.check_output(["git", *args], cwd=ROOT, text=True, encoding="utf-8")
notes = subprocess.check_output(args, cwd=ROOT, encoding="utf-8").strip()
release = json.loads(subprocess.check_output(args, cwd=ROOT, encoding="utf-8"))
ignored = subprocess.run(
            ["git", "check-ignore", "--no-index", "-q", rel_skill],
            cwd=ROOT,
            capture_output=True,
            check=False,
        )
result = subprocess.run(
        ["git", "ls-files", "--", ".claude", ".reviews"],
        cwd=ROOT,
        capture_output=True,
        text=True,
        check=True,
    )
return subprocess.call(
        [sys.executable, "-m", "pytest", *selected, *pytest_args],
        cwd=REPO_ROOT,
    )
subprocess.run(command, cwd=REPO_ROOT, check=True, env=env)
result = subprocess.run(
                ["taskkill", "/T", "/F", "/PID", str(proc.pid)],
                timeout=30,
            )
proc = subprocess.Popen(
            child_args,
            cwd=str(REPO_ROOT),
            **_spawn_kwargs("nt"),
        )
proc = subprocess.Popen(
            child_args,
            cwd=str(REPO_ROOT),
            **_spawn_kwargs("posix"),
        )
result = subprocess.run(
            [
                playwright_command,
                "screenshot",
                "--browser",
                "chromium",
                "--viewport-size",
                "1080,720", …
result = subprocess.run(
            [m2f_command, md_path, "png", f"outputDirectory={temp_dir}"],
            capture_output=True,
            timeout=60,
            check=False,
        )
completed = subprocess.run(
            ["ps", "-axo", "pid=,ppid="],
            check=False,
            capture_output=True,
            text=True,
            timeout=5,
        )
subprocess.run(
                ["taskkill", "/PID", str(process_id), "/T", "/F"],
                check=False,
                stdout=subprocess.DEVNULL,
                stderr=subprocess.DEVNULL,
                timeout=10,
            )
subprocess.run(command, cwd=frontend_dir, check=True)

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.

MEDIUMServer bound to all network interfacesST-EXPOSE-BIND

A server is bound to all network interfaces (0.0.0.0), not just your own machine.

host: '0.0.0.0',  // 允许公网访问
host="0.0.0.0",

Why it matters: Without authentication, other hosts on the network can reach it.

Fix: Bind to 127.0.0.1 for local-only use, or require authentication and restrict access if remote exposure is intended.

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

The component reads files from disk.

const manifestText = fs.readFileSync(manifestPath, 'utf-8');
content = fs.readFileSync(envFile, 'utf-8');

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.writeFileSync(resolveUpdateBackupManifestPath(), JSON.stringify(manifest, null, 2), 'utf-8');
fs.rmSync(resolveUpdateBackupRoot(), { recursive: true, force: true });
fs.rmSync(target, { recursive: true, force: true });
fs.rmSync(target, { recursive: true, force: true });
fs.appendFileSync(logFilePath, line, 'utf-8');
fs.writeFileSync(envPath, '# Configure your API keys and stock list here.\n', '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.

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

The component reads files from disk.

with open(event_path, 'r', encoding='utf-8') as f:
content = candidate.read_text(encoding='utf-8')
section = _section_for(CHANGELOG.read_text(encoding="utf-8"), tag[1:])
text = CHANGELOG.read_text(encoding="utf-8")
html = index_html.read_text(encoding="utf-8", errors="replace")
if token_cache.read_bytes() == payload:
raw = token_cache.read_bytes()
data = json.loads(Path(path).read_text(encoding="utf-8"))
actual = _normalize_link_target(path.read_text(encoding="utf-8"))
if compatibility_skill.read_bytes() != canonical_skill.read_bytes():
content = COPILOT.read_text(encoding="utf-8")
content = path.read_text(encoding="utf-8")
root_bytes = PRODUCT_SKILL_ROOT.read_bytes()
plugin_bytes = PRODUCT_SKILL_PLUGIN.read_bytes()
gitignore = (ROOT / ".gitignore").read_text(encoding="utf-8")
content = path.read_text(encoding="utf-8")
agents_text = AGENTS.read_text(encoding="utf-8")
ci_text = CI_WORKFLOW.read_text(encoding="utf-8")
content = path.read_text(encoding="utf-8")
html = index_html_path.read_text(encoding="utf-8", errors="replace")
payload = json.loads(path.read_text(encoding="utf-8"))
with open(csv_path, 'r', encoding='utf-8-sig') as f:
with open(csv_file, 'r', encoding='utf-8-sig') as f:
with open(csv_file, 'r', encoding='utf-8-sig') as f:
with open(path, "r", encoding="utf-8-sig") as f:

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.

with open(summary_file, 'a', encoding='utf-8') as f:
with open(summary_file, 'a', encoding='utf-8') as f:
Path('ai_review_result.txt').write_text(comment, encoding='utf-8')
with open(summary_file, 'a', encoding='utf-8') as f:
CHANGELOG.write_text(before.rstrip("\n") + "\n\n" + entry + after, encoding="utf-8")
output.write_text(body, encoding="utf-8")
token_cache.write_bytes(payload)
Path(path).write_text(json.dumps(payload, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
with open(doc_path, 'w', encoding='utf-8') as f:
with open(temp_path, "w", encoding="utf-8") as f:
DOCS_PATH.write_text(replace_managed_block(markdown, table), encoding="utf-8")
with open(output_path, 'w', encoding='utf-8') as f:
shutil.copyfile(WEB_INDEX_PATH, STATIC_INDEX_PATH)
tmp_path.write_bytes(new_secret)
with open(secret_path, "xb") as f:
tmp_path.write_text(content)
tmp_path.write_text(content)
tmp_path.write_text(content)
tmp_path.write_text(
            json.dumps(payload, ensure_ascii=False, indent=2),
            encoding="utf-8",
        )
handle = open(lock_path, "a+", encoding="utf-8")
filepath.write_text(content, encoding='utf-8')
prompt_path.write_text(prompt_text, encoding="utf-8")
config_path.write_text(json.dumps(config, ensure_ascii=False, indent=2), encoding="utf-8")
with open(secret_path, "xb") as f:
secret_path.write_bytes(new_secret)

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.

CapabilityNode.js network egressnot scored · severity mediumST-NET-NODE

The component makes outbound network requests.

const http = require('http');
const https = require('https');
activeRequest = http.get(url, (res) => {
const response = await fetch(url, {
import axios from 'axios';
return axios.isAxiosError(error);
import axios from 'axios';
const apiClient = axios.create({

Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.

Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.

CapabilityPython network egressnot scored · severity mediumST-NET-PY

The component makes outbound network requests.

request = urllib.request.Request(f'{api_url}{path}', headers=headers)
with urllib.request.urlopen(request, timeout=30) as response:
request = urllib.request.Request(
        f"https://api.github.com/repos/{repo}/pulls/{pr_number}",
        headers={
            "Accept": "application/vnd.github+json",
            "Authorization": f"Bearer {token}",
            "User-Age …
with urllib.request.urlopen(request, timeout=15) as response:
resp = requests.post(
                session_webhook,
                json=payload,
                timeout=10
            )
resp = requests.patch(
                        f"{base_url}/messages/@original",
                        json={"content": chunk},
                        timeout=10,
                    )
resp = requests.post(
                        base_url,
                        json={"content": chunk},
                        timeout=10,
                    )
response = requests.get(url, headers=headers, timeout=10)
response = requests.get(url, headers=headers, timeout=10)
resp = requests.get(_AV_BASE_URL, params=params, timeout=30)
resp = requests.get(_AV_BASE_URL, params={
                'function': 'GLOBAL_QUOTE',
                'symbol': symbol,
                'apikey': self._api_key,
            }, timeout=15)
resp = requests.get(_AV_BASE_URL, params={
                'function': 'SYMBOL_SEARCH',
                'keywords': symbol,
                'apikey': self._api_key,
            }, timeout=10)
import requests  # 引入 requests 以捕获异常
response = requests.get(
                "https://push2.eastmoney.com/api/qt/stock/get",
                params={
                    "secid": secid,
                    "fltt": "2",
                    "fields": "f43,f44,f45,f46,f47,f48,f5 …
resp = requests.get(url, params=params, timeout=15)
resp = requests.get(
                f"{_FINNHUB_BASE_URL}/quote",
                params={'symbol': symbol, 'token': self._api_key},
                timeout=15,
            )
resp = requests.get(
                f"{_FINNHUB_BASE_URL}/search",
                params={'q': symbol, 'token': self._api_key},
                timeout=10,
            )

Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.

Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.

CapabilityDelegated authentication (OAuth 2.0 / OIDC)not scored · severity lowST-AUTH-DELEGATED

An OAuth 2.0 / OpenID Connect delegated-authentication flow was detected (authorization-code / refresh-token / token-exchange grant, an OIDC authorize/discovery endpoint or id_token, or a delegation library). Tools authenticate with the end user's delegated, scoped credentials rather than a long-lived embedded service credential.

Fix: Delegated auth is a lower-blast-radius execution context than an embedded static credential. Confirm the requested scopes are minimal and that tokens are never logged or forwarded off-host.

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

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

@server.list_tools()
@server.call_tool()
types.Tool(
                name=desc["name"],

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 ZhuLinsen/daily_stock_analysis.

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 →