Back to skill

Security audit

Italent Overtime

Security checks for vulnerabilities and agentic risk

Overview

The skill performs the advertised HR overtime actions, but it exposes credential-like values and handles access tokens in ways users should review before installing.

Review this skill before installing in any real HR environment. Rotate or invalidate the credential-shaped AppKey/AppSecret shown in the package unless you can prove they were never real, avoid passing secrets directly in shell history, require explicit confirmation before submit or revoke actions, and store any saved token with strict local permissions or a credential store.

Vulnerability Patterns
  • 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
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
CLAWHUB_PUBLISHING.md:353
Finding

Credential-Shaped AppKey and AppSecret Embedded in Published Documentation

Content
View full analysis
", "app_secret": "" } ``` 4. If the credentials are valid, the endpoint returns an access token. 5. The attacker uses that token against the overtime API endpoints exposed to the application. 6. Depending on the application's assigned permissions, the attacker queries employee overtime data or submits and revokes overtime records. ...[truncated 637 chars]
Remediation
View remediation
" \ --secret "" \ ``` 6. Add automated secret scanning to the publication workflow and block releases containing high-entropy credential patterns. 7. Ensure the iTalent application is granted only the minimum overtime-related API scopes required by the Skill. 8. Establish a documented credential-rotation and incident-response process for future accidental disclosures. ]]>

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/italent-overtime-simple.py:46
Finding

Bearer Token Stored Without Enforced Owner-Only Permissions and Partially Printed

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
publish-to-clawhub.sh:39
Finding

Unpinned Third-Party CLI Execution Through npx

