$npx -y skills add prompt-security/clawsec --skill clawtributorHarness-neutral community incident reporting for AI agents. Contribute to collective security by reporting threats.
| 1 | # Clawtributor 🤝 |
| 2 | |
| 3 | Community incident reporting for AI agents. Contribute to collective security by reporting threats, vulnerabilities, and attack patterns. |
| 4 | |
| 5 | ## Vercel Skills Installation |
| 6 | |
| 7 | Install with the Vercel Skills CLI for this harness: |
| 8 | |
| 9 | ```bash |
| 10 | npx skills add prompt-security/clawsec --skill clawtributor -a openclaw -y |
| 11 | ``` |
| 12 | |
| 13 | Codex install is also supported: |
| 14 | |
| 15 | ```bash |
| 16 | npx skills add prompt-security/clawsec --skill clawtributor -a codex -y |
| 17 | ``` |
| 18 | |
| 19 | ## Operational Notes |
| 20 | |
| 21 | - Recommended install path: harness-native skills installer; use ClawHub for OpenClaw/ClawHub environments (`npx clawhub@latest install clawtributor`) |
| 22 | - Side effects: creates local report/state files under `~/.clawsec/clawtributor/` |
| 23 | - Network behavior: none unless the user explicitly approves manual submission |
| 24 | - Trust model: reporting is opt-in for every submission; sanitize evidence before it leaves the host |
| 25 | |
| 26 | **An open source project by [Prompt Security](https://prompt.security)** |
| 27 | |
| 28 | --- |
| 29 | |
| 30 | ## Installation |
| 31 | |
| 32 | Install with your harness-native skills installer. For the Vercel skills installer: |
| 33 | |
| 34 | ```bash |
| 35 | npx skills add prompt-security/clawsec --skill clawtributor -a codex -y |
| 36 | ``` |
| 37 | |
| 38 | For OpenClaw/ClawHub environments, install from the registry: |
| 39 | |
| 40 | ```bash |
| 41 | npx clawhub@latest install clawtributor |
| 42 | ``` |
| 43 | |
| 44 | After install, tell the user: |
| 45 | |
| 46 | ``` |
| 47 | Clawtributor is installed. |
| 48 | |
| 49 | I can help prepare incident reports for your approval. |
| 50 | I will keep reports local unless you explicitly approve submission. |
| 51 | ``` |
| 52 | |
| 53 | --- |
| 54 | |
| 55 | ## Release Artifact Verification |
| 56 | |
| 57 | For standalone installs, verify the signed release manifest before trusting `SKILL.md`, `skill.json`, or the archive. The `skill.json` file is the package metadata/SBOM source, and the release pipeline signs `checksums.json` with the ClawSec release key. |
| 58 | |
| 59 | ```bash |
| 60 | set -euo pipefail |
| 61 | |
| 62 | SKILL_NAME="clawtributor" |
| 63 | VERSION="0.0.9" |
| 64 | REPO="prompt-security/clawsec" |
| 65 | TAG="${SKILL_NAME}-v${VERSION}" |
| 66 | BASE="https://github.com/${REPO}/releases/download/${TAG}" |
| 67 | ZIP_NAME="${SKILL_NAME}-v${VERSION}.zip" |
| 68 | TMP_DIR="$(mktemp -d)" |
| 69 | trap 'rm -rf "$TMP_DIR"' EXIT |
| 70 | |
| 71 | RELEASE_PUBKEY_SHA256="711424e4535f84093fefb024cd1ca4ec87439e53907b305b79a631d5befba9c8" |
| 72 | |
| 73 | curl -fsSL "$BASE/checksums.json" -o "$TMP_DIR/checksums.json" |
| 74 | curl -fsSL "$BASE/checksums.sig" -o "$TMP_DIR/checksums.sig" |
| 75 | curl -fsSL "$BASE/signing-public.pem" -o "$TMP_DIR/signing-public.pem" |
| 76 | curl -fsSL "$BASE/$ZIP_NAME" -o "$TMP_DIR/$ZIP_NAME" |
| 77 | curl -fsSL "$BASE/SKILL.md" -o "$TMP_DIR/SKILL.md" |
| 78 | curl -fsSL "$BASE/skill.json" -o "$TMP_DIR/skill.json" |
| 79 | |
| 80 | ACTUAL_PUBKEY_SHA256="$(openssl pkey -pubin -in "$TMP_DIR/signing-public.pem" -outform DER | shasum -a 256 | awk '{print $1}')" |
| 81 | if [ "$ACTUAL_PUBKEY_SHA256" != "$RELEASE_PUBKEY_SHA256" ]; then |
| 82 | echo "ERROR: signing-public.pem fingerprint mismatch" >&2 |
| 83 | exit 1 |
| 84 | fi |
| 85 | |
| 86 | openssl base64 -d -A -in "$TMP_DIR/checksums.sig" -out "$TMP_DIR/checksums.sig.bin" |
| 87 | openssl pkeyutl -verify -rawin -pubin \ |
| 88 | -inkey "$TMP_DIR/signing-public.pem" \ |
| 89 | -sigfile "$TMP_DIR/checksums.sig.bin" \ |
| 90 | -in "$TMP_DIR/checksums.json" >/dev/null |
| 91 | |
| 92 | hash_file() { |
| 93 | if command -v shasum >/dev/null 2>&1; then |
| 94 | shasum -a 256 "$1" | awk '{print $1}' |
| 95 | else |
| 96 | sha256sum "$1" | awk '{print $1}' |
| 97 | fi |
| 98 | } |
| 99 | |
| 100 | verify_manifest_file() { |
| 101 | asset="$1" |
| 102 | path="$2" |
| 103 | expected="$(jq -r --arg asset "$asset" '.files[$asset].sha256 // empty' "$TMP_DIR/checksums.json")" |
| 104 | if [ -z "$expected" ]; then |
| 105 | echo "ERROR: checksums.json missing $asset" >&2 |
| 106 | exit 1 |
| 107 | fi |
| 108 | actual="$(hash_file "$path")" |
| 109 | if [ "$actual" != "$expected" ]; then |
| 110 | echo "ERROR: checksum mismatch for $asset" >&2 |
| 111 | exit 1 |
| 112 | fi |
| 113 | } |
| 114 | |
| 115 | expected_archive="$(jq -r '.archive.sha256 // empty' "$TMP_DIR/checksums.json")" |
| 116 | if [ -z "$expected_archive" ]; then |
| 117 | echo "ERROR: checksums.json missing archive.sha256" >&2 |
| 118 | exit 1 |
| 119 | fi |
| 120 | actual_archive="$(hash_file "$TMP_DIR/$ZIP_NAME")" |
| 121 | if [ "$actual_archive" != "$expected_archive" ]; then |
| 122 | echo "ERROR: archive checksum mismatch" >&2 |
| 123 | exit 1 |
| 124 | fi |
| 125 | |
| 126 | verify_manifest_file "SKILL.md" "$TMP_DIR/SKILL.md" |
| 127 | verify_manifest_file "skill.json" "$TMP_DIR/skill.json" |
| 128 | |
| 129 | echo "Signed release manifest, archive, SKILL.md, and skill.json verified." |
| 130 | ``` |
| 131 | |
| 132 | Only install or extract the archive after this verification succeeds. |
| 133 | |
| 134 | ## What Clawtributor Does |
| 135 | |
| 136 | ### Community-Driven Security Reporting |
| 137 | |
| 138 | Clawtributor enables agents to contribute to collective security: |
| 139 | |
| 140 | - **Report malicious prompt attempts** - Help identify new attack patterns |
| 141 | - **Report vulnerable skills/plugins** - Warn the community about dangerous packages |
| 142 | - **Report tampering attempts** - Document attacks against security tooling |
| 143 | |
| 144 | All reporting is approval-gated. |
| 145 | |
| 146 | --- |
| 147 | |
| 148 | ## How Reporting Works |
| 149 | |
| 150 | ``` |
| 151 | ┌──────────────────────── |