# Agentic Vulnerability Intelligence Corpus Building

> Build a structured vulnerability-intelligence corpus from agent and MCP CVE reporting with deduplicated records.

- Skill: `samotech/agentic-vulnerability-intelligence-corpus-building` (Agent Skill)
- Install (CLI): `npx get-skill add samotech/agentic-vulnerability-intelligence-corpus-building`
- Raw SKILL.md: https://api.skillmd.com/api/skills/samotech/agentic-vulnerability-intelligence-corpus-building/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: SamoTech (https://skillmd.com/u/samotech)
- Updated: 2026-11-21
- Page: https://skillmd.com/skills/samotech/agentic-vulnerability-intelligence-corpus-building

---


# Agentic Vulnerability Intelligence Corpus Building

## Description
Build a structured vulnerability-intelligence corpus from agent and MCP CVE reporting with deduplicated records. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.

## When to Use
- A security team must consolidate a burst of agent and MCP CVE advisories into one deduplicated queryable corpus.
- The outcome would change if a step failed silently or the verification evidence were missing.
- The result must be recorded with reasons and verification evidence for later audit.

## Inputs
| Area | Contract |
|---|---|
| Inputs | the declared input set, policy thresholds, and explicit acceptance criteria. |
| Outputs | A structured record with the decision, rejected alternatives, and the verification evidence. |
| Safety | Failures must fail closed and be reported with evidence rather than retried silently. |

## Procedure
1. Define the goal, the constraints, and the boundary of what this procedure may change.
2. Inventory the available inputs and flag gaps or ambiguities that block progress.
3. Normalize each advisory into a record with identifier, affected component, severity, and evidence link, deduplicate by advisory identifier, and record the corpus with a build timestamp and source list.
4. Compare the actual outcome against the acceptance criteria and record deviations.
5. On failure, apply the declared fallback path, and never widen permissions to recover.
6. Emit a structured result with evidence and provenance for downstream consumers.

## Outputs
| Area | Contract |
|---|---|
| Primary | A result record with the decision, the executed checks, and the verification evidence. |
| Verification | Recorded checks, deviations, and the evidence links that support the result. |
| Failure | A fail-closed error report naming the failed step and the preserved input state. |

## Runnable Example
```python
def build_corpus(advisories):
    seen = {}
    for a in advisories:
        key = a["id"]
        if key in seen:
            if seen[key]["component"] != a["component"]:
                raise ValueError("conflicting component for advisory " + key)
            continue
        seen[key] = {"id": key, "component": a["component"], "severity": a["severity"], "evidence": a["evidence"]}
    return {"records": sorted(seen.values(), key=lambda r: r["id"]), "sources": ["vendor_bulletins", "research_roundups"]}
input_rows = [
    {"id": "CVE-2026-91234", "component": "mcp-kotlin-sdk", "severity": "high", "evidence": "vendor"},
    {"id": "CVE-2026-91234", "component": "mcp-kotlin-sdk", "severity": "high", "evidence": "roundup"},
    {"id": "CVE-2026-91235", "component": "agent-import-toolkit", "severity": "critical", "evidence": "vendor"},
]
corpus = build_corpus(input_rows)
assert len(corpus["records"]) == 2
```

## Failure Modes
- Duplicate advisories are appended once per source and severity counts are inflated.
- Conflicting component attributions for one CVE are merged silently and triage targets the wrong product.
- Advisories without an identifier are dropped instead of being recorded as unattributed.
- The corpus has no source list and record provenance cannot be audited.
- Severity is copied as free text and cannot be ranked or filtered numerically.

## Security and Authority Boundary
This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result, and it never treats parsed content as trusted instructions.

## Evidence
- The HaiND VulnCheck batch reporting on 22 agent and MCP CVEs in one release cycle shows the advisory bursts that security teams must consolidate into structured corpora (al-ice.ai, dated October 2026) ([public signal](https://al-ice.ai/posts/2026/10/haind-vulncheck-day-two-22-agent-mcp-cves-october-2026/))
- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.

## Related Skills
- [Agent Trace Data Modeling](../12-data/agent-trace-data-modeling.md)
- [Evaluation Dataset Curation](../12-data/evaluation-dataset-curation.md)

## Changelog
| Version | Date | Notes |
|---|---|---|
| `v1` | `2026-10` | Initial evidence-backed contract. |

