GCP Agent Model Armor Shield
Agent Buildinggcp-agent-model-armor-shieldGCP Agent Model Armor Shield is an Agent Skill for agent building published in the GoogleCloudPlatform/devrel-demos repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Configures Model Armor security policies (Prompt Injection, Jailbreak, RAI filters).
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/GoogleCloudPlatform/devrel-demos/blob/HEAD/ai-ml/dev-signal/.agent/skills/gcp-agent-model-armor-shield/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/gcp-agent-model-armor-shield, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
gcp-agent-model-armor-shield
This skill configures Model Armor as an intelligent firewall for your AI agents. Grounded in security_blog.md, it protects against prompt injection, jailbreaking, malicious URLs, and links to SDP templates for data privacy.
Usage
Ask Antigravity to:
- "Configure Model Armor for my agent"
- "Add prompt injection protection to my security policy"
- "Set up RAI filters for hate speech and harassment"
- "Link my SDP templates to Model Armor via Terraform"
Protection Layers
- Detection Filters: Prompt Injection, Jailbreak, and Malicious URI detection.
- RAI Settings: Configurable confidence levels for Hate Speech, Harassment, Sexually Explicit, and Dangerous Content.
- SDP Integration: Hooks for Advanced Sensitive Data Protection (linking to Inspect/De-identify templates).
Terraform Boilerplate
Refer to resources/model_armor.tf for the standard configuration.