# Security policy

Doberman is a security tool, so I hold its own security to a high bar. If you find a
vulnerability, in Doberman itself or a way to bypass a guardrail it claims to enforce, I want to
hear about it.

## Reporting a vulnerability

**Please do not open a public issue, pull request, or Discord message for a security report.**
Public disclosure before a fix is available puts every user at risk.

Report privately through either channel:

1. **GitHub private vulnerability reporting (preferred).** Open a private advisory from the
   repository's [**Security → Report a vulnerability**](https://github.com/DobermanCore/Doberman-Core/security/advisories/new)
   tab. This keeps the report confidential and lets you and me collaborate on the fix in one place.
2. **Email.** If you can't use GitHub advisories, email **afu7568@gmail.com** with a subject line
   starting `Doberman security:`.

Please include as much of the following as you can:

- The Doberman version (`doberman --version`) and how it's deployed (MCP proxy, a lightweight
  server that fronts your tools, Claude Code hook, or OpenClaw plugin).
- A clear description of the issue and its impact.
- Step-by-step reproduction, ideally a minimal policy plus a tool call that demonstrates the
  bypass or failure.
- Relevant logs, but **redact real secrets**: a synthetic placeholder is enough to prove a leak.

## What to expect

- **Acknowledgement within 3 business days** that I received your report.
- An initial assessment (severity, whether I can reproduce it) within **7 days**.
- Ongoing updates through to a fix, and a coordinated disclosure date. With your consent I'll
  credit you in the advisory and the changelog.

Doberman is a volunteer-maintained open-source project, so timelines are best-effort. Security
reports still jump the queue ahead of features.

## Software Bill of Materials

Every [GitHub Release](https://github.com/DobermanCore/Doberman-Core/releases) ships a CycloneDX
SBOM (software bill of materials, a full list of a build's dependencies) as `sbom.json`. It lists
the exact resolved dependency set for that version, generated by `pip-audit` straight from
`pyproject.toml`. Use it to check whether a disclosed vulnerability in one of Doberman's
dependencies affects the version you're running. See
[RELEASING.md](https://docs.trydoberman.dev/project/releasing/#software-bill-of-materials-sbom) for how it's built, and to
generate one yourself.

## Supported versions

Doberman is pre-1.0 and moves fast. Security fixes land on the **latest release** (currently the
`0.x` line on [PyPI](https://pypi.org/project/doberman-core/)). Please upgrade before reporting in
case the issue is already fixed; older versions are not separately patched.

## Scope

**In scope**, anything in this repository (`doberman-core`):

- A bypass of a guardrail Doberman claims to enforce: for example a destructive command, secret
  exfiltration (data leaving the machine without permission), or a protected-path write that
  reaches a tool when the policy should have blocked it.
- A way to silently **loosen** policy without going through the human-approved path that requires
  a second proof of identity, such as a one-time code (this breaks the **raise-only** invariant:
  Doberman may tighten a rule automatically, but never loosen one silently).
- A path by which a protected agent reaches a real tool **around** the decision engine (this
  breaks the guarantee that every action must pass through one chokepoint, the decision engine, on
  its way to execution).
- Secret or credential material leaking into logs, the decision history, or any persisted state.
- Standard software vulnerabilities (injection, path traversal, unsafe deserialization, and
  similar).

**Out of scope:**

- Findings that require an attacker who **already** has local admin or write access to
  `~/.doberman/` or the host. Doberman defends the *agent*, not a fully compromised host.
- The gaps documented in [docs/LIMITATIONS.md](https://github.com/DobermanCore/Doberman-Core/blob/main/docs/LIMITATIONS.md) (also linked from the README's
  **Known limitations** section): those are defense-in-depth weaknesses I already disclose, not
  hidden ones. A *new* way to exploit one at scale is still worth reporting.
- Vulnerabilities in the third-party tool servers Doberman proxies. Please report those upstream.

## A note on Doberman's threat model

Doberman is **defense-in-depth, not a guarantee**: no single rule is airtight, and I say so
throughout the docs. A report that one heuristic can be evaded is useful but expected. The
highest-value reports show a break in a **core invariant**: fail closed (any error or unhandled
case denies the action), raise-only (a rule can tighten automatically but never loosens silently),
or the execution-path chokepoint (every action must pass through the decision engine before it can
run).
