Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Skill scans: update SkillSpector to 2.13.7 so reaching a scanner budget leaves a partial-coverage record without adding a HIGH finding against the skill. Content-related findings remain visible.

- Pagination: ignore callbacks and requests from previous audit tabs or catalog searches so stale pages cannot mix into the current results.

- Navigation: restore keyboard focus and selection in publisher member menus and the header's More menu.
Expand Down
12 changes: 6 additions & 6 deletions scripts/security/clawscan-install-source.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Shared installer-only qualification binding. Sourced after script_dir is set.
# ClawScan 0.4.0 candidate from merged openclaw/clawscan#223.
# Both native architectures and immutable index: runtime run 45565644265.
# SkillSpector 2.13.7 from merged openclaw/clawscan#225.
# Both native architectures and immutable index: runtime run 46527933418 (attempt 2).
# Verify the matching host and scanner-tools trees before installation.
qualified_source_commit=9bc83753a6f1af7ff077917262190ada0152891b
qualified_source_tree=c08631fa26a49ac711b828a4ead389ded92b2fa5
qualified_runtime_tree=9f1aa0ad7bba119153550651bb74c1ab4576808a
qualified_runtime_image=ghcr.io/openclaw/clawscan-runtime@sha256:c7723e88a47f4ff61530a7f3140b0c72f51293ab8514435c7c3aeb518a8000b1
qualified_source_commit=d5c03ade5570e18d656be01a176f4fab595b3def
qualified_source_tree=ec9f95360c6de96d25fc2ea9745e4486e236d0a7
qualified_runtime_tree=b2a30606b8e045254a197690a453efaf676e2b1b
qualified_runtime_image=ghcr.io/openclaw/clawscan-runtime@sha256:72c4c360b8761d190a60d873528c9e72748cc5a32b907e8dd51d30e7ca37ab53

select_clawscan_source() {
default_commit=$(cat "$script_dir/clawscan-source-commit.txt")
Expand Down
4 changes: 2 additions & 2 deletions scripts/security/clawscan-plugin-runtime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe("qualified immutable plugin runtime policy", () => {
expect((await readFile("scripts/security/clawscan-source-commit.txt", "utf8")).trim()).toBe(
QUALIFIED_PLUGIN_SOURCE,
);
expect(shell).toContain("qualified_source_tree=c08631fa26a49ac711b828a4ead389ded92b2fa5");
expect(shell).toContain("qualified_runtime_tree=9f1aa0ad7bba119153550651bb74c1ab4576808a");
expect(shell).toContain("qualified_source_tree=ec9f95360c6de96d25fc2ea9745e4486e236d0a7");
expect(shell).toContain("qualified_runtime_tree=b2a30606b8e045254a197690a453efaf676e2b1b");
});
});
6 changes: 3 additions & 3 deletions scripts/security/clawscan-plugin-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { join } from "node:path";
import { parse as parseYaml } from "yaml";
import { qualifiedNativeCommand, assertQualifiedNativeArtifact } from "./clawscan-native-runtime";

// ClawScan 0.4.0 candidate, bound to native runtime run 45565644265.
// SkillSpector 2.13.7, bound to native runtime run 46527933418 (attempt 2).
// The matching host binary selects the built-in profile; scanner tools run
// inside this source-bound immutable image.
// No mutable image tag or host MCP fallback.
export const QUALIFIED_PLUGIN_SOURCE = "9bc83753a6f1af7ff077917262190ada0152891b";
export const QUALIFIED_PLUGIN_SOURCE = "d5c03ade5570e18d656be01a176f4fab595b3def";
export const QUALIFIED_PLUGIN_IMAGE =
"ghcr.io/openclaw/clawscan-runtime@sha256:c7723e88a47f4ff61530a7f3140b0c72f51293ab8514435c7c3aeb518a8000b1";
"ghcr.io/openclaw/clawscan-runtime@sha256:72c4c360b8761d190a60d873528c9e72748cc5a32b907e8dd51d30e7ca37ab53";

