Back to skill

Security audit

blog-mini-kit-mys

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly matches its blog-management purpose, but it reads unnecessary local credential fields and permits sensitive admin and upload traffic over plaintext HTTP.

Review before installing if this skill will run in a workspace containing .project-info secrets or if it will connect to a non-local Blog deployment. Prefer HTTPS base URLs, avoid storing unnecessary BLOG_MINI_KIT_MYS_* secrets in project metadata, and treat admin delete and upload commands as high-impact operations.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
Findings (3)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
scripts/blog-mini-kit-mys.py:59
Finding

Unnecessary Discovery of Project Credentials Violates Least Privilege

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/blog-mini-kit-mys.py:136
Finding

Sensitive Credentials, Tokens, Content, and Files May Be Transmitted over Plaintext HTTP

Content
View full analysis
").strip().rstrip('/') if not base_url: print("错误:API 地址不能为空", file=sys.stderr) sys.exit(3) if not (base_url.startswith("http://") or base_url.startswith("https://")): print("错误:地址必须以 http:// 或 https:// 开头", file=sys.stderr) sys.exit(3) ``` ```python def cmd_upload_file(args): """V: 上传单个文件。""" with open(args.file, 'rb') as f: return _api_request('POST', '/api/upload', files={'file': f}) def cmd_upload_files(args): """W: 批量上传文件。""" opened = [open(fp, 'rb') for fp in args.files] try: return _api_request('POST', '/api/upload/multiple', files=[('files', f) for f in opened]) finally: for f in opened: f.close() ``` ```python def cmd_admin_login(args): """AD: 后台登录(获取 token)。""" import requests base_url = _get_base_url() try: resp = requests.post(f"{base_url}/admin/login", data={'username': args.username, 'password': args.password}, allow_redirects=False, timeout=30) except requests.exceptions.RequestException as e: print(f"错误:网络请求失败: {e}", file=sys.stderr) sys.exit(4) token = resp.cookies.get('admin_token', '') if token: return {"code": 200, "data": {"token": token}, "message": "登录成功"} return {"code": 401, "message": "账号或密码错误"} def cmd_ad ...[truncated 2709 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
requirements.txt:1
Finding

Unbounded Dependency Version Reduces Build Reproducibility and Supply-Chain Assurance

Content
View full analysis
=2.20.0 ``` ### Technical Analysis The requirement accepts every Requests release from version 2.20.0 onward, including unreviewed future releases. It may also preserve an already-installed old 2.20.x version because that version satisfies the lower bound. This does not demonstrate that Requests is malicious, and no dependency-confusion or typosquatting package was identified. The weakness is that installations are not reproducible and the dependency version actually executed may differ materially from the version reviewed during the Skill audit. ### Attack Path 1. The Skill is installed without a lock file or hash-verified dependency set. 2. The package resolver selects any version satisfying `requests>=2.20.0`. 3. Different installations may receive different versions, or an existing outdated installation may be retained. 4. If a selected release contains a security defect or a future compromised release is published through the trusted package channel, the Skill imports and executes that dependency during network operations. This is a supply-chain hardening issue; the audit found no evidence that a malicious Requests package is currently specified. ### Impact Assessment The impact depends on the defect present in the resolved dependency. Because Requests handles outbound URLs, credentials, request bodies, uploaded files, cookies, and responses, a compromised or vulnerable installed version could affect the confidentiality and integrity of all Blog API communications. The current requirement alone does not grant additional privileges and does not prove exploitation. Its direct impact is loss of reproducibility and reduced assurance that the deployed dependency matches the audited dependency. ]]>
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (84)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/blog-mini-kit-mys.py health-check