Skip to content
Back to skills

Agentshield

ASecurity

Trust Infrastructure for AI Agents - Like SSL/TLS for agent-to-agent communication. 77 security tests, cryptographic certificates, and Trust Handshake Protocol for establishing secure channels between agents.

  • 33 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
securitypythonrustgobashgitapidatabasebackendsecuritydocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill agentshield --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agentshield?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agentshield
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-agentshield/badge)](https://www.skillsdirectory.com/skills/dvcrn-agentshield)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agentshield
description: "Trust Infrastructure for AI Agents - Like SSL/TLS for agent-to-agent communication. 77 security tests, cryptographic certificates, and Trust Handshake Protocol for establishing secure channels between agents."
---

# AgentShield - Trust Infrastructure for AI Agents

**The trust layer for the agent economy. Like SSL/TLS, but for AI agents.**

๐Ÿ” **Cryptographic Identity** - Ed25519 signing keys  
๐Ÿค **Trust Handshake Protocol** - Mutual verification before communication  
๐Ÿ“‹ **Public Trust Registry** - Reputation scores & track records  
โœ… **77 Security Tests** - Comprehensive vulnerability assessment

**๐Ÿ”’ Privacy Disclosure:** See [PRIVACY.md](PRIVACY.md) for detailed data handling information.

---

## ๐ŸŽฏ The Problem

Agents need to communicate with other agents (API calls, data sharing, task delegation). But **how do you know if another agent is trustworthy?**

- Has it been compromised?
- Is it leaking data?
- Can you trust its responses?

Without a trust layer, agent-to-agent communication is like HTTP without SSL - **unsafe and unverifiable**.

---

## ๐Ÿ’ก The Solution: Trust Infrastructure

AgentShield provides the **trust layer** for agent-to-agent communication:

### 1. Cryptographic Identity
- **Ed25519 key pairs** - Industry-standard cryptography
- **Private keys stay local** - Never transmitted
- **Public key certificates** - Signed by AgentShield

### 2. Security Audit (77 Tests)
**52 Live Attack Vectors:**
- Prompt injection (15 variants)
- Encoding exploits (Base64, ROT13, Hex, Unicode)
- Multi-language attacks (Chinese, Russian, Arabic, Japanese, German, Korean)
- Social engineering (emotional appeals, authority pressure, flattery)
- System prompt extraction attempts

**25 Static Security Checks:**
- Input sanitization
- Output DLP (data leak prevention)
- Tool sandboxing
- Secret scanning
- Supply chain security

**Result:** Security score (0-100) + Tier (VULNERABLE โ†’ HARDENED)

### 3. Trust Handshake Protocol
**Agent A wants to communicate with Agent B:**

```bash
# Step 1: Both agents get certified
python3 initiate_audit.py --auto

# Step 2: Agent A initiates handshake with Agent B
python3 handshake.py --target agent_B_id

# Step 3: Both agents sign challenges
# (Automatic in v1.0.13+)

# Step 4: Receive shared session key
# โ†’ Now you can communicate securely!
```

**What you get:**
- โœ… Mutual verification (both agents are who they claim to be)
- โœ… Shared session key (for encrypted communication)
- โœ… Trust score boost (+5 for successful handshakes)
- โœ… Public track record (handshake history)

### 4. Public Trust Registry
- **Searchable database** of all certified agents
- **Reputation scores** based on audits, handshakes, and time
- **Trust tiers:** UNVERIFIED โ†’ BASIC โ†’ VERIFIED โ†’ TRUSTED
- **Revocation list (CRL)** - Compromised agents get flagged

---

## ๐Ÿš€ Quick Start

### Install
```bash
clawhub install agentshield
cd ~/.openclaw/workspace/skills/agentshield*/
```

### Get Certified (77 Security Tests)
```bash
# Auto-detect agent name from IDENTITY.md/SOUL.md
python3 initiate_audit.py --auto

# Or manual:
python3 initiate_audit.py --name "MyAgent" --platform telegram
```

**Output:**
- โœ… Agent ID: `agent_xxxxx`
- โœ… Security Score: XX/100
- โœ… Tier: PATTERNS_CLEAN / HARDENED / etc.
- โœ… Certificate (90-day validity)

### Verify Another Agent
```bash
python3 verify_peer.py agent_yyyyy
```

### Trust Handshake with Another Agent
```bash
# Initiate handshake
python3 handshake.py --target agent_yyyyy

# Result: Shared session key for encrypted communication
```

---

## ๐Ÿ“‹ Use Cases

### 1. Agent-to-Agent API Calls
**Before:** Agent A calls Agent B's API - no way to verify B's integrity  
**With AgentShield:** Agent A checks Agent B's certificate + handshake โ†’ Verified communication

### 2. Multi-Agent Task Delegation
**Before:** Orchestrator spawns sub-agents - can't verify they're safe  
**With AgentShield:** All sub-agents certified โ†’ Orchestrator knows they're trusted

### 3. Agent Marketplaces
**Before:** Download random agents from the internet - no trust guarantees  
**With AgentShield:** Browse Trust Registry โ†’ Only hire VERIFIED agents

### 4. Data Sharing Between Agents
**Before:** Share sensitive data with another agent - hope it doesn't leak  
**With AgentShield:** Handshake โ†’ Encrypted session key โ†’ Secure data transfer

---

## ๐Ÿ›ก๏ธ Security Architecture

### Privacy-First Design

โœ… **All 77 tests run locally** - Your system prompts NEVER leave your device  
โœ… **Private keys stay local** - Only public keys transmitted  
โœ… **Human-in-the-Loop** - Explicit consent before reading IDENTITY.md/SOUL.md  
โœ… **No environment scanning** - Doesn't scan for API tokens  

**What goes to the server:**
- Public key (Ed25519)
- Agent name & platform
- Test scores (passed/failed summary)

**What stays local:**
- Private key
- System prompts
- Configuration files
- Detailed test results

### Environment Variables (Optional)
```bash
AGENTSHIELD_API=https://agentshield.live  # API endpoint
AGENT_NAME=MyAgent                        # Override auto-detection
OPENCLAW_AGENT_NAME=MyAgent               # OpenClaw standard
```

---

## ๐Ÿ“Š What You Get

### Certificate (90-day validity)
```json
{
  "agent_id": "agent_xxxxx",
  "public_key": "...",
  "security_score": 85,
  "tier": "PATTERNS_CLEAN",
  "issued_at": "2026-03-10",
  "expires_at": "2026-06-08"
}
```

### Trust Registry Entry
- โœ… Public verification URL: `agentshield.live/verify/agent_xxxxx`
- โœ… Trust score (0-100) based on:
  - Age (longer = more trust)
  - Verification count
  - Handshake success rate
  - Days active
- โœ… Tier: UNVERIFIED โ†’ BASIC โ†’ VERIFIED โ†’ TRUSTED

### Handshake Proof
```json
{
  "handshake_id": "hs_xxxxx",
  "requester": "agent_A",
  "target": "agent_B",
  "status": "completed",
  "session_key": "...",
  "completed_at": "2026-03-10T20:00:00Z"
}
```

---

## ๐Ÿ”ง Scripts Included

| Script | Purpose |
|--------|---------|
| `initiate_audit.py` | Run 77 security tests & get certified |
| `handshake.py` | Trust handshake with another agent |
| `verify_peer.py` | Check another agent's certificate |
| `show_certificate.py` | Display your certificate |
| `agentshield_tester.py` | Standalone test suite (advanced) |

---

## ๐ŸŒ Trust Handshake Protocol (Technical)

### Flow
1. **Initiate:** Agent A โ†’ Server: "I want to handshake with Agent B"
2. **Challenge:** Server generates random challenges for both agents
3. **Sign:** Both agents sign their challenges with private keys
4. **Verify:** Server verifies signatures with public keys
5. **Complete:** Server generates shared session key
6. **Trust Boost:** Both agents +5 trust score

### Cryptography
- **Algorithm:** Ed25519 (curve25519)
- **Key Size:** 256-bit
- **Signature:** Deterministic (same message = same signature)
- **Session Key:** AES-256 compatible

---

## ๐Ÿš€ Roadmap

**Current (v1.0.13):**
- โœ… 77 security tests
- โœ… Ed25519 certificates
- โœ… Trust Handshake Protocol
- โœ… Public Trust Registry
- โœ… CRL (Certificate Revocation List)

**Coming Soon:**
- โณ Auto re-audit (when prompts change)
- โณ Negative event reporting
- โณ Fleet management (multi-agent dashboard)
- โณ Trust badges for messaging platforms

---

## ๐Ÿ“– Learn More

- **Website:** https://agentshield.live
- **GitHub:** https://github.com/bartelmost/agentshield
- **API Docs:** https://agentshield.live/docs
- **ClawHub:** https://clawhub.ai/bartelmost/agentshield

---

## ๐ŸŽฏ TL;DR

**AgentShield is SSL/TLS for AI agents.**

Get certified โ†’ Verify others โ†’ Establish trust handshakes โ†’ Communicate securely.

```bash
# 1. Get certified
python3 initiate_audit.py --auto

# 2. Handshake with another agent
python3 handshake.py --target agent_xxxxx

# 3. Verify others
python3 verify_peer.py agent_yyyyy
```

**Building the trust layer for the agent economy.** ๐Ÿ›ก๏ธ

---

## ๐Ÿ”’ Data Transmission Transparency

### What Gets Sent to AgentShield API

**During Audit Submission:**
```json
{
  "agent_name": "YourAgent",
  "platform": "telegram",
  "public_key": "base64_encoded_ed25519_public_key",
  "test_results": {
    "score": 85,
    "tests_passed": 74,
    "tests_total": 77,
    "tier": "PATTERNS_CLEAN",
    "failed_tests": ["test_name_1", "test_name_2"]
  }
}
```

**What is NOT sent:**
- โŒ Full test output/logs
- โŒ Your prompts or system messages
- โŒ IDENTITY.md or SOUL.md file contents
- โŒ Private keys (stay in `~/.agentshield/agent.key`)
- โŒ Workspace files or memory

**API Endpoint:**
- Primary: `https://agentshield.live/api` (proxies to Heroku backend)
- All traffic over HTTPS (TLS 1.2+)

---

## ๐Ÿ›ก๏ธ Consent & Privacy

**File Read Consent:**
1. Skill requests permission BEFORE reading IDENTITY.md/SOUL.md
2. User sees: "Read IDENTITY.md for agent name? [Y/n]"
3. If declined: Manual mode (`--name` flag)
4. If approved: Only name/platform extracted (not full file content)

**Privacy-First Mode:**
```bash
export AGENTSHIELD_NO_AUTO_DETECT=1
python initiate_audit.py --name "MyBot" --platform "telegram"
```
โ†’ Zero file reads, manual input only

See [PRIVACY.md](PRIVACY.md) for complete data handling documentation.

Files in this skill

  • CHANGELOG.md3 KB
  • DEPLOY.md6.1 KB
  • DEVELOPER_NOTE.md4.1 KB
  • INSTALLATION.md5.7 KB
  • PRIVACY.md1.9 KB
  • QUICKSTART.md5 KB
  • README.md8.5 KB
  • SKILL.md9 KB
  • TESTING.md6.9 KB
  • __init__.py684 B
  • agentshield_tester.py33.9 KB
  • audit_client.py5.7 KB
  • clawhub.json4.4 KB
  • complete_handshake.py2.4 KB
  • echoleak_test.py10.4 KB
  • handshake.py3.1 KB
  • initiate_audit.py16.3 KB
  • input_sanitizer.py10.8 KB
  • output_dlp.py13 KB
  • requirements.txt38 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security โ†’

Comments

Loading commentsโ€ฆ

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.