360 Secure SkillHub
360 安全技能中心

Openclaw Action

该 Skill 是一个 GitHub Action,在 PR 与 push 事件中调用 sentry、bastion、egress 三个扫描器检查 agent 工作区,识别硬编码凭据、提示/命令注入与可疑网络外泄模式,并通过检查状态、行内注解和摘要报告输出结果,仅告警不修改仓库。扫描器脚本在运行时从外部下载,不随包提供。

atlaspa
atlaspa
热度 88.33
最近更新 2026-05-18 12:00:29
分类:安全依赖:代码执行 / 读写文件 / 第三方 API应用场景:代码审查 / 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