AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Bidirectional Filtering

skill-redhatproductsecurity-prodsec-skills-bidirectional-filtering · by RedHatProductSecurity

Deploy runtime guardrails for bidirectional prompt and response filtering in AI systems. Use when designing, building, or reviewing AI architectures that need prompt injection protection, content filtering, or input/output safety controls.

No reviews yet
0 installs
6 views
0.0% view→install

Install

$ agentstack add skill-redhatproductsecurity-prodsec-skills-bidirectional-filtering

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-redhatproductsecurity-prodsec-skills-bidirectional-filtering)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Bidirectional Filtering? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Bidirectional Filtering with Runtime Guardrails

Security Requirement

A guardrails component SHOULD be deployed between the users/applications (or API gateway) and the models. This component acts as a gateway or proxy that inspects and acts on data flowing in both directions.

This skill refers to runtime guardrails (a deployed component), not model-level safety training.

Input Direction (User/App → Model)

Incoming prompts are raw or "tainted" input. The guardrails component analyzes them and applies rule-based actions:

| Action | Description | |---|---| | Block | Discard the prompt entirely, preventing it from reaching the model | | Mask | Redact or obfuscate sensitive data (PII, credentials) before forwarding | | Modify | Rewrite the prompt to remove dangerous patterns while preserving intent | | Pass | Allow the prompt through unchanged |

Objectives:

  • Prevent specific sensitive data from reaching the model
  • Reduce the probability of prompt injection
  • Enforce content policies on inputs

Output Direction (Model → User/App)

Model responses are inspected before delivery to the user or application:

| Action | Description | |---|---| | Block | Suppress the response if it contains harmful or policy-violating content | | Mask | Redact sensitive data the model may have included in its response | | Modify | Remove or rewrite problematic portions of the response | | Pass | Deliver the response unchanged |

Objectives:

  • Prevent leakage of sensitive training data
  • Enforce content safety policies on outputs
  • Filter harmful, biased, or off-topic responses

Architecture Position

User/App → API Gateway → Guardrails → Inference Engine → Model
                            ↕ (inspects both directions)
User/App ← API Gateway ← Guardrails ← Inference Engine ← Model

Implementation Checklist

  • [ ] Deploy a guardrails component between the API gateway and the inference engine
  • [ ] Configure input rules for prompt analysis (block, mask, modify, pass)
  • [ ] Configure output rules for response analysis (block, mask, modify, pass)
  • [ ] Define PII detection and masking rules for both directions
  • [ ] Define prompt injection detection rules for the input direction
  • [ ] Define content safety policies for the output direction
  • [ ] Log all guardrail actions (blocks, masks, modifications) for audit
  • [ ] Monitor guardrail effectiveness and tune rules based on observed patterns
  • [ ] Ensure the guardrails component does not become a single point of failure (deploy with redundancy)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.