Skip to content

Agent hook configuration access

A call refers to Claude Code settings and includes hook-related text.

Hooks can run commands automatically around agent activity. An unauthorized change can install recurring execution or weaken monitoring.

An agent adds a hook that sends environment data to a service each time a tool runs.

This is a fictional example, not an event from a customer.

The rule combines a matching settings path with the word hooks in captured parameters. The current path condition does not require a write.

Rule IDEvent categoryTierBase severity
RULE_SUPPLY_CHAIN_HOOK_CONFIG_WRITEsupply_chainCommunityHIGH

Base severity is the rule default. A finding involving content saved for later execution may have a lower severity. Your loaded rule version and event details determine the finding you see.

Inspect the before-and-after settings and each hook command. Verify whether a write occurred and who authorized it.

Reading settings for an authorized hook review can match. Installing a legitimate formatter or monitoring hook can also trigger it.

Other platforms or hook paths, unsupported parameter fields, and subprocess edits that are not represented in the tool call may be missed.

Despite the rule ID ending in WRITE, the finding can arise from a read or path reference when the hook keyword is present.

A finding describes a pattern in captured activity. Review the original call, its result, and the task context before concluding that harm occurred. Absence of a finding does not establish that an operation is safe.

Browse this category. Find a rule by ID.