Hook proposals
A runtime hook has to get into the service, usually as a small compose change. The hub works that change out for you: it reads the service's files, recognises each container's runtime, and proposes the hook as a change. Nothing changes until a player reviews it and approves it. vulnboxd then commits it, one commit per container, pushes it and deploys it like any other change.
The hub never adds a hook on its own.
Opening it
Vulnbox → a service → Runtime hooks →. The hub asks the agent for a snapshot of the service's checkout (the file listing, the files detection needs, the effective docker compose config, the commit) and lists each container (compose service) with its decision and why. Read again takes a fresh snapshot after the service changed.
| Decision | Meaning |
|---|---|
| proposed | a hook fits; the change is ready to review |
| applied | the compose file has the change already |
| zero-code | nothing to change: Go binaries with symbols are traced by the sensor (G1) |
| kernel | no hook needed: the kernel already links its requests (databases, plain nginx, a process per connection) |
| manual | the runtime could not be told, or no proposal fits: follow the cheat sheet |
| error | a proposal exists but cannot be applied to this compose file, with the reason |
Each proposal also says how much the hub automates: full (the hub makes the whole change), partial (it pushes the compose part; a source change stays by hand) or none.
Reviewing


Review on a container shows:
- the change as a diff, against the snapshot;
- what it does, its warnings, and what must hold for it to work;
- the source steps you make by hand, with the package's example diffs (for compiled languages);
- what it was detected from, and the alternatives to pick instead;
- a do it by hand link to the container's cheat sheet.
Everything in a snapshot comes from the service: file names, commands and snippets are shown as text.
Approving
Tick the containers and Approve N containers. The confirmation lists the commits: one per container, so one container's hook can be reverted alone. Two containers whose changes touch the same lines share a commit, and the review says so.
Then, on the vulnbox, the agent:
- checks that every file is still as in the snapshot (otherwise a conflict, nothing changed);
- checks its push policy (otherwise refused; the rules file is never touched this way);
- checks the result with
docker compose config(otherwise rejected, files put back); - commits each change, authored by you (committed), and pushes them together (pushed). A failed push is retried; the commits stay.
vulnboxd deploys the new commits at the end of the tick like any other change. If a hook breaks the service, its rollback undoes it, and a deploy bisect finds the one container's commit that did it. Only one proposal push per service runs at a time.
Reverting
The service's pushes are listed under the proposals, each with its steps. Revert on a push, or on one container's commit, queues a revert commit that the agent makes with a three-way git revert. A revert that does not apply cleanly ends as a conflict, with nothing changed.
Settings on the vulnbox
The hub cannot change what the agent allows:
agent.service_files: let the hub read a snapshot of the service's files (false: no proposals);agent.file_push,file_push_allow,file_push_deny,file_push_rate: whether and where the hub may push file changes.
Related
- Runtime hooks: which package fits your service.
- Proposal format: how a package describes its proposals.
- Cheat sheets: adding a hook by hand.