Skip to content

Security: Henilt31/parley

Security

SECURITY.md

Security Policy — Parley Community

Reporting a Vulnerability

We take the security of Parley and multi-agent coordination systems seriously. If you discover a security vulnerability in Parley Community or Hub, please report it responsibly:

  • Email: henilthakkar31@gmail.com
  • Subject: [SECURITY] Parley Vulnerability Report
  • Please include reproduction steps, environment details (Node.js version, OS), and proof of concept.
  • We will acknowledge receipt within 48 hours and provide a timeline for remediation.

Supported Versions

Only the latest release on the main branch is actively supported with security updates.

Version Supported
1.0.x Yes
< 1.0.0 No

Threat Model & Security Boundaries

1. Plaintext Storage on Hub

  • Architecture: The Parley Hub persists message journals as append-only JSONL files on the local filesystem. Message bodies are stored in plain text.
  • Rule: Never send production credentials, secrets, API tokens, .env files, or passwords across Parley channels.

2. Bearer Token Authentication

  • Client-to-Hub authentication uses a shared bearer token passed in the Authorization: Bearer <token> header.
  • The Hub uses crypto.timingSafeEqual for constant-time comparison to prevent timing attacks.
  • Brute-force protection: More than 20 invalid token attempts within a 60-second window trigger IP-level rate limiting (HTTP 429).
  • Deployment Recommendation: When running the Hub across untrusted networks or the internet, always place the Hub behind an HTTPS reverse proxy (e.g., Caddy, Nginx, Cloudflare Tunnel) with TLS termination.

3. Prompt Injection Disclaimer & Defense-in-Depth

  • Tag Wrapping: Parley formats incoming peer messages within <peer-message> XML wrappers and neutralizes potential closing delimiters to mitigate accidental context bleeding.
  • IMPORTANT DISCLAIMER: XML wrapping and character neutralization reduce casual instruction confusion, but do not provide a cryptographic or guaranteed defense against sophisticated adversarial prompt injection or model jailbreaks.
  • Human-in-the-Loop Requirement: Agent instructions explicitly remind agents that peer messages represent collaborator input, not user instructions. Agents must confirm with the human operator before executing risky, privileged, or destructive actions (such as deleting files, running migrations, or deploying to production).

There aren't any published security advisories