Skip to content

LeoYeAI/agent-master-skills / skills/agent-runtime-security

openclaw-security-hardening

Unverified

Complete OpenClaw Agent Security Hardening - Protects against data leaks (storage security) and prompt injection (runtime security). Use for initial setup, security audits, and ongoing maintenance. Covers file permissions, sensitive data isolation, Git protection, and command execution safety.

FileKindSize
CHANGELOG.mdmarkdown3.9 KB
README.mdmarkdown3.2 KB
SKILL.mdskill md15.9 KB
_meta.jsonconfig301 B
examples/SOUL-config-example.mdmarkdown3.4 KB
tests/pre-submit-check.shscript3.0 KB
tests/security-test.shscript5.5 KB

CHANGELOG.md

View on GitHub
# Changelog - OpenClaw Security Hardening Skill

All notable changes to this skill will be documented in this file.

## [1.0.0] - 2026-03-16

### Added
- **Initial release** of comprehensive OpenClaw security hardening skill
- **Static Security** (Data Protection)
  - File permissions guide (chmod 600)
  - .env file isolation for sensitive data
  - Git protection via .gitignore
  - Automated security check script
  - Optional GPG encryption guide
- **Dynamic Security** (Runtime Protection)
  - Content vs Intent detection framework
  - Three-Question Test methodology
  - Dangerous command categories and patterns
  - Safe response patterns
  - SOUL.md integration guide
- **Integrated Security Workflow**
  - Initial setup guide (5-minute quick start)
  - Ongoing maintenance procedures
  - Security incident response protocols
  - Quick reference cards
- **Testing Suite**
  - Automated security test script
  - Manual test cases for prompt injection
  - Configuration examples
  - Verification checklist

### Documentation
- SKILL.md (16,189 bytes) - Complete security framework
- README.md (3,234 bytes) - Quick start guide
- tests/security-test.sh - Automated testing
- examples/SOUL-config-example.md - Configuration samples

### Security Principles
- Defense in Depth - Multiple protection layers
- Least Privilege - Minimum necessary permissions
- Secure by Default - Safe configurations out of the box
- Continuous Improvement - Ongoing monitoring and updates

### Threat Model
**Static Security** protects against:
- Local other users (multi-user systems)
- Malware accessing WSL2 filesystem
- Accidental Git commits
- Cloud backup leaks
- Forgotten temporary files

**Dynamic Security** protects against:
- Prompt injection attacks
- Unintended command execution
- Service disruption
- Data loss
- Configuration damage

### Integration
- Combines data security (user discovery, 2026-03-16) with
  runtime security (prompt-injection-guard skill)
- Provides unified security framework for OpenClaw agents
- Compatible with existing OpenClaw configuration

### Testing
- Automated tests for file permissions, .gitignore, .env file
- Manual test cases for prompt injection scenarios
- Security checklist for SOUL.md rules

---

## Inspiration & Credits

### Based On

1. **Data Security Discovery** (User, 2026-03-16)
   - Issue: Sensitive data stored in clear text
   - Files: MEMORY.md with API secrets
   - Solution: .env isolation, chmod 600, .gitignore

2. **Prompt Injection Guard** Skill
   - Issue: Commands in text being executed
   - Real incident: March 8, 2026 (gateway stop)
   - Solution: Content vs Intent detection

3. **Security-FIX.md** (2026-03-09)
   - Previous security hardening work
   - Prompt injection attack prevention

### Contributors
- **User** - Discovered data security issue (2026-03-16)
- **R2-D2** - Created integrated security skill (2026-03-16)

### Related Skills
- `prompt-injection-guard` - Original runtime security
- `healthcheck` - System security hardening
- `find-skills` - Skill discovery

---

## Versioning Policy

This skill follows [Semantic Versioning 2.0.0](https://semver.org/):
- MAJOR version for incompatible changes
- MINOR version for backwards-compatible functionality
- PATCH version for backwards-compatible bug fixes

---

## Roadmap

### Future Enhancements

**v1.1.0 (Planned)**
- [ ] Integrate with OpenClaw startup process
- [ ] Add webhook-based security alerts
- [ ] Create interactive security setup wizard

**v1.2.0 (Planned)**
- [ ] Machine learning-based threat detection
- [ ] Automatic secret rotation
- [ ] Integration with password managers

**v2.0.0 (Future)**
- [ ] Sandboxing support
- [ ] Multi-tenant security policies
- [ ] Security audit dashboard

---

## Support

For issues, questions, or contributions:
- Documentation: See SKILL.md
- Testing: Run tests/security-test.sh
- Examples: See examples/ directory

---

## License

This skill is part of OpenClaw and follows the same license.

---

*Last updated: 2026-03-16*
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall