Back to skill

Security audit

Gov Procurement Analyst

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this procurement-analysis skill suspicious because scanners found broad, undeclared access and several policy and reliability weaknesses; analysis was incomplete for some components.

Treat this as a review warning, not a claim that the author is malicious. Consider avoiding installation until the tool permissions, remote update process, OCR data handling, and crawling behavior are clarified; also treat bid and compliance outputs cautiously. Scanner coverage was partial (78.6%), including a script that could not be parsed, so the evidence is incomplete.

Vulnerability Patterns
  • 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
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (12)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- `scripts/bid_decision_analyzer.py` — 投标决策分析器

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_read, file_write, network.

Medium
Category
MCP Least Privilege
Confidence
78% confidence
Finding

The skill directs local file access, persistent writes, network collection, and shell-based operations without declaring a least-privilege tool scope. These capabilities support legitimate procurement workflows, but unrestricted execution could amplify the consequences of malicious tender documents or compromised remote content; actual exposure depends on host-enforced permissions.

Content

No source excerpt is available for this finding.

The automatic multimodal OCR fallback lacks disclosure that certificate images may be processed outside the local environment.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

When local OCR is unavailable, the skill automatically falls back to multimodal recognition without establishing whether that recognition is local or externally hosted. Certificate images may contain personal or commercially sensitive information, so external processing without disclosure or consent would violate the skill's local-only assurances; the separate prohibition on uploading sensitive certificates is not an operational enforcement mechanism.

Content

No source excerpt is available for this finding.

The skill instructs the agent to check SkillHub for updates and replace its own instructions, a capability outside procurement analysis.

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

The update workflow directs the agent to run tongyifabu.ps1 and replace SKILL.md with remotely retrieved instructions, without specifying publisher authentication, integrity verification, or review of changed capabilities. User confirmation reduces silent-update risk, but a compromised update source or updater could still introduce instructions that gain access to sensitive bidding records.

Content

No source excerpt is available for this finding.

The robots.txt example can permit crawling when retrieval fails, contradicting its documented fail-closed policy.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

RobotFileParser.read() handles some HTTP errors internally rather than raising an exception; for example, a 404 can set its allow-all state. Consequently, the exception handler does not enforce the stated policy of denying crawling whenever robots.txt cannot be retrieved, and agents copying this example could violate that policy.

Content

No source excerpt is available for this finding.

The rate-limit example retries a domain after HTTP 429 despite instructions prohibiting further requests during the session.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

After receiving HTTP 429, the example sleeps and continues its retry loop instead of marking the domain unavailable for the session. Retrying after Retry-After is not inherently unsafe, but here it contradicts the explicitly stronger session-stop policy and can cause unwanted requests, further throttling, or account/IP blocking.

Content

No source excerpt is available for this finding.

The scoring-strategy reference implementation claims to parse the price-scoring formula but ignores it when recommending bids.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

The reference accepts price_score_formula but never uses it, and its suggested range also ignores the budget argument. In a procurement decision-support skill, presenting these heuristic results as formula-based optimization is a business-logic integrity defect that can produce financially poor or over-budget recommendations; the simplification comment does not make the output reliable.

Content

No source excerpt is available for this finding.

The documented cost-floor guarantee is bypassed when historical pricing data is unavailable.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The no-history branch returns 85–90% of budget without checking cost and reports a fixed 10% profit margin, so it can recommend a loss-making bid while suggesting profitability. This is a procurement-specific financial integrity defect, although the file's separate malformed method declaration currently prevents execution as supplied; the defect remains if that syntax error is repaired or the function is reused.

Content

No source excerpt is available for this finding.

Automatic redirects bypass the per-URL robots.txt check despite the script's strict-compliance claim.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The fetcher checks robots.txt only for the original URL, then lets requests automatically follow redirects to different paths or hosts without checking their policies. A redirect can therefore bypass the crawler's compliance gate, and destination requests are also absent from its per-domain throttling and failed-domain checks.

Content

No source excerpt is available for this finding.

T004 documents a working-day requirement but evaluates elapsed calendar days.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

T004 requires at least one working day, but delegates to a helper that counts elapsed calendar days, so a period spanning only non-working days can incorrectly pass. In a procurement compliance auditing tool, this creates a false-negative compliance result that could conceal an insufficient announcement period and mislead procurement decisions; there is no evidence of malicious intent.

Content

No source excerpt is available for this finding.

Generic trigger phrases can activate procurement workflows for unrelated requests.

Low
Category
Trigger Abuse
Confidence
97% confidence
Finding

The trigger table includes standalone phrases such as “分工” (task allocation), “体检” (health check), and “周报” (weekly report), which commonly occur outside government procurement. Line 71 states that using trigger words in conversation activates the skill, but the README provides no explicit procurement-context requirement or exclusions for these generic phrases.

Content

No source excerpt is available for this finding.

The dependency-degradation instructions require Chinese-language notices without user opt-in.

Low
Category
Output Handling
Confidence
94% confidence
Finding

The instruction explicitly requires the agent to provide the installation notice in Chinese (「并中文提示」), regardless of the user's preferred language. Although the skill concerns Chinese procurement rules, this language restriction is not justified as a compliance necessity, and the manifest also advertises English support.

Content

No source excerpt is available for this finding.