# Send Firm Security Audit to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "firm-security-audit",
    "name": "Firm Security Audit",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/romainsantoli-web/firm-security-audit",
    "canonicalUrl": "https://clawhub.ai/romainsantoli-web/firm-security-audit",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/firm-security-audit",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=firm-security-audit",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "firm-security-audit",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T07:11:22.858Z",
      "expiresAt": "2026-05-06T07:11:22.858Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=firm-security-audit",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=firm-security-audit",
        "contentDisposition": "attachment; filename=\"firm-security-audit-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "firm-security-audit"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/firm-security-audit"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/firm-security-audit",
    "downloadUrl": "https://openagent3.xyz/downloads/firm-security-audit",
    "agentUrl": "https://openagent3.xyz/skills/firm-security-audit/agent",
    "manifestUrl": "https://openagent3.xyz/skills/firm-security-audit/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/firm-security-audit/agent.md"
  }
}
```
## Documentation

### firm-security-audit

⚠️ Contenu généré par IA — validation par un expert sécurité requise avant toute modification en production.

### Purpose

Ce skill est la porte de sécurité obligatoire avant tout déploiement ou exposition
réseau d'un Gateway OpenClaw. Il comble directement les gaps critiques identifiés dans
openclaw/openclaw depuis l'extérieur du repo, sans modifier le code upstream.

Gaps couverts :

GapSévéritéOutilC1 — SQL injection /api/metrics/databaseCRITICALopenclaw_security_scanC2 — sandbox.mode: off par défautCRITICALopenclaw_sandbox_auditC3 — Session secret régénéré au restartHIGHopenclaw_session_config_checkH8 — Absence de rate limiting sur WS GatewayHIGHopenclaw_rate_limit_checkM10 — Matrix E2EE status non documentéMEDIUMchecklist documentaire

### Tools activés

openclaw_security_scan         — détection SQL injection (C1)
openclaw_sandbox_audit         — vérification sandbox config (C2)
openclaw_session_config_check  — contrôle session secret persistance (C3)
openclaw_rate_limit_check      — vérification rate limiter (H8)
firm_export_slack_digest       — notification équipe si CRITICAL trouvé

### Séquence d'audit obligatoire

À exécuter avant chaque déploiement ou avant activation de Tailscale Funnel.

### Étape 1 — Sandbox audit (C2, priorité CRITIQUE)

{
  "tool": "openclaw_sandbox_audit",
  "args": {
    "config_path": "/path/to/.openclaw/config.yaml"
  }
}

Attendu : severity: OK avec sandbox_mode: non-main ou all
Si CRITICAL : appliquer le fix_snippet fourni avant de continuer

### Étape 2 — SQL injection scan (C1)

{
  "tool": "openclaw_security_scan",
  "args": {
    "target_path": "/path/to/openclaw/src/api",
    "endpoint": "/api/metrics/database",
    "scan_depth": 4
  }
}

Attendu : critical_count: 0, high_count: 0
Si CRITICAL ou HIGH : appliquer remediation_by_severity avant déploiement

### Étape 3 — Session secret check (C3)

{
  "tool": "openclaw_session_config_check",
  "args": {
    "compose_file_path": "/path/to/docker-compose.yml",
    "env_file_path": "/path/to/.env"
  }
}

Attendu : session_secret_found: true
Si HIGH : appliquer fix_docker ou fix_env fourni

### Étape 4 — Rate limiting check (H8)

{
  "tool": "openclaw_rate_limit_check",
  "args": {
    "gateway_config_path": "/path/to/.openclaw/config.yaml",
    "check_funnel": true
  }
}

Attendu : rate_limiter_detected: true OU funnel_active: false
Si CRITICAL (funnel actif sans rate limiter) : appliquer fix_nginx ou fix_caddy immédiatement

### Étape 5 — Alerte si CRITICAL (automatique)

Si un des audits retourne severity: CRITICAL, dispatcher automatiquement via :

{
  "tool": "firm_export_slack_digest",
  "args": {
    "objective": "Security audit — CRITICAL finding",
    "content": "<résultats de l'audit>",
    "channel": "#security-alerts"
  }
}

### Checklist Matrix E2EE (M10)

Vérification documentaire manuelle (pas d'outil disponible — trop repo-spécifique) :

Le CONTRIBUTING.md OpenClaw mentionne-t-il le statut E2EE Matrix ?
 Les utilisateurs Matrix privacy-sensitive sont-ils informés de l'absence d'E2EE ?
 Un ADR (firm_adr_generate) documente-t-il la décision E2EE Matrix ?

### C2 — Sandbox fix (ajout dans config.yaml)

agents:
  defaults:
    sandbox:
      mode: non-main   # ← activer isolation Docker pour sessions non-main
  sessions:
    main:
      sandbox:
        mode: off      # main conserve accès hôte (intentionnel)

### C3 — Session secret (docker-compose.yml)

services:
  openclaw:
    environment:
      SESSION_SECRET: "${SESSION_SECRET:?SESSION_SECRET env var required}"
# Générer : openssl rand -base64 48 > /etc/openclaw/session.secret

### H8 — Rate limiting Nginx

limit_req_zone $binary_remote_addr zone=openclaw:10m rate=30r/m;
server {
    location /ws {
        limit_req zone=openclaw burst=10 nodelay;
        proxy_pass http://127.0.0.1:18789;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

### Escalade

RésultatActionTout OKDéploiement autorisé — log de l'audit dans docs/security-audits/CRITICAL sandbox ou SQLBloquer le déploiement — fix obligatoire avant pushCRITICAL rate limit + funnelDésactiver Funnel et appliquer Nginx/Caddy immédiatementHIGH session secretAppliquer fix + redémarrer le container avec le secret persistant

### Intégration CI/CD

Ajouter dans le workflow GitHub Actions :

- name: Security audit (firm-security-audit)
  run: |
    # Depuis le CTO ou Engineering agent avant chaque deploy
    openclaw skill run firm-security-audit \\
      --config $OPENCLAW_CONFIG_PATH \\
      --fail-on CRITICAL,HIGH

OpenClaw gaps : C1 (#29951 SQL injection), C2 (sandbox off), C3 (#29955 session secret), H8 (no rate limit)

### 💎 Support

Si ce skill vous est utile, vous pouvez soutenir le développement :

Dogecoin : DQBggqFNWsRNTPb6kkiwppnMo1Hm8edfWq
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: romainsantoli-web
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T07:11:22.858Z
- Expires at: 2026-05-06T07:11:22.858Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/firm-security-audit)
- [Send to Agent page](https://openagent3.xyz/skills/firm-security-audit/agent)
- [JSON manifest](https://openagent3.xyz/skills/firm-security-audit/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/firm-security-audit/agent.md)
- [Download page](https://openagent3.xyz/downloads/firm-security-audit)