360 Secure SkillHub
360 安全技能中心

Openclaw Action

核心功能:提供三类安全扫描,检测代码中的密钥凭证、注入攻击标记、可疑网络调用/数据泄露模式。典型场景:配置在GitHub工作流中,在PR提交或推送主分支时自动扫描Agent技能代码。输入支持指定扫描路径、是否触发失败、各类扫描开关;输出返回问题总数及是否存在高危问题。仅检测告警,不自动修改代码,帮助提前排查安全隐患。

atlaspa
atlaspa
热度 88.36
最近更新 2026-05-18 12:00:29
分类:安全依赖:代码执行 / 读写文件应用场景:DevOps / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-action
Metadata
name
openclaw-action
description
GitHub Action for automated security scanning of agent workspaces. Detects exposed secrets, prompt/shell injection, and data exfiltration patterns in PRs and commits.
user-invocable
false
metadata
{"openclaw":{"emoji":"🛡️","requires":{"bins":["python3"]},"os":["darwin","linux","win32"]}}

OpenClaw Security Action

GitHub Action that scans agent skills for security issues on every PR.

What It Scans

Scanner What It Catches
sentry API keys, tokens, passwords, credentials in code
bastion Prompt injection markers, shell injection patterns
egress Suspicious network calls, data exfiltration patterns

Quick Start

Add to .github/workflows/security.yml:

name: Security Scan
on:
  pull_request:
    paths:
      - 'skills/**'
      - '.openclaw/**'
  push:
    branches: [main]

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: AtlasPA/openclaw-action@v1
        with:
          workspace: '.'
          fail-on-findings: 'true'

Inputs

Input Default Description
workspace . Path to scan
fail-on-findings true Fail the check if issues found
scan-secrets true Enable secret scanning
scan-injection true Enable injection scanning
scan-egress true Enable egress scanning

Outputs

Output Description
findings-count Total number of issues found
has-critical true if critical/high severity issues

Philosophy

This action detects and alerts only. It will:

  • Flag security issues in PR checks
  • Annotate specific lines with findings
  • Generate a summary report

It will NOT:

  • Automatically modify your code
  • Quarantine or delete files
  • Make any changes to your repository

For automated remediation, see OpenClaw Pro.

Requirements

  • Python 3.8+ (auto-installed by action)
  • No external dependencies