Content
View full analysis
/dev/null 2>&1; then echo "⚠️ 未登录 ClawHub" echo "" echo "请先登录:" echo " npx clawhub login" echo "" echo "或者使用 Token 登录:" echo " npx clawhub auth --token YOUR_TOKEN" echo "" read -p "是否现在登录?(y/n) " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]]; then npx clawhub login ``` The same script later publishes the Skill through the unpinned package: ```bash npx clawhub publish . ``` ### Technical Analysis The publishing workflow invokes `npx clawhub` without an exact package version, lockfile, integrity hash, or verified local installation. Depending on the npm and `npx` environment, this may retrieve and execute the current package version from the configured npm registry when no suitable local binary is installed. This creates a mutable execution boundary: the code that runs during login, identity verification, and publication may differ from the code reviewed when this Skill was audited. A compromised npm account, malicious package update, registry compromise, or manipulated registry configuration could cause attacker-controlled JavaScript to execute under the publisher's operating-system account. The risk is especially significant in this workflow because the invoked process may have access to: - ClawHub authentication state. - Publication tokens. - The complete Skill package. - User-readable files and environment variables. - The ability to alter content before publication. No evidence shows that the current `clawhub` package is malicious. The vulnerability is the absence of dependency pinning and i ...[truncated 1457 chars]
Remediation
View remediation
Vulnerability Patterns
  • 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
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (90)

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The complete user journey shows real-looking credentials embedded directly in a shell command and offers no warning that they may be exposed or invalid. This is especially dangerous because readers often copy-paste onboarding examples verbatim, and in an HR integration context stolen credentials could permit unauthorized overtime submission, queries, or revocations.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

A second behavior-mismatch finding reports filesystem access, creation of publish directories/archives, and instructions for publishing/installing/Git release instead of the declared HR business actions. In a credential-handling HR skill, undeclared packaging and publication capabilities materially increase risk of data exposure, unintended file modification, or abuse of user trust.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

A second behavior-mismatch finding reports filesystem access, creation of publish directories/archives, and instructions for publishing/installing/Git release instead of the declared HR business actions. In a credential-handling HR skill, undeclared packaging and publication capabilities materially increase risk of data exposure, unintended file modification, or abuse of user trust.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/api-docs.md (reported line 13)May include surrounding context.

md
---

## 1. 获取 Access Token

所有 API 调用的前提是先获取 `access_token`。

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
88% confidence
Finding

The troubleshooting step instructs users to run rm ~/.italent-overtime.conf, which is a destructive command affecting a hidden file that stores operational authentication state. While narrowly scoped, it can cause credential loss, force re-authentication, and encourage unsafe command execution habits without sufficient warning or validation.

Content

Scanner excerpt · references/troubleshooting.md (reported line 294)May include surrounding context.

如果配置文件损坏,可以删除后重新认证:

bash
rm ~/.italent-overtime.conf
python3 scripts/italent-overtime-simple.py auth --key XXX --secret XXX --save

Credential Access

High
Category
Privilege Escalation
Confidence
95% confidence
Finding

The script prints the first 20 characters of the access token to stdout after authentication. Even partial secret disclosure can expose bearer tokens through terminal history, logs, screen recording, CI output, or shared support transcripts, and bearer tokens can often be used directly without additional factors.

Content

Scanner excerpt · scripts/italent-overtime-simple.py (reported line 140)May include surrounding context.

python
print(f"  {json.dumps(result['data'], ensure_ascii=False, indent=2)}")
    
    if "access_token" in result:
        print(f"\nAccess Token: {result['access_token'][:20]}...")
        if "expires_in" in result:
            print(f"过期时间:{result['expires_in']} 秒")

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The document repeatedly instructs users to run npx clawhub without pinning an exact package version. npx may fetch the latest published package at execution time, so a compromised upstream package, typo-squat, or malicious update could result in arbitrary code execution on the user's machine during login, install, publish, or inspection workflows.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The publishing guide tells users to execute npx clawhub without version pinning, which causes runtime trust in whatever package version is current in the registry. Because these commands are part of a privileged workflow involving authentication and publication, a malicious or compromised package could steal tokens or execute arbitrary code.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

This command uses npx clawhub with no pinned version, allowing registry-supplied code to change over time. In a workflow that may handle auth state and user identity, this increases supply-chain risk and could expose credentials or system access if the package is replaced or updated maliciously.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

Using npx clawhub without an explicit version delegates trust to the current remote registry state each time the command is run. That creates a supply-chain execution path where malicious package updates could hijack token-based authentication or run arbitrary code locally.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The trigger list and examples are broad enough to overlap with ordinary workplace language like ‘加班’, ‘北森’, or ‘考勤’. In this skill's context, accidental activation is more dangerous because the skill can submit, query, or revoke HR overtime records, potentially causing unauthorized or unintended actions on production data.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The install instructions invoke npx clawhub without version pinning, so the client code executed during installation is not stable or auditable. Because this step installs and activates skills, compromise of the fetched package could lead to arbitrary code execution or installation of malicious content.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The update workflow relies on an unpinned npx clawhub command, which can execute changing remote code whenever users update the skill. This expands supply-chain risk by combining package execution with software update operations, potentially enabling credential theft or malicious skill replacement.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The search/inspection guidance uses unpinned npx clawhub, which still executes remote code despite appearing read-only. A compromised package could abuse user trust in these utility commands to run local payloads or exfiltrate environment data.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

This publication command runs npx clawhub publish . without version pinning, exposing maintainers to registry-supplied code execution during a sensitive release step. Since publication commonly uses authentication and access to local files, a malicious package could tamper with artifacts or steal credentials.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The authentication example tells users to pass AppKey and AppSecret directly on the command line, which can expose credentials through shell history, process listings, terminal logging, or CI logs. Because these are API credentials for an HR-related service, exposure could enable unauthorized access to sensitive attendance or overtime operations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The natural-language usage section encourages direct conversational commands for pushing or revoking overtime without warning that they may alter HR records. In this business context, silent execution of state-changing actions raises the risk of accidental submissions, cancellations, or misuse affecting employee attendance and approval workflows.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The troubleshooting section recommends another unpinned npx clawhub invocation, perpetuating the same supply-chain execution risk. Repetition throughout the document increases the chance that users will normalize unsafe package execution in multiple contexts.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The document's remedy for an existing-skill error uses unpinned npx clawhub publish ., which again trusts mutable remote package code at release time. Because release flows often involve privileged tokens and repository contents, this creates meaningful supply-chain risk.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

This search command is another instance of unpinned npx clawhub, enabling execution of whatever package version is available remotely. Even informational commands can become malware delivery vectors when documentation normalizes unpinned package execution.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The install retry instructions again use npx clawhub without version pinning, preserving a supply-chain attack surface in a security-sensitive workflow. If the upstream package or dependency chain is compromised, users could unknowingly execute malicious code during installation.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The stats/info examples use unpinned npx clawhub, which still execute mutable remote code. Although lower privilege than publish/auth flows, they contribute to the same trust problem and can be abused for local execution or data exfiltration.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

This installation example again instructs live execution of npx clawhub without version control, allowing command behavior to drift over time and potentially execute compromised code. Since the context is skill installation, successful exploitation could chain into further untrusted skill code execution.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The update example uses unpinned npx clawhub, exposing users to mutable remote package execution during update operations. Attackers commonly target update paths because users expect code changes and may grant elevated trust.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The user journey starts with an unpinned npx clawhub install, combining a high-trust onboarding step with supply-chain exposure. New users are especially likely to copy-paste this directly, making exploitation practical if the package distribution path is compromised.

Content

No source excerpt is available for this finding.