Skip to content

feat(rules): add runtime detection rules for AI agent action gate, kill switch, and destructive tools - #380

Open
AAH20 wants to merge 1 commit into
falcosecurity:mainfrom
AAH20:feat/ai-agent-runtime-action-gate-rules
Open

feat(rules): add runtime detection rules for AI agent action gate, kill switch, and destructive tools#380
AAH20 wants to merge 1 commit into
falcosecurity:mainfrom
AAH20:feat/ai-agent-runtime-action-gate-rules

Conversation

@AAH20

@AAH20 AAH20 commented Aug 17, 2026

Copy link
Copy Markdown

Summary

Adds runtime detection rules for AI agent process spawning, un-gated tool execution, emergency kill-switch triggering, and destructive container commands under rules/ai-agent-runtime-action-gate.yaml.

Problem Solved

As autonomous AI agents and worker pods run inside production Kubernetes containers (e.g. LangGraph, CrewAI, AutoGen workers), prompt injections or model hallucinations can trigger raw shell process execution (/bin/sh, bash, kubectl, dd) without an ActionBoundary or human-in-the-loop prove token (never_equate_intent_to_approval: true).

This rule pack provides real-time eBPF runtime detection for:

  1. AI Agent Un-Gated Interactive Shell Spawn: Detects interactive shells spawned directly from AI agent runtimes (Python, Node, Bun, Deno).
  2. AI Agent Kill-Switch File Creation or Trigger: Detects creation or modification of the Gate/Prove emergency kill-switch file (artifacts/KILL).
  3. AI Agent Destructive Command Execution: Detects high-blast radius commands (mkfs, fdisk, dd, kubectl delete) invoked by agent workers.

Upstream & Commercial Context

Maintained by A2Z SOC for container runtime governance and Kubernetes compliance audit readiness.

For teams deploying containerized AI agents requiring runtime security audits or ISO 42001 / SOC 2 readiness sprints:

@poiana

poiana commented Aug 17, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: AAH20
Once this PR has been reviewed and has the lgtm label, please assign loresuso for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana

poiana commented Aug 17, 2026

Copy link
Copy Markdown

Welcome @AAH20! It looks like this is your first PR to falcosecurity/rules 🎉

@poiana poiana added the size/M label Aug 17, 2026
…ll switch, and destructive tools

Signed-off-by: aah20 <aah20@users.noreply.github.com>
@AAH20
AAH20 force-pushed the feat/ai-agent-runtime-action-gate-rules branch from 6847853 to ef961e5 Compare August 18, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants