Is cerbug45/agentmesh safe?
Yes. cerbug45/agentmesh is safe to install. Oathe's behavioral security audit gave the agentmesh skill by cerbug45 a trust score of 87/100 with 7 findings, none critical or high.
https://github.com/openclaw/skills/tree/main/skills/cerbug45/agentmesh
Is cerbug45/agentmesh safe to install?
AgentMesh is a well-implemented, legitimate Python library providing end-to-end encrypted peer-to-peer messaging between AI agents using industry-standard cryptography (X25519 ECDH, AES-256-GCM, Ed25519 signatures, HKDF). The SKILL.md contains no prompt injection and the install process — a simple git sparse-checkout and file copy — executes no Python code. The primary security concern is architectural rather than malicious: the library's design intentionally makes agent communications opaque to operator monitoring, and its NetworkHub feature could serve as an encrypted covert channel if an agent were separately compromised through prompt injection or another malicious skill.
What security issues were found in cerbug45/agentmesh?
Category Scores
Findings (7)
MEDIUM Encrypted Channels Intentionally Opaque to Operator Monitoring -20 ▶
AgentMesh's core design goal is to prevent anyone, including the hub operator (system owner), from reading agent message contents. While this is a legitimate privacy feature, it also means that if an agent is used maliciously, its communications via AgentMesh are unreadable to defenders monitoring network traffic. The X25519 forward secrecy further ensures past sessions cannot be decrypted even after key recovery.
Evidence: SKILL.md states 'The Hub (broker) never sees message contents' and 'Hub stores only public keys; cannot decrypt'. crypto.py implements HKDF-derived directional session keys with per-session ECDH, providing forward secrecy.
MEDIUM NetworkHub Enables Outbound Connections to Arbitrary External TCP Servers -15 ▶
The NetworkHub class accepts a configurable host:port and makes persistent TCP connections to that destination. If an agent is instructed (via legitimate user request or injected instruction from another skill) to connect to an attacker-controlled hub, it can relay encrypted agent payloads through that server. The hub server sees only metadata (sender ID, recipient ID, timestamp); payload content is encrypted end-to-end.
Evidence: hub.py: class NetworkHub: def __init__(self, host: str = 'localhost', port: int = 7700). _connect() uses socket.create_connection((self.host, self.port)). SKILL.md example shows 'hub = NetworkHub(host="192.168.1.10", port=7700)' as standard usage pattern.
MEDIUM Potential Covert C2 Infrastructure When Chained with Prompt Injection -15 ▶
AgentMesh alone is passive and benign. However, in combination with a separate prompt injection attack or a malicious co-installed skill, an attacker could direct an agent to register with an attacker-controlled NetworkHubServer and receive encrypted task instructions. The combination of legitimate-looking agent communication patterns and strong encryption creates a difficult-to-detect C2 channel.
Evidence: examples/04_llm_agents.py demonstrates full LLM agent integration over AgentMesh. The pattern of 'agent.on_message(lambda m: execute_task(m.payload))' is one import away from a functional C2 receiver if an agent is compromised.
LOW Canary Credential Files Accessed During Monitoring Window -15 ▶
Filesystem monitoring recorded read access to all six canary credential files (.env, .ssh/id_rsa, .aws/credentials, .npmrc, .docker/config.json, gcloud credentials) at both the start (pre-install, 1771926302) and end (post-install, 1771926319) of the monitoring period. Temporal analysis indicates both access batches occurred when the skill was not installed or executing; accesses are attributed to Oathe monitoring infrastructure. Canary integrity confirmed intact with no modification or exfiltration.
Evidence: inotifywait log shows OPEN/ACCESS/CLOSE events for all six canary paths at 09:45:02 and second batch at 09:45:19. auditd PATH records 268-273 and 1509-1514. Oathe canary integrity result: PASS.
LOW Agent Private Keys Serialized to Disk Without Encryption -10 ▶
The keypair_path feature, when used, writes an agent's full private key material (Ed25519 identity key + X25519 exchange key) to a JSON file using NoEncryption() serialization. This places long-term private cryptographic material in a plaintext file accessible to any process with filesystem access, persisting beyond the agent's runtime.
Evidence: crypto.py AgentKeyPair.to_dict(): self.identity_private.private_bytes(serialization.Encoding.Raw, serialization.PrivateFormat.Raw, serialization.NoEncryption()). examples/03_persistent_keys.py: Agent('alice', hub=hub, keypair_path=KEYS_DIR/'alice.json').
LOW NetworkHubServer Defaults to Binding on All Interfaces -10 ▶
When the agentmesh-hub entry point or NetworkHubServer is started, it defaults to host='0.0.0.0', exposing the broker service on all network interfaces. This makes any started hub instance reachable by external parties on the network without requiring firewall rules or explicit external exposure configuration.
Evidence: hub.py: class NetworkHubServer: def __init__(self, host: str = '0.0.0.0', port: int = 7700). hub_server.py argparse: parser.add_argument('--host', default='0.0.0.0'). hub_server start() calls srv.bind((self.host, self.port)); srv.listen(128).
INFO SKILL.md Is Clean Library Documentation -5 ▶
Comprehensive review of the SKILL.md found no prompt injection patterns, adversarial instructions, hidden content, persona manipulation, or attempts to alter agent behavior. The document is a standard open-source library README covering installation, API reference, examples, and security architecture.
Evidence: Full SKILL.md reviewed: 600+ lines of markdown documentation with tables, code blocks, and ASCII diagrams. No instructions targeting the agent host system. No 'ignore previous instructions', persona switching, or output suppression directives found.
Should I install cerbug45/agentmesh?
Oathe's verdict for cerbug45/agentmesh is SAFE with a trust score of 87/100. Recommendation: Install with caution.