[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M698TSV0T0DA7JR8AZD6J8HR":3,"skill-same:01M698TSV0T0DA7JR8AZD6J8HR":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M698TSV0T0DA7JR8AZD6J8HR","clawscan-cli","ClawScan CLI 扫描与基准测试","Use when running or explaining the ClawScan CLI, including one-off agent-skill scans, benchmark runs, scanner fixtures, judge harness commands, env var validation, and interpreting clawscan-run-v1 and clawscan-benchmark-v1 artifacts.","用于运行或讲解 ClawScan CLI，包括一次性智能体技能扫描、基准测试运行、扫描器测试夹具（fixtures）、judge harness 命令、环境变量校验，以及解读 clawscan-run-v1 和 clawscan-benchmark-v1 产物。","openclaw\u002Fclawscan","openclaw","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F252820863?v=4","01M698P3FSAZ6B4R928ZF19KPT","01M698TGDY4K3R05YPJTRRAD9D",154,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawscan\u002Fblob\u002Fmain\u002Fskills\u002Fclawscan-cli\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理","SCENARIO","使用场景",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"clawscan cli","cli","harness","use","v1","artifacts","env","fixtures","scanner","run","validation","benchmark","commands","judge","running","when","2026-11-10 10:12:30",false,"---\nname: clawscan-cli\ndescription: Use when running or explaining the ClawScan CLI, including one-off agent-skill scans, benchmark runs, scanner fixtures, judge harness commands, env var validation, and interpreting clawscan-run-v1 and clawscan-benchmark-v1 artifacts.\n---\n\n# ClawScan CLI\n\n## Overview\n\nUse ClawScan to run one or more security scanners against agent skills, preserve\nraw scanner evidence, and optionally pass the evidence to an external judge\nharness. The public CLI is general-purpose; ClawHub-specific parity helpers\nbelong outside `cmd\u002Fclawscan`. Keep secrets in environment variables, never CLI\nflags.\n\n## Command Surface\n\nRun from the repo root during development:\n\n```bash\ngo run .\u002Fcmd\u002Fclawscan \u003Ctarget> --scanner \u003Cscanner-id> [flags]\n```\n\nUse the installed binary when available:\n\n```bash\nclawscan \u003Ctarget> --scanner \u003Cscanner-id> [flags]\n```\n\nChoose the run mode:\n\n| Need | Shape |\n| --- | --- |\n| Scan repo skills with one scanner | `clawscan --scanner skillspector` from a repo with `.\u002Fskills\u002F\u003Cname>\u002FSKILL.md` |\n| Scan repo skills with the ClawHub profile | `clawscan --profile clawhub` from a repo with `.\u002Fskills\u002F\u003Cname>\u002FSKILL.md` |\n| Scan one explicit target with a profile | `clawscan .\u002Fmy-skill --profile clawhub` |\n| Capture raw scanner evidence only | `clawscan .\u002Fmy-skill --scanner skillspector` |\n| Print raw JSON to stdout | Add `--json`. |\n| Run all profiles from a config | `clawscan .\u002Fmy-skill --config .\u002Fsecurity\u002Fclawscan.yml` |\n| Run one config profile | `clawscan .\u002Fmy-skill --config .\u002Fsecurity\u002Fclawscan.yml --profile review` |\n| Install scanner dependencies | `clawscan install aig cisco skillspector` |\n| List scanner catalog | `clawscan scanners` |\n| Inspect one scanner | `clawscan scanners skillspector` |\n| List resolved profiles | `clawscan profiles` |\n| Print resolved profile YAML | `clawscan profiles -v` |\n| List benchmark catalog | `clawscan benchmark list` |\n| Run SkillTrustBench | `clawscan benchmark SkillTrustBench --limit 10 --scanner skillspector --output run.json` |\n| Run ClawHub Security Signals | `clawscan benchmark clawhub-security-signals --split eval_holdout --limit 10 --scanner skillspector --output run.json` |\n| Use stable scanner evidence | Add `--scanner-result \u003Cid=path>` for each fixture-backed scanner. |\n| Add or override a judge harness | Add `--judge '\u003Ccommand with placeholders>'`. |\n| Override or skip the readable overview | Add `--overview '\u003Ccommand>'` or `--no-overview`. |\n| Use host-installed scanner\u002Fjudge CLIs | Add `--sandbox off` only in an already-isolated environment. |\n\nHelpful metadata:\n\n```bash\nclawscan --help\nclawscan -h\nclawscan --version\nclawscan scanners\nclawscan profiles\nclawscan benchmark list\n```\n\nUnless `--json` is passed, ClawScan writes the full artifact to\n`.\u002Fclawscan-results\u002Fartifact.json` by default, preserves per-scanner JSON files\nin the same visible results bundle, and prints a concise key\u002Fvalue summary\nending in `full_results: .\u002Fclawscan-results\u002Fartifact.json`. Use\n`--output \u003Cpath>` to choose a different artifact path; explicit `.json` paths\nkeep that artifact file and write scanner JSON beside it.\n\n## Targets, Profiles, And Config\n\nIf no target is passed with `--scanner`, `--profile`, or `--config`, ClawScan\nscans child skill directories under `.\u002Fskills`. If `.\u002Fskills` is missing or\ncontains no children with `SKILL.md`, it fails with a target-discovery error.\nPlain `clawscan` without `--scanner`, `--profile`, or `--config` is invalid.\nBenchmark runs use `clawscan benchmark \u003Cbenchmark-id>` and do not accept scan\ntargets.\n\nBuilt-in profiles:\n\n| Profile | Scanners | Judge |\n| --- | --- | --- |\n| `clawhub` | skills: `skillspector`, `aig`; plugins: only `aig-mcp` | evidence-only Codex judge plus an evidence-only Codex overview |\n| `clawhub-template` | `aig-mcp` over the whole shipped Template | unchanged evidence-only verdict judge plus optional overview; see `docs\u002Ftemplate-audit.md` |\n| `clawhub-aig` | `skillspector`, `aig` | same judge and overview as `clawhub` |\n| `openclaw-install-policy` | `skillspector` | none |\n\nProfiles are loaded from embedded built-ins. Project `.clawscan.yml` \u002F\n`.clawscan.yaml` files are NOT loaded automatically: pass `--config \u003Cpath>` to\nload a specific config, or `--discover-config` to load the nearest one found\nupward from the current directory. A project profile with the same name shadows\nthe built-in whole profile. `--config \u003Cpath>` without `--profile` runs every\nprofile in that config and emits a `clawscan-batch-v1` artifact. Discovery is\noff by default because project configs can define scanner commands that execute\nwith the caller's environment and credentials.\n\nUse `clawscan profiles` to inspect the built-in profile catalog. Use\n`clawscan profiles -v` to print it as pasteable YAML.\n\nCLI flags override the selected profile for one run. Passing `--scanner`\nwithout `--profile` creates an ad hoc scanner-only run, so profile judges are\nnot invoked accidentally.\n\nMinimal config:\n\n```yaml\nversion: 1\nsandbox:\n  mode: docker\n  env:\n    - OPENAI_API_KEY\n    - CODEX_API_KEY\nprofiles:\n  review:\n    scanners:\n      - skillspector\n    json: true\n    judge:\n      command: judge --out {{ output }}\n```\n\n`sandbox.env` is an allowlist of env var names to pass into the Docker runtime;\nstore names there, not secret values. CLI equivalents are `--sandbox`,\n`--sandbox-image`, and repeatable `--sandbox-env`.\n\n## Scanners\n\nUse `clawscan scanners` for the registry-backed scanner catalog and\n`clawscan scanners \u003Cscanner-id>` for one scanner's repository, description,\nenv vars, and install guidance.\n\nAccepted scanner IDs:\n\n```text\nagentverus, aig, aig-mcp, cisco, relyable, skillspector, snyk, socket\n```\n\nCredential rules:\n\n| Scanner | Env vars |\n| --- | --- |\n| `aig` | required: `LLM_API_KEY` or `OPENAI_API_KEY`; optional local scanner config: `DEFAULT_MODEL`, `DEFAULT_BASE_URL`, `DEFAULT_MODEL_CONTEXT_WINDOW`, `LOG_LEVEL` |\n| `aig-mcp` | plugin and Template targets; required: `LLM_API_KEY` or `OPENAI_API_KEY`; optional: `DEFAULT_MODEL`, `DEFAULT_BASE_URL` (same defaults as `aig`), `DEFAULT_MODEL_CONTEXT_WINDOW`; `AIG_MCP_SCAN_ALLOW_HOST_EXEC=1` for `--sandbox off` |\n| `socket` | required: `SOCKET_CLI_API_TOKEN` |\n| `snyk` | required: `SNYK_TOKEN` |\n| `skillspector` | optional provider config: `SKILLSPECTOR_PROVIDER`, `SKILLSPECTOR_MODEL`, `NVIDIA_INFERENCE_KEY`, `OPENAI_API_KEY`, `OPENAI_BASE_URL`, `ANTHROPIC_API_KEY`, `ANTHROPIC_PROXY_ENDPOINT_URL`, `ANTHROPIC_PROXY_API_KEY` |\n| `cisco` | optional upstream analyzers: `SKILL_SCANNER_LLM_*`, `SKILL_SCANNER_META_LLM_*`, `VIRUSTOTAL_API_KEY`, `AI_DEFENSE_API_KEY`, `AI_DEFENSE_API_URL` |\n\nArtifact env fields record only `present` or `missing`; they must never contain\nsecret values. GenDigital\u002FGen Agent Trust Hub is not a built-in scanner because\nthere is no local CLI for ClawScan to invoke.\n\nDependency setup:\n\n```bash\nclawscan install aig cisco skillspector\n```\n\n`clawscan install` accepts one or more scanner IDs. It follows upstream scanner\ninstall docs where they publish an install command, including A.I.G's\n`pip install aig-skill-scan`, Cisco's `uv pip install cisco-ai-skill-scanner`, SkillSpector's\n`uv tool install git+https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fskillspector.git`, Socket's\n`npm install -g socket`, and AgentVerus'\n`npm install --save-dev agentverus-scanner`. Snyk is launcher-based, so\nClawScan verifies `uvx`; built-in and simple API-backed scanners are skipped.\nThe `aig` adapter runs `aig-skill-scan --repo \u003Ctarget> --language en -o\n\u003Cresult.sarif.json>` and stores the SARIF 2.1.0 document as raw scanner\nevidence. The `aig-mcp` adapter copies an OpenClaw plugin directory\nwithout `node_modules` and runs `aig-mcp-scan` 0.2.0 on that copy with an\nOpenClaw plugin audit prompt. The `clawhub` profile runs only `aig-mcp` for\nplugins. It runs in the Docker sandbox, whose runtime image removes the\nscanner agent's shell and file-write tools; `--sandbox off` requires\n`AIG_MCP_SCAN_ALLOW_HOST_EXEC=1`.\n\nStarting in ClawScan `v0.1.2`, `aig` no longer uses the legacy A.I.G Docker\u002FAPI\nservice. Replace `AIG_MODEL` with `DEFAULT_MODEL`, `AIG_MODEL_BASE_URL` with\n`DEFAULT_BASE_URL`, and `AIG_MODEL_API_KEY` with `LLM_API_KEY` or\n`OPENAI_API_KEY`; `AIG_BASE_URL` and `AIG_API_KEY` are retired. The local\nscanner accepts directory targets only.\n\nFor normal runs, command-backed scanners and judges run in\n`ghcr.io\u002Fopenclaw\u002Fclawscan-runtime:latest`. `clawscan install` is mainly for\nlocal development or `--sandbox off` environments.\n\nUse `--scanner-result` when a test or fixture should supply stable scanner JSON:\n\n```bash\nclawscan .\u002Fmy-skill \\\n  --scanner skillspector \\\n  --scanner-result skillspector=.\u002Ffixtures\u002Fskillspector.json \\\n  --json\n```\n\nThe scanner must still be requested with `--scanner` or via the selected\nprofile.\n\n## Benchmarks\n\nUse `clawscan benchmark list` for the registry-backed benchmark catalog.\n\nSupported benchmarks:\n\n```text\ncuhk-zhuque\u002FSkillTrustBench\nclawhub-security-signals\n```\n\nRun SkillTrustBench with the canonical Hugging Face ID or the short alias\n`SkillTrustBench`:\n\n```bash\nclawscan benchmark SkillTrustBench \\\n  --limit 10 \\\n  --scanner skillspector \\\n  --output \u002Ftmp\u002Fclawscan-benchmark.json\n```\n\nSkillTrustBench uses split `benchmark`. The first live run downloads and caches\n`benchmark_full_v1.0.zip`, then extracts only the requested case directories\ninto temporary scan targets.\n\nUse `--ids \u003Cpath-or-url>` with SkillTrustBench to run a fixed subset from a\nplain text file with one ID per line or JSONL rows with an `id` field. The\nsource is streamed and may contain at most 5,520 unique IDs, at most 256 bytes\nper trimmed ID, and at most 256 KiB (262,144 bytes) of retained ID text. These\nare selection limits, not a total source-size limit; JSONL sources may exceed\n256 KiB. Individual lines must be smaller than the parser's 1 MiB buffer limit. `--ids`\npreserves source order, records `idsSource`, `idsCount`, and `idsSha256` in the\nartifact, and is mutually exclusive with `--limit` and `--offset`.\n\nClawHub Security Signals splits: `train`, `validation`, `test`,\n`eval_holdout`. `--limit 0` means run the full selected split. Use `--offset`\nwith `--limit` for reproducible chunks.\n\nFor `clawhub-security-signals`, `--output .\u002Fclawscan-benchmark.json` also\nwrites `.\u002Fpredictions.jsonl`. Use `--predictions-output \u003Cpath>` to choose\nanother path. `--predictions-output` is only supported for\n`clawhub-security-signals`.\n\nBenchmark artifacts use `clawscan-benchmark-v1`. Each case embeds the normal\n`clawscan-run-v1` artifact, expected verdict metadata, and evaluation status.\nThe summary includes case counts, scanner\u002Fjudge statuses, and accuracy over\nscored cases. Inspect the JSON artifact for full evidence.\n\n## Judge Harness\n\n`--judge` runs through the platform shell and must produce a JSON object on\nstdout or at `{{ output }}`.\n\nImportant placeholders:\n\n| Placeholder | Meaning |\n| --- | --- |\n| `{{ workspace }}` | Temporary judge workspace with copied target files, scanner JSON, and metadata. |\n| `{{ prompt }}` \u002F `{{ prompt:path }}` | Render prompt template and interpolate the rendered prompt path. |\n| `{{ output_schema }}` \u002F `{{ output_schema:path }}` | Copy schema and interpolate the copied schema path. |\n| `{{ output }}` | Path where the judge should write final JSON. |\n\nPrompt files can reference requested scanner JSON:\n\n````md\n```json\n{{ scanners.skillspector }}\n```\n````\n\nIf a prompt references an unrequested scanner, ClawScan should fail clearly.\nThe built-in `clawhub` profile uses this same judge mechanism with embedded\npolicy and output-schema files: an evidence-only Codex run (`evidenceOnly:\ntrue`, no artifact copy, file\u002Fshell\u002Fweb\u002Fcode tools disabled) decides from `{{ scanner_results }}` and\nwrites `judge.result` (verdict, confidence, dimension statuses and finding\npredicates). Its evidence-only `overview.command` then runs Codex with\n`{{ judge.result }}` and the scanner results and writes readable prose to\n`overview.result`. Overview failures are recorded\nbut never change the verdict, gate, or exit status.\n\n## Verification\n\nUse fixture-backed scanner smokes for local proof because they do not need\nsecrets, scanner binaries, or Docker:\n\n```bash\nprintf '{\"status\":\"clean\",\"findings\":[]}' > \u002Ftmp\u002Fskillspector.json\ngo run .\u002Fcmd\u002Fclawscan .\u002FREADME.md --scanner skillspector --scanner-result skillspector=\u002Ftmp\u002Fskillspector.json --sandbox off --output \u002Ftmp\u002Fclawscan-smoke.json\ngo run .\u002Fcmd\u002Fclawscan --help\ngo test -count=1 .\u002F...\ngo vet .\u002F...\n```\n\n## Common Mistakes\n\n- Do not pass API keys as CLI flags.\n- Do not run plain `clawscan`; choose `--scanner`, `--profile`, `--config`, or\n  `clawscan benchmark \u003Cbenchmark-id>`.\n- Do not assume `clawscan` scans `.`; no target means discover `.\u002Fskills`.\n- Do not expect a profile judge when passing explicit `--scanner` flags without\n  `--profile`.\n- Do not use benchmark flags such as `--split`, `--limit`, or `--offset`\n  outside `clawscan benchmark \u003Cbenchmark-id>`.\n- Do not use `--config` without `--profile` for benchmark runs; all-profile\n  config runs are target scans only.\n- Do not assume host-installed scanner CLIs are used by default; command-backed\n  scanners and judges use the Docker runtime unless `--sandbox off` is set.\n- Do not add unsupported dataset names; built-ins are SkillTrustBench and\n  `clawhub-security-signals`.\n- Do not assume scanner failures are final policy verdicts; scanner output is\n  raw evidence for comparison or judging.\n\nFor Template auditing, pass the validated extracted package directory to `clawscan .\u002Fpackage --profile clawhub-template`. Identity comes from the safe `package.json.openclaw.template` CLAW.md selector (which may be nested); all shipped files including node_modules are staged. Do not resolve\u002Fdownload external dependencies or fetch their ClawHub audits. Only AIG reads the artifact; the unchanged evidence-only judge converts scanner evidence to the publication verdict. New profile\u002Fprompt code needs a candidate Go binary and a verified source\u002Fruntime binding, not the old image. See `docs\u002Ftemplate-audit.md` for the consumer and rollout contract.\n","# ClawScan CLI\n\n## Overview\n\nUse ClawScan to run one or more security scanners against agent skills, preserve\nraw scanner evidence, and optionally pass the evidence to an external judge\nharness. The public CLI is general-purpose; ClawHub-specific parity helpers\nbelong outside `cmd\u002Fclawscan`. Keep secrets in environment variables, never CLI\nflags.\n\n## Command Surface\n\nRun from the repo root during development:\n\n```bash\ngo run .\u002Fcmd\u002Fclawscan \u003Ctarget> --scanner \u003Cscanner-id> [flags]\n```\n\nUse the installed binary when available:\n\n```bash\nclawscan \u003Ctarget> --scanner \u003Cscanner-id> [flags]\n```\n\nChoose the run mode:\n\n| Need | Shape |\n| --- | --- |\n| Scan repo skills with one scanner | `clawscan --scanner skillspector` from a repo with `.\u002Fskills\u002F\u003Cname>\u002FSKILL.md` |\n| Scan repo skills with the ClawHub profile | `clawscan --profile clawhub` from a repo with `.\u002Fskills\u002F\u003Cname>\u002FSKILL.md` |\n| Scan one explicit target with a profile | `clawscan .\u002Fmy-skill --profile clawhub` |\n| Capture raw scanner evidence only | `clawscan .\u002Fmy-skill --scanner skillspector` |\n| Print raw JSON to stdout | Add `--json`. |\n| Run all profiles from a config | `clawscan .\u002Fmy-skill --config .\u002Fsecurity\u002Fclawscan.yml` |\n| Run one config profile | `clawscan .\u002Fmy-skill --config .\u002Fsecurity\u002Fclawscan.yml --profile review` |\n| Install scanner dependencies | `clawscan install aig cisco skillspector` |\n| List scanner catalog | `clawscan scanners` |\n| Inspect one scanner | `clawscan scanners skillspector` |\n| List resolved profiles | `clawscan profiles` |\n| Print resolved profile YAML | `clawscan profiles -v` |\n| List benchmark catalog | `clawscan benchmark list` |\n| Run SkillTrustBench | `clawscan benchmark SkillTrustBench --limit 10 --scanner skillspector --output run.json` |\n| Run ClawHub Security Signals | `clawscan benchmark clawhub-security-signals --split eval_holdout --limit 10 --scanner skillspector --output run.json` |\n| Use stable scanner evidence | Add `--scanner-result \u003Cid=path>` for each fixture-backed scanner. |\n| Add or override a judge harness | Add `--judge '\u003Ccommand with placeholders>'`. |\n| Override or skip the readable overview | Add `--overview '\u003Ccommand>'` or `--no-overview`. |\n| Use host-installed scanner\u002Fjudge CLIs | Add `--sandbox off` only in an already-isolated environment. |\n\nHelpful metadata:\n\n```bash\nclawscan --help\nclawscan -h\nclawscan --version\nclawscan scanners\nclawscan profiles\nclawscan benchmark list\n```\n\nUnless `--json` is passed, ClawScan writes the full artifact to\n`.\u002Fclawscan-results\u002Fartifact.json` by default, preserves per-scanner JSON files\nin the same visible results bundle, and prints a concise key\u002Fvalue summary\nending in `full_results: .\u002Fclawscan-results\u002Fartifact.json`. Use\n`--output \u003Cpath>` to choose a different artifact path; explicit `.json` paths\nkeep that artifact file and write scanner JSON beside it.\n\n## Targets, Profiles, And Config\n\nIf no target is passed with `--scanner`, `--profile`, or `--config`, ClawScan\nscans child skill directories under `.\u002Fskills`. If `.\u002Fskills` is missing or\ncontains no children with `SKILL.md`, it fails with a target-discovery error.\nPlain `clawscan` without `--scanner`, `--profile`, or `--config` is invalid.\nBenchmark runs use `clawscan benchmark \u003Cbenchmark-id>` and do not accept scan\ntargets.\n\nBuilt-in profiles:\n\n| Profile | Scanners | Judge |\n| --- | --- | --- |\n| `clawhub` | skills: `skillspector`, `aig`; plugins: only `aig-mcp` | evidence-only Codex judge plus an evidence-only Codex overview |\n| `clawhub-template` | `aig-mcp` over the whole shipped Template | unchanged evidence-only verdict judge plus optional overview; see `docs\u002Ftemplate-audit.md` |\n| `clawhub-aig` | `skillspector`, `aig` | same judge and overview as `clawhub` |\n| `openclaw-install-policy` | `skillspector` | none |\n\nProfiles are loaded from embedded built-ins. Project `.clawscan.yml` \u002F\n`.clawscan.yaml` files are NOT loaded automatically: pass `--config \u003Cpath>` to\nload a specific config, or `--discover-config` to load the nearest one found\nupward from the current directory. A project profile with the same name shadows\nthe built-in whole profile. `--config \u003Cpath>` without `--profile` runs every\nprofile in that config and emits a `clawscan-batch-v1` artifact. Discovery is\noff by default because project configs can define scanner commands that execute\nwith the caller's environment and credentials.\n\nUse `clawscan profiles` to inspect the built-in profile catalog. Use\n`clawscan profiles -v` to print it as pasteable YAML.\n\nCLI flags override the selected profile for one run. Passing `--scanner`\nwithout `--profile` creates an ad hoc scanner-only run, so profile judges are\nnot invoked accidentally.\n\nMinimal config:\n\n```yaml\nversion: 1\nsandbox:\n  mode: docker\n  env:\n    - OPENAI_API_KEY\n    - CODEX_API_KEY\nprofiles:\n  review:\n    scanners:\n      - skillspector\n    json: true\n    judge:\n      command: judge --out {{ output }}\n```\n\n`sandbox.env` is an allowlist of env var names to pass into the Docker runtime;\nstore names there, not secret values. CLI equivalents are `--sandbox`,\n`--sandbox-image`, and repeatable `--sandbox-env`.\n\n## Scanners\n\nUse `clawscan scanners` for the registry-backed scanner catalog and\n`clawscan scanners \u003Cscanner-id>` for one scanner's repository, description,\nenv vars, and install guidance.\n\nAccepted scanner IDs:\n\n```text\nagentverus, aig, aig-mcp, cisco, relyable, skillspector, snyk, socket\n```\n\nCredential rules:\n\n| Scanner | Env vars |\n| --- | --- |\n| `aig` | required: `LLM_API_KEY` or `OPENAI_API_KEY`; optional local scanner config: `DEFAULT_MODEL`, `DEFAULT_BASE_URL`, `DEFAULT_MODEL_CONTEXT_WINDOW`, `LOG_LEVEL` |\n| `aig-mcp` | plugin and Template targets; required: `LLM_API_KEY` or `OPENAI_API_KEY`; optional: `DEFAULT_MODEL`, `DEFAULT_BASE_URL` (same defaults as `aig`), `DEFAULT_MODEL_CONTEXT_WINDOW`; `AIG_MCP_SCAN_ALLOW_HOST_EXEC=1` for `--sandbox off` |\n| `socket` | required: `SOCKET_CLI_API_TOKEN` |\n| `snyk` | required: `SNYK_TOKEN` |\n| `skillspector` | optional provider config: `SKILLSPECTOR_PROVIDER`, `SKILLSPECTOR_MODEL`, `NVIDIA_INFERENCE_KEY`, `OPENAI_API_KEY`, `OPENAI_BASE_URL`, `ANTHROPIC_API_KEY`, `ANTHROPIC_PROXY_ENDPOINT_URL`, `ANTHROPIC_PROXY_API_KEY` |\n| `cisco` | optional upstream analyzers: `SKILL_SCANNER_LLM_*`, `SKILL_SCANNER_META_LLM_*`, `VIRUSTOTAL_API_KEY`, `AI_DEFENSE_API_KEY`, `AI_DEFENSE_API_URL` |\n\nArtifact env fields record only `present` or `missing`; they must never contain\nsecret values. GenDigital\u002FGen Agent Trust Hub is not a built-in scanner because\nthere is no local CLI for ClawScan to invoke.\n\nDependency setup:\n\n```bash\nclawscan install aig cisco skillspector\n```\n\n`clawscan install` accepts one or more scanner IDs. It follows upstream scanner\ninstall docs where they publish an install command, including A.I.G's\n`pip install aig-skill-scan`, Cisco's `uv pip install cisco-ai-skill-scanner`, SkillSpector's\n`uv tool install git+https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fskillspector.git`, Socket's\n`npm install -g socket`, and AgentVerus'\n`npm install --save-dev agentverus-scanner`. Snyk is launcher-based, so\nClawScan verifies `uvx`; built-in and simple API-backed scanners are skipped.\nThe `aig` adapter runs `aig-skill-scan --repo \u003Ctarget> --language en -o\n\u003Cresult.sarif.json>` and stores the SARIF 2.1.0 document as raw scanner\nevidence. The `aig-mcp` adapter copies an OpenClaw plugin directory\nwithout `node_modules` and runs `aig-mcp-scan` 0.2.0 on that copy with an\nOpenClaw plugin audit prompt. The `clawhub` profile runs only `aig-mcp` for\nplugins. It runs in the Docker sandbox, whose runtime image removes the\nscanner agent's shell and file-write tools; `--sandbox off` requires\n`AIG_MCP_SCAN_ALLOW_HOST_EXEC=1`.\n\nStarting in ClawScan `v0.1.2`, `aig` no longer uses the legacy A.I.G Docker\u002FAPI\nservice. Replace `AIG_MODEL` with `DEFAULT_MODEL`, `AIG_MODEL_BASE_URL` with\n`DEFAULT_BASE_URL`, and `AIG_MODEL_API_KEY` with `LLM_API_KEY` or\n`OPENAI_API_KEY`; `AIG_BASE_URL` and `AIG_API_KEY` are retired. The local\nscanner accepts directory targets only.\n\nFor normal runs, command-backed scanners and judges run in\n`ghcr.io\u002Fopenclaw\u002Fclawscan-runtime:latest`. `clawscan install` is mainly for\nlocal development or `--sandbox off` environments.\n\nUse `--scanner-result` when a test or fixture should supply stable scanner JSON:\n\n```bash\nclawscan .\u002Fmy-skill \\\n  --scanner skillspector \\\n  --scanner-result skillspector=.\u002Ffixtures\u002Fskillspector.json \\\n  --json\n```\n\nThe scanner must still be requested with `--scanner` or via the selected\nprofile.\n\n## Benchmarks\n\nUse `clawscan benchmark list` for the registry-backed benchmark catalog.\n\nSupported benchmarks:\n\n```text\ncuhk-zhuque\u002FSkillTrustBench\nclawhub-security-signals\n```\n\nRun SkillTrustBench with the canonical Hugging Face ID or the short alias\n`SkillTrustBench`:\n\n```bash\nclawscan benchmark SkillTrustBench \\\n  --limit 10 \\\n  --scanner skillspector \\\n  --output \u002Ftmp\u002Fclawscan-benchmark.json\n```\n\nSkillTrustBench uses split `benchmark`. The first live run downloads and caches\n`benchmark_full_v1.0.zip`, then extracts only the requested case directories\ninto temporary scan targets.\n\nUse `--ids \u003Cpath-or-url>` with SkillTrustBench to run a fixed subset from a\nplain text file with one ID per line or JSONL rows with an `id` field. The\nsource is streamed and may contain at most 5,520 unique IDs, at most 256 bytes\nper trimmed ID, and at most 256 KiB (262,144 bytes) of retained ID text. These\nare selection limits, not a total source-size limit; JSONL sources may exceed\n256 KiB. Individual lines must be smaller than the parser's 1 MiB buffer limit. `--ids`\npreserves source order, records `idsSource`, `idsCount`, and `idsSha256` in the\nartifact, and is mutually exclusive with `--limit` and `--offset`.\n\nClawHub Security Signals splits: `train`, `validation`, `test`,\n`eval_holdout`. `--limit 0` means run the full selected split. Use `--offset`\nwith `--limit` for reproducible chunks.\n\nFor `clawhub-security-signals`, `--output .\u002Fclawscan-benchmark.json` also\nwrites `.\u002Fpredictions.jsonl`. Use `--predictions-output \u003Cpath>` to choose\nanother path. `--predictions-output` is only supported for\n`clawhub-security-signals`.\n\nBenchmark artifacts use `clawscan-benchmark-v1`. Each case embeds the normal\n`clawscan-run-v1` artifact, expected verdict metadata, and evaluation status.\nThe summary includes case counts, scanner\u002Fjudge statuses, and accuracy over\nscored cases. Inspect the JSON artifact for full evidence.\n\n## Judge Harness\n\n`--judge` runs through the platform shell and must produce a JSON object on\nstdout or at `{{ output }}`.\n\nImportant placeholders:\n\n| Placeholder | Meaning |\n| --- | --- |\n| `{{ workspace }}` | Temporary judge workspace with copied target files, scanner JSON, and metadata. |\n| `{{ prompt }}` \u002F `{{ prompt:path }}` | Render prompt template and interpolate the rendered prompt path. |\n| `{{ output_schema }}` \u002F `{{ output_schema:path }}` | Copy schema and interpolate the copied schema path. |\n| `{{ output }}` | Path where the judge should write final JSON. |\n\nPrompt files can reference requested scanner JSON:\n\n````md\n```json\n{{ scanners.skillspector }}\n```\n````\n\nIf a prompt references an unrequested scanner, ClawScan should fail clearly.\nThe built-in `clawhub` profile uses this same judge mechanism with embedded\npolicy and output-schema files: an evidence-only Codex run (`evidenceOnly:\ntrue`, no artifact copy, file\u002Fshell\u002Fweb\u002Fcode tools disabled) decides from `{{ scanner_results }}` and\nwrites `judge.result` (verdict, confidence, dimension statuses and finding\npredicates). Its evidence-only `overview.command` then runs Codex with\n`{{ judge.result }}` and the scanner results and writes readable prose to\n`overview.result`. Overview failures are recorded\nbut never change the verdict, gate, or exit status.\n\n## Verification\n\nUse fixture-backed scanner smokes for local proof because they do not need\nsecrets, scanner binaries, or Docker:\n\n```bash\nprintf '{\"status\":\"clean\",\"findings\":[]}' > \u002Ftmp\u002Fskillspector.json\ngo run .\u002Fcmd\u002Fclawscan .\u002FREADME.md --scanner skillspector --scanner-result skillspector=\u002Ftmp\u002Fskillspector.json --sandbox off --output \u002Ftmp\u002Fclawscan-smoke.json\ngo run .\u002Fcmd\u002Fclawscan --help\ngo test -count=1 .\u002F...\ngo vet .\u002F...\n```\n\n## Common Mistakes\n\n- Do not pass API keys as CLI flags.\n- Do not run plain `clawscan`; choose `--scanner`, `--profile`, `--config`, or\n  `clawscan benchmark \u003Cbenchmark-id>`.\n- Do not assume `clawscan` scans `.`; no target means discover `.\u002Fskills`.\n- Do not expect a profile judge when passing explicit `--scanner` flags without\n  `--profile`.\n- Do not use benchmark flags such as `--split`, `--limit`, or `--offset`\n  outside `clawscan benchmark \u003Cbenchmark-id>`.\n- Do not use `--config` without `--profile` for benchmark runs; all-profile\n  config runs are target scans only.\n- Do not assume host-installed scanner CLIs are used by default; command-backed\n  scanners and judges use the Docker runtime unless `--sandbox off` is set.\n- Do not add unsupported dataset names; built-ins are SkillTrustBench and\n  `clawhub-security-signals`.\n- Do not assume scanner failures are final policy verdicts; scanner output is\n  raw evidence for comparison or judging.\n\nFor Template auditing, pass the validated extracted package directory to `clawscan .\u002Fpackage --profile clawhub-template`. Identity comes from the safe `package.json.openclaw.template` CLAW.md selector (which may be nested); all shipped files including node_modules are staged. Do not resolve\u002Fdownload external dependencies or fetch their ClawHub audits. Only AIG reads the artifact; the unchanged evidence-only judge converts scanner evidence to the publication verdict. New profile\u002Fprompt code needs a candidate Go binary and a verified source\u002Fruntime binding, not the old image. See `docs\u002Ftemplate-audit.md` for the consumer and rollout contract.\n",{"name":5,"description":7},"main","56bf1d9e3bd5247a0622acef8699dc69a10f2938","skills\u002Fclawscan-cli",30,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawscan","http:\u002F\u002Fclawscanner.app\u002F","https:\u002F\u002Fgithub.com\u002Fopenclaw","https:\u002F\u002Fopenclaw.ai","Your personal, open source AI assistant.","2026-11-11 00:10:25",{"source":9,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add openclaw\u002Fclawscan --skill clawscan-cli",{"tool":67,"command":68},"bunx","bunx skills add openclaw\u002Fclawscan --skill clawscan-cli",{"tool":70,"command":71},"pnpm","pnpm dlx skills add openclaw\u002Fclawscan --skill clawscan-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawscan\u002Fblob\u002Fmain\u002Fskills\u002Fclawscan-cli\u002FSKILL.md",true,[75],{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"agents\u002Fopenai.yaml","REFERENCE","参考文档",209,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawscan\u002Fblob\u002Fmain\u002Fskills\u002Fclawscan-cli\u002Fagents\u002Fopenai.yaml",[82,89,103,131,141,147],{"skillNo":83,"name":84,"nameZh":16,"description":16,"descriptionZh":16,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":88},"01M7418QPYJFPBZ0H6DMYV2Z1G","notes","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawscan\u002Fblob\u002Fmain\u002Finternal\u002Frunner\u002Ftestdata\u002Ftemplates\u002Fbenign-mixed\u002Fskills\u002Fnotes\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":90,"name":91,"nameZh":92,"description":93,"descriptionZh":94,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":95,"categories":96,"keywords":99,"publishedAt":46},"01M698TXAN2J4W3F9RKNS3DZ4P","review-clawhub-profile-proposal","ClawHub 恶意技能配置提案审核","Use when an OpenClaw maintainer or owner is reviewing a ClawHub malicious-skill profile proposal PR: checking `proposals\u002F\u003CGHSA-ID>\u002Fclawscan.yml`, reading the private vulnerability context without leaking it, running the SkillTrustBench Profile Gate or equivalent local benchmark, updating the accepted baseline, and promoting an accepted candidate into `internal\u002Fprofiles\u002Fclawhub\u002Fclawscan.yml`.","当 OpenClaw 维护者或负责人审核 ClawHub 恶意技能配置提案 PR 时使用：检查 `proposals\u002F\u003CGHSA-ID>\u002Fclawscan.yml`、在不泄露的前提下阅读私有漏洞上下文、运行 SkillTrustBench Profile Gate 或等效的本地基准测试、更新已接受的基线，并将通过的候选配置提升到 `internal\u002Fprofiles\u002Fclawhub\u002Fclawscan.yml`。","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawscan\u002Fblob\u002Fmain\u002Fskills\u002Freview-clawhub-profile-proposal\u002FSKILL.md",[97,98],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[100,101,102,10],"review clawhub profile proposal","review","malicious",{"skillNo":104,"name":105,"nameZh":106,"description":107,"descriptionZh":108,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":109,"categories":110,"keywords":113,"publishedAt":46},"01M698TVJ1ZNENKEY1D7JA0NPD","report-clawhub-malicious-skill","ClawHub 恶意技能上报流程","Use when a researcher, maintainer, or contributor found or suspects a malicious skill on ClawHub and needs a private reporting workflow: opening a GitHub private vulnerability report, preparing a proposal-only PR, creating `proposals\u002F\u003CGHSA-ID>\u002Fclawscan.yml`, running ClawScan against the malicious skill, and explaining what evidence belongs in private versus public channels.","当研究人员、维护者或贡献者在 ClawHub 发现或怀疑恶意技能，且需要走私密上报流程时使用：创建 GitHub 私有漏洞报告、准备仅含提案的 PR、创建 `proposals\u002F\u003CGHSA-ID>\u002Fclawscan.yml`、对恶意技能运行 ClawScan，并说明哪些证据应置于私密渠道、哪些应置于公开渠道。","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawscan\u002Fblob\u002Fmain\u002Fskills\u002Freport-clawhub-malicious-skill\u002FSKILL.md",[111,112],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[114,115,116,102,117,33,118,119,120,121,122,123,124,125,126,127,128,129,130],"malicious skill","report","report clawhub malicious skill","clawhub","channels","proposal","id","evidence","only","proposals","public","researcher","vulnerability","reporting","pr","workflow","github",{"skillNo":132,"name":133,"nameZh":134,"description":16,"descriptionZh":135,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":136,"categories":137,"keywords":140,"publishedAt":46},"01M698TR9AC13DB5PB8V6ZRNP2","suspicious","可疑项检测","","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawscan\u002Fblob\u002Fmain\u002Finternal\u002Frunner\u002Ftestdata\u002Fpartial-judge\u002Fsuspicious\u002FSKILL.md",[138,139],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[133],{"skillNo":142,"name":102,"nameZh":143,"description":16,"descriptionZh":135,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":46},"01M698TPK0H9ARNJTSR3HH1RRN","恶意","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawscan\u002Fblob\u002Fmain\u002Finternal\u002Frunner\u002Ftestdata\u002Fpartial-judge\u002Fmalicious\u002FSKILL.md",[],[102],{"skillNo":148,"name":149,"nameZh":150,"description":16,"descriptionZh":135,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":46},"01M698TMFSRCBWRQ1GDHN55CWG","benign","良性","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fclawscan\u002Fblob\u002Fmain\u002Finternal\u002Frunner\u002Ftestdata\u002Fpartial-judge\u002Fbenign\u002FSKILL.md",[],[149]]