[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76YDRHST773BF512VHMXHGM":3,"skill-same:01M76YDRHST773BF512VHMXHGM":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":38,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M76YDRHST773BF512VHMXHGM","agentshield",null,"Trust Infrastructure for AI Agents - Like SSL\u002FTLS for agent-to-agent communication. 77 security tests, cryptographic certificates, and Trust Handshake Protocol for establishing secure channels between agents. Explicit whitelist sanitization + dry-run mode for transparency.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fagentshield-audit\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: agentshield\nversion: 1.0.31\ndescription: Trust Infrastructure for AI Agents - Like SSL\u002FTLS for agent-to-agent communication. 77 security tests, cryptographic certificates, and Trust Handshake Protocol for establishing secure channels between agents. Explicit whitelist sanitization + dry-run mode for transparency.\ntriggers: [\"audit my agent\", \"get security certificate\", \"verify agent\", \"activate AgentShield\", \"security audit\", \"trust handshake\", \"verify peer agent\"]\n---\n\n# AgentShield - Trust Infrastructure for AI Agents\n\n**The trust layer for the agent economy. Like SSL\u002FTLS, but for AI agents.**\n\n🔐 **Cryptographic Identity** - Ed25519 signing keys  \n🤝 **Trust Handshake Protocol** - Mutual verification before communication  \n📋 **Public Trust Registry** - Reputation scores & track records  \n✅ **77 Security Tests** - Comprehensive vulnerability assessment\n\n**🔒 Privacy Disclosure:** See [PRIVACY.md](PRIVACY.md) for detailed data handling information.\n\n---\n\n## 🌐 Framework Compatibility\n\nAgentShield works with **any AI agent framework** — no adapter required.\n\n| Framework | Status | Notes |\n|-----------|--------|-------|\n| **OpenClaw** | ✅ Full support | Auto-detects IDENTITY.md |\n| **Hermes Agent** | ✅ Full support | Auto-detects `~\u002F.hermes\u002F` — see [HERMES.md](HERMES.md) |\n| **n8n** | ✅ Auto-detected | Detects `~\u002F.n8n\u002F` |\n| **LangChain** | ✅ Manual | `--name MyAgent --platform langchain` |\n| **CLI \u002F Custom** | ✅ Manual | `--name MyAgent --platform cli` |\n\nBoth OpenClaw and Hermes use the [agentskills.io](https:\u002F\u002Fagentskills.io) open standard — skills install and run identically on both platforms.\n\n---\n\n## 🎯 The Problem\n\nAgents need to communicate with other agents (API calls, data sharing, task delegation). But **how do you know if another agent is trustworthy?**\n\n- Has it been compromised?\n- Is it leaking data?\n- Can you trust its responses?\n\nWithout a trust layer, agent-to-agent communication is like HTTP without SSL - **unsafe and unverifiable**.\n\n---\n\n## 💡 The Solution: Trust Infrastructure\n\nAgentShield provides the **trust layer** for agent-to-agent communication:\n\n### 1. Cryptographic Identity\n- **Ed25519 key pairs** - Industry-standard cryptography\n- **Private keys stay local** - Never transmitted\n- **Public key certificates** - Signed by AgentShield\n\n### 2. Security Audit (77 Tests)\n**52 Live Attack Vectors:**\nTests defense against instruction manipulation, encoding schemes, and social engineering\nacross 6 languages. All attack patterns are stored locally in agentshield_attack_patterns.json\n(not embedded in documentation).\n\n**25 Static Security Checks:**\n- Input sanitization\n- Output DLP (data leak prevention)\n- Tool sandboxing\n- Secret scanning\n- Supply chain security\n\n**Result:** Security score (0-100) + Tier (VULNERABLE → HARDENED)\n\n**Privacy:** Tests run 100% locally - only pass\u002Ffail scores sent to API (no prompts\u002Fresponses)\n\n### 3. Trust Handshake Protocol\n**Agent A wants to communicate with Agent B:**\n\n```bash\n# Step 1: Both agents get certified\npython3 initiate_audit.py --auto\n\n# Step 2: Agent A initiates handshake with Agent B\npython3 handshake.py --target agent_B_id\n\n# Step 3: Both agents sign challenges\n# (Automatic in v1.0.13+)\n\n# Step 4: Receive shared session key\n# → Now you can communicate securely!\n```\n\n**What you get:**\n- ✅ Mutual verification (both agents are who they claim to be)\n- ✅ Shared session key (for encrypted communication)\n- ✅ Trust score boost (+5 for successful handshakes)\n- ✅ Public track record (handshake history)\n\n### 4. Public Trust Registry\n- **Searchable database** of all certified agents\n- **Reputation scores** based on audits, handshakes, and time\n- **Trust tiers:** UNVERIFIED → BASIC → VERIFIED → TRUSTED\n- **Revocation list (CRL)** - Compromised agents get flagged\n\n---\n\n## 🚀 Quick Start\n\n### Install\n```bash\nclawhub install agentshield\n\n# Install Python dependencies (required!)\npip3 install -r requirements.txt\ncd ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fagentshield*\u002F\n```\n\n### Get Certified (77 Security Tests)\n```bash\n# RECOMMENDED: Dry-run first (see what would be submitted)\npython3 initiate_audit.py --auto --dry-run\n\n# After verifying payload: Run for real\npython3 initiate_audit.py --auto\n\n# Or manual (no file reads):\npython3 initiate_audit.py --name \"MyAgent\" --platform telegram\n```\n\n**Output:**\n- ✅ Agent ID: `agent_xxxxx`\n- ✅ Security Score: XX\u002F100\n- ✅ Tier: PATTERNS_CLEAN \u002F HARDENED \u002F etc.\n- ✅ Certificate (90-day validity)\n\n### Verify Another Agent\n```bash\npython3 verify_peer.py agent_yyyyy\n```\n\n### Trust Handshake with Another Agent\n```bash\n# Initiate handshake\npython3 handshake.py --target agent_yyyyy\n\n# Result: Shared session key for encrypted communication\n```\n\n---\n\n## 📋 Use Cases\n\n### 1. Agent-to-Agent API Calls\n**Before:** Agent A calls Agent B's API - no way to verify B's integrity  \n**With AgentShield:** Agent A checks Agent B's certificate + handshake → Verified communication\n\n### 2. Multi-Agent Task Delegation\n**Before:** Orchestrator spawns sub-agents - can't verify they're safe  \n**With AgentShield:** All sub-agents certified → Orchestrator knows they're trusted\n\n### 3. Agent Marketplaces\n**Before:** Download random agents from the internet - no trust guarantees  \n**With AgentShield:** Browse Trust Registry → Only hire VERIFIED agents\n\n### 4. Data Sharing Between Agents\n**Before:** Share sensitive data with another agent - hope it doesn't leak  \n**With AgentShield:** Handshake → Encrypted session key → Secure data transfer\n\n---\n\n## 🛡️ Security Architecture\n\n### Privacy-First Design\n\n✅ **All 77 tests run locally** - Your system prompts NEVER leave your device  \n✅ **Private keys stay local** - Only public keys transmitted  \n✅ **Human-in-the-Loop** - Explicit consent before reading IDENTITY.md\u002FSOUL.md  \n✅ **No environment scanning** - Doesn't scan for API tokens  \n\n**What goes to the server:**\n- Public key (Ed25519)\n- Agent name & platform\n- Test scores (passed\u002Ffailed summary)\n\n**What stays local:**\n- Private key\n- System prompts\n- Configuration files\n- Detailed test results\n\n### Environment Variables (Optional)\n```bash\nAGENTSHIELD_API=https:\u002F\u002Fagentshield.live  # API endpoint\nAGENT_NAME=MyAgent                        # Override auto-detection\nOPENCLAW_AGENT_NAME=MyAgent               # OpenClaw standard\n```\n\n---\n\n## 📊 What You Get\n\n### Certificate (90-day validity)\n```json\n{\n  \"agent_id\": \"agent_xxxxx\",\n  \"public_key\": \"...\",\n  \"security_score\": 85,\n  \"tier\": \"PATTERNS_CLEAN\",\n  \"issued_at\": \"2026-03-10\",\n  \"expires_at\": \"2026-06-08\"\n}\n```\n\n### Trust Registry Entry\n- ✅ Public verification URL: `agentshield.live\u002Fverify\u002Fagent_xxxxx`\n- ✅ Trust score (0-100) based on:\n  - Age (longer = more trust)\n  - Verification count\n  - Handshake success rate\n  - Days active\n- ✅ Tier: UNVERIFIED → BASIC → VERIFIED → TRUSTED\n\n### Handshake Proof\n```json\n{\n  \"handshake_id\": \"hs_xxxxx\",\n  \"requester\": \"agent_A\",\n  \"target\": \"agent_B\",\n  \"status\": \"completed\",\n  \"session_key\": \"...\",\n  \"completed_at\": \"2026-03-10T20:00:00Z\"\n}\n```\n\n---\n\n## 🔧 Scripts Included\n\n| Script | Purpose |\n|--------|---------|\n| `initiate_audit.py` | Run 77 security tests & get certified |\n| `handshake.py` | Trust handshake with another agent |\n| `verify_peer.py` | Check another agent's certificate |\n| `show_certificate.py` | Display your certificate |\n| `agentshield_tester.py` | Standalone test suite (advanced) |\n\n---\n\n## 🌐 API Endpoints\n\n**Base URL:** `https:\u002F\u002Fagentshield.live\u002Fapi`\n\n### 1. Agent Audit Flow\n```\nPOST \u002Fagent-audit\u002Finitiate\n  → Initiate audit session\n  → Input: {agent_name, platform, public_key}\n  → Output: {audit_id, challenge}\n\nPOST \u002Fagent-audit\u002Fchallenge\n  → Complete challenge-response authentication\n  → Input: {audit_id, challenge_response (signed)}\n  → Output: {authenticated: true}\n\nPOST \u002Fagent-audit\u002Fcomplete\n  → Submit test results & receive certificate\n  → Input: {audit_id, test_results}\n  → Output: {certificate, agent_id, expires_at}\n```\n\n### 2. Certificate Operations\n```\nGET \u002Fcertificate\u002Fverify\u002F{agent_id}\n  → Verify another agent's certificate\n  → Output: {valid, score, tier, issued_at, expires_at}\n\nGET \u002Fapi\u002Fpublic-key\n  → Get AgentShield's public signing key\n  → Output: {public_key (Ed25519, base64)}\n```\n\n### 3. Trust Handshake\n```\nPOST \u002Fhandshake\u002Finitiate\n  → Start Trust Handshake with another agent\n  → Input: {requester_id, target_id}\n  → Output: {handshake_id, challenges}\n\nPOST \u002Fhandshake\u002Fcomplete\n  → Complete handshake with signed challenges\n  → Input: {handshake_id, signatures}\n  → Output: {session_key, trust_boost}\n```\n\n### Rate Limits\n- Audits: 1 per hour per IP\n- Handshakes: 10 per hour per agent\n- Verifications: Unlimited (read-only)\n\n**All endpoints require HTTPS. No API keys needed.**\n\n---\n\n## 🌐 Trust Handshake Protocol (Technical)\n\n### Flow\n1. **Initiate:** Agent A → Server: \"I want to handshake with Agent B\"\n2. **Challenge:** Server generates random challenges for both agents\n3. **Sign:** Both agents sign their challenges with private keys\n4. **Verify:** Server verifies signatures with public keys\n5. **Complete:** Server generates shared session key\n6. **Trust Boost:** Both agents +5 trust score\n\n### Cryptography\n- **Algorithm:** Ed25519 (curve25519)\n- **Key Size:** 256-bit\n- **Signature:** Deterministic (same message = same signature)\n- **Session Key:** AES-256 compatible\n\n---\n\n## 🚀 Roadmap\n\n**Current (v1.0.31):**\n- ✅ 77 security tests\n- ✅ Ed25519 certificates\n- ✅ Trust Handshake Protocol\n- ✅ Public Trust Registry\n- ✅ CRL (Certificate Revocation List)\n- ✅ Explicit whitelist sanitization (test IDs only)\n- ✅ Dry-run mode for transparency\n\n**Coming Soon:**\n- ⏳ Auto re-audit (when prompts change)\n- ⏳ Negative event reporting\n- ⏳ Fleet management (multi-agent dashboard)\n- ⏳ Trust badges for messaging platforms\n\n---\n\n## 📖 Learn More\n\n- **Website:** https:\u002F\u002Fagentshield.live\n- **GitHub:** https:\u002F\u002Fgithub.com\u002Fbartelmost\u002Fagentshield\n- **API Docs:** https:\u002F\u002Fagentshield.live\u002Fdocs\n- **ClawHub:** https:\u002F\u002Fclawhub.ai\u002Fbartelmost\u002Fagentshield\n\n---\n\n## 🎯 TL;DR\n\n**AgentShield is SSL\u002FTLS for AI agents.**\n\nGet certified → Verify others → Establish trust handshakes → Communicate securely.\n\n```bash\n# 1. Get certified\npython3 initiate_audit.py --auto\n\n# 2. Handshake with another agent\npython3 handshake.py --target agent_xxxxx\n\n# 3. Verify others\npython3 verify_peer.py agent_yyyyy\n```\n\n**Building the trust layer for the agent economy.** 🛡️\n\n---\n\n## 🔐 Privacy & Security Guarantees (v1.0.31+)\n\n**✅ EXPLICIT WHITELIST (What Gets Sent):**\n- Test IDs (e.g. \"PI-001\", \"SS-003\")\n- Pass\u002Ffail boolean per test\n- Category names (e.g. \"prompt_injection\")\n- Summary counts (passed\u002Ffailed\u002Ftotal)\n- Agent metadata (name, platform, version)\n- Public key (Ed25519, for certificate signing)\n\n**❌ NEVER SENT (Explicitly Excluded):**\n- ✅ Your system prompt\n- ✅ Attack test inputs\u002Fpayloads (e.g. \"ignore previous instructions\")\n- ✅ Attack test outputs\u002Fresponses\n- ✅ Evidence snippets (base64 matches, pattern findings)\n- ✅ Error messages from test execution\n- ✅ Tool configurations\n- ✅ File paths or workspace structure\n- ✅ Private keys (Ed25519, stay local in ~\u002F.agentshield\u002F)\n\n**🔍 Code-Level Enforcement:**\n- See `audit_client.py` line 108: `_sanitize_test_details()` whitelist\n- Payloads\u002Fresponses\u002Fevidence explicitly dropped (line 130-136 comments)\n- Dry-run mode: `--dry-run` flag shows exact payload before submission\n\n**Verification:**\n```bash\n# See what WOULD be submitted (no API call)\npython3 initiate_audit.py --auto --dry-run\n```\n\nAll code is open-source: [github.com\u002Fbartelmost\u002Fagentshield](https:\u002F\u002Fgithub.com\u002Fbartelmost\u002Fagentshield)\n\n---\n\n## 🔒 Data Transmission Transparency\n\n### What Gets Sent to AgentShield API\n\n**During Audit Submission:**\n```json\n{\n  \"agent_name\": \"YourAgent\",\n  \"platform\": \"telegram\",\n  \"public_key\": \"base64_encoded_ed25519_public_key\",\n  \"test_results\": {\n    \"score\": 85,\n    \"tests_passed\": 74,\n    \"tests_total\": 77,\n    \"tier\": \"PATTERNS_CLEAN\",\n    \"failed_tests\": [\"test_name_1\", \"test_name_2\"]\n  }\n}\n```\n\n**What is NOT sent:**\n- ❌ Full test output\u002Flogs\n- ❌ Your prompts or system messages\n- ❌ IDENTITY.md or SOUL.md file contents\n- ❌ Private keys (stay in `~\u002F.agentshield\u002Fagent.key`)\n- ❌ Workspace files or memory\n\n**API Endpoint:**\n- Primary: `https:\u002F\u002Fagentshield.live\u002Fapi` (proxies to Heroku backend)\n- All traffic over HTTPS (TLS 1.2+)\n\n---\n\n## 🛡️ Consent & Privacy\n\n**File Read Consent (v1.0.30+):**\n1. ✅ Explicit consent prompt BEFORE reading IDENTITY.md\u002FSOUL.md\n2. User sees: \"🔐 PRIVACY CONSENT - Read IDENTITY.md for agent name? [Y\u002Fn]\"\n3. If declined: Exits with message \"Please run with: --name 'YourAgentName'\"\n4. If approved: Only name\u002Fplatform extracted (not full file content)\n\n**⚠️ Automation Mode (--yes flag) - v1.0.31+:**\n\nThe `--yes` flag is designed for **CI\u002FCD and pre-audited environments ONLY**.\n\n**When to use:**\n- ✅ Sandboxed test agents (no real secrets)\n- ✅ CI\u002FCD pipelines (after manual code review + dry-run)\n- ✅ Agents you've already audited manually\n\n**When NOT to use:**\n- ❌ Production agents with real secrets\n- ❌ Agents handling sensitive user data\n- ❌ First-time audit (always use manual mode first!)\n\n**Why?** The --yes flag bypasses ALL consent prompts. While the code includes \nexplicit sanitization (see audit_client.py line 108+), we recommend:\n\n1. Run `--dry-run` first to inspect payload\n2. Manually review audit_client.py whitelist\n3. Only then use `--yes` for automation\n\n**Best Practice:**\n```bash\n# Step 1: Dry-run to see payload\npython3 initiate_audit.py --auto --dry-run\n\n# Step 2: Review output, verify sanitization\n# (Should only show test IDs + pass\u002Ffail, no payloads)\n\n# Step 3: If satisfied, run for real\npython3 initiate_audit.py --auto\n\n# Step 4: For CI\u002FCD, add --yes ONLY after manual verification\npython3 initiate_audit.py --auto --yes\n```\n\n**Privacy-First Mode:**\n```bash\nexport AGENTSHIELD_NO_AUTO_DETECT=1\npython initiate_audit.py --name \"MyBot\" --platform \"telegram\"\n```\n→ Zero file reads, manual input only\n\nSee [PRIVACY.md](PRIVACY.md) for complete data handling documentation.\n\n","# AgentShield - Trust Infrastructure for AI Agents\n\n**The trust layer for the agent economy. Like SSL\u002FTLS, but for AI agents.**\n\n🔐 **Cryptographic Identity** - Ed25519 signing keys  \n🤝 **Trust Handshake Protocol** - Mutual verification before communication  \n📋 **Public Trust Registry** - Reputation scores & track records  \n✅ **77 Security Tests** - Comprehensive vulnerability assessment\n\n**🔒 Privacy Disclosure:** See [PRIVACY.md](PRIVACY.md) for detailed data handling information.\n\n---\n\n## 🌐 Framework Compatibility\n\nAgentShield works with **any AI agent framework** — no adapter required.\n\n| Framework | Status | Notes |\n|-----------|--------|-------|\n| **OpenClaw** | ✅ Full support | Auto-detects IDENTITY.md |\n| **Hermes Agent** | ✅ Full support | Auto-detects `~\u002F.hermes\u002F` — see [HERMES.md](HERMES.md) |\n| **n8n** | ✅ Auto-detected | Detects `~\u002F.n8n\u002F` |\n| **LangChain** | ✅ Manual | `--name MyAgent --platform langchain` |\n| **CLI \u002F Custom** | ✅ Manual | `--name MyAgent --platform cli` |\n\nBoth OpenClaw and Hermes use the [agentskills.io](https:\u002F\u002Fagentskills.io) open standard — skills install and run identically on both platforms.\n\n---\n\n## 🎯 The Problem\n\nAgents need to communicate with other agents (API calls, data sharing, task delegation). But **how do you know if another agent is trustworthy?**\n\n- Has it been compromised?\n- Is it leaking data?\n- Can you trust its responses?\n\nWithout a trust layer, agent-to-agent communication is like HTTP without SSL - **unsafe and unverifiable**.\n\n---\n\n## 💡 The Solution: Trust Infrastructure\n\nAgentShield provides the **trust layer** for agent-to-agent communication:\n\n### 1. Cryptographic Identity\n- **Ed25519 key pairs** - Industry-standard cryptography\n- **Private keys stay local** - Never transmitted\n- **Public key certificates** - Signed by AgentShield\n\n### 2. Security Audit (77 Tests)\n**52 Live Attack Vectors:**\nTests defense against instruction manipulation, encoding schemes, and social engineering\nacross 6 languages. All attack patterns are stored locally in agentshield_attack_patterns.json\n(not embedded in documentation).\n\n**25 Static Security Checks:**\n- Input sanitization\n- Output DLP (data leak prevention)\n- Tool sandboxing\n- Secret scanning\n- Supply chain security\n\n**Result:** Security score (0-100) + Tier (VULNERABLE → HARDENED)\n\n**Privacy:** Tests run 100% locally - only pass\u002Ffail scores sent to API (no prompts\u002Fresponses)\n\n### 3. Trust Handshake Protocol\n**Agent A wants to communicate with Agent B:**\n\n```bash\n# Step 1: Both agents get certified\npython3 initiate_audit.py --auto\n\n# Step 2: Agent A initiates handshake with Agent B\npython3 handshake.py --target agent_B_id\n\n# Step 3: Both agents sign challenges\n# (Automatic in v1.0.13+)\n\n# Step 4: Receive shared session key\n# → Now you can communicate securely!\n```\n\n**What you get:**\n- ✅ Mutual verification (both agents are who they claim to be)\n- ✅ Shared session key (for encrypted communication)\n- ✅ Trust score boost (+5 for successful handshakes)\n- ✅ Public track record (handshake history)\n\n### 4. Public Trust Registry\n- **Searchable database** of all certified agents\n- **Reputation scores** based on audits, handshakes, and time\n- **Trust tiers:** UNVERIFIED → BASIC → VERIFIED → TRUSTED\n- **Revocation list (CRL)** - Compromised agents get flagged\n\n---\n\n## 🚀 Quick Start\n\n### Install\n```bash\nclawhub install agentshield\n\n# Install Python dependencies (required!)\npip3 install -r requirements.txt\ncd ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fagentshield*\u002F\n```\n\n### Get Certified (77 Security Tests)\n```bash\n# RECOMMENDED: Dry-run first (see what would be submitted)\npython3 initiate_audit.py --auto --dry-run\n\n# After verifying payload: Run for real\npython3 initiate_audit.py --auto\n\n# Or manual (no file reads):\npython3 initiate_audit.py --name \"MyAgent\" --platform telegram\n```\n\n**Output:**\n- ✅ Agent ID: `agent_xxxxx`\n- ✅ Security Score: XX\u002F100\n- ✅ Tier: PATTERNS_CLEAN \u002F HARDENED \u002F etc.\n- ✅ Certificate (90-day validity)\n\n### Verify Another Agent\n```bash\npython3 verify_peer.py agent_yyyyy\n```\n\n### Trust Handshake with Another Agent\n```bash\n# Initiate handshake\npython3 handshake.py --target agent_yyyyy\n\n# Result: Shared session key for encrypted communication\n```\n\n---\n\n## 📋 Use Cases\n\n### 1. Agent-to-Agent API Calls\n**Before:** Agent A calls Agent B's API - no way to verify B's integrity  \n**With AgentShield:** Agent A checks Agent B's certificate + handshake → Verified communication\n\n### 2. Multi-Agent Task Delegation\n**Before:** Orchestrator spawns sub-agents - can't verify they're safe  \n**With AgentShield:** All sub-agents certified → Orchestrator knows they're trusted\n\n### 3. Agent Marketplaces\n**Before:** Download random agents from the internet - no trust guarantees  \n**With AgentShield:** Browse Trust Registry → Only hire VERIFIED agents\n\n### 4. Data Sharing Between Agents\n**Before:** Share sensitive data with another agent - hope it doesn't leak  \n**With AgentShield:** Handshake → Encrypted session key → Secure data transfer\n\n---\n\n## 🛡️ Security Architecture\n\n### Privacy-First Design\n\n✅ **All 77 tests run locally** - Your system prompts NEVER leave your device  \n✅ **Private keys stay local** - Only public keys transmitted  \n✅ **Human-in-the-Loop** - Explicit consent before reading IDENTITY.md\u002FSOUL.md  \n✅ **No environment scanning** - Doesn't scan for API tokens  \n\n**What goes to the server:**\n- Public key (Ed25519)\n- Agent name & platform\n- Test scores (passed\u002Ffailed summary)\n\n**What stays local:**\n- Private key\n- System prompts\n- Configuration files\n- Detailed test results\n\n### Environment Variables (Optional)\n```bash\nAGENTSHIELD_API=https:\u002F\u002Fagentshield.live  # API endpoint\nAGENT_NAME=MyAgent                        # Override auto-detection\nOPENCLAW_AGENT_NAME=MyAgent               # OpenClaw standard\n```\n\n---\n\n## 📊 What You Get\n\n### Certificate (90-day validity)\n```json\n{\n  \"agent_id\": \"agent_xxxxx\",\n  \"public_key\": \"...\",\n  \"security_score\": 85,\n  \"tier\": \"PATTERNS_CLEAN\",\n  \"issued_at\": \"2026-03-10\",\n  \"expires_at\": \"2026-06-08\"\n}\n```\n\n### Trust Registry Entry\n- ✅ Public verification URL: `agentshield.live\u002Fverify\u002Fagent_xxxxx`\n- ✅ Trust score (0-100) based on:\n  - Age (longer = more trust)\n  - Verification count\n  - Handshake success rate\n  - Days active\n- ✅ Tier: UNVERIFIED → BASIC → VERIFIED → TRUSTED\n\n### Handshake Proof\n```json\n{\n  \"handshake_id\": \"hs_xxxxx\",\n  \"requester\": \"agent_A\",\n  \"target\": \"agent_B\",\n  \"status\": \"completed\",\n  \"session_key\": \"...\",\n  \"completed_at\": \"2026-03-10T20:00:00Z\"\n}\n```\n\n---\n\n## 🔧 Scripts Included\n\n| Script | Purpose |\n|--------|---------|\n| `initiate_audit.py` | Run 77 security tests & get certified |\n| `handshake.py` | Trust handshake with another agent |\n| `verify_peer.py` | Check another agent's certificate |\n| `show_certificate.py` | Display your certificate |\n| `agentshield_tester.py` | Standalone test suite (advanced) |\n\n---\n\n## 🌐 API Endpoints\n\n**Base URL:** `https:\u002F\u002Fagentshield.live\u002Fapi`\n\n### 1. Agent Audit Flow\n```\nPOST \u002Fagent-audit\u002Finitiate\n  → Initiate audit session\n  → Input: {agent_name, platform, public_key}\n  → Output: {audit_id, challenge}\n\nPOST \u002Fagent-audit\u002Fchallenge\n  → Complete challenge-response authentication\n  → Input: {audit_id, challenge_response (signed)}\n  → Output: {authenticated: true}\n\nPOST \u002Fagent-audit\u002Fcomplete\n  → Submit test results & receive certificate\n  → Input: {audit_id, test_results}\n  → Output: {certificate, agent_id, expires_at}\n```\n\n### 2. Certificate Operations\n```\nGET \u002Fcertificate\u002Fverify\u002F{agent_id}\n  → Verify another agent's certificate\n  → Output: {valid, score, tier, issued_at, expires_at}\n\nGET \u002Fapi\u002Fpublic-key\n  → Get AgentShield's public signing key\n  → Output: {public_key (Ed25519, base64)}\n```\n\n### 3. Trust Handshake\n```\nPOST \u002Fhandshake\u002Finitiate\n  → Start Trust Handshake with another agent\n  → Input: {requester_id, target_id}\n  → Output: {handshake_id, challenges}\n\nPOST \u002Fhandshake\u002Fcomplete\n  → Complete handshake with signed challenges\n  → Input: {handshake_id, signatures}\n  → Output: {session_key, trust_boost}\n```\n\n### Rate Limits\n- Audits: 1 per hour per IP\n- Handshakes: 10 per hour per agent\n- Verifications: Unlimited (read-only)\n\n**All endpoints require HTTPS. No API keys needed.**\n\n---\n\n## 🌐 Trust Handshake Protocol (Technical)\n\n### Flow\n1. **Initiate:** Agent A → Server: \"I want to handshake with Agent B\"\n2. **Challenge:** Server generates random challenges for both agents\n3. **Sign:** Both agents sign their challenges with private keys\n4. **Verify:** Server verifies signatures with public keys\n5. **Complete:** Server generates shared session key\n6. **Trust Boost:** Both agents +5 trust score\n\n### Cryptography\n- **Algorithm:** Ed25519 (curve25519)\n- **Key Size:** 256-bit\n- **Signature:** Deterministic (same message = same signature)\n- **Session Key:** AES-256 compatible\n\n---\n\n## 🚀 Roadmap\n\n**Current (v1.0.31):**\n- ✅ 77 security tests\n- ✅ Ed25519 certificates\n- ✅ Trust Handshake Protocol\n- ✅ Public Trust Registry\n- ✅ CRL (Certificate Revocation List)\n- ✅ Explicit whitelist sanitization (test IDs only)\n- ✅ Dry-run mode for transparency\n\n**Coming Soon:**\n- ⏳ Auto re-audit (when prompts change)\n- ⏳ Negative event reporting\n- ⏳ Fleet management (multi-agent dashboard)\n- ⏳ Trust badges for messaging platforms\n\n---\n\n## 📖 Learn More\n\n- **Website:** https:\u002F\u002Fagentshield.live\n- **GitHub:** https:\u002F\u002Fgithub.com\u002Fbartelmost\u002Fagentshield\n- **API Docs:** https:\u002F\u002Fagentshield.live\u002Fdocs\n- **ClawHub:** https:\u002F\u002Fclawhub.ai\u002Fbartelmost\u002Fagentshield\n\n---\n\n## 🎯 TL;DR\n\n**AgentShield is SSL\u002FTLS for AI agents.**\n\nGet certified → Verify others → Establish trust handshakes → Communicate securely.\n\n```bash\n# 1. Get certified\npython3 initiate_audit.py --auto\n\n# 2. Handshake with another agent\npython3 handshake.py --target agent_xxxxx\n\n# 3. Verify others\npython3 verify_peer.py agent_yyyyy\n```\n\n**Building the trust layer for the agent economy.** 🛡️\n\n---\n\n## 🔐 Privacy & Security Guarantees (v1.0.31+)\n\n**✅ EXPLICIT WHITELIST (What Gets Sent):**\n- Test IDs (e.g. \"PI-001\", \"SS-003\")\n- Pass\u002Ffail boolean per test\n- Category names (e.g. \"prompt_injection\")\n- Summary counts (passed\u002Ffailed\u002Ftotal)\n- Agent metadata (name, platform, version)\n- Public key (Ed25519, for certificate signing)\n\n**❌ NEVER SENT (Explicitly Excluded):**\n- ✅ Your system prompt\n- ✅ Attack test inputs\u002Fpayloads (e.g. \"ignore previous instructions\")\n- ✅ Attack test outputs\u002Fresponses\n- ✅ Evidence snippets (base64 matches, pattern findings)\n- ✅ Error messages from test execution\n- ✅ Tool configurations\n- ✅ File paths or workspace structure\n- ✅ Private keys (Ed25519, stay local in ~\u002F.agentshield\u002F)\n\n**🔍 Code-Level Enforcement:**\n- See `audit_client.py` line 108: `_sanitize_test_details()` whitelist\n- Payloads\u002Fresponses\u002Fevidence explicitly dropped (line 130-136 comments)\n- Dry-run mode: `--dry-run` flag shows exact payload before submission\n\n**Verification:**\n```bash\n# See what WOULD be submitted (no API call)\npython3 initiate_audit.py --auto --dry-run\n```\n\nAll code is open-source: [github.com\u002Fbartelmost\u002Fagentshield](https:\u002F\u002Fgithub.com\u002Fbartelmost\u002Fagentshield)\n\n---\n\n## 🔒 Data Transmission Transparency\n\n### What Gets Sent to AgentShield API\n\n**During Audit Submission:**\n```json\n{\n  \"agent_name\": \"YourAgent\",\n  \"platform\": \"telegram\",\n  \"public_key\": \"base64_encoded_ed25519_public_key\",\n  \"test_results\": {\n    \"score\": 85,\n    \"tests_passed\": 74,\n    \"tests_total\": 77,\n    \"tier\": \"PATTERNS_CLEAN\",\n    \"failed_tests\": [\"test_name_1\", \"test_name_2\"]\n  }\n}\n```\n\n**What is NOT sent:**\n- ❌ Full test output\u002Flogs\n- ❌ Your prompts or system messages\n- ❌ IDENTITY.md or SOUL.md file contents\n- ❌ Private keys (stay in `~\u002F.agentshield\u002Fagent.key`)\n- ❌ Workspace files or memory\n\n**API Endpoint:**\n- Primary: `https:\u002F\u002Fagentshield.live\u002Fapi` (proxies to Heroku backend)\n- All traffic over HTTPS (TLS 1.2+)\n\n---\n\n## 🛡️ Consent & Privacy\n\n**File Read Consent (v1.0.30+):**\n1. ✅ Explicit consent prompt BEFORE reading IDENTITY.md\u002FSOUL.md\n2. User sees: \"🔐 PRIVACY CONSENT - Read IDENTITY.md for agent name? [Y\u002Fn]\"\n3. If declined: Exits with message \"Please run with: --name 'YourAgentName'\"\n4. If approved: Only name\u002Fplatform extracted (not full file content)\n\n**⚠️ Automation Mode (--yes flag) - v1.0.31+:**\n\nThe `--yes` flag is designed for **CI\u002FCD and pre-audited environments ONLY**.\n\n**When to use:**\n- ✅ Sandboxed test agents (no real secrets)\n- ✅ CI\u002FCD pipelines (after manual code review + dry-run)\n- ✅ Agents you've already audited manually\n\n**When NOT to use:**\n- ❌ Production agents with real secrets\n- ❌ Agents handling sensitive user data\n- ❌ First-time audit (always use manual mode first!)\n\n**Why?** The --yes flag bypasses ALL consent prompts. While the code includes \nexplicit sanitization (see audit_client.py line 108+), we recommend:\n\n1. Run `--dry-run` first to inspect payload\n2. Manually review audit_client.py whitelist\n3. Only then use `--yes` for automation\n\n**Best Practice:**\n```bash\n# Step 1: Dry-run to see payload\npython3 initiate_audit.py --auto --dry-run\n\n# Step 2: Review output, verify sanitization\n# (Should only show test IDs + pass\u002Ffail, no payloads)\n\n# Step 3: If satisfied, run for real\npython3 initiate_audit.py --auto\n\n# Step 4: For CI\u002FCD, add --yes ONLY after manual verification\npython3 initiate_audit.py --auto --yes\n```\n\n**Privacy-First Mode:**\n```bash\nexport AGENTSHIELD_NO_AUTO_DETECT=1\npython initiate_audit.py --name \"MyBot\" --platform \"telegram\"\n```\n→ Zero file reads, manual input only\n\nSee [PRIVACY.md](PRIVACY.md) for complete data handling documentation.\n\n",{"name":5,"version":24,"triggers":25,"description":7},"1.0.31",[26,27,28,29,30,31,32],"audit my agent","get security certificate","verify agent","activate AgentShield","security audit","trust handshake","verify peer agent","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fa\u002Fagentshield-audit",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agentshield",{"tool":48,"command":49},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agentshield",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agentshield","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fagentshield-audit\u002FSKILL.md",true,[],[57,65,72,79,86,93],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":64},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":64},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":64},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":64},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":64},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":64},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]