AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 30 Bitcoin

lightningd: support "filters" in plugins manifest to restrict when hooks are called.

Public commit record

What the developer wrote

Authored by Rusty Russell

73/100 · Adequate
lightningd: support "filters" in plugins manifest to restrict when hooks are called.

We're going to use this on the "rpc_command" hook, to allow xpay to specify that it
only wants to be called on "pay" commands.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds a new plugin feature called 'filters' that lets plugin authors tell Core Lightning to only call their plugin's hook under certain conditions. For example, a plugin can now say 'only call me for pay commands' on the rpc_command hook. The change is a feature addition, not a bug fix, and there is no direct evidence in the commit that it addresses a security vulnerability.

Recommended action

Treat as a normal feature commit. Review the follow-up usage of filters on rpc_command to ensure the filter field is correctly populated and cannot be bypassed by a caller. No immediate security action is required based solely on this commit.

Security signals we found

01

New hook filtering mechanism reduces hook invocation surface, which can limit unintended plugin behavior

02

Validation added for filter type and array contents (strings or unsigned integers)

03

No memory safety fixes, bounds checks beyond parsing, or privilege changes visible

04

No vendor disclosure or CVE references present

Risk score

Why this scored 30/100

Our methodology →
Potential impact 5/30
Exploitability 5/25
Stealth signal 5/15
Affected reach 5/15
Confidence 7/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.