# Security policy

## Reporting a vulnerability

Please don't open a public issue for a security problem. Report it privately through
[Contact us](https://instruction.md/contacts/) and choose Security. Include what you found, how to reproduce it, and
the version you used (`instruction-agents --version`).

We will acknowledge your report and keep you informed while we work on it.

## Supported versions

Fixes go into the latest release. The package is pre-1.0. To get a fix, upgrade to the newest version
(`npm install -g @instruction.md/agents@latest`). Hook settings that use `npx -y @instruction.md/agents` get it on
their next run.

## Scope

This package runs on the agent's machine, and these things are in scope:

- **Sign-ins and credentials.** It reads the instruction.md sign-in, `~/.config/instruction-md/accounts.json` and
  `~/.config/instruction-md/mcp-tokens.json` (mode 0600). It hands a server's credential only to the agent's app, and
  never prints it to a terminal.
- **Commands it runs.** It runs commands you configure (`accounts set --command`, `--from-command`,
  `INSTRUCTION_MD_SEAL_KEY_COMMAND`) and the agent command you give `run`. It runs them with your rights.
- **Policy checks.** It checks author signatures (`requireSignature`). It opens sealed instructions and conversations
  with the machine's key, and never passes ciphertext to an agent.
- **What it sends.** It reports to instruction.md: the versions sessions applied, each agent's state, and conversation
  lines, with likely secrets masked.

The encryption itself is in instruction.md's seal library. That library is beta and has not had an independent
cryptographic review yet. Report problems with it, or with the instruction.md service, the same way.
