Skip to content

Security: peg/snare

SECURITY.md

Security Policy

Reporting a Vulnerability

If you find a security vulnerability in Snare, please do not open a public GitHub issue.

Report it privately by emailing: security@snare.sh

Include:

  • Description of the vulnerability
  • Steps to reproduce
  • Impact assessment
  • Any suggested fixes

We aim to acknowledge reports within 48 hours and provide a fix or mitigation within 14 days for critical issues.

Scope

In scope:

  • Snare CLI (internal/, cmd/)
  • Cloudflare Worker (worker/)
  • Install script (install.sh)
  • Snare.sh API endpoints

Out of scope:

  • Theoretical attacks that require physical access to the snare state folder
  • The fact that a local process that knows snare's format can read the state folder and find canary locations (by design — see Known Limitations in ARCHITECTURE.md)
  • Social engineering attacks against users

Security Model

What Snare protects against: Detection of compromised AI agents attempting credential use.

What Snare does not protect against: An attacker with local filesystem access who targets snare's state folder. The manifest is encrypted, with its key in the same folder, so it does not read as a list of bait. A local process that knows snare's format can still find the canaries: it can decrypt the manifest, search the home directory for the callback_base in config.json (every planted URL contains it), or compare the pre-plant copies in backups/ with the files they are named after. Protect the state folder with file integrity monitoring if this is a concern.

Privacy guarantee: The callback endpoint (/<path>/<token>) never reads, stores, or forwards request bodies. Only header-derived metadata is stored (IP, user agent, timestamp, ASN). This applies to the managed snare.sh worker. Self-hosted deployments are controlled by the operator.

Device secret: The CLI generates a 256-bit device secret in config.json in the state folder (0600 permissions). This secret authenticates API calls to snare.sh. If compromised, run snare rotate immediately.

Supported Versions

Version Supported
latest release ✅
older releases ❌

We maintain only the latest release. Please update before reporting issues.

There aren't any published security advisories