David Abutbul
cd7bdd95a0
auto-claude: subtask-5-2 - Write unit tests for feed reader
...
Added comprehensive unit tests for feed-reader module covering:
- Package specifier parsing (parseAffectedSpecifier)
- Feed payload validation (isValidFeedPayload)
- Ed25519 signature verification (verifySignedPayload)
- Checksum URL generation (defaultChecksumsUrl)
- Local feed loading with signature/checksum verification
- Security validation and error handling
Enhanced test harness with crypto utilities:
- generateEd25519KeyPair() for test key generation
- signPayload() for creating test signatures
All 24 tests passing.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-27 21:27:03 +02:00
David Abutbul
41db282c1e
auto-claude: subtask-5-1 - Write unit tests for Claude API client
2026-02-27 21:23:50 +02:00
David Abutbul
0e95d771c5
auto-claude: subtask-4-3 - Add environment variable validation and startup checks
...
- Added validateEnvironment() function to check ANTHROPIC_API_KEY and other env vars
- Added CLI entry point supporting --dry-run flag for environment validation
- Validates CLAWSEC_HOOK_INTERVAL_SECONDS is a positive integer if set
- Outputs clear error messages on validation failure
- Exits with proper status codes (0=success, 1=failure)
- Compiled TypeScript to JavaScript for runtime execution
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-27 21:17:06 +02:00
David Abutbul
2edf87e3b7
auto-claude: subtask-4-2 - Create main handler.ts with OpenClaw hook integrat
2026-02-27 21:13:33 +02:00
David Abutbul
a1dbaf1b6b
auto-claude: subtask-4-1 - Implement state persistence module
...
- Created state.ts following advisory-guardian pattern
- Implements DEFAULT_STATE, normalizeState, loadState, persistState
- State persists to ~/.openclaw/clawsec-analyst-state.json
- Includes cached_analyses, policies, analysis_history
- Atomic write with temp file + rename
- Secure 0600 permissions with platform fallback
- TypeScript compiles without errors
2026-02-27 21:10:20 +02:00
David Abutbul
62b682f021
auto-claude: subtask-3-3 - Implement natural language policy parser
2026-02-27 21:08:25 +02:00
David Abutbul
893a64fa3e
auto-claude: subtask-3-2 - Implement pre-installation risk assessor
2026-02-27 21:06:03 +02:00
David Abutbul
ec632155ab
auto-claude: subtask-3-1 - Implement advisory triage analyzer
2026-02-27 21:03:22 +02:00
David Abutbul
89b763c668
auto-claude: subtask-2-4 - Implement result caching for offline resilience
...
- Created cache.ts with getCachedAnalysis/setCachedAnalysis functions
- Cache directory: ~/.openclaw/clawsec-analyst-cache/
- Cache expiry: 7 days with stale cache warnings
- Includes clearStaleCache() and getCacheStats() utilities
- Proper error handling for non-critical cache operations
- TypeScript compiles without errors
2026-02-27 21:01:01 +02:00
David Abutbul
941587e5d2
auto-claude: subtask-2-3 - Implement advisory feed reader with signature verification
...
- Created TypeScript implementation based on clawsec-suite feed.mjs pattern
- Implements Ed25519 signature verification with Ed25519 public key
- Enforces TLS 1.2+ with secure HTTPS agent and domain validation
- Supports both local filesystem and remote URL feed loading
- Includes checksum manifest verification for integrity
- Follows fail-closed security model for all verification steps
- Compiles successfully with TypeScript strict mode
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-27 20:58:49 +02:00
David Abutbul
9a541599e2
auto-claude: subtask-2-2 - Implement Claude API client wrapper with retry logic
...
- Created claude-client.ts with ClaudeClient class
- Implemented exponential backoff retry logic (1s, 2s, 4s delays)
- Max 3 retries for rate limits (429) and server errors (5xx)
- Fail fast on auth errors (401) and bad requests (400)
- Added specialized methods: analyzeAdvisory, assessSkillRisk, parsePolicy
- Proper TypeScript error handling with AnalystError types
- Environment-based API key configuration with clear error messages
- Compiles successfully with no TypeScript errors
2026-02-27 20:55:24 +02:00
David Abutbul
a8ea4d03c9
auto-claude: subtask-2-1 - Create TypeScript type definitions for advisory fe
2026-02-27 20:52:16 +02:00
David Abutbul
2a55e7d049
auto-claude: subtask-1-5 - Create HOOK.md for OpenClaw hook metadata
2026-02-27 20:50:17 +02:00
David Abutbul
7e17121314
auto-claude: subtask-1-4 - Create SKILL.md with YAML frontmatter and usage instructions
2026-02-27 20:48:50 +02:00
David Abutbul
0b331e4cff
auto-claude: subtask-1-3 - Create skill.json metadata with SBOM
...
- Created comprehensive skill.json with metadata following clawsec-suite pattern
- Defined complete SBOM listing all 22 files to be created (required + optional)
- Added OpenClaw configuration (emoji: 🔍 , triggers, environment variables)
- Specified Claude API integration details (model, retry strategy, cache TTL)
- Version 0.1.0 matches package.json
- Includes capabilities, compatibility, and integration sections
Verification:
- JSON structure is valid
- All required fields present (name, version, description, author, license, sbom)
- Version consistency verified between skill.json and package.json
- Ready for subsequent subtasks to create SBOM files
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-27 20:46:34 +02:00
David Abutbul
fa6970a478
auto-claude: subtask-1-2 - Create TypeScript configuration
...
- Add tsconfig.json with Node.js ESM configuration
- Target ES2022, strict mode enabled
- Support .ts, .mts, and .mjs files
- Include placeholder lib/types.ts for compilation verification
- Configuration ready for phase 2 implementation
2026-02-27 20:43:11 +02:00
David Abutbul
e3e9b5c33b
auto-claude: subtask-1-1 - Create skill directory and package.json with dependencies
2026-02-27 20:41:06 +02:00
davida-ps
382db82483
Add Severity Filter Tabs to Advisory Feed Page ( #87 )
...
* feat: add severity filter tabs to advisory feed page
Add horizontal severity filter tabs (All, Critical, High, Medium, Low)
to the advisory feed page. Advisories are filtered by CVSS score ranges
matching NVD conventions. Tab counts update dynamically.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* refactor: extract severity filter tabs into data-driven map
Replace five duplicated button blocks with a SEVERITY_TABS metadata
array and a single .map() loop. Class strings are kept as full literals
for Tailwind purge compatibility.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* refactor: replace filteredAdvisories state with useMemo
filteredAdvisories is derived from advisories + selectedSeverity and
should not be independent state. Replace useState + filtering useEffect
with a single useMemo. Keep a minimal useEffect that only resets
currentPage on dependency changes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* feat: add platform filter tabs (OpenClaw / NanoClaw) to advisory feed
Add a second row of filter tabs for platform selection using the clawd
color palette. Add platforms field to Advisory type to match feed data.
Both severity and platform filters compose via useMemo.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: extract shared FilterTabs component and treat missing platforms as universal
Extract a reusable FilterTabs component so severity and platform tab
rows share identical markup. Fix platform filter to treat advisories
with missing or empty platforms as matching all platforms, preventing
legacy entries from being silently dropped.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-27 20:14:08 +02:00
davida-ps
c9a66d5c99
Extract Shared Test Harness Module from 9 Test Files ( #85 )
...
* refactor: extract shared test harness module from 9 test files
Extract duplicated test utilities into a reusable test_harness.mjs module
to eliminate ~200-250 lines of boilerplate code across test files.
Changes:
- Create skills/clawsec-suite/test/lib/test_harness.mjs with:
- Test reporting: pass(), fail(), report(), exitWithResults()
- Crypto utilities: generateEd25519KeyPair(), signPayload()
- Temp directory: createTempDir() with cleanup
- Environment helpers: withEnv() for isolated env vars
- Test runner factory: createTestRunner() for isolated counters
- Refactor 9 test files to use shared harness:
- feed_verification.test.mjs
- guarded_install.test.mjs
- skill_catalog_discovery.test.mjs
- advisory_suppression.test.mjs
- advisory_application_scope.test.mjs
- path_resolution.test.mjs
- fuzz_properties.test.mjs
- suppression_config.test.mjs
- render_report_suppression.test.mjs
Benefits:
- Single source of truth for test utilities
- Consistent test reporting across all files
- Easier to add new test files
- Reduced maintenance burden
Verification:
- All 80 tests pass (15+8+3+15+4+6+1+17+11)
- Zero ESLint warnings
- No behavior changes - only code deduplication
- Cross-skill module sharing works (openclaw-audit-watchdog → clawsec-suite)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
* fix: update minimatch override to 10.2.4 to resolve ReDoS vulnerabilities
Bump minimatch from 10.2.1 to 10.2.4 in overrides to fix 10 high-severity
ReDoS vulnerabilities (GHSA-7r86-cg39-jmmj, GHSA-23c5-xmqv-rm74).
Also add .venv/ to ESLint ignores to prevent linting Python venv files.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-27 09:20:36 +02:00
davida-ps
e4ca378603
Codex/fix poll nvd pr auth ( #86 )
...
* chore(gitignore): ignore auto-claude workspace dir
* fix(ci): restore github token auth for poll-nvd workflow
2026-02-27 09:00:17 +02:00
davida-ps
5c5c7f539a
feat: add Product Demo page and integrate into routing ( #84 )
2026-02-26 16:51:06 +02:00
davida-ps
7c0aa37a05
fix pipelines ( #83 )
2026-02-26 12:25:52 +02:00
davida-ps
86342d2789
fix: update README for video demo clarity and replace demo GIFs ( #82 )
2026-02-26 11:59:14 +02:00
davida-ps
95c856ad8a
docs: refresh README, contributing guide, and wiki accuracy ( #81 )
...
* docs(repo): refresh docs and wiki alignment
* fix(feed): align frontend advisory URL with canonical endpoint
2026-02-26 11:28:16 +02:00
davida-ps
fefecaa60a
feat(wiki): add full in-app wiki browser and llms index ( #80 )
...
* feat(wiki): add full in-app wiki browser and llms index
* feat(wiki): auto-generate per-page llms exports
* vuln package
* fix(wiki): guard malformed route decoding
* fix(wiki): preserve markdown anchor fragments across page links
* refactor(markdown): share default render components
* fix(wiki): block unsafe markdown link schemes
* fix(wiki): block unsafe markdown image schemes
* docs(wiki): migrate root docs into wiki pages
* chore(wiki): de-track generated llms exports
* chore(wiki): ignore generated public wiki artifacts
* fix(wiki): align llms urls with per-page endpoint pattern
* fix(wiki): derive llms index from wiki index page
* refactor(markdown): share frontmatter and title helpers
* refactor(wiki): share route and llms path mapping
* ci(pages): add pr verify workflow and tighten deploy triggers
2026-02-26 10:43:36 +02:00
davida-ps
8132c23f41
Codex/wiki sync revert working ( #79 )
...
* fix(wiki-sync): restore known-good pat auth flow
* fix(wiki-sync): restore github token write flow
2026-02-26 00:37:50 +02:00
davida-ps
433a9596a6
fix(wiki-sync): use single x-access-token auth path ( #78 )
2026-02-26 00:17:21 +02:00
davida-ps
c17931d38d
Codex/main synced wiki readme ( #77 )
...
* fix(readme): use github-safe demo previews and links
* fix(wiki): map wiki root to index
* refactor(wiki): generate Home from INDEX during sync
2026-02-25 22:22:56 +02:00
davida-ps
516e8f0428
Codex/fix readme video links ( #76 )
...
* fix(readme): use github-safe demo previews and links
* fix(readme): use only github-hosted demo links
* fix(wiki): map wiki root to index
* feat(readme): add lightweight animated gif demo previews
* refactor(wiki): generate Home from INDEX during sync
* fix(ci): remove github token write scopes in workflows
* chore(ci): use existing poll token for write automation
2026-02-25 22:10:52 +02:00
davida-ps
cbc484faf3
Add comprehensive documentation for ClawSec modules and workflows ( #75 )
...
- Introduced glossary for key terms and definitions related to security advisories, skill packaging, and CI/CD processes.
- Documented the Automation and Release Pipelines module, detailing responsibilities, key files, public interfaces, and configuration.
- Added ClawSec Suite Core module documentation, outlining its responsibilities, key files, public interfaces, and configuration.
- Created Frontend Web App module documentation, covering responsibilities, key files, public interfaces, and configuration.
- Added Local Validation and Packaging Tools module documentation, detailing responsibilities, key files, public interfaces, and configuration.
- Documented NanoClaw Integration module, including responsibilities, key files, public interfaces, and configuration.
- Introduced an overview of ClawSec, including purpose, repo layout, entry points, key artifacts, and workflows.
- Added a Security section outlining the security model, cryptographic controls, runtime enforcement, and incident playbooks.
- Created a Testing section detailing the testing strategy, verification layers, CI workflow coverage, and local testing commands.
- Documented the Workflow section, covering the end-to-end lifecycle, primary workflow map, local operator workflow, and operational risks.
2026-02-25 21:44:51 +02:00
github-actions[bot]
448aed3261
chore: CVE advisories - 0 new, 34 updated ( #73 )
...
Automated update from NVD CVE feed.
Keywords: OpenClaw clawdbot Moltbot NanoClaw WhatsApp-bot baileys
Poll window: 2025-10-28T16:48:19.000Z to 2026-02-25T16:48:19.000Z
Co-authored-by: davida-ps <232346510+davida-ps@users.noreply.github.com >
2026-02-25 18:51:57 +02:00
davida-ps
037bd125b9
fix: refine target selection logic for advisory workflows ( #72 )
2026-02-25 18:47:34 +02:00
davida-ps
5ef122dd91
feat: enhance platform detection and handling in advisory workflows ( #70 )
2026-02-25 18:07:57 +02:00
davida-ps
938eb929f3
feat: add property-based fuzz tests for advisory parsing, semver matc… ( #69 )
...
* feat: add property-based fuzz tests for advisory parsing, semver matching, and suppression config
* fix(ci): install deps before fuzz test jobs
2026-02-25 17:48:48 +02:00
dependabot[bot]
55fb234fc0
chore(deps): bump lucide-react from 0.564.0 to 0.575.0 ( #59 )
2026-02-25 16:21:21 +02:00
github-actions[bot]
ea44aea49e
chore: CVE advisories - 0 new, 34 updated ( #68 )
...
Automated update from NVD CVE feed.
Keywords: OpenClaw clawdbot Moltbot NanoClaw WhatsApp-bot baileys
Poll window: 2025-10-28T12:39:05.000Z to 2026-02-25T12:39:05.000Z
Co-authored-by: davida-ps <232346510+davida-ps@users.noreply.github.com >
2026-02-25 14:40:50 +02:00
dependabot[bot]
2e64201254
chore(deps): bump react-router-dom from 7.13.0 to 7.13.1 ( #56 )
...
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom ) from 7.13.0 to 7.13.1.
- [Release notes](https://github.com/remix-run/react-router/releases )
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md )
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@7.13.1/packages/react-router-dom )
---
updated-dependencies:
- dependency-name: react-router-dom
dependency-version: 7.13.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-25 14:25:42 +02:00
davida-ps
371d792e97
feat: enhance support for NanoClaw in CVE processing and UI components ( #67 )
2026-02-25 14:18:57 +02:00
dependabot[bot]
0602c0fbe5
chore(deps): bump ruff from 0.15.1 to 0.15.2 in /.github ( #55 )
...
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.15.1 to 0.15.2.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/0.15.1...0.15.2 )
---
updated-dependencies:
- dependency-name: ruff
dependency-version: 0.15.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-25 13:51:41 +02:00
dependabot[bot]
8908319dd0
chore(deps): bump github/codeql-action from 4.32.3 to 4.32.4 ( #54 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 4.32.3 to 4.32.4.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/9e907b5e64f6b83e7804b09294d44122997950d6...89a39a4e59826350b863aa6b6252a07ad50cf83e )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 4.32.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-25 13:46:08 +02:00
dependabot[bot]
6f2fe918a2
chore(deps): bump aquasecurity/trivy-action from 0.34.0 to 0.34.1 ( #53 )
...
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action ) from 0.34.0 to 0.34.1.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases )
- [Commits](https://github.com/aquasecurity/trivy-action/compare/c1824fd6edce30d7ab345a9989de00bbd46ef284...e368e328979b113139d6f9068e03accaed98a518 )
---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
dependency-version: 0.34.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-25 13:43:22 +02:00
Aldo Delgado
7cdb4ab7e2
fix(portability): harden cross-platform path handling and install workflows ( #62 )
...
* docs: add agent collaboration and git safety rules to AGENTS.md
* fix(portability): harden cross-platform path handling and install workflows
- add shared path resolution utility for advisory guardian components
- expand and normalize home-path tokens: ~, $HOME, ${HOME}, %USERPROFILE%, $env:USERPROFILE
- reject unresolved/escaped home tokens to prevent literal "$HOME" directory creation
- fix install/runtime path handling in:
- openclaw-audit-watchdog setup_cron and suppression config loader
- clawsec-suite advisory hook handler, suppression loader, and guarded installer
- remove hardcoded Homebrew binary assumptions in watchdog scripts/tests
- add LF enforcement via .gitattributes to reduce CRLF script breakage
- expand CI Node checks to linux/macos/windows matrix
- add cross-platform test coverage for path expansion and token rejection
- update README and SKILL docs with bash/zsh/PowerShell-safe path guidance
- add compatibility deliverables:
- docs/COMPATIBILITY_REPORT.md
- docs/REMEDIATION_PLAN.md
- docs/PLATFORM_VERIFICATION.md
Validation:
- node skills/clawsec-suite/test/path_resolution.test.mjs
- node skills/clawsec-suite/test/guarded_install.test.mjs
- node skills/clawsec-suite/test/advisory_suppression.test.mjs
- node skills/openclaw-audit-watchdog/test/suppression_config.test.mjs
- node skills/openclaw-audit-watchdog/test/render_report_suppression.test.mjs
* fix(advisory): avoid fail-open on invalid path vars and cover watchdog tests
* docs: move signing runbooks into docs folder
* docs: remove root-level signing runbooks after move
* chore(clawsec-suite): bump version to 0.1.3
* chore(openclaw-audit-watchdog): bump version to 0.1.1
* docs(changelog): add entries for clawsec-suite 0.1.3 and watchdog 0.1.1
* docs(changelog): credit @aldodelgado for PR #62 contributions
* feat(clawsec-suite): scope advisories to openclaw application
* fix(ci): run advisory scope tests without TypeScript loader
---------
Co-authored-by: David Abutbul <David.a@prompt.security >
clawsec-suite-v0.1.3
openclaw-audit-watchdog-v0.1.1
2026-02-25 13:24:31 +02:00
David Abutbul
73dd63f714
Nanoclaw integration ( #65 )
...
* Add NanoClaw platform support to ClawSec
## Changes
### CI/CD Pipeline Updates
- Added NanoClaw keywords to NVD CVE monitoring
- Keywords: "NanoClaw", "WhatsApp-bot", "baileys"
- GitHub pattern now matches NanoClaw repositories
### Documentation
- Added NANOCLAW.md with integration guide
- Documented platform-specific advisory schema
- Credited 8-agent team that designed the integration
### Advisory Schema Enhancement
- Added optional `platforms` field support
- Enables platform-specific advisories (openclaw/nanoclaw)
- Maintains backward compatibility (empty = all platforms)
## Team Credits
Designed and implemented by specialized agent team:
- pioneer-repo-scout: ClawSec architecture analysis
- pioneer-nanoclaw-scout: NanoClaw architecture analysis
- architect: Integration design
- advisory-specialist: Feed integration
- integrity-specialist: File integrity design
- installer-specialist: Signature verification
- tester: Test infrastructure
- documenter: Documentation
Total contribution: 3000+ lines of design + implementation code.
## Impact
ClawSec now monitors for NanoClaw-specific security issues and can
provide platform-targeted advisories. This enables NanoClaw to consume
the advisory feed out-of-the-box for security monitoring.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
* Add clawsec-nanoclaw skill with full security suite
Provides complete ClawSec integration for NanoClaw deployments including:
Features:
- 4 MCP tools for agent-initiated vulnerability checking
- Advisory cache service with automatic feed fetching (6h interval)
- Ed25519 signature verification for feed integrity
- Platform-specific advisory filtering (nanoclaw/openclaw)
- IPC-based container-to-host communication
Components (1,730 lines):
- MCP Tools (350 lines): clawsec_check_advisories, clawsec_check_skill_safety,
clawsec_list_advisories, clawsec_verify_signature
- Advisory Cache Manager (492 lines): Periodic fetching, signature verification
- Signature Verification (387 lines): Ed25519 crypto utilities
- Advisory Matching (289 lines): Skill-to-vulnerability correlation
- IPC Handlers (212 lines): Host-side request processing
- Complete documentation: SKILL.md, INSTALL.md with troubleshooting
Architecture:
- Container: MCP tools invoked by agents via Claude SDK
- IPC Layer: Filesystem-based request/response for host operations
- Host Service: Advisory cache with automatic refresh and verification
- Feed Source: https://clawsec.prompt.security/advisories/feed.json
Installation:
NanoClaw users can now add ClawSec security by:
1. Copying skills/clawsec-nanoclaw to their deployment
2. Integrating MCP tools into container (3 line change)
3. Integrating IPC handlers into host (2 line change)
4. Starting cache service in host process (1 line change)
No modifications to NanoClaw core required - ClawSec provides everything
as an installable skill package, just like it does for OpenClaw.
Updated NANOCLAW.md with complete installation instructions and
documentation references.
Team Credits:
8-agent collaborative design and implementation:
- pioneer-repo-scout: ClawSec architecture analysis
- pioneer-nanoclaw-scout: NanoClaw architecture analysis
- architect: Integration design and coordination
- advisory-specialist: Advisory feed integration
- integrity-specialist: File integrity design
- installer-specialist: Signature verification implementation
- tester: Test infrastructure and validation
- documenter: Documentation
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
* Add security expansion: Skill signature verification + File integrity monitoring
Implements Phase 1 (Skill Signature Verification) and Phase 2 (File Integrity
Monitoring) for NanoClaw security enhancement.
## Phase 1: Skill Signature Verification (~490 lines)
Adds Ed25519 signature verification for skill packages to prevent supply chain attacks.
**New Files:**
- host-services/skill-signature-handler.ts (217 lines): Core verification service
- mcp-tools/signature-verification.ts (200 lines): clawsec_verify_skill_package tool
- docs/SKILL_SIGNING.md (270 lines): Complete signing/verification guide
**Features:**
- Ed25519 signature verification using Node.js crypto
- Pinned ClawSec public key with custom key override support
- Auto-detection of .sig signature files
- Package SHA-256 integrity hashing
- Fail-closed error handling with detailed diagnostics
- IPC-based container-to-host verification (5s timeout)
**MCP Tool:** clawsec_verify_skill_package
- Verifies skill packages before installation
- Returns: valid, recommendation (install/block/review), signer, algorithm
- Prevents installation of tampered/malicious packages
## Phase 2: File Integrity Monitoring (~1,765 lines)
Ports OpenClaw's soul-guardian to NanoClaw for critical file protection.
**New Files:**
- guardian/integrity-monitor.ts (711 lines): Core monitoring engine
- guardian/policy.json (55 lines): NanoClaw-specific protection policy
- mcp-tools/integrity-tools.ts (260 lines): 4 MCP tools for agents
- host-services/integrity-handler.ts (349 lines): IPC handler integration
- docs/INTEGRITY.md (470 lines): User documentation
**Features:**
- SHA-256 baseline tracking with tamper-evident audit logs
- Auto-restore for critical files (registered_groups.json, CLAUDE.md)
- Alert-only mode for non-critical files
- Intentional change approval workflow
- Hash-chained audit logging
- Symlink protection and atomic file operations
- Unified diff generation for drift analysis
**MCP Tools:**
- clawsec_check_integrity: Check files for unauthorized changes
- clawsec_approve_change: Approve legitimate modifications
- clawsec_integrity_status: View monitoring status
- clawsec_verify_audit: Verify audit log integrity
**Protected Files:**
- CRITICAL: registered_groups.json (prevents group hijacking)
- HIGH: CLAUDE.md files (prevents instruction poisoning)
- MEDIUM: Container/host code (alerts on changes)
- IGNORED: Conversations (expected to change)
## Shared Enhancements (+129 lines)
**Updated: lib/signatures.ts**
Added 5 new crypto utilities:
- verifyDetachedSignature(): File-based Ed25519 verification
- verifyDetachedSignatureWithDetails(): Diagnostic variant with error details
- loadPublicKey(): PEM validation and security enforcement
- sha256File(): File hashing (shared utility)
- verifyFileHashes(): Batch drift detection
**Updated: lib/types.ts**
Added TypeScript interfaces for:
- VerifySkillSignatureRequest/Response (Phase 1 IPC)
- IntegrityCheckRequest/Response (Phase 2 IPC)
- VerifySkillPackageParams (Phase 1 MCP tool)
**Updated: host-services/ipc-handlers.ts**
Added IPC handlers:
- verify_skill_signature (Phase 1)
- integrity_check, integrity_approve, integrity_status, integrity_verify_audit (Phase 2)
## Total Delivery
- **New Code**: ~2,958 lines
- **Files Created**: 11 new files
- **Files Modified**: 3 existing files
- **Documentation**: 740 lines across 2 comprehensive guides
## Architecture
**Phase 1:** Container agents → MCP tool → IPC → Host verifier → Ed25519 crypto
**Phase 2:** Container agents → MCP tools → IPC → Host service → File monitoring
**Storage:**
- Phase 1: Stateless (no persistent storage)
- Phase 2: /workspace/project/data/soul-guardian/ (host-only)
**Security Model:**
- Ed25519 signatures verified with pinned ClawSec public key
- SHA-256 baselines stored on host (containers cannot modify)
- Hash-chained audit logs for tamper detection
- Fail-closed error handling throughout
- IPC-only access (no direct container mounts)
## Team Credits
Designed and implemented by 5-agent Opus 4.6 team:
- signature-verification-lead: Phase 1 implementation
- integrity-monitoring-lead: Phase 2 implementation
- shared-crypto: Cryptographic utilities
- mcp-tools-architect: MCP tool schema standards
- ipc-handler-architect: IPC protocol standards
Coordination approach:
1. Design phase: Each agent analyzed and proposed solutions
2. Coordination phase: Aligned on shared components (crypto, IPC, storage)
3. Implementation phase: Parallel execution with peer support
4. Result: Zero conflicts, exceeded targets, complete documentation
## Integration
NanoClaw users can now install ClawSec security features:
**1. MCP Tools** (container):
```typescript
import { clawsecTools } from '../../../skills/clawsec-nanoclaw/mcp-tools/advisory-tools.js';
import { verifySkillPackage } from '../../../skills/clawsec-nanoclaw/mcp-tools/signature-verification.js';
import { integrityTools } from '../../../skills/clawsec-nanoclaw/mcp-tools/integrity-tools.js';
```
**2. IPC Handlers** (host):
```typescript
import { registerClawSecHandlers } from '../skills/clawsec-nanoclaw/host-services/ipc-handlers.js';
```
**3. Services** (host):
```typescript
import { SkillSignatureVerifier } from '../skills/clawsec-nanoclaw/host-services/skill-signature-handler.js';
import { IntegrityService } from '../skills/clawsec-nanoclaw/host-services/integrity-handler.js';
```
See docs/SKILL_SIGNING.md and docs/INTEGRITY.md for complete integration guides.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
* Fix SKILL.md format: proper YAML frontmatter, remove ASCII diagrams, focus on when-to-use
* chore: align with contributors guidelines - set version 0.0.1, add version to SKILL.md frontmatter, complete SBOM
* fix: use specific NanoClaw repo URL instead of wildcard pattern
Change github.com/*/NanoClaw to github.com/qwibitai/NanoClaw to avoid
matching unrelated projects in CVE advisory scanning.
* docs: merge NanoClaw support into main README, move NANOCLAW.md to skill README
- Add NanoClaw platform section in main README
- Update supported platforms list (OpenClaw + NanoClaw)
- Add monitored keywords for NanoClaw (WhatsApp-bot, baileys)
- Document platform-specific advisory schema
- Move NANOCLAW.md to skills/clawsec-nanoclaw/README.md
* fix: resolve ESLint and TypeScript errors in clawsec-nanoclaw skill
Fix all CI failures from prepare-to-push.sh for the nanoclaw-integration branch:
ESLint fixes:
- Add missing Node.js globals (Buffer, AbortController, clearTimeout,
RequestInit) to eslint.config.js for TypeScript files
- Add ambient declarations for host-provided variables (server, writeIpcFile,
TASKS_DIR, groupFolder) in MCP tool template files
- Wrap bare case statements in ipc-handlers.ts in a proper exported function
- Replace @ts-ignore with @ts-expect-error in signatures.ts
- Prefix unused variables with underscore (affectedVersion, keyDer,
safeBasename, groupFolder)
- Add eslint-disable directives for intentional any usage in template files
- Change any to unknown in types.ts where appropriate
TypeScript fixes:
- Replace glob import with ambient namespace declaration (glob not in repo deps)
- Fix Hash.hexdigest() to Hash.digest('hex') in integrity-monitor.ts
- Fix unreachable type comparison (recommendation === 'install') in
advisory-tools.ts
Comment syntax fixes:
- Convert block comments containing '*/30 * * * *' cron expressions to
line comments to prevent premature comment termination in
integrity-handler.ts and integrity-tools.ts
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
* fix: implement missing MCP tools and align documentation with code
- Rewrote signature-verification.ts with actual server.tool() implementation (was template string)
- Fixed tool naming: clawsec_verify_signature -> clawsec_verify_skill_package
- Added missing clawsec_refresh_cache to all documentation
- Updated skill.json mcp_tools array from 4 to 9 tools (added Phase 1 & 2 tools)
- All 9 MCP tools now verified: 4 advisory + 1 signature + 4 integrity
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com >
clawsec-nanoclaw-v0.0.1
2026-02-25 12:11:35 +02:00
davida-ps
db0339084f
chore: migrate repository licensing from MIT to AGPL ( #63 )
...
* chore(license): migrate repository licensing to AGPL-3.0-or-later
* fix(ci): skip skill dry-run when version is unchanged
2026-02-24 15:43:14 +02:00
github-actions[bot]
af0a515166
chore: CVE advisories - 0 new, 6 updated ( #61 )
...
Automated update from NVD CVE feed.
Keywords: OpenClaw clawdbot Moltbot
Poll window: 2026-02-22T10:57:32Z to 2026-02-24T06:19:58.000Z
Co-authored-by: davida-ps <232346510+davida-ps@users.noreply.github.com >
2026-02-24 13:23:31 +02:00
davida-ps
3142707dbd
fix(deps): patch ajv ReDoS advisory ( #52 )
2026-02-22 16:01:29 +02:00
davida-ps
c6409d2641
fix(ci): resolve minimatch audit vulnerability ( #51 )
...
* fix(ci): resolve minimatch audit vulnerability
* fix(ci): normalize minimatch overrides to npmjs packages
2026-02-22 14:02:10 +02:00
github-actions[bot]
e06c3952a3
chore: CVE advisories - 6 new, 9 updated ( #50 )
...
Automated update from NVD CVE feed.
Keywords: OpenClaw clawdbot Moltbot
Poll window: 2026-02-20T06:16:59Z to 2026-02-22T10:57:13.000Z
Co-authored-by: davida-ps <232346510+davida-ps@users.noreply.github.com >
2026-02-22 12:58:09 +02:00
github-actions[bot]
c61e4e5dbc
chore: CVE advisories - 23 new, 0 updated ( #47 )
...
Automated update from NVD CVE feed.
Keywords: OpenClaw clawdbot Moltbot
Poll window: 2026-02-08T18:42:58Z to 2026-02-20T06:16:40.000Z
Co-authored-by: davida-ps <232346510+davida-ps@users.noreply.github.com >
2026-02-22 12:55:58 +02:00
dependabot[bot]
bd8931a094
chore(deps-dev): bump vite from 6.4.1 to 7.3.1 ( #43 )
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 6.4.1 to 7.3.1.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v7.3.1/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-version: 7.3.1
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-17 11:03:55 +02:00