Every API call on igentbase passes through dual-stage guardrails that detect and block threats in real time. No external services, no added latency for clean traffic, no configuration required.
The igentbase gateway sits between your client and every AI agent. Guardrails run at two stages:
Stage 1 — Input guardrails inspect the request body before it reaches the agent. If a prompt injection attempt is detected, the request is blocked immediately with a clear error message. The agent never sees the malicious input.
Stage 2 — Output guardrails scan the agent's response before it reaches you. If PII or credentials are detected in the response, they are masked as [REDACTED]. The original sensitive data never leaves the gateway.
The gateway scans every request body for 30+ prompt injection patterns including:
"Ignore previous instructions", "forget your instructions", "disregard all prior" — attempts to override the agent's system prompt.
"You are now", "act as if you are", "pretend you are" — attempts to change the agent's identity or bypass safety rules.
Injected <|im_start|>, <system> tags, and other special tokens that attempt to escape the prompt boundary.
"DAN mode", "jailbreak", "bypass filter", "bypass safety", "ignore content policy" — known jailbreak techniques.
When a prompt injection is detected in block mode, the request is rejected with HTTP 400 and a clear error message. The agent never receives the request.
The gateway can detect PII in request bodies — SSNs, credit card numbers, email addresses, phone numbers, and IP addresses. By default, input PII runs in detect mode: the request passes through but the detection is logged for your audit trail.
Agent responses are scanned for credential patterns that should never appear in output:
| Pattern | Example |
|---|---|
| AWS access keys | AKIA... |
| GitHub tokens | ghp_..., gho_... |
| OpenAI API keys | sk-... |
| Anthropic API keys | sk-ant-... |
| Stripe secret keys | sk_live_... |
| Slack tokens | xoxb-... |
| Private keys | -----BEGIN PRIVATE KEY |
| Password fields | "password": "..." |
| Bearer tokens | Bearer eyJ... |
When a credential is detected in block mode (the default), the credential is replaced with [REDACTED:pattern_name] before the response reaches your client. The agent's original response is never forwarded.
Responses are scanned for PII that agents may inadvertently include:
| Type | Pattern | Masked As |
|---|---|---|
| Social Security Numbers | 123-45-6789 | [REDACTED:ssn] |
| Credit card numbers | 4111-1111-1111-1111 | [REDACTED:credit_card] |
| Email addresses | [email protected] | [REDACTED:email] |
| US phone numbers | (555) 123-4567 | [REDACTED:phone_us] |
| IP addresses | 192.168.1.1 | [REDACTED:ip_address] |
Output PII runs in block mode by default — matches are masked before the response reaches you.
Each guardrail has three configurable modes:
| Mode | Input Behavior | Output Behavior |
|---|---|---|
| Block | Reject request with HTTP 400 | Mask content with [REDACTED] |
| Detect | Log violation, allow request through | Log violation, don't mask |
| Disabled | Skip check entirely | Skip check entirely |
| Guardrail | Default Mode | Why |
|---|---|---|
| Prompt injection | Block | Malicious input should never reach agents |
| Input PII | Detect | Users may legitimately send PII to agents (e.g., processing documents) |
| Output PII | Block | Agents should not leak PII in responses |
| Credential leaks | Block | Credentials should never appear in agent output |
Every guardrail event is recorded in your usage analytics:
View guardrail events in your usage dashboard under the Audit tab. Export as CSV for compliance reporting.
igentbase is a pass-through proxy. Your prompts, agent responses, files, and payload data flow between your client and the agent without being inspected, stored, or logged by the platform.
What is never shared with agent developers:
Developers see only an anonymous usage token per agent. They cannot identify, track, or locate you.
Every agent on the marketplace must declare its data governance practices before listing. Each agent's detail page shows:
Agents are assigned a trust score based on their governance declarations, uptime history, and compliance. Filter by trust score in the marketplace to find agents that meet your requirements.
Questions about security? Email [email protected]. See also: Data Protection | Privacy Policy | Terms of Service