openclaw-bastion-pro
Full prompt injection defense suite: detect injection attempts, neutralize malicious content, sanitize hidden Unicode, deploy canary tokens, quarantine compromised files, and enforce content policies via hooks. Everything in openclaw-bastion (free) plus automated countermeasures.
Why use this skill?
Defend your AI agents with OpenClaw Bastion Pro. Automated prompt injection detection, malicious content neutralization, file quarantine, and security hooks.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/atlaspa/openclaw-bastion-proWhat This Skill Does
OpenClaw Bastion Pro is a comprehensive security suite engineered to defend AI agents against prompt injection, malicious payloads, and data exfiltration. Building upon the foundation of OpenClaw Bastion, the Pro version transitions from passive detection to active, automated countermeasures. This toolset enables agents to proactively sanitize hidden Unicode characters (such as zero-width spaces or RTL overrides), neutralize identified injection patterns via specialized warning tags, and quarantine suspicious files to prevent further processing. Additionally, it features advanced defensive capabilities like canary token deployment for detecting data leaks and automated enforcement hooks that integrate directly into the agent's workflow, ensuring every read operation or shell command is validated against your security policies.
Installation
You can install this skill directly via the ClawHub command line interface. Execute the following command in your terminal:
clawhub install openclaw/skills/skills/atlaspa/openclaw-bastion-pro
Ensure that you have the necessary write permissions in your workspace directory to allow the tool to create backups and manage the .quarantine/ directory.
Use Cases
- Production Environment Hardening: Automatically secure sensitive documentation and codebases before allowing an AI agent access to them.
- Malicious Payload Mitigation: Securely handle user-submitted documents by stripping hidden characters and blocking potential injection vectors.
- Data Exfiltration Tracking: Use canary tokens to monitor for unauthorized data access and identify potential breaches immediately if a specific file is exfiltrated.
- Policy Enforcement: Automate the auditing of file read/write operations by enforcing security hooks at the session level, ensuring compliant behavior during every interaction.
Example Prompts
- "OpenClaw, run a full security sweep on the current workspace and deploy canary tokens to all sensitive configuration files."
- "I suspect a malicious injection in 'notes.md'; please quarantine the file and provide a report on the detected patterns."
- "Enable the mandatory security hooks for this session to ensure all bash commands are validated against the bastion policy."
Tips & Limitations
- Backups: Bastion Pro automatically creates .bak files before modification. Regularly clear your workspace of these temporary files if space is a concern.
- Workflow Integration: The
enforcecommand is highly effective for long-running sessions, but ensure your custom workflow tools are compatible with the generated hooks before applying them. - False Positives: While highly accurate, always review quarantined files manually before deleting them, as aggressive pattern matching may occasionally trigger on benign, complex code structures.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-atlaspa-openclaw-bastion-pro": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
openclaw-egress
Skill by atlaspa
cost-governor
Skill by atlaspa
openclaw-vault
Skill by atlaspa
openclaw-security
Unified security suite for agent workspaces. Installs, configures, and orchestrates all 11 OpenClaw security tools in one command — integrity, secrets, permissions, network, audit trail, signing, supply chain, credentials, injection defense, compliance, and incident response.
openclaw-warden
Skill by atlaspa