AuditClaw GRC
AI-native GRC assistant for OpenClaw. Manages compliance frameworks, controls, evidence, risks, policies, vendors, incidents, assets, training, vulnerabilities, access reviews, and questionnaires.
97 actions | 30 tables | 13 frameworks | 990+ controls
Security Model
- Database: SQLite at
~/.openclaw/grc/compliance.sqlite with WAL mode, owner-only permissions (0o600)
- Credentials: Stored in
~/.openclaw/grc/credentials/ with per-provider directories, owner-only permissions (0o700 dirs, 0o600 files), atomic writes, and secure deletion (overwrite with random bytes before removal). Secrets are never logged or exposed in output. See scripts/credential_store.py for implementation.
- Trust center: Generates a local HTML file only. Nothing is published externally. The user decides where to host it.
- Dependencies:
requests==2.31.0 (pinned) for HTTP header scanning. Cloud integrations optionally use boto3 (AWS) and PyJWT (Azure) via try/except -- these are not required and only activate if installed and credentials are configured.
- Scans: All security scans (headers, SSL, GDPR) run locally against user-specified URLs only.
- No telemetry: No data is sent to external endpoints. All operations are local or to user-configured cloud accounts only.
Optional Environment Variables (for cloud integrations)
These are not required for core GRC functionality. They are only used when the user explicitly sets up cloud provider integrations via companion skills:
| Variable |
Used by |
AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY |
AWS integration (via auditclaw-aws) |
GITHUB_TOKEN |
GitHub integration (via auditclaw-github) |
AZURE_SUBSCRIPTION_ID / AZURE_CLIENT_ID / AZURE_CLIENT_SECRET / AZURE_TENANT_ID |
Azure integration (via auditclaw-azure) |
GCP_PROJECT_ID / GOOGLE_APPLICATION_CREDENTIALS |
GCP integration (via auditclaw-gcp) |
GOOGLE_WORKSPACE_SA_KEY / GOOGLE_WORKSPACE_ADMIN_EMAIL |
Google Workspace (via auditclaw-idp) |
OKTA_ORG_URL / OKTA_API_TOKEN |
Okta (via auditclaw-idp) |
Setup
python3 {baseDir}/scripts/init_db.py
pip install -r {baseDir}/scripts/requirements.txt
Database: ~/.openclaw/grc/compliance.sqlite
Voice and Formatting
- Present data as formatted summaries, not raw JSON
- Keep messages under 4096 chars. Show top 5-10 rows, offer "Want the full list?"
- Emoji: ✅ complete, ⚠️ at-risk, 🔴 critical, 📊 scores, 📋 reports, 🔒 security
- Include context: "23/43 controls complete (53%)" not just "23"
- After each action, suggest the next logical step
Activation Triggers
Activate on: compliance, GRC, SOC 2, ISO 27001, HIPAA, GDPR, NIST, PCI DSS, CIS, CMMC, HITRUST, CCPA, FedRAMP, ISO 42001, SOX, ITGC, controls, evidence, risks, audit, gap analysis, security posture, compliance score, framework, security scan.
Database Operations
All queries go through: python3 {baseDir}/scripts/db_query.py --action <action> [args]
Output is JSON. Parse and present as human-readable summaries. For full action reference with all arguments: {baseDir}/references/db-actions.md
Core Actions
| Action |
Purpose |
status |
Overall compliance overview |
activate-framework --slug soc2 |
Load framework controls |
gap-analysis --framework soc2 |
Gaps with priority and effort |
score-history --framework soc2 |
Score trend over time |
list-controls --framework soc2 --status in_progress |
Filtered controls |
update-control --id 5 --status complete |
Update control (also batch: --id 1,2,3) |
add-evidence --title "..." --control-ids 1,2,3 |
Record evidence |
add-risk --title "..." --likelihood 3 --impact 4 |
Log a risk |
add-vendor --name "..." --criticality high |
Register vendor |
add-incident --title "..." --severity critical |
Log incident |
generate-report --framework soc2 |
HTML compliance report |
generate-dashboard |
Dashboard summary + Canvas HTML |
export-evidence --framework soc2 |
ZIP package for auditors |
list-companions |
Show installed companion skills |
Additional Action Categories
- Policies: add, version, submit approval, review, require acknowledgment
- Training: add modules, assign, track completion, list overdue
- Vulnerabilities: add with CVE/CVSS, track remediation
- Access Reviews: create campaigns, add items, approve/revoke
- Questionnaires: create templates, send to vendors, record answers, score
- Incidents: add actions (timeline), post-incident reviews, summary with MTTR
- Assets: register with classification, lifecycle, encryption/backup/patch status
- Alerts: add, list, acknowledge, resolve
- Integrations: add provider, test connection, setup guide, show policy
Framework Activation
Run: python3 {baseDir}/scripts/db_query.py --action activate-framework --slug <slug>
| Framework |
Slug |
Controls |
| SOC 2 Type II |
soc2 |
43 |
| ISO 27001:2022 |
iso27001 |
114 |
| HIPAA Security Rule |
hipaa |
29 |
| GDPR |
gdpr |
25 |
| NIST CSF |
nist-csf |
31 |
| PCI DSS v4.0 |
pci-dss |
30 |
| CIS Controls v8 |
cis-controls |
153 |
| CMMC 2.0 |
cmmc |
113 |
| HITRUST CSF v11 |
hitrust |
152 |
| CCPA/CPRA |
ccpa |
28 |
| FedRAMP Moderate |
fedramp |
282 |
| ISO 42001:2023 |
iso42001 |
40 |
| SOX ITGC |
sox-itgc |
50 |
Framework reference docs: {baseDir}/references/frameworks/
Compliance Score
Run: python3 {baseDir}/scripts/compliance_score.py [--framework <slug>] [--store]
Returns score (0-100), health distribution, trend, and drift detection. Use --store to save for tracking. Methodology: {baseDir}/references/scoring-methodology.md
Security Scanning
- Headers:
python3 {baseDir}/scripts/check_headers.py --url <url> (CSP, HSTS, X-Frame-Options, etc.)
- SSL/TLS:
python3 {baseDir}/scripts/check_ssl.py --domain <domain> (cert validity, chain, cipher)
- GDPR: Browser-based cookie consent check (requires Chromium)
After scans, offer to save results as evidence.
Reports and Exports
- Report:
python3 {baseDir}/scripts/generate_report.py --framework <slug> --format html
- Trust center:
python3 {baseDir}/scripts/generate_trust_center.py [--org-name "Acme Corp"] (local HTML only)
- Evidence export:
python3 {baseDir}/scripts/export_evidence.py --framework <slug>
Interactive Flows
First-Time Setup
When user asks to set up compliance: initialize DB silently, present framework options with control counts and use cases, offer gap analysis after activation.
Smart Defaults
- Evidence type: infer from context (manual/automated/integration)
- Risk assessment: suggest likelihood/impact with reasoning, confirm before saving
- Bulk operations: list exactly what will change, confirm, report summary
Proactive Suggestions
After framework activation -> offer gap analysis and cloud integration setup.
After marking controls complete -> offer score recalculation.
After scanning -> offer to save as evidence.
After scoring (< 30%) -> prioritize critical controls. (>= 90%) -> offer audit report.
Slash Commands
| Command |
Action |
/grc-score |
Quick compliance score |
/grc-gaps |
Priority gaps |
/grc-scan |
Security scan menu |
/grc-report |
Generate report |
/grc-risks |
Risk register |
/grc-incidents |
Active incidents |
/grc-trust |
Generate trust center |
Scheduled Alerts (Cron)
Register via OpenClaw cron tool:
- Evidence expiry: daily 7 AM
- Score recalc: every 6 hours
- Weekly digest: Monday 8 AM
Always include "Using auditclaw-grc skill" in cron messages for routing.
Companion Skills
Optional add-ons for automated cloud evidence collection. Evidence flows into the shared GRC database.
| Skill |
Checks |
Setup |
| auditclaw-aws |
15 AWS checks (S3, IAM, CloudTrail, VPC, etc.) |
aws configure with read-only IAM policy |
| auditclaw-github |
9 GitHub checks (branch protection, secrets, 2FA, etc.) |
GITHUB_TOKEN env var |
| auditclaw-azure |
12 Azure checks (storage, NSG, Key Vault, etc.) |
Service principal with Reader + Security Reader |
| auditclaw-gcp |
12 GCP checks (storage, firewall, IAM, etc.) |
GOOGLE_APPLICATION_CREDENTIALS with Viewer + Security Reviewer |
| auditclaw-idp |
8 identity checks (Google Workspace + Okta) |
SA key + admin email / Okta API token |
Install: clawhub install auditclaw-<provider>
If a user asks to connect a cloud provider, check list-companions first. If not installed, guide them to install it.
Integration Setup
Say "setup aws", "setup github", etc. to get step-by-step guides with exact permissions. Use "test aws connection" to verify before running scans.
Reference Files
{baseDir}/references/db-actions.md - Full action reference with all arguments
{baseDir}/references/schema.md - Database schema
{baseDir}/references/scoring-methodology.md - Scoring algorithm
{baseDir}/references/commands/ - Detailed command guides
{baseDir}/references/frameworks/ - Framework reference docs
{baseDir}/references/integrations/ - Cloud integration guides
1---
2name: auditclaw-grc
3description: AI-native GRC (Governance, Risk, and Compliance) for OpenClaw. 97 actions across 13 frameworks including SOC 2, ISO 27001, HIPAA, GDPR, NIST CSF, PCI DSS, CIS Controls, CMMC, HITRUST, CCPA, FedRAMP, ISO 42001, and SOX ITGC. Manages controls, evidence, risks, policies, vendors, incidents, assets, training, vulnerabilities, access reviews, and questionnaires. Generates compliance scores, reports, dashboards, and trust center pages. Runs security header, SSL, and GDPR scans. Connects to AWS, Azure, GCP, GitHub, and identity providers via companion skills.
4version: 1.0.0
5user-invocable: true
6homepage: https://www.auditclaw.ai
7source: https://github.com/avansaber/auditclaw-grc
8metadata:
9 source: https://skillmd.com/skills/modbender/auditclaw-grc
10 openclaw:
11 type: executable
12 install:
13 pip: scripts/requirements.txt
14 post: python3 scripts/init_db.py
15 requires:
16 bins:
17 - python3
18 anyBins:
19 - chromium
20 - google-chrome
21 - brave
22 - chromium-browser
23 env: []
24 optionalEnv:
25 - AWS_ACCESS_KEY_ID
26 - GITHUB_TOKEN
27 - AZURE_SUBSCRIPTION_ID
28 - GCP_PROJECT_ID
29 - GOOGLE_APPLICATION_CREDENTIALS
30 - GOOGLE_WORKSPACE_SA_KEY
31 - OKTA_ORG_URL
32 os:
33 - darwin
34 - linux
35---
36
37# AuditClaw GRC
38
39AI-native GRC assistant for OpenClaw. Manages compliance frameworks, controls, evidence, risks, policies, vendors, incidents, assets, training, vulnerabilities, access reviews, and questionnaires.
40
41**97 actions | 30 tables | 13 frameworks | 990+ controls**
42
43## Security Model
44
45- **Database**: SQLite at `~/.openclaw/grc/compliance.sqlite` with WAL mode, owner-only permissions (0o600)
46- **Credentials**: Stored in `~/.openclaw/grc/credentials/` with per-provider directories, owner-only permissions (0o700 dirs, 0o600 files), atomic writes, and secure deletion (overwrite with random bytes before removal). Secrets are never logged or exposed in output. See `scripts/credential_store.py` for implementation.
47- **Trust center**: Generates a local HTML file only. Nothing is published externally. The user decides where to host it.
48- **Dependencies**: `requests==2.31.0` (pinned) for HTTP header scanning. Cloud integrations optionally use `boto3` (AWS) and `PyJWT` (Azure) via try/except -- these are not required and only activate if installed and credentials are configured.
49- **Scans**: All security scans (headers, SSL, GDPR) run locally against user-specified URLs only.
50- **No telemetry**: No data is sent to external endpoints. All operations are local or to user-configured cloud accounts only.
51
52### Optional Environment Variables (for cloud integrations)
53
54These are **not required** for core GRC functionality. They are only used when the user explicitly sets up cloud provider integrations via companion skills:
55
56| Variable | Used by |
57|----------|---------|
58| `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` | AWS integration (via auditclaw-aws) |
59| `GITHUB_TOKEN` | GitHub integration (via auditclaw-github) |
60| `AZURE_SUBSCRIPTION_ID` / `AZURE_CLIENT_ID` / `AZURE_CLIENT_SECRET` / `AZURE_TENANT_ID` | Azure integration (via auditclaw-azure) |
61| `GCP_PROJECT_ID` / `GOOGLE_APPLICATION_CREDENTIALS` | GCP integration (via auditclaw-gcp) |
62| `GOOGLE_WORKSPACE_SA_KEY` / `GOOGLE_WORKSPACE_ADMIN_EMAIL` | Google Workspace (via auditclaw-idp) |
63| `OKTA_ORG_URL` / `OKTA_API_TOKEN` | Okta (via auditclaw-idp) |
64
65## Setup
66
67```bash
68python3 {baseDir}/scripts/init_db.py
69pip install -r {baseDir}/scripts/requirements.txt
70```
71
72Database: `~/.openclaw/grc/compliance.sqlite`
73
74## Voice and Formatting
75
76- Present data as formatted summaries, not raw JSON
77- Keep messages under 4096 chars. Show top 5-10 rows, offer "Want the full list?"
78- Emoji: ✅ complete, ⚠️ at-risk, 🔴 critical, 📊 scores, 📋 reports, 🔒 security
79- Include context: "23/43 controls complete (53%)" not just "23"
80- After each action, suggest the next logical step
81
82## Activation Triggers
83
84Activate on: compliance, GRC, SOC 2, ISO 27001, HIPAA, GDPR, NIST, PCI DSS, CIS, CMMC, HITRUST, CCPA, FedRAMP, ISO 42001, SOX, ITGC, controls, evidence, risks, audit, gap analysis, security posture, compliance score, framework, security scan.
85
86## Database Operations
87
88All queries go through: `python3 {baseDir}/scripts/db_query.py --action <action> [args]`
89
90Output is JSON. Parse and present as human-readable summaries. For full action reference with all arguments: `{baseDir}/references/db-actions.md`
91
92### Core Actions
93
94| Action | Purpose |
95|--------|---------|
96| `status` | Overall compliance overview |
97| `activate-framework --slug soc2` | Load framework controls |
98| `gap-analysis --framework soc2` | Gaps with priority and effort |
99| `score-history --framework soc2` | Score trend over time |
100| `list-controls --framework soc2 --status in_progress` | Filtered controls |
101| `update-control --id 5 --status complete` | Update control (also batch: `--id 1,2,3`) |
102| `add-evidence --title "..." --control-ids 1,2,3` | Record evidence |
103| `add-risk --title "..." --likelihood 3 --impact 4` | Log a risk |
104| `add-vendor --name "..." --criticality high` | Register vendor |
105| `add-incident --title "..." --severity critical` | Log incident |
106| `generate-report --framework soc2` | HTML compliance report |
107| `generate-dashboard` | Dashboard summary + Canvas HTML |
108| `export-evidence --framework soc2` | ZIP package for auditors |
109| `list-companions` | Show installed companion skills |
110
111### Additional Action Categories
112
113- **Policies**: add, version, submit approval, review, require acknowledgment
114- **Training**: add modules, assign, track completion, list overdue
115- **Vulnerabilities**: add with CVE/CVSS, track remediation
116- **Access Reviews**: create campaigns, add items, approve/revoke
117- **Questionnaires**: create templates, send to vendors, record answers, score
118- **Incidents**: add actions (timeline), post-incident reviews, summary with MTTR
119- **Assets**: register with classification, lifecycle, encryption/backup/patch status
120- **Alerts**: add, list, acknowledge, resolve
121- **Integrations**: add provider, test connection, setup guide, show policy
122
123## Framework Activation
124
125Run: `python3 {baseDir}/scripts/db_query.py --action activate-framework --slug <slug>`
126
127| Framework | Slug | Controls |
128|-----------|------|----------|
129| SOC 2 Type II | soc2 | 43 |
130| ISO 27001:2022 | iso27001 | 114 |
131| HIPAA Security Rule | hipaa | 29 |
132| GDPR | gdpr | 25 |
133| NIST CSF | nist-csf | 31 |
134| PCI DSS v4.0 | pci-dss | 30 |
135| CIS Controls v8 | cis-controls | 153 |
136| CMMC 2.0 | cmmc | 113 |
137| HITRUST CSF v11 | hitrust | 152 |
138| CCPA/CPRA | ccpa | 28 |
139| FedRAMP Moderate | fedramp | 282 |
140| ISO 42001:2023 | iso42001 | 40 |
141| SOX ITGC | sox-itgc | 50 |
142
143Framework reference docs: `{baseDir}/references/frameworks/`
144
145## Compliance Score
146
147Run: `python3 {baseDir}/scripts/compliance_score.py [--framework <slug>] [--store]`
148
149Returns score (0-100), health distribution, trend, and drift detection. Use `--store` to save for tracking. Methodology: `{baseDir}/references/scoring-methodology.md`
150
151## Security Scanning
152
153- **Headers**: `python3 {baseDir}/scripts/check_headers.py --url <url>` (CSP, HSTS, X-Frame-Options, etc.)
154- **SSL/TLS**: `python3 {baseDir}/scripts/check_ssl.py --domain <domain>` (cert validity, chain, cipher)
155- **GDPR**: Browser-based cookie consent check (requires Chromium)
156
157After scans, offer to save results as evidence.
158
159## Reports and Exports
160
161- **Report**: `python3 {baseDir}/scripts/generate_report.py --framework <slug> --format html`
162- **Trust center**: `python3 {baseDir}/scripts/generate_trust_center.py [--org-name "Acme Corp"]` (local HTML only)
163- **Evidence export**: `python3 {baseDir}/scripts/export_evidence.py --framework <slug>`
164
165## Interactive Flows
166
167### First-Time Setup
168When user asks to set up compliance: initialize DB silently, present framework options with control counts and use cases, offer gap analysis after activation.
169
170### Smart Defaults
171- Evidence type: infer from context (manual/automated/integration)
172- Risk assessment: suggest likelihood/impact with reasoning, confirm before saving
173- Bulk operations: list exactly what will change, confirm, report summary
174
175### Proactive Suggestions
176After framework activation -> offer gap analysis and cloud integration setup.
177After marking controls complete -> offer score recalculation.
178After scanning -> offer to save as evidence.
179After scoring (< 30%) -> prioritize critical controls. (>= 90%) -> offer audit report.
180
181## Slash Commands
182
183| Command | Action |
184|---------|--------|
185| `/grc-score` | Quick compliance score |
186| `/grc-gaps` | Priority gaps |
187| `/grc-scan` | Security scan menu |
188| `/grc-report` | Generate report |
189| `/grc-risks` | Risk register |
190| `/grc-incidents` | Active incidents |
191| `/grc-trust` | Generate trust center |
192
193## Scheduled Alerts (Cron)
194
195Register via OpenClaw cron tool:
196- Evidence expiry: daily 7 AM
197- Score recalc: every 6 hours
198- Weekly digest: Monday 8 AM
199
200Always include "Using auditclaw-grc skill" in cron messages for routing.
201
202## Companion Skills
203
204Optional add-ons for automated cloud evidence collection. Evidence flows into the shared GRC database.
205
206| Skill | Checks | Setup |
207|-------|--------|-------|
208| **auditclaw-aws** | 15 AWS checks (S3, IAM, CloudTrail, VPC, etc.) | `aws configure` with read-only IAM policy |
209| **auditclaw-github** | 9 GitHub checks (branch protection, secrets, 2FA, etc.) | `GITHUB_TOKEN` env var |
210| **auditclaw-azure** | 12 Azure checks (storage, NSG, Key Vault, etc.) | Service principal with Reader + Security Reader |
211| **auditclaw-gcp** | 12 GCP checks (storage, firewall, IAM, etc.) | `GOOGLE_APPLICATION_CREDENTIALS` with Viewer + Security Reviewer |
212| **auditclaw-idp** | 8 identity checks (Google Workspace + Okta) | SA key + admin email / Okta API token |
213
214Install: `clawhub install auditclaw-<provider>`
215
216If a user asks to connect a cloud provider, check `list-companions` first. If not installed, guide them to install it.
217
218### Integration Setup
219
220Say "setup aws", "setup github", etc. to get step-by-step guides with exact permissions. Use "test aws connection" to verify before running scans.
221
222## Reference Files
223
224- `{baseDir}/references/db-actions.md` - Full action reference with all arguments
225- `{baseDir}/references/schema.md` - Database schema
226- `{baseDir}/references/scoring-methodology.md` - Scoring algorithm
227- `{baseDir}/references/commands/` - Detailed command guides
228- `{baseDir}/references/frameworks/` - Framework reference docs
229- `{baseDir}/references/integrations/` - Cloud integration guides