Skip to content
OpenSmartRoute
Skillv1.0.0

severity

Data-driven severity classification for smart contract audit findings with statistical breakdowns and 30 representative examples per level from top audit firms. Use when assigning severity to findings

by majiayu000(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from majiayu000/claude-skill-registry-data (security/severity/SKILL.md). Install upstream with npx skills add majiayu000/claude-skill-registry-data --skill severity. Copyright stays with the author.

Severity Classification

Purpose

This directory provides data-driven severity classification for smart contract audit findings. Each file contains statistical breakdowns of real vulnerability types at that severity level, plus 30 representative examples from top audit firms (Code4rena, Cyfrin, Spearbit, Pashov, MixBytes, Shieldify, OtterSec, Quantstamp).

Severity Levels

Level File Finding Count % of All Scoring Weight
HIGH high-severity.md 8,022 15.88% 5 points
MEDIUM medium-severity.md 13,814 27.34% 2 points
LOW low-severity.md 25,272 50.01% 1 point
GAS gas-optimizations.md 3,422 6.77% 0 points

Scoring weights reference the Audit Scoring System efficiency metric.

How to Use

  1. Classifying a finding → Use the Severity Scoring Decision Tree to determine the correct level
  2. Validating severity → Compare your finding against the top vulnerability types table in each file
  3. Writing the report → Reference representative examples for formatting and depth expectations
  4. Scoring the audit → Apply severity weights from AUDIT_SCORING.md to calculate composite scores

Quick Severity Decision Tree

Is there direct fund loss possible?
├── YES → Is it unconditional (anyone can exploit)?
│   ├── YES → CRITICAL (not in this dataset — escalate)
│   └── NO (needs conditions) → HIGH
└── NO → Is there indirect fund loss or protocol damage?
    ├── YES → Is the attack practical?
    │   ├── YES → HIGH
    │   └── NO (theoretical) → MEDIUM
    └── NO → Is there any functional impact?
        ├── YES → LOW
        └── NO → GAS / INFORMATIONAL

Full decision tree with scoring matrix: patterns/severity-scoring.md

Cross-Severity Vulnerability Migration

Some vulnerability types appear across multiple severity levels depending on conditions. Key crossovers:

Vulnerability Type HIGH Count MEDIUM Count LOW Count Notes
Business Logic 100 127 7 Most common at every level
Validation 52 75 Severity depends on what's unvalidated
Reentrancy 39 20 HIGH when funds at risk, MEDIUM when state-only
Oracle 24 34 HIGH for price manipulation, MEDIUM for staleness
Access Control 27 19 2 HIGH for privilege escalation, LOW for missing events
Front-Running 39 67 MEDIUM unless sandwich causes fund loss
DOS 23 43 HIGH for permanent, MEDIUM for temporary
Overflow/Underflow 21 22 Severity = magnitude of miscalculation

Related Skills

Prerequisites

Severity classification requires understanding of the Severity Scoring Decision Tree. The decision tree MUST be consulted before assigning final severity.

Validation

To verify severity classification consistency, compare against historical benchmarks:

# Validate severity distribution against expected ranges
def test_severity_distribution(findings):
    high_pct = len([f for f in findings if f.severity == 'HIGH']) / len(findings)
    assert 0.10 <= high_pct <= 0.25, f"HIGH findings at {high_pct:.0%} (expected 10-25%)"
    print(f"Severity distribution validated: {high_pct:.0%} HIGH")
# Expected severity distribution benchmarks
benchmarks:
  high: 15.88%    # 8,022 of 50,530 findings
  medium: 27.34%  # 13,814 findings
  low: 50.01%     # 25,272 findings
  gas: 6.77%      # 3,422 findings
# Verify severity files are complete
for f in high-severity.md medium-severity.md low-severity.md gas-optimizations.md; do
  echo "Checking $f: $(wc -l < $f) lines"
done

Behavior Guidelines

  • Every finding MUST have a severity classification before submission
  • The decision tree is required for borderline HIGH/MEDIUM cases
  • Auditors may optionally include a severity justification paragraph for contested findings
  • GAS findings ALWAYS have 0 scoring weight in composite metrics

References

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/majiayu000-claude-skill-registry-data-severity/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

majiayu000-claude-skill-registry-data-severity.ocm.jsonjson
{
  "ocm": "1",
  "id": "majiayu000-claude-skill-registry-data-severity",
  "kind": "skill",
  "name": "severity",
  "description": "Data-driven severity classification for smart contract audit findings with statistical breakdowns and 30 representative examples per level from top audit firms. Use when assigning severity to findings, justifying classifications with historical data, or calibrating severity judgment against Code4rena, Sherlock, and Cyfrin benchmarks.",
  "publisher": "majiayu000",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "legal"
    ],
    "tags": [
      "skill-md",
      "severity",
      "classification",
      "findings",
      "methodology",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Data-driven severity classification for smart contract audit findings with statistical breakdowns and 30 representative examples per level from top audit firms. Use when assigning severity to findings, justifying classifications with historical data, or calibrating severity judgment against Code4rena, Sherlock, and Cyfrin benchmarks."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/majiayu000/claude-skill-registry-data",
      "path": "security/severity/SKILL.md",
      "ref": "f863c11651055f498e1466492dc2a0d95721d2d5",
      "url": "https://github.com/majiayu000/claude-skill-registry-data/blob/f863c11651055f498e1466492dc2a0d95721d2d5/security/severity/SKILL.md",
      "key": "majiayu000/claude-skill-registry-data/security/severity/SKILL.md"
    }
  },
  "instructions": "# Severity Classification\n\n## Purpose\n\nThis directory provides data-driven severity classification for smart contract audit findings. Each file contains statistical breakdowns of real vulnerability types at that severity level, plus 30 representative examples from top audit firms (Code4rena, Cyfrin, Spearbit, Pashov, MixBytes, Shieldify, OtterSec, Quantstamp).\n\n## Severity Levels\n\n| Level | File | Finding Count | % of All | Scoring Weight |\n|-------|------|---------------|----------|----------------|\n| HIGH | [high-severity.md](high-severity.md) | 8,022 | 15.88% | 5 points |\n| MEDIUM | [medium",
  "cost": {
    "context_tokens": 1217
  }
}

Fetch it by URL: GET /api/v1/registry/majiayu000-claude-skill-registry-data-severity/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.