/complisec:compliance-hubfrom complisec
Centralizes compliance records (audit logs, incidents, changes, vendor assessments) into immutable cloud storage. Configures S3/Azure/GCP object lock and lifecycle rules for NIS2 retention.
Ships in complisec. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
All complisec records in one place: audit logs, incidents, changes, vendor assessments. Immutable, retained, searchable.
| Source skill | Record type | Local path | Format |
|---|---|---|---|
| audit-logging | Agent actions + decisions | .compliance/audit.log | JSONL (one event per line) |
| incident-management | Incident lifecycle records | .compliance/incidents/INC-*.json | JSON |
| change-management | Change records | .compliance/changes/CHG-*.json | JSON |
| vendor-risk | Vendor assessments | .compliance/vendors/VND-*.json | JSON |
Agents run in ephemeral environments. Local .compliance/ files get lost when sessions end, containers restart, or machines change. For NIS2 compliance, audit trails must be retained 18-24 months for essential entities. You need central collection.
Append-only, immutable, pennies per GB. No server to manage.
| Provider | Tier | Price/GB/month | Immutability | Best for |
|---|---|---|---|---|
| AWS S3 Glacier Deep Archive | Archive | $0.001 | Object Lock (WORM) | Long-term retention, audit evidence |
| Azure Blob Archive | Archive | $0.001 | Immutable Blob Storage | Same — Azure shops |
| GCP Cloud Storage Archive | Archive | $0.0012 | Retention policies + bucket lock | Same — GCP shops |
| AWS S3 Standard | Hot | $0.023 | Object Lock | Active logs that need instant access |
| Azure Blob Hot | Hot | $0.018 | Immutable policies | Same — Azure shops |
| Backblaze B2 | Hot | $0.006 | Object Lock | Budget option, S3-compatible API |
For complisec: use hot storage for active records (incidents in progress, recent audit log) and lifecycle-rule them to archive after 90 days. Compliance retention at archive tier costs ~$0.01/year per GB.
# Create bucket with versioning + object lock (immutable)
aws s3api create-bucket \
--bucket my-org-compliance-logs \
--region eu-west-1 \
--create-bucket-configuration LocationConstraint=eu-west-1
aws s3api put-bucket-versioning \
--bucket my-org-compliance-logs \
--versioning-configuration Status=Enabled
aws s3api put-object-lock-configuration \
--bucket my-org-compliance-logs \
--object-lock-configuration '{"ObjectLockEnabled":"Enabled","Rule":{"DefaultRetention":{"Mode":"COMPLIANCE","Years":2}}}'
# Lifecycle: move to Glacier after 90 days
aws s3api put-bucket-lifecycle-configuration \
--bucket my-org-compliance-logs \
--lifecycle-configuration '{
"Rules": [{"ID":"archive","Status":"Enabled","Filter":{},"Transitions":[{"Days":90,"StorageClass":"DEEP_ARCHIVE"}]}]
}'
# Create storage account + container with immutability
az storage account create \
--name myorgcompliance \
--resource-group my-rg \
--location westeurope \
--sku Standard_LRS
az storage container create \
--name compliance-logs \
--account-name myorgcompliance
az storage container immutability-policy create \
--account-name myorgcompliance \
--container-name compliance-logs \
--period 730
gcloud storage buckets create gs://my-org-compliance-logs \
--location=europe-west4 \
--default-storage-class=STANDARD
# Set retention policy (730 days = 2 years)
gcloud storage buckets update gs://my-org-compliance-logs \
--retention-period=730d
Set these environment variables (never hardcode in skills):
# In your .env or CI/CD secrets
COMPLISEC_LOG_PROVIDER=s3 # s3 | azure | gcp | local
COMPLISEC_LOG_BUCKET=my-org-compliance-logs
COMPLISEC_LOG_REGION=eu-west-1
# AWS credentials (use IAM roles in production, not keys)
AWS_ACCESS_KEY_ID=<from-secrets-manager>
AWS_SECRET_ACCESS_KEY=<from-secrets-manager>
The agent writes compliance records as JSON files using the cloud provider's CLI or SDK:
# Push an incident record
aws s3 cp .compliance/incidents/INC-2026-001.json \
s3://my-org-compliance-logs/incidents/INC-2026-001.json
# Push audit log (append daily)
aws s3 cp .compliance/audit.log \
s3://my-org-compliance-logs/audit/2026-03-16.log
For continuous sync, run the push from a SessionEnd hook so it happens at every
session boundary instead of whenever someone remembers. This one belongs in the
user's own .claude/settings.json rather than in the plugin — the bucket, region
and credentials are site-specific:
{
"hooks": {
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/push-compliance-records.sh",
"timeout": 120
}
]
}
]
}
}
#!/usr/bin/env bash
# .claude/hooks/push-compliance-records.sh
set -uo pipefail
cd "${CLAUDE_PROJECT_DIR:-$PWD}" || exit 0
[ -d .compliance ] || exit 0
# Sync all compliance records to cloud. profile.json stays local — it is
# configuration, not a record, and it describes the org's crown jewels.
aws s3 sync .compliance/ "s3://${COMPLISEC_LOG_BUCKET}/" \
--exclude "profile.json" --exclude "skills/*"
Exit 0 on every path: a sync failure should not break the user's editor. If the push is business-critical, alert from the bucket side (a missing daily object) — not from the hook.
A cron job is the alternative when sessions are long-running or the machine is frequently offline at session end.
The audit events themselves are already written by hooks that ship with complisec — see
skills/audit-logging/SKILL.md. This hook only moves records that already exist off the machine.
During onboarding, capture the log storage config:
"logging": {
"provider": "s3",
"bucket": "my-org-compliance-logs",
"region": "eu-west-1",
"retention_years": 2,
"immutable": true
}
When you need dashboards, search, alerting, and multi-user access — not just storage.
Open source, self-hostable, EU cloud option. ISO 27001 + SOC2 + GDPR certified.
What it gives you: structured traces of every agent action, searchable, with dashboard. Maps well to complisec audit events.
Getting started — 5 minutes:
# 1. Sign up at langfuse.com (free tier: 50k traces/month)
# 2. Create a project, get your keys
# 3. Set environment variables
export LANGFUSE_PUBLIC_KEY=pk-lf-... # from your project settings
export LANGFUSE_SECRET_KEY=sk-lf-... # from your project settings
export LANGFUSE_BASE_URL=https://cloud.langfuse.com
# 4. Install the SDK
pip install langfuse
# Minimal example: log a complisec audit event to Langfuse
from langfuse import Langfuse
langfuse = Langfuse()
# Create a trace (= one compliance session)
trace = langfuse.trace(name="complisec-session", metadata={"org": "Acme BV"})
# Log an audit event as a span
trace.span(
name="incident-detected",
metadata={
"incident_id": "INC-2026-001",
"severity": "P1-critical",
"affected_assets": ["Azure tenant"],
"notification_deadline": "2026-03-17T02:15:00Z"
}
)
# Log a decision
trace.span(
name="vendor-rejected",
metadata={
"vendor": "ShadyAPI Inc",
"reason": "No DPA, hosting outside EU",
"policy_ref": "NIS2 Art. 21(2)(d)"
}
)
langfuse.flush()
Self-hosted (for orgs that can't use SaaS):
# Docker Compose — runs Langfuse on your own infra
git clone https://github.com/langfuse/langfuse.git
cd langfuse
docker compose up -d
# → available at http://localhost:3000
Pricing: Free tier (50k traces/month) → Pro $59/month → Enterprise custom.
What it gives you: agent traces with full chain visibility, evaluation framework, prompt versioning.
export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_API_KEY=ls-...
export LANGCHAIN_PROJECT=complisec
Works automatically if your agent uses LangChain/LangGraph — every chain execution gets traced.
Pricing: Free (5k traces) → $39/month → Enterprise.
| Feature | Langfuse | LangSmith | Cloud storage (S3/Azure/GCP) |
|---|---|---|---|
| Cost | Free → $59/mo | Free → $39/mo | ~$0.001/GB/mo |
| Dashboard | Yes | Yes | No (use Athena/BigQuery to query) |
| Search | Full-text | Full-text | Only with additional tooling |
| Self-host | Yes | No | N/A (you own the bucket) |
| EU hosting | Yes | No | Yes (choose region) |
| Immutability | No | No | Yes (Object Lock/WORM) |
| Alerting | Basic | Basic | CloudWatch/Azure Monitor |
| Audit-grade | Good (SOC2, ISO27001) | Basic | Excellent (WORM compliance) |
Honest recommendation:
logging section in .compliance/profile.json. Keys in environment variables — NEVER in the profile.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
compliance, audit-log, log-retention, immutable-storage, siem
npx claudepluginhub eyesecurity/skills --plugin complisec12 skills in this plugin
/audit-loggingACTIVATE on ANY request that involves writing, generating, reviewing, modifying, or outputting source code in any programming language — Python, JavaScript, TypeScript, Go, Java, Rust, C#, SQL, Terraform, or any other. This includes functions, endpoints, scripts, migrations, infrastructure-as-code, config files with logic, and code snippets in responses. Every piece of code the LLM produces must include structured audit logging for security-relevant operations. Also activate when the user asks about audit logs, compliance logging, or traceability. Ensures NIS2 and ISO 27001 compliant logging (structured, no string interpolation, no secrets in logs).
/change-managementACTIVATE when making changes that affect critical assets: deployments, database migrations, schema changes, Terraform/IaC modifications, access control or IAM changes, firewall rules, TLS certificates, environment variables on production, or dependency upgrades. Ensures every change is documented, impact-assessed, approved, and reversible per NIS2 Art. 21(2)(e) and ISO 27001 A.8.32.
/complisecEU compliance enforcement for AI agents — NIS2, GDPR, ISO 27001. ACTIVATE on EVERY prompt. Reads .compliance/profile.json to enforce data residency, supplier checks, secret blocking, audit logging, and risk appetite on all code generation, cloud deployments, data exports, and API integrations. Invoke /complisec setup to create the org profile.
/data-sensitivityACTIVATE when the user's message contains secrets, credentials, API keys, passwords, tokens, private keys, AWS access keys, connection strings, database URLs, national IDs (BSN/SSN), or any sensitive data — even if the user did not ask about security. Also activate when asked to classify data, scan for PII, or review code for credential exposure. This skill BLOCKS secrets in prompts and enforces EU data protection rules (GDPR, NIS2, ISO 27001).
/eu-compliance-directivesCurated index of official EU and national (member state) compliance sources, including directives, transposition laws, and regulatory guidance. ACTIVATE when answering questions about EU regulations or national implementations (NIS2, GDPR, DORA, AI Act, Cyberbeveiligingswet, etc.) — especially differences between EU directives and local laws, applicability, enforcement, timelines, or legal obligations. Also activate for conceptual or comparative questions ("what changed", "how does NL differ from the EU directive"). Always verify current legal status and ground answers in authoritative sources instead of relying on general knowledge.
/incident-managementACTIVATE when a security incident, data breach, outage, or suspicious event is reported, discussed, or detected. Guides structured incident documentation through the full lifecycle: detection → triage → response → notification → recovery → lessons learned. Ensures NIS2 24/72h/30d notification deadlines and GDPR 72h breach reporting are met. Also activate when the user asks about incident response procedures, or breach notification obligations.
Other plugins' skills for the same job