@useanvil/claude-code 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/claude-hook-core.js +64 -64
- package/dist/claude-hook.js +17 -17
- package/dist/claude-sync.js +1 -1
- package/dist/cli/claude-main.js +18 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,30 @@ All notable changes to `@useanvil/sdk` are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/), and this project adheres to
|
|
5
5
|
[Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.9.1] — Anvil for Claude Code: a second security review's fixes
|
|
8
|
+
|
|
9
|
+
A second review (2026-11-29) took up what the first left open: commands started through another program, the key that
|
|
10
|
+
signs Anvil's rules, and what passes as you. Each fix below has a test that fails on 0.9.0.
|
|
11
|
+
|
|
12
|
+
- **A command started through another program is judged as that command.** `setsid sh -c 'rm -rf ~'`,
|
|
13
|
+
`screen -dm sh -c '…'`, `launchctl asuser 501 …`, `flock`, `sandbox-exec`, `taskset`, `chrt`, `prlimit`, `unshare`
|
|
14
|
+
and `systemd-inhibit` ran what was under them unread, so a home wipe passed the floor on a fresh install. And
|
|
15
|
+
`launchctl submit -- sh -c 'rm -rf ~'` (or `… anvil-claude allow`) read as only a background job, watched in ghost
|
|
16
|
+
mode. The floor now blocks what it blocks under each of them, and a switch of Anvil's under one is held.
|
|
17
|
+
- **Anvil's seal key is held like its controls.** The key that signs your rules was guarded only as a printed `.key`
|
|
18
|
+
file: on a fresh install `cat`, `cp`, a `tar` of its folder, code that opens it, or the Read tool ran unheld, and with
|
|
19
|
+
it a rule changed out of sight would pass as Anvil's. Every call that reads, copies or packs it is held now; reading
|
|
20
|
+
Anvil's other files still runs.
|
|
21
|
+
- **An app the agent opens can't pass as you.** A program macOS opened (an `.app` the agent built, or one run from a
|
|
22
|
+
temp folder) could run `anvil-claude off` as yours. Everything you type in gives what it runs a controlling terminal,
|
|
23
|
+
stdin piped or not; what macOS opens has none, so it is refused now.
|
|
24
|
+
- **`/v1/modes` has per-key limits.** One key could loop the break-glass pair without end. Turning an action back to
|
|
25
|
+
ghost (or an invalid body) is 30 a minute per key, `anvil protect`'s registrations 600, reads 1,200; enforcing is
|
|
26
|
+
never limited.
|
|
27
|
+
- **The Claude Code plugin's MCP server starts.** Since 0.8.0 the plugin asked npm for an SDK release it doesn't have,
|
|
28
|
+
and its fix lines named a command npm's SDK lacks. It runs `@useanvil/sdk@0.5.6` now and names
|
|
29
|
+
`npx @useanvil/claude-code`.
|
|
30
|
+
|
|
7
31
|
## [0.9.0] — Anvil for Claude Code: folder locks, smart spend, a second opinion, and rules read in your own words
|
|
8
32
|
|
|
9
33
|
A rule on a folder now locks it. `model: smart` runs Sonnet with Opus advising, and `second opinion:` sends Claude to
|