// Capability discovery is followed by source/binary verification before execution.
// The old pin has no override, so it keeps its existing scanner/target behavior.
Expand Down
2 changes: 1 addition & 1 deletion scripts/security/clawscan-source-commit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9bc83753a6f1af7ff077917262190ada0152891b
d5c03ade5570e18d656be01a176f4fab595b3def
3 changes: 2 additions & 1 deletion scripts/security/run-codex-scan-worker-clawscan.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,8 @@ describe("run-codex-scan-worker clawscan authority", () => {
const environmentLog = join(workspace, "clawscan-environment.log");
await writeFakeClawScanCommand(
fakeClawScan,
`printf '%s\\n' "\${DEFAULT_BASE_URL-}" "\${OPENAI_BASE_URL-}" "\${OPENAI_API_KEY-}" "\${SECURITY_SCAN_WORKER_TOKEN-}" "\${DEFAULT_MODEL-}" "\${REASONING_EFFORT-}" "\${SKILLSPECTOR_MODEL-}" "\${SKILLSPECTOR_REASONING_EFFORT-}" "\${AIG_SERVICE_TIER-}" "\${SKILLSPECTOR_SERVICE_TIER-}" "\${ENDOR_TOKEN-}" "\${ENDOR_API_CREDENTIALS_KEY-}" "\${ENDOR_API_CREDENTIALS_SECRET-}" > ${JSON.stringify(environmentLog)}
`test "$SKILLSPECTOR_TP4_MAX_BATCHES/$SKILLSPECTOR_TP4_BOUNDED_APPLICABILITY/$SKILLSPECTOR_MAX_WORKFLOW_SECONDS" = "64/1/600" || exit 73
printf '%s\\n' "\${DEFAULT_BASE_URL-}" "\${OPENAI_BASE_URL-}" "\${OPENAI_API_KEY-}" "\${SECURITY_SCAN_WORKER_TOKEN-}" "\${DEFAULT_MODEL-}" "\${REASONING_EFFORT-}" "\${SKILLSPECTOR_MODEL-}" "\${SKILLSPECTOR_REASONING_EFFORT-}" "\${AIG_SERVICE_TIER-}" "\${SKILLSPECTOR_SERVICE_TIER-}" "\${ENDOR_TOKEN-}" "\${ENDOR_API_CREDENTIALS_KEY-}" "\${ENDOR_API_CREDENTIALS_SECRET-}" > ${JSON.stringify(environmentLog)}
out=""
while [[ $# -gt 0 ]]; do
case "$1" in
Expand Down
8 changes: 6 additions & 2 deletions scripts/security/run-codex-scan-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ import {
type SecurityScanJobHealth,
type SecurityScanQueueHealth,
} from "./security-scan-worker-summary";
import { configuredClawScanJudgeModel, securityScannerEnvironment } from "./securityModelPolicy";
import {
configuredClawScanJudgeModel,
securityScannerEnvironment,
workerScannerEnvironment,
} from "./securityModelPolicy";
import {
isAdjudicableSkillSpectorResult,
isUsableSkillSpectorCompleteBundleChild,
Expand Down Expand Up @@ -949,7 +953,7 @@ function codexEnv(workspace: string) {
const value = process.env[key];
if (value !== undefined) env[key] = value;
}
Object.assign(env, securityScannerEnvironment(process.env));
Object.assign(env, workerScannerEnvironment(process.env));
const codexHome = resolveCodexWorkerHome(process.env, LOCAL_CODEX_HOME);
if (codexHome) {
mkdirSync(codexHome, { recursive: true });
Expand Down
1 change: 1 addition & 0 deletions scripts/security/run-prepublication-worker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@ describe("pre-publication worker", () => {
fakeClawScan,
`#!/usr/bin/env bash
set -euo pipefail
test "$SKILLSPECTOR_TP4_MAX_BATCHES/$SKILLSPECTOR_TP4_BOUNDED_APPLICABILITY/$SKILLSPECTOR_MAX_WORKFLOW_SECONDS" = "64/1/600" || exit 73
printf '%s\n' "$@" > "${workspace}/clawscan-args.txt"
printf '%s\n' "\${SECURITY_SCAN_WORKER_TOKEN-}" > "${workspace}/clawscan-worker-token.txt"
printf '%s\n' "\${DEFAULT_BASE_URL-}" > "${workspace}/clawscan-default-base-url.txt"
Expand Down
4 changes: 2 additions & 2 deletions scripts/security/run-prepublication-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import {
validateClawScanArtifactForClawHubProfile,
writeArtifactWorkspace,
} from "./run-codex-scan-worker";
import { securityScannerEnvironment } from "./securityModelPolicy";
import { securityScannerEnvironment, workerScannerEnvironment } from "./securityModelPolicy";
import { isAdjudicableSkillSpectorResult } from "./skillSpectorReportPolicy";

type ClaimedPrePublicationAttempt = {
Expand Down Expand Up @@ -739,7 +739,7 @@ export async function runNativeClawScan(
env: {
...restrictedChildEnvironment(workspace),
...clawScanDockerEnvironment(process.env),
...securityScannerEnvironment(process.env),
...workerScannerEnvironment(process.env),
},
timeoutMs: clawScanTimeoutMs(),
onOutput: (captured) => {
Expand Down
2 changes: 1 addition & 1 deletion scripts/security/scanner-installation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe("reviewed ClawScan installation", () => {
});
it("ships a full immutable source lock for the workflow installers", async () => {
expect(await readFile(join(scripts, "clawscan-source-commit.txt"), "utf8")).toBe(
"9bc83753a6f1af7ff077917262190ada0152891b\n",
"d5c03ade5570e18d656be01a176f4fab595b3def\n",
);
});

Expand Down
8 changes: 4 additions & 4 deletions scripts/security/scanner-runtime-installation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import { describe, expect, it } from "vitest";
const run = promisify(execFile);
const scripts = resolve("scripts/security");
const pin = "c3cfaf1515a47685786d72f031c714b1e5d9b34e";
const candidate = "9bc83753a6f1af7ff077917262190ada0152891b";
const candidateTree = "c08631fa26a49ac711b828a4ead389ded92b2fa5";
const runtimeTree = "9f1aa0ad7bba119153550651bb74c1ab4576808a";
const candidate = "d5c03ade5570e18d656be01a176f4fab595b3def";
const candidateTree = "ec9f95360c6de96d25fc2ea9745e4486e236d0a7";
const runtimeTree = "b2a30606b8e045254a197690a453efaf676e2b1b";
const image =
"ghcr.io/openclaw/clawscan-runtime@sha256:c7723e88a47f4ff61530a7f3140b0c72f51293ab8514435c7c3aeb518a8000b1";
"ghcr.io/openclaw/clawscan-runtime@sha256:72c4c360b8761d190a60d873528c9e72748cc5a32b907e8dd51d30e7ca37ab53";

async function installFixture() {
// Exercise command assertions with an installer name inside the temporary path.
Expand Down
19 changes: 18 additions & 1 deletion scripts/security/securityModelPolicy.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
/* @vitest-environment node */
import { describe, expect, it } from "vitest";
import { configuredClawScanJudgeModel, securityScannerEnvironment } from "./securityModelPolicy";
import {
configuredClawScanJudgeModel,
securityScannerEnvironment,
workerScannerEnvironment,
} from "./securityModelPolicy";

describe("security consumer model policy", () => {
it("keeps the host SkillSpector on the qualified runtime budgets", () => {
const ambient = {
SKILLSPECTOR_TP4_MAX_BATCHES: "256",
SECURITY_SCAN_WORKER_TOKEN: "worker-secret",
};
expect(workerScannerEnvironment(ambient)).toEqual({
...securityScannerEnvironment({}),
SKILLSPECTOR_TP4_MAX_BATCHES: "64",
SKILLSPECTOR_TP4_BOUNDED_APPLICABILITY: "1",
SKILLSPECTOR_MAX_WORKFLOW_SECONDS: "600",
});
});

it("defaults A.I.G and SkillSpector independently to Sol medium", () => {
expect(securityScannerEnvironment({})).toEqual({
DEFAULT_MODEL: "gpt-6.1-sol",
Expand Down
11 changes: 11 additions & 0 deletions scripts/security/securityModelPolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ export function securityScannerEnvironment(env: NodeJS.ProcessEnv): NodeJS.Proce
return settings;
}

// Host-installed skill scanners do not inherit the ClawScan runtime image's ENV.
// Keep the pre-upgrade worker limits; historical diagnostic runs keep their own settings.
export function workerScannerEnvironment(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv {
return {
...securityScannerEnvironment(env),
SKILLSPECTOR_TP4_MAX_BATCHES: "64",
SKILLSPECTOR_TP4_BOUNDED_APPLICABILITY: "1",
SKILLSPECTOR_MAX_WORKFLOW_SECONDS: "600",
};
}

// ClawScan's command is execution metadata; result.model is model-authored JSON,
// not provider provenance. Keep legacy artifacts without execution metadata unknown.
export function configuredClawScanJudgeModel(judge: Record<string, unknown> | undefined) {
Expand Down
18 changes: 14 additions & 4 deletions specs/plugin-qualified-runtime.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
# ClawScan 0.4.0 qualified consumer runtime
# ClawScan consumer runtime

Status: the fixed Template passed native consumer qualification on Test with the
## SkillSpector 2.13.7 binding

The default host source for both workers is `d5c03ade5570e18d656be01a176f4fab595b3def` ([ClawScan #225](https://github.com/openclaw/clawscan/pull/225)), with source tree `ec9f95360c6de96d25fc2ea9745e4486e236d0a7` and runtime tree `b2a30606b8e045254a197690a453efaf676e2b1b`. Plugins and Templates use the matching immutable tools image `ghcr.io/openclaw/clawscan-runtime@sha256:72c4c360b8761d190a60d873528c9e72748cc5a32b907e8dd51d30e7ca37ab53`. The [native publication](https://github.com/openclaw/clawscan/actions/runs/46527933418/attempts/2) produced both platform proofs in the same attempt. These are producer checks, not a stored production scan.

SkillSpector leaves budget-only gaps visible as partial inspection without scoring those gaps as HIGH findings. Content-related failures and failed artifact inventory retain their findings. No historical scan is rewritten.

On macOS arm64 with Python 3.12.14, the actual default installers passed 24 judge, 212 SkillSpector and 259 AIG controls. The immutable image passed the offline MCP CLI and Codex version check. Both worker lanes admitted the clean source and VCS-bound binary for plugin and Template dispatch. The installed SkillSpector reported 2.13.7: the upstream three-reference fixture stayed partial with zero budget-only HIGH findings, and retained one HIGH with a content-related parse limit. These local checks used no live provider.

## Historical 0.4.0 binding and qualification

Status at that revision: the fixed Template passed native consumer qualification on Test with the
ClawScan 0.4.0 source and immutable runtime. Production promotion remains separate.
This proof does not authorize production rollout, historical rewrite, bulk requeue
or data migration.

## Qualified binding
### Previous qualified binding

- Merged ClawScan source: 9bc83753a6f1af7ff077917262190ada0152891b ([PR #223](https://github.com/openclaw/clawscan/pull/223)).
- Source tree: c08631fa26a49ac711b828a4ead389ded92b2fa5.
Expand All @@ -29,7 +39,7 @@ source/image binding remain fail-closed. Historical readers remain supported.
## Executable installation / qualification

Use a disposable isolated runner with RUNNER_TEMP, GITHUB_ENV and GITHUB_PATH
set as in Actions. Both optional-source and default installation now select the
set as in Actions. At this historical revision both optional-source and default installation selected the
same qualified source:

```sh
Expand Down
4 changes: 3 additions & 1 deletion specs/security-consumer-model-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ reviewed ClawScan profile, not by those local evaluator environment variables.

## Source and transport boundary

The ClawScan 0.4.0 draft selects source
The SkillSpector 2.13.7 worker uses ClawScan source `d5c03ade5570e18d656be01a176f4fab595b3def`. Both worker paths retain 64 batches, bounded applicability and a 600-second workflow limit. See [the exact runtime binding](plugin-qualified-runtime.md#skillspector-2137-binding).

The prior ClawScan 0.4.0 binding selected source
`9bc83753a6f1af7ff077917262190ada0152891b`; its image and native qualification
status are recorded in `plugin-qualified-runtime.md`. The earlier transport
migration below is historical evidence, not approval of the new runtime.
Expand Down
8 changes: 5 additions & 3 deletions specs/template-security-audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ Secret scanning, claim/lease/fingerprint checks and Docker cleanup remain gates.

## Candidate host producer and scanner tools

The ClawScan 0.4.0 draft binds both workers to merged source
Both workers select the same [SkillSpector 2.13.7 source and image](plugin-qualified-runtime.md#skillspector-2137-binding). Neither changes the Template profile or permits a mutable image tag.

The previous ClawScan 0.4.0 binding used merged source
`9bc83753a6f1af7ff077917262190ada0152891b` ([ClawScan #223](https://github.com/openclaw/clawscan/pull/223)),
source tree `c08631fa26a49ac711b828a4ead389ded92b2fa5`, runtime tree
`9f1aa0ad7bba119153550651bb74c1ab4576808a`, and immutable image
`ghcr.io/openclaw/clawscan-runtime@sha256:c7723e88a47f4ff61530a7f3140b0c72f51293ab8514435c7c3aeb518a8000b1`.
Version-tag image publication, real host installation and both workers'
source/binary admission are verified without provider calls. The final tag image
also passed its separate offline consumer runtime checks. Full native consumer
qualification remains pending. See `plugin-qualified-runtime.md`.
also passed its separate offline consumer runtime checks. Its fixed Template later passed native consumer
qualification on Test; that proof is specific to the 0.4.0 binding. See `plugin-qualified-runtime.md`.

The previous binding was source `56bf1d9e3bd5247a0622acef8699dc69a10f2938`
([ClawScan #155](https://github.com/openclaw/clawscan/pull/155)), source tree
Expand Down
Loading