Skip to content
Back to skills

Khaos Multi Model Validation

ASecurity

Multi-model voting protocol for finding validation — submit evidence to a second LLM provider, parse verdict, cast vote via khaos_cast_model_vote, only create finding with 2+ confirms from distinct providers.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentssqltestinggitsecurity

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add henriqqw/Khaos-Pentester-Agent --skill khaos-multi-model-validation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Khaos Multi Model Validation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Khaos Multi Model Validation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/henriqqw-khaos-multi-model-validation-khaos-pentester-agent/badge)](https://www.skillsdirectory.com/skills/henriqqw-khaos-multi-model-validation-khaos-pentester-agent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: khaos-multi-model-validation
description: Multi-model voting protocol for finding validation — submit evidence to a second LLM provider, parse verdict, cast vote via khaos_cast_model_vote, only create finding with 2+ confirms from distinct providers.
metadata:
  khaos:
    tool_ids: []
    wordlist_ids: []
    stages: [validation, exploitation]
    source_type: original
    source:
      repository: https://github.com/henriqqw/Khaos
      revision: embedded
      path: khaos-multi-model-validation/SKILL.md
      license: not-declared
      reviewed_by: Khaos maintainers
      review_note: Inspirado no modelo NeuroSploit de second-opinion voting antes de criar findings.
---

# Multi-Model Validation Protocol

**Purpose:** Prevent false-positive findings by requiring independent confirmation from a second LLM provider before `khaos_create_finding`.
**Gate:** Finding requires ≥ 2 `confirm` votes from **distinct** providers before creation.

---

## When to apply

Apply this protocol to every finding with severity ≥ HIGH before calling `khaos_create_finding`.
For MEDIUM findings: optional but recommended.
For CRITICAL findings: mandatory — 2 confirms required, no exceptions.

---

## Step 1 — Prepare evidence package

Assemble the raw evidence for the second provider:

```
evidence_package = {
  "endpoint": "<method> <url>",
  "finding_class": "<BOLA|SQLi|XSS|SSRF|RCE|...>",
  "severity": "<CRITICAL|HIGH|MEDIUM>",
  "reproduction_steps": [
    "1. Send: <request>",
    "2. Observe: <response diff or OOB callback>",
    "3. Repeat: confirmed N times"
  ],
  "request_sample": "<truncated to 500 chars>",
  "response_sample": "<truncated to 500 chars — no full secrets>",
  "oob_evidence": "<callback URL + params received, if applicable>"
}
```

**Do not include:** full session tokens, complete credentials, or PII beyond what proves the vulnerability.

---

## Step 2 — Submit to second provider

Send the evidence to a **different** LLM provider than the one used for initial analysis.

Prompt template for second provider:
```
You are a security analyst reviewing a reported vulnerability finding.
Analyze the evidence below and return a JSON verdict:
{"verdict": "confirm|deny|unclear", "reasoning": "<1-2 sentences>", "confidence": 0.0-1.0}

EVIDENCE:
[paste evidence_package JSON]

Rules:
- "confirm": evidence clearly demonstrates the vulnerability as described
- "deny": evidence does not support the finding or is insufficient
- "unclear": evidence is ambiguous — cannot confirm or deny
```

---

## Step 3 — Parse verdict and cast vote

Parse the second provider's response and cast the vote:

```
# Extract verdict from provider response
verdict = parse_json_from_response(provider_response)

# Cast vote via khaos_cast_model_vote:
khaos_cast_model_vote(
  assessment_id = <id>,
  finding_id = <finding_id>,   # pre-created draft or hypothesis ID
  vote = verdict["verdict"],   # "confirm" | "deny" | "unclear"
  provider = "<provider_name>",  # e.g. "openai", "gemini", "mistral"
  reasoning = verdict["reasoning"],
  confidence = verdict["confidence"]
)
```

---

## Step 4 — Evaluate vote count

After casting votes from both providers:

```
# Check vote summary
khaos_model_vote_summary(assessment_id, finding_id)

# Decision logic:
confirms = count where vote == "confirm"
distinct_providers = set of provider names with "confirm"

if confirms >= 2 AND len(distinct_providers) >= 2:
    → proceed to khaos_create_finding
elif confirms == 1 AND any vote == "deny":
    → reject finding; update hypothesis to status="rejected"
elif confirms == 1 AND all votes in {"confirm", "unclear"}:
    → collect more evidence; re-test with different payload
else:
    → reject finding; note ambiguity in khaos_note_set
```

---

## Step 5 — Create finding (only on 2+ confirms)

```
khaos_create_finding(
  assessment_id = <id>,
  title = "<title>",
  severity = "<severity>",
  evidence = "<evidence_package summary>",
  # ... other fields
)
```

After `khaos_create_finding`, link to any active attack chain:
```
khaos_link_finding_to_chain(finding_id, chain_id)
```

---

## Tally reference

```
khaos_tally_model_votes(assessment_id)
```

Returns aggregate counts across all findings — use to monitor overall false-positive rate.

---

## Provider selection guidance

| Primary provider | Recommended second provider |
|---|---|
| claude-* | openai/gpt-4o or gemini-1.5-pro |
| openai/* | claude-* or mistral |
| gemini/* | claude-* or openai |

Avoid using same-family models (e.g., claude-sonnet + claude-opus) — they share training and may produce correlated false positives.

---

## Fast validation mode

In lab/training environments with `fast_validation: true` in authorization plan:
- 1 confirm from any provider is sufficient
- Multi-model voting is still recommended but not gate-blocking
- Set `fast_validation: true` via `khaos_set_authorization_plan`

---

## ⛔ Prohibition table

| Proibido | Alternativa |
|---|---|
| `khaos_create_finding` com 0 votos de segundo provider em finding HIGH+ | Sempre coletar voto de provider distinto antes de criar finding |
| Usar dois modelos da mesma família como "distinct providers" | claude-sonnet + claude-opus = mesmo provider family; não conta como distinto |
| Incluir credenciais completas no evidence_package para o segundo provider | Truncar: AccessKeyId primeiros 8 chars, session tokens primeiros 10 chars |
| Criar finding com voto "deny" de qualquer provider sem nova evidência | Voto deny = hipótese volta para testing; recolher evidência adicional |
| Pular multi-model validation em findings CRITICAL | CRITICAL exige 2 confirms — sem exceções fora de fast_validation mode |

## ✓ Completion self-check

- [ ] Evidence package preparado com request/response truncados (sem secrets completos)
- [ ] Voto do provider primário já registrado (via análise existente ou `khaos_cast_model_vote`)
- [ ] Voto do segundo provider (distinto) coletado e registrado via `khaos_cast_model_vote`
- [ ] `khaos_model_vote_summary` verificado: ≥ 2 confirms de providers distintos
- [ ] `khaos_create_finding` chamado apenas após gate de votação aprovado
- [ ] Finding linkado à attack chain ativa (se aplicável)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.