You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The standard installed Suite package must contain all five files below:
advisories/feed.json
advisories/feed.json.sig
advisories/checksums.json
advisories/checksums.json.sig
advisories/feed-signing-public.pem
The local fallback is considered usable only when this complete set verifies. GitHub release and ClawHub packaging must preserve the same signed payload; a registry publish that omits any file is a release failure.
Public Interfaces
Interface
Consumer
Behavior
Hook handler default export
OpenClaw hook runtime
Handles agent:bootstrap and command:new events.
guarded_skill_install.mjs CLI
Operators/automation
Blocks on advisory matches unless --confirm-advisory.
42 indicates explicit second confirmation required.
Inputs and Outputs
Inputs/outputs are summarized in the table below.
Type
Name
Location
Description
Input
Advisory feed + signatures
Remote URLs or local advisories/ files
Risk intelligence source for hook and installer.
Input
Installed skill metadata
Skill directories under install root
Matcher compares installed versions to advisory affected specs.
Input
Suppression config
OPENCLAW_AUDIT_CONFIG or default config paths
Selective suppression by check and skill name.
Output
Runtime alert messages
Hook event messages[]
Advisories and recommended user actions.
Output
Persistent state
~/.openclaw/clawsec-suite-feed-state.json
De-dup alerts, track scan windows.
Output
CLI gating exit codes
Installer process status
Ensures deliberate user confirmation on risk.
Configuration
Variable
Default
Module Effect
CLAWSEC_FEED_URL
Hosted advisory URL
Chooses primary remote feed endpoint.
CLAWSEC_LOCAL_FEED* vars
Suite-local advisories directory
Configures local signed fallback artifacts.
CLAWSEC_FEED_PUBLIC_KEY
advisories/feed-signing-public.pem
Verification key path.
CLAWSEC_ALLOW_UNSIGNED_FEED
0
Enables temporary migration bypass mode.
CLAWSEC_VERIFY_CHECKSUM_MANIFEST
1
Enables checksum manifest verification layer.
CLAWSEC_HOOK_INTERVAL_SECONDS
300
Controls event-driven scan throttling.
Example Snippets
// hook only handles selected eventsfunctionshouldHandleEvent(event: HookEvent): boolean{consteventName=toEventName(event);returneventName==='agent:bootstrap'||eventName==='command:new';}
// guarded installer confirmation contractif(matches.length>0&&!args.confirmAdvisory){process.stdout.write('Re-run with --confirm-advisory to proceed.\n');process.exit(EXIT_CONFIRM_REQUIRED);// 42}
Edge Cases
Missing/malformed feed signatures force remote rejection and local fallback attempts; an incomplete local trust set cannot be accepted as a verified fallback.
Ambiguous checksum manifest basename collisions are treated as errors.
Unknown skill versions are treated conservatively in version matching logic.
Suppression is disabled unless config includes the pipeline sentinel (enabledFor).
Invalid environment path tokens are rejected to avoid accidental literal path usage.