pub struct ToolOutputInjectionScanner { /* private fields */ }Expand description
Scans tool outputs for indirect prompt injection before they enter LLM context. Registered as a PostToolUse hook — logs warnings but does not block (to avoid false positives on legitimate code containing injection-like patterns).
Implementations§
Trait Implementations§
Source§impl HookHandler for ToolOutputInjectionScanner
impl HookHandler for ToolOutputInjectionScanner
Source§fn handle(&self, event: &HookEvent) -> HookResponse
fn handle(&self, event: &HookEvent) -> HookResponse
Handle a hook event
Auto Trait Implementations§
impl Freeze for ToolOutputInjectionScanner
impl RefUnwindSafe for ToolOutputInjectionScanner
impl Send for ToolOutputInjectionScanner
impl Sync for ToolOutputInjectionScanner
impl Unpin for ToolOutputInjectionScanner
impl UnsafeUnpin for ToolOutputInjectionScanner
impl UnwindSafe for ToolOutputInjectionScanner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more