Crawler Summary

openclaw-api-security-skill answer-first brief

API Security Skill API Security Skill **API密钥安全实践与防护指南** 🚨 安全事件回顾 - **日期**: 2026年2月10日 - **事件**: 在stock-monitor技能的SKILL.md中发现明文API密钥 - **风险**: 如果上传到GitHub,密钥将公开暴露 - **措施**: 立即修复,改为安全配置说明 🔒 核心安全原则 绝对禁止 1. ❌ **绝不在代码中硬编码API密钥** 2. ❌ **绝不在文档中包含明文密钥** 3. ❌ **绝不在版本控制中提交密钥文件** 4. ❌ **绝不在日志中输出完整密钥** 必须做到 1. ✅ **使用环境变量管理密钥** 2. ✅ **使用外部配置文件(.gitignore保护)** 3. ✅ **提供安全的配置说明** 4. ✅ **实施密钥轮换机制** 📝 安全配置模式 模式1:环境变量(推荐) 模式2:外部配置文件 模式3:.env文件(带.git Capability contract not published. No trust telemetry is available yet. Last updated 2/25/2026.

Freshness

Last checked 2/25/2026

Best For

openclaw-api-security-skill is best for general automation workflows where OpenClaw compatibility matters.

Not Ideal For

Contract metadata is missing or unavailable for deterministic execution.

Evidence Sources Checked

editorial-content, GITHUB OPENCLEW, runtime-metrics, public facts pack

Claim this agent
Agent DossierGitHubSafety: 89/100

openclaw-api-security-skill

API Security Skill API Security Skill **API密钥安全实践与防护指南** 🚨 安全事件回顾 - **日期**: 2026年2月10日 - **事件**: 在stock-monitor技能的SKILL.md中发现明文API密钥 - **风险**: 如果上传到GitHub,密钥将公开暴露 - **措施**: 立即修复,改为安全配置说明 🔒 核心安全原则 绝对禁止 1. ❌ **绝不在代码中硬编码API密钥** 2. ❌ **绝不在文档中包含明文密钥** 3. ❌ **绝不在版本控制中提交密钥文件** 4. ❌ **绝不在日志中输出完整密钥** 必须做到 1. ✅ **使用环境变量管理密钥** 2. ✅ **使用外部配置文件(.gitignore保护)** 3. ✅ **提供安全的配置说明** 4. ✅ **实施密钥轮换机制** 📝 安全配置模式 模式1:环境变量(推荐) 模式2:外部配置文件 模式3:.env文件(带.git

OpenClawself-declared

Public facts

4

Change events

1

Artifacts

0

Freshness

Feb 25, 2026

Verifiededitorial-contentNo verified compatibility signals

Capability contract not published. No trust telemetry is available yet. Last updated 2/25/2026.

Trust evidence available

Trust score

Unknown

Compatibility

OpenClaw

Freshness

Feb 25, 2026

Vendor

Zanderh Code

Artifacts

0

Benchmarks

0

Last release

Unpublished

Executive Summary

Key links, install path, and a quick operational read before the deeper crawl record.

Verifiededitorial-content

Summary

Capability contract not published. No trust telemetry is available yet. Last updated 2/25/2026.

Setup snapshot

git clone https://github.com/ZanderH-code/openclaw-api-security-skill.git
  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence Ledger

Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.

Verifiededitorial-content
Vendor (1)

Vendor

Zanderh Code

profilemedium
Observed Feb 25, 2026Source linkProvenance
Compatibility (1)

Protocol compatibility

OpenClaw

contractmedium
Observed Feb 25, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance
Integration (1)

Crawlable docs

6 indexed pages on the official domain

search_documentmedium
Observed Apr 15, 2026Source linkProvenance

Release & Crawl Timeline

Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.

Self-declaredagent-index

Artifacts Archive

Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.

Self-declaredGITHUB OPENCLEW

Extracted files

0

Examples

6

Snippets

0

Languages

typescript

Parameters

Executable Examples

bash

# 设置环境变量
export ALPHA_VANTAGE_API_KEY=your_key_here
export OPENAI_API_KEY=your_key_here
export GITHUB_TOKEN=your_key_here

# 在Python中使用
import os
api_key = os.environ.get('API_KEY')

bash

# 创建安全的密钥文件
mkdir -p ~/.secure/keys
echo "your_api_key_here" > ~/.secure/keys/api_key
chmod 600 ~/.secure/keys/api_key  # 仅所有者可读写

# 在Python中读取
with open(os.path.expanduser('~/.secure/keys/api_key'), 'r') as f:
    api_key = f.read().strip()

bash

# .env文件(添加到.gitignore)
API_KEY=your_key_here
DATABASE_URL=your_database_url

# .gitignore必须包含
.env
*.key
*.secret
config/secret*.json

bash

# 检查是否包含敏感信息
grep -r "API_KEY\|APIKEY\|PASSWORD\|SECRET" . --include="*.py" --include="*.md" --include="*.json"

# 检查.gitignore是否有效
git status --ignored

# 使用git-secrets等工具扫描

python

# ❌ 错误示例
API_KEY = "R4MKJRGWX0WLUPX5"  # 明文密钥,绝对禁止!

# ✅ 正确示例
import os
API_KEY = os.environ.get('API_KEY')  # 从环境变量读取

markdown

<!-- ❌ 错误示例 -->
## 配置API密钥
密钥: `R4MKJRGWX0WLUPX5`

<!-- ✅ 正确示例 -->
## 配置API密钥
1. 获取API密钥: https://example.com/api-key
2. 设置环境变量: `export API_KEY=your_key`
3. 或创建密钥文件: `echo "your_key" > ~/.api_key`

Docs & README

Full documentation captured from public sources, including the complete README when available.

Self-declaredGITHUB OPENCLEW

Docs source

GITHUB OPENCLEW

Editorial quality

ready

API Security Skill API Security Skill **API密钥安全实践与防护指南** 🚨 安全事件回顾 - **日期**: 2026年2月10日 - **事件**: 在stock-monitor技能的SKILL.md中发现明文API密钥 - **风险**: 如果上传到GitHub,密钥将公开暴露 - **措施**: 立即修复,改为安全配置说明 🔒 核心安全原则 绝对禁止 1. ❌ **绝不在代码中硬编码API密钥** 2. ❌ **绝不在文档中包含明文密钥** 3. ❌ **绝不在版本控制中提交密钥文件** 4. ❌ **绝不在日志中输出完整密钥** 必须做到 1. ✅ **使用环境变量管理密钥** 2. ✅ **使用外部配置文件(.gitignore保护)** 3. ✅ **提供安全的配置说明** 4. ✅ **实施密钥轮换机制** 📝 安全配置模式 模式1:环境变量(推荐) 模式2:外部配置文件 模式3:.env文件(带.git

Full README

API Security Skill

API密钥安全实践与防护指南

🚨 安全事件回顾

  • 日期: 2026年2月10日
  • 事件: 在stock-monitor技能的SKILL.md中发现明文API密钥
  • 风险: 如果上传到GitHub,密钥将公开暴露
  • 措施: 立即修复,改为安全配置说明

🔒 核心安全原则

绝对禁止

  1. 绝不在代码中硬编码API密钥
  2. 绝不在文档中包含明文密钥
  3. 绝不在版本控制中提交密钥文件
  4. 绝不在日志中输出完整密钥

必须做到

  1. 使用环境变量管理密钥
  2. 使用外部配置文件(.gitignore保护)
  3. 提供安全的配置说明
  4. 实施密钥轮换机制

📝 安全配置模式

模式1:环境变量(推荐)

# 设置环境变量
export ALPHA_VANTAGE_API_KEY=your_key_here
export OPENAI_API_KEY=your_key_here
export GITHUB_TOKEN=your_key_here

# 在Python中使用
import os
api_key = os.environ.get('API_KEY')

模式2:外部配置文件

# 创建安全的密钥文件
mkdir -p ~/.secure/keys
echo "your_api_key_here" > ~/.secure/keys/api_key
chmod 600 ~/.secure/keys/api_key  # 仅所有者可读写

# 在Python中读取
with open(os.path.expanduser('~/.secure/keys/api_key'), 'r') as f:
    api_key = f.read().strip()

模式3:.env文件(带.gitignore)

# .env文件(添加到.gitignore)
API_KEY=your_key_here
DATABASE_URL=your_database_url

# .gitignore必须包含
.env
*.key
*.secret
config/secret*.json

🛡️ 安全检查清单

创建新技能时

  • [ ] 代码中没有API_KEY = "明文密钥"
  • [ ] 文档中没有密钥: ABC123这样的明文
  • [ ] .gitignore文件已配置
  • [ ] 提供了环境变量配置说明
  • [ ] 提供了外部文件配置说明
  • [ ] 测试了安全的密钥加载

提交到Git前

# 检查是否包含敏感信息
grep -r "API_KEY\|APIKEY\|PASSWORD\|SECRET" . --include="*.py" --include="*.md" --include="*.json"

# 检查.gitignore是否有效
git status --ignored

# 使用git-secrets等工具扫描

发布前审查

  • [ ] 文档示例使用your_api_key_here占位符
  • [ ] 所有配置文件路径都是相对的或用户主目录
  • [ ] 错误消息不泄露密钥信息
  • [ ] 日志中只显示密钥的前/后几位

🚫 常见错误示例

错误1:硬编码密钥

# ❌ 错误示例
API_KEY = "R4MKJRGWX0WLUPX5"  # 明文密钥,绝对禁止!

# ✅ 正确示例
import os
API_KEY = os.environ.get('API_KEY')  # 从环境变量读取

错误2:文档中包含密钥

<!-- ❌ 错误示例 -->
## 配置API密钥
密钥: `R4MKJRGWX0WLUPX5`

<!-- ✅ 正确示例 -->
## 配置API密钥
1. 获取API密钥: https://example.com/api-key
2. 设置环境变量: `export API_KEY=your_key`
3. 或创建密钥文件: `echo "your_key" > ~/.api_key`

错误3:git提交密钥文件

# ❌ 错误:提交了密钥文件
git add config/api_key.txt
git commit -m "Add API config"

# ✅ 正确:.gitignore保护
echo "config/api_key.txt" >> .gitignore
git add .gitignore

🛠️ 安全工具

1. git-secrets

# 安装
git secrets --install

# 添加模式
git secrets --add 'API_KEY.*=.*["\'].*["\']'
git secrets --add --allowed 'API_KEY.*=.*your_key_here'

# 扫描
git secrets --scan

2. truffleHog / gitleaks

# 扫描提交历史中的密钥
gitleaks detect --source . -v

# 配置排除规则
echo '[[rules]]
description = "Allow placeholder API keys"
regex = '''API_KEY.*=.*["']your_.*["']''' > .gitleaks.toml

3. pre-commit钩子

# .pre-commit-config.yaml
repos:
  - repo: https://github.com/gitleaks/gitleaks
    rev: v8.18.0
    hooks:
      - id: gitleaks

📋 技能模板

安全技能结构

skill-name/
├── SKILL.md          # 文档(无明文密钥)
├── __init__.py       # 主模块
├── config.py         # 配置加载
├── security_check.py # 安全检查
└── .gitignore        # 忽略敏感文件

config.py示例

import os
from pathlib import Path

def load_api_key(key_name, default_path=None):
    """安全加载API密钥"""
    # 1. 检查环境变量
    key = os.environ.get(key_name)
    if key:
        return key
    
    # 2. 检查密钥文件
    key_files = [
        Path.home() / f'.openclaw/{key_name.lower()}',
        Path.home() / f'.{key_name.lower()}',
        default_path
    ]
    
    for key_file in key_files:
        if key_file and key_file.exists():
            try:
                with open(key_file, 'r') as f:
                    return f.read().strip()
            except:
                continue
    
    raise ValueError(f"未找到{key_name},请设置环境变量或创建密钥文件")

🚀 实施步骤

1. 新技能开发

# 创建技能结构
mkdir -p new-skill && cd new-skill

# 立即创建.gitignore
echo ".env\n*.key\n*.secret\nconfig/secret*" > .gitignore

# 使用安全模板
cp ../api-security/templates/config.py .

2. 现有技能修复

# 检查现有技能
cd existing-skill

# 扫描敏感信息
python -c "
import re
import os

patterns = [
    r'API_?KEY\s*[=:]\s*[\"\']\w+[\"\']',
    r'password\s*[=:]\s*[\"\']\w+[\"\']',
    r'secret\s*[=:]\s*[\"\']\w+[\"\']'
]

for root, dirs, files in os.walk('.'):
    for file in files:
        if file.endswith(('.py', '.md', '.json', '.yml', '.yaml')):
            path = os.path.join(root, file)
            with open(path, 'r', encoding='utf-8', errors='ignore') as f:
                content = f.read()
                for pattern in patterns:
                    if re.search(pattern, content, re.IGNORECASE):
                        print(f'警告: {path} 可能包含敏感信息')
"

# 修复发现问题

3. 文档更新

<!-- 更新SKILL.md的安全部分 -->
## 🔐 安全配置

请按以下方式安全配置API密钥:

### 选项A:环境变量(推荐)
```bash
export YOUR_API_KEY=your_actual_key_here

选项B:密钥文件

echo "your_actual_key_here" > ~/.your_api_key
chmod 600 ~/.your_api_key

重要:请勿在代码或文档中使用明文密钥!


## 📚 相关资源

### 最佳实践文档
- [OWASP API Security Top 10](https://owasp.org/www-project-api-security/)
- [GitHub Secrets Scanning](https://docs.github.com/en/code-security/secret-scanning)
- [12 Factor App Config](https://12factor.net/config)

### 监控与警报
```python
# 密钥使用监控
import logging

class SecureAPIClient:
    def __init__(self, api_key):
        self.api_key = api_key
        # 记录密钥使用(不记录完整密钥)
        logging.info(f"API客户端初始化,密钥: {api_key[:4]}...{api_key[-4:]}")
    
    def make_request(self):
        # 使用密钥
        pass

⚠️ 紧急响应

发现密钥泄露

  1. 立即轮换密钥 - 在服务提供商处重置
  2. 审查提交历史 - 确认泄露范围
  3. 撤销访问权限 - 如果可能
  4. 监控异常活动 - 关注API使用情况
  5. 更新文档 - 移除所有明文密钥

预防措施

  1. 定期密钥轮换 - 每90天更换一次
  2. 最小权限原则 - 只授予必要权限
  3. 使用密钥别名 - 便于管理和撤销
  4. 启用审计日志 - 记录所有API调用

创建日期: 2026年2月10日
最后更新: 2026年2月10日
重要性: 关键安全实践
适用范围: 所有涉及API密钥的技能
状态: 生效中 ✅

Contract & API

Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.

MissingGITHUB OPENCLEW

Contract coverage

Status

missing

Auth

None

Streaming

No

Data region

Unspecified

Protocol support

OpenClaw: self-declared

Requires: none

Forbidden: none

Guardrails

Operational confidence: low

No positive guardrails captured.
Invocation examples
curl -s "https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/snapshot"
curl -s "https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/contract"
curl -s "https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/trust"

Reliability & Benchmarks

Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.

Missingruntime-metrics

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

Do not use if

Contract metadata is missing or unavailable for deterministic execution.
No benchmark suites or observed failure patterns are available.

Media & Demo

Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.

Missingno-media
No screenshots, media assets, or demo links are available.

Related Agents

Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.

Self-declaredprotocol-neighbors
GITHUB_REPOSactivepieces

Rank

70

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

Traction

No public download signal

Freshness

Updated 2d ago

OPENCLAW
GITHUB_REPOScherry-studio

Rank

70

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs

Traction

No public download signal

Freshness

Updated 5d ago

MCPOPENCLAW
GITHUB_REPOSAionUi

Rank

70

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

Traction

No public download signal

Freshness

Updated 6d ago

MCPOPENCLAW
GITHUB_REPOSCopilotKit

Rank

70

The Frontend for Agents & Generative UI. React + Angular

Traction

No public download signal

Freshness

Updated 23d ago

OPENCLAW
Machine Appendix

Contract JSON

{
  "contractStatus": "missing",
  "authModes": [],
  "requires": [],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": false,
  "inputSchemaRef": null,
  "outputSchemaRef": null,
  "dataRegion": null,
  "contractUpdatedAt": null,
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/snapshot",
    "contractUrl": "https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/contract",
    "trustUrl": "https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/trust"
  },
  "curlExamples": [
    "curl -s \"https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/snapshot\"",
    "curl -s \"https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/contract\"",
    "curl -s \"https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_OPENCLEW",
      "generatedAt": "2026-04-17T00:23:34.955Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile"
}

Facts JSON

[
  {
    "factKey": "docs_crawl",
    "category": "integration",
    "label": "Crawlable docs",
    "value": "6 indexed pages on the official domain",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  },
  {
    "factKey": "vendor",
    "category": "vendor",
    "label": "Vendor",
    "value": "Zanderh Code",
    "href": "https://github.com/ZanderH-code/openclaw-api-security-skill",
    "sourceUrl": "https://github.com/ZanderH-code/openclaw-api-security-skill",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-02-25T02:24:33.339Z",
    "isPublic": true
  },
  {
    "factKey": "protocols",
    "category": "compatibility",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "href": "https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-02-25T02:24:33.339Z",
    "isPublic": true
  },
  {
    "factKey": "handshake_status",
    "category": "security",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "href": "https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/trust",
    "sourceUrl": "https://xpersona.co/api/v1/agents/zanderh-code-openclaw-api-security-skill/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true
  }
]

Change Events JSON

[
  {
    "eventType": "docs_update",
    "title": "Docs refreshed: Sign in to GitHub · GitHub",
    "description": "Fresh crawlable documentation was indexed for the official domain.",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  }
]

Sponsored

Ads related to openclaw-api-security-skill and adjacent AI workflows.