Repository navigation
Conversation
Gate every completed AI agent run's outputs for leaked secrets and PII: keyed webhook trigger, Python detection engine (secret patterns, PII, Luhn-checked cards, entropy sweep), Gemini LLM-judged triage, parallel redaction + GitHub issue + Slack alert. Includes disabled schedule replay of the built-in fixture. Signed-off-by: Varshith Puli <pulivarshit@gmail.com>
Signed-off-by: Varshith Puli <pulivarshit@gmail.com>
Firewall every inbound prompt before the model sees it: a Python detection engine flags instruction overrides, prompt-extraction probes, role-play jailbreaks and delimiter smuggling, borderline hits are judged by Gemini, confirmed attacks are quarantined and escalated to GitHub and Slack. Completes the agent security triad alongside the tool-call audit and output safety gate blueprints.
MartinRst
approved these changes
Oct 20, 2026
This was referenced Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
A firewall blueprint that screens every inbound prompt to AI agents for prompt-injection attacks before the model ever sees it. It completes the agent-security triad in the gallery:
agent-tool-call-auditwatches tool calls,ai-agent-output-secrets-pii-gatewatches what the model said, and this one watches what goes in.How it works
on_agent_input) receives each inbound prompt from the agent gateway before model invocation, plus a disabled daily schedule that replays a recorded fixture as a fallback.scan_inputs) flags four attack families: instruction overrides ("ignore all previous instructions"), prompt-extraction probes ("reveal your system prompt"), role-play jailbreaks ("you are now DAN"), and delimiter smuggling ([SYSTEM],<<SYS>>).judge_finding, concurrency-capped at 3) verdicts each finding asattack/benignso coincidental wording never triggers a quarantine.inputs.quarantined.jsonl(never sent to the model), a labeled GitHub issue is opened, and Slack is paged. Clean prompts are recorded as passed for the audit trail.Verification
The full Python chain was run end-to-end against the seeded fixture: 5 prompts in, 5 findings across all four attack kinds on the 3 malicious inputs (2 critical, 2 high, 1 medium), 3 prompts quarantined with reasons attached, and zero findings on the benign inputs. YAML validated (id matches filename, all 9
extendfields, metaDescription within limits). All plugin types are ones already used by merged blueprints. A live Kestra run was not possible in this environment (no Docker/credentials), which the fixture verification covers.Checklist
flows/,extendblock present