Skip to content

Proposal: Runtime Verification Filter for Plugin Function Execution #14196

Description

@Correctover

Summary

We'd like to propose integrating CCS runtime verification as a kernel-level filter in Semantic Kernel's plugin execution pipeline, and invite maintainers to evaluate feasibility.

What CCS Does

CCS intercepts and verifies every function/plugin call before execution:

  • RCE detection — blocks shell injection, command chaining
  • SSRF protection — validates outbound URLs against allowlists
  • Credential hijack prevention — detects token/secret exfiltration
  • Overhead: ~22μs per check (P50), deterministic

Integration Point

SK's FunctionInvocationFilter pattern is the ideal integration point:

# Proposed usage:
kernel = Kernel()
kernel.add_function_invocation_filter(CCSVerificationFilter())

This follows SK's existing filter architecture — no new concepts, just a new filter implementation.

How It Complements SK's Existing Architecture

Component Scope
SK Filters (existing) Logging, telemetry, retry, error handling
CCS Filter (proposed) Pre-execution security verification

They're complementary — CCS adds a security dimension to the existing filter pipeline.

Background

Ask

  1. Is there appetite for a security verification filter in SK?
  2. Does the FunctionInvocationFilter pattern work, or is there a better integration point?
  3. Any concerns about performance or compatibility?

Happy to provide a PoC filter implementation.

— Correctover team | correctover.com | Correctover = AI Reliability™

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions