ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

attack-surface-mapper

Purple team — map agent's full attack surface by combining red team probes and blue team detections. Identify defense coverage gaps and prioritize hardening.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/arhadnane/attack-surface-mapper
Or

Attack Surface Mapper — Defense Coverage Matrix

Purpose

Provide a unified view of the agent's security posture by combining offensive test results (red team) with defensive detection capabilities (blue team). Identify gaps where attacks exist but no detection covers them.

Trigger

Run on:

  • Weekly scheduled review
  • After any security configuration change
  • After installing/removing skills
  • User request: "map attack surface", "security posture"

Attack Surface Categories

SurfaceComponentsExample Vectors
CHANNELSWhatsApp, Telegram, Discord, Slack, Signal, iMessagePrompt injection, phishing, social engineering
SKILLSAll installed SKILL.md filesMalicious instructions, conflicting directives, data theft
TOOLSexec, file system, browser, networkCommand injection, path traversal, SSRF
MODELSAPI endpoints (Anthropic, OpenAI, local)Prompt injection, model confusion, jailbreak
MEMORY.learnings/, .memory/, session stateMemory poisoning, persistence, false context
INTER-AGENTsessions_send, shared state, cross-sessionAgent-to-agent attack, lateral movement
SUPPLY CHAINClawHub skills, npm packages, model providersTyposquatting, compromised packages, model supply chain

Core Workflow

  1. Enumerate all active surfaces (channels, skills, tools, models, memory stores)
  2. Load red team results from .security/red-team/*.jsonl
  3. Load blue team detections from .security/audits/*.md and firewall logs
  4. For each surface × vector:
    • Red tested? YES/NO
    • Blue detected? YES/NO/PARTIAL
    • Status: COVERED | PARTIAL | GAP
  5. Risk score each gap: impact(1-5) × likelihood(1-5)
  6. Generate coverage matrix and prioritized hardening plan
  7. Output to .security/surface-map-YYYY-MM-DD.md

Coverage Matrix (example output)

SurfaceVectorRed TestedBlue DetectedStatusRisk ScorePriority
ChannelPrompt injectionYESYESCOVERED
ChannelEncoded payloadYESPARTIALPARTIAL12HIGH
SkillMalicious SKILL.mdNONOGAP20CRITICAL
MemoryPoisoningYESNOGAP16HIGH
Supply chainTyposquattingNONOGAP15HIGH

Guardrails

  • Read-only aggregation — never modifies defenses directly
  • Gap data is confidential — stored in .security/ only
  • Recommendations are advisory — require human approval to implement
  • Re-run after every hardening cycle to measure improvement

Metadata

Author@arhadnane
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-arhadnane-attack-surface-mapper": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.