Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

腾讯云对象存储管理

v1.0.0

管理腾讯云 COS 存储桶和文件,实现创建删除存储桶、上传下载、生命周期配置及访问权限控制。

0· 91·0 current·0 all-time
bysuperStupidBear@ugpoor

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for ugpoor/tencentcloud-cos-manager.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "腾讯云对象存储管理" (ugpoor/tencentcloud-cos-manager) from ClawHub.
Skill page: https://clawhub.ai/ugpoor/tencentcloud-cos-manager
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install tencentcloud-cos-manager

ClawHub CLI

Package manager switcher

npx clawhub@latest install tencentcloud-cos-manager
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The name, description, SKILL.md and the Python code consistently implement Tencent Cloud COS management (bucket ops, uploads, lifecycle, cost estimation). However the registry metadata claims no required environment variables or primary credential while the code and SKILL.md clearly require TENCENT_SECRET_ID and TENCENT_SECRET_KEY — this metadata omission is inconsistent and should be corrected.
!
Instruction Scope
SKILL.md instructs installing the COS SDK and setting .env credentials (which is expected), but it also references external steps/files not present in the package (e.g., '参考 tencentcloud-cvm 技能', troubleshooting suggests running 'python3 src/verify_config.py' and 'cat config/.env' and uses 'tccli' commands). verify_config.py and config/.env are not included, and relying on an external 'tencentcloud-cvm' skill or tccli is out-of-band — these inconsistencies increase risk and could cause unexpected behavior or confusion.
Install Mechanism
The skill is instruction-only (no install spec). The SKILL.md asks the user to pip-install well-known packages (cos-python-sdk-v5, python-dotenv). There are no downloads from untrusted URLs or archive extraction steps in the package. This is a low-risk install mechanism, assuming the listed PyPI packages are legitimate and audited by the user.
Credentials
The code legitimately needs Tencent Cloud credentials and region configuration (TENCENT_SECRET_ID, TENCENT_SECRET_KEY, TENCENT_REGION) for COS operations — that is proportionate. However the registry metadata does not declare those required env vars (inconsistency). Also the sample IAM policy in SKILL.md uses the action 'name/cos:*', which looks incorrect or malformed (expected 'cos:*' or the documented Tencent action names) — and the policy as written is broad (all COS actions on '*'). Recommend least-privilege COS actions and explicit, correct action names.
Persistence & Privilege
The skill does not request always:true and does not claim to modify other skills or system-wide agent settings. It runs when invoked and uses environment variables for credentials; that is standard for this class of skill.
What to consider before installing
This package appears to implement a legitimate Tencent COS manager, but there are packaging and instruction gaps you should address before use: 1) Do not assume the registry metadata lists required credentials — the code requires TENCENT_SECRET_ID and TENCENT_SECRET_KEY in an .env file. 2) Inspect the Python code locally to confirm there are no unexpected network endpoints or hidden telemetry. 3) The SKILL.md references files/commands that are missing (src/verify_config.py, config/.env, references to another skill and tccli); ask the publisher to provide or remove those references. 4) When granting permissions, prefer a narrowly-scoped COS IAM policy (least privilege) rather than a wide wildcard like 'cos:*' or the shown 'name/cos:*' (which appears malformed). 5) Test with a temporary sub-user with minimal COS permissions and limited resources (non-production) and keep keys out of version control; rotate/revoke keys after testing. 6) If you rely on pip-installed dependencies, confirm the exact package names and check their source on PyPI/GitHub before installing. If the publisher cannot clarify the metadata mismatches and missing files, treat the package as untrusted.

Like a lobster shell, security has layers — review code before you run it.

cloudvk979rqfzjhhkjj4njw8m2gprfn83vym2cosvk979rqfzjhhkjj4njw8m2gprfn83vym2latestvk979rqfzjhhkjj4njw8m2gprfn83vym2storagevk979rqfzjhhkjj4njw8m2gprfn83vym2tencentcloudvk979rqfzjhhkjj4njw8m2gprfn83vym2
91downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

TencentCloud-COS - 腾讯云对象存储管理技能

📋 技能说明

腾讯云 COS 对象存储管理工具,用于创建和管理存储桶、上传下载文件。

核心功能

COS 存储桶管理

  • 创建/删除存储桶
  • 存储类型管理 (标准/低频/归档)
  • 生命周期配置
  • 跨地域复制

文件管理

  • 上传/下载文件
  • 批量上传
  • 分片上传
  • 文件列表查询

成本控制

  • 存储类型优化
  • 生命周期自动转换
  • 流量监控

安全管理

  • 访问权限控制
  • 防盗链
  • 加密存储

💰 存储类型价格参考

⚠️ 注意: 以下价格为参考区间(更新于 2026-03-29),实际价格以腾讯云官网为准。

存储类型概览

存储类型价格区间适用场景节省
标准存储~¥0.12-0.15/GB/月频繁访问数据-
低频存储~¥0.07-0.09/GB/月不常访问数据~35-40%
归档存储~¥0.02-0.04/GB/月长期保存数据~70-80%

获取最新价格

from tencentcloud_cos import COSCostManager

cost_mgr = COSCostManager()

# 估算成本
cost = cost_mgr.estimate_cost(
    storage_gb=100,
    storage_class='STANDARD',
    months=12
)

print(f"总成本:¥{cost['total']}")

📊 推荐配置清单

场景 1: 数据采集存储

存储策略:
  - 最近 7 天:标准存储 (频繁查询)
  - 7-30 天:低频存储 (偶尔查询)
  - 30 天+:归档存储 (长期保存)

数据量:450 GB/月
预估成本:~¥40-60/月

优势:
  ✅ 成本优化
  ✅ 热数据快速访问
  ✅ 冷数据便宜存储

场景 2: 网站静态资源

存储类型:标准存储
数据量:100 GB
预估成本:~¥15-20/月 (存储) + 流量费

优势:
  ✅ 快速访问
  ✅ CDN 加速
  ✅ 高可用

场景 3: 备份归档

存储策略:
  - 最近 30 天:低频存储
  - 30 天+:归档存储

数据量:1 TB
预估成本:~¥30-40/月 (30 天后)

优势:
  ✅ 成本极低
  ✅ 长期保存
  ✅ 合规备份

⚠️ 前置配置 (必须完成)

步骤 1: 安装 COS SDK

pip3 install --break-system-packages cos-python-sdk-v5

步骤 2-7: 配置子用户权限

参考 tencentcloud-cvm 技能的配置步骤。

权限策略:

{
  "version": "2.0",
  "statement": [
    {
      "effect": "allow",
      "action": [
        "name/cos:*"
      ],
      "resource": "*"
    }
  ]
}

🔒 权限说明

授予的权限

权限范围说明
name/cos:*对象存储存储桶/对象管理

未授予的权限 (安全)

权限原因
finance:*❌ 财务权限
cam:*❌ 用户管理

📦 安装

# 安装依赖
pip3 install --break-system-packages \
  cos-python-sdk-v5 \
  python-dotenv

🔧 配置

环境变量文件 (.env)

# 腾讯云 API 凭证 (子用户)
TENCENT_SECRET_ID=AKIDxxxxxxxxxxxxxxxxxxxxxxxxxx
TENCENT_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxx

# 区域配置
TENCENT_REGION=ap-singapore

# 资源命名
RESOURCE_PREFIX=cos

# 存储配置
DEFAULT_STORAGE_CLASS=STANDARD

🚀 使用示例

创建存储桶

from tencentcloud_cos import COSManager

cos = COSManager()

bucket = cos.create_bucket(
    bucket_name="my-data-bucket",
    region="ap-singapore",
    storage_class="STANDARD"
)

print(f"✅ 创建成功:{bucket['bucket_name']}")

上传文件

cos.upload_file(
    bucket="my-data-bucket",
    local_path="/tmp/data.parquet",
    key="data/2024/03/28/data.parquet"
)

批量上传

files = ["/tmp/data1.parquet", "/tmp/data2.parquet"]

cos.batch_upload(
    bucket="my-data-bucket",
    files=files,
    prefix="data/2024/03/28/"
)

下载文件

cos.download_file(
    bucket="my-data-bucket",
    key="data/2024/03/28/data.parquet",
    local_path="/tmp/download.parquet"
)

设置生命周期

cos.put_lifecycle(
    bucket="my-data-bucket",
    rules=[
        {
            "id": "rule1",
            "prefix": "data/",
            "transitions": [
                {"days": 7, "storage_class": "STANDARD_IA"},
                {"days": 30, "storage_class": "ARCHIVE"}
            ]
        }
    ]
)

📊 成本估算参考

以下成本仅供参考,实际费用以账单为准。

数据存储 (100 GB/月)

存储类型月成本年成本
标准存储~¥12-15~¥144-180
低频存储~¥7-9~¥84-108
归档存储~¥2-4~¥24-48

生命周期优化示例

策略月成本节省
全标准存储~¥55-65-
生命周期优化~¥35-45~30-40%

⚠️ 注意事项

安全

  • ✅ 使用子用户密钥,不用主账号
  • ✅ 设置最小权限
  • ✅ .env 文件妥善保管
  • ✅ 定期轮换密钥 (90 天)
  • ❌ 不要提交密钥到 Git

成本

  • ✅ 设置预算告警
  • ✅ 使用生命周期优化
  • ✅ 及时清理无用文件
  • ❌ 不要忘记设置生命周期

区域选择

  • ✅ 新加坡 (ap-singapore): 网络稳定
  • ✅ 香港 (ap-hongkong): 延迟低
  • ✅ 上海 (ap-shanghai): 国内访问快

📚 相关文档


🆘 故障排除

问题 1: 凭证验证失败

cat config/.env
python3 src/verify_config.py

问题 2: 权限不足

tccli cam ListAttachedUserPolicies --AttachUin <UIN>

问题 3: 上传失败

# 检查存储桶名称格式
# 正确格式:bucket-name.cos.region.myqcloud.com

# 检查网络连接
ping cos.ap-singapore.myqcloud.com

Comments

Loading comments...