Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Przegląd i audyt

chain-vulnerability-scanner

/chain-vulnerability-scanner

Skanuje bazy kodu blockchain, takie jak Solana czy Substrate, pod kątem podatności z potwierdzeniem osiągalności.

Repozytorium
dalcom-skills ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
10.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
8
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 10.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Skanuje bazy kodu blockchain, takie jak Solana czy Substrate, pod kątem podatności z potwierdzeniem osiągalności.

Oryginalny opis (EN)

Use when an Algorand, Cairo, Cosmos SDK, Solana, Substrate, or TON codebase needs vulnerability scanning with reachability-backed findings. Not for non-chain review: use security-review.

Jak działa

  1. Which chains this covers
  2. What you need before starting
  3. How a scan runs
  4. What each finding carries
  5. Rules that hold throughout
  6. When the scan blocks
  7. What you hand back
Sekcje z nagłówków SKILL.md, w oryginale · 70 linii, 1 853 słów
Podgląd SKILL.md
---
name: chain-vulnerability-scanner
description: 'Use when an Algorand, Cairo, Cosmos SDK, Solana, Substrate, or TON codebase needs vulnerability scanning with reachability-backed findings. Not for non-chain review: use security-review.'
disable-model-invocation: true
---

# Chain vulnerability scanner

You run one read-only scan over a blockchain codebase: classify it by ecosystem, load only that ecosystem's detector catalog, and emit severity-ranked findings tied to reachable code paths. Six ecosystems are supported, each owning one flat reference file under `references/` with its detectors, applicability gates, tool requirements, severity distinctions, and caveats. This file holds the shared routing, authority, procedure, cross-cutting rules, failure behavior, and output contract; each ecosystem reference attaches its own sub-steps, detectors, and gates to steps 3, 4, and 6.

Nothing is ever mutated: no file created, edited, moved, or deleted, and no git, build, install, deploy, or remote action. Recovery from any failure is to report it and continue or stop, never to change state to work around it.

## Which chains this covers

| Ecosystem | Source indicators | Reference file |
|---|---|---|
| Algorand | `.teal` files; `.py` importing PyTeal or the Algorand SDK (`from pyteal import *`, `from algosdk import *`, `Txn`, `Gtxn`, `Global`, `InnerTxnBuilder`, `OnComplete`, `@router.method`, `@Subroutine`); `approval_program.py` / `clear_program.py`, `contract.teal` / `signature.teal`, Beaker references | `references/algorand.md` |
| Cairo / Starknet | `.cairo` files; `Scarb.toml`; contract markers `#[contract]`, `#[storage]`, `#[external(v0)]`, `#[l1_handler]`, `#[constructor]`, `felt252`, `ContractAddress`, `get_caller_address()`, `send_message_to_l1_syscall`; optional L1 bridge Solidity contracts for cross-layer patterns | `references/cairo.md` |
| Cosmos SDK | Go source with Cosmos SDK `x/` modules and `go.mod`; `ibc-go`; Ethermint/EVM precompiles (`evmutil` / `feemarket`); Rust contracts using `cosmwasm_std` | `references/cosmos-sdk.md` |
| Solana | Solana or Anchor Rust (`.rs`) program files | `references/solana.md` |
| Substrate | Substrate FRAME pallet Rust source tree or file within a runtime | `references/substrate.md` |
| TON | FunC or Tact source (function definitions, message handlers, `recv_internal`, `recv_external`, `op::` constants, `@interface` annotations) | `references/ton.md` |

A codebase matching none of these stops here: report that no supported chain surface applies and run no catalog. Generic non-chain review belongs to `security-review`, which runs STRIDE and OWASP on any codebase. The split is that simple: supported chain ecosystem goes to this scanner, anything else goes to `security-review`.

## What you need before starting

The target codebase path is required: a path holding source for one or more supported ecosystems. The scanner classifies every supported ecosystem present under that path; for Algorand, Cairo, Cosmos SDK, Solana, or Substrate the user may name a detector subset, and all detectors run when omitted. TON instead needs a non-empty category list from `references/ton.md` (or `"all"`), with an optional severity floor that returns everything when omitted. Cairo takes optional L1 bridge Solidity contracts for evaluating L1-L2 patterns. Tealer (Algorand) and Caracal (Cairo) may be used only when already installed, as read-only analyzers on local source; their absence is recorded as a coverage gap, and installing a missing tool is a state-changing action outside read-only authority.

## How a scan runs

Work the steps in order.

1. Classify ecosystems and applicability. Search the supplied path for the source indicators in the routing table. Select every supported ecosystem present and name its reference file. When multiple top-level ecosystems coexist, scan each as one branch of the same invocation. A Cosmos branch uses its own discovery step to enumerate EVM, CosmWasm, and IBC sub-catalogs. With no supported surface, stop and report an empty-target result. The step is done when every detected ecosystem and reference is recorded, or an empty-target result is reported.

2. Load only the selected references. For each detected ecosystem branch, read its single named reference before scanning that branch, and do not load references for absent ecosystems. Each selected reference supplies the detector list, applicability and version gates, tool commands, severity definitions, rationalization rejections, and ecosystem caveats governing the branch. The step is done when every selected reference is loaded and its applicability gates (Cosmos version gate, Cairo L1-bridge presence, TON scope validation, or similar) are evaluated.

3. Inventory trust, state, and value boundaries. Enumerate transaction-field usage, trust boundaries, state-mutation sites, value-transfer paths, and external entry points, using the reference detector list as the lens. Record the file list and contract or module inventory. The step is done when the boundary inventory is recorded or an empty-target result is reported.

4. Run source and ecosystem tools. Invoke Tealer for Algorand `.teal` targets and Caracal for Cairo targets when already installed, and capture detector output. When a tool is absent or errors, record the gap in coverage notes and proceed with the manual detector sweep from the selected reference. A tool failure never invalidates manual findings. The step is done when tool output is captured for each applicable target or its absence or error is recorded.

5. Confirm semantic reachability. For every candidate finding, trace from an external entry point to the vulnerable statement: Algorand approval and smart-signature paths; Cairo `#[external(v0)]`, `#[l1_handler]`, `#[constructor]`; Cosmos consensus-critical paths (`BeginBlock` / `EndBlock` / `FinalizeBlock` / `msg_server` / `AnteHandler`); Solana instruction entrypoints; Substrate dispatchables; TON message handlers. A match reachable only from CLI, query, or test code is not a finding: record it as not-applicable ("not consensus-critical" for Cosmos, the ecosystem equivalent elsewhere). Exclude findings no caller can reach; mark ambiguous cases as unconfirmed observations, never promoted to confirmed findings. The step is done when every candidate is traced to a reachable entry point or excluded.

6. Apply severity rules. Assign severity per the reference definitions, since each ecosystem owns its own ladder and category-to-severity mapping rather than sharing a generic one. Where the reference lists rationalization rejections (Cosmos) or caveats (Cairo L1 bridge), apply them verbatim. The step is done when every finding carries a severity tag drawn from its reference.

7. Emit normalized findings. Rank findings by severity (Critical first, then High, then Medium, then Low, then Informational where the ecosystem defines it). For each confirmed finding emit the shared finding fields plus any extra ecosystem fields the reference requires. Append coverage notes listing detectors checked, detectors not applicable, tool availability, and unassessed detectors with their blockers. The step is done when findings are ranked with evidence and remediation, plus coverage notes, and the done predicate is auditable.

## What each finding carries

Every confirmed finding carries all of these: the ecosystem (`algorand`, `cairo`, `cosmos-sdk`, `solana`, `substrate`, `ton`); the component path and line range (`file:line-range`), plus module, function, or call path where the reference requires it (Substrate `module::function (lines N-M)`, Cosmos `file:line`, Solana affected files and line ranges); the named detector or pattern category from the reference (for example Algorand "Rekeying", Solana "a. Missing signer checks", TON category letter plus name); the severity from the reference ladder; the confidence (`confirmed`, `unconfirmed`, `not-applicable` for coverage notes); the reachability path from entry point to vulnerable statement, or `not-reachable` for excluded matches; the verbatim vulnerable code excerpt quoted from source; the impact (attack scenario, numbered exploit steps, fund-loss or chain-halt description per the reference); the remediation as a concrete fix with corrected code, never a bare instruction to review manually; and the validation status (`validated`, `unvalidated`, `partial`, `error`) reflecting tool-plus-manual confirmation, manual only, or an incomplete check.

Extra ecosystem fields stay attached: Algorand contract type (stateful application versus smart signature), transaction-field validation matrix status, Tealer availability; Cairo version (1.0+ versus legacy 0), L1-bridge-contracts-present flag, Caracal availability; Cosmos discovery inventory (`PLATFORM`, `IBC_ENABLED`, `SDK_VERSION`, `IBC_GO_VERSION`, `CUSTOM_MODULES`) and applicable catalog list; Solana vulnerability type letter (a through o) and failure-mode group; Substrate pattern family, call-path evidence (`module::function (lines N-M)`), completeness statement against the five families; TON scope (category list), severity floor, date.

## Rules that hold throughout

One coherent scan, not six modes. One invocation may contain several detected ecosystem branches; each branch loads only its own reference and returns findings through the same shared contract. Cosmos EVM, CosmWasm, and IBC surfaces stay sub-catalogs of the Cosmos branch.

Record missing tools and fail closed on missing version evidence. An absent optional analyzer is a recorded gap with manual detectors continuing; it is never installed. Missing version evidence for an applicability gate (undetectable Cosmos SDK version, ambiguous Cairo version) marks the affected detectors blocked rather than guessed.

Never fabricate findings. A finding needs vulnerable code at a concrete file and line, traced to a reachable entry point. Ambiguous code is an unconfirmed observation, not a finding.

Never swallow errors. A read or search failure is reported as the blocker for the affected detector, never silently treated as no findings.

Partial results stay explicit. Findings emit incrementally as confirmed, and the report is complete only when every applicable detector has been checked against every applicable target. Never report done while a target file or detector remains unexamined: list every unassessed detector with its blocker.

The six Cosmos rationalizations ("`ValidateBasic` catches this", "behind governance, so safe", "IBC counterparty is trusted", "panic cannot happen, input is validated", "rounding error is only a few tokens", "EVM precompile handles rollback") are dismissed as reasons a match is safe. Other references state their own caveats (a Cairo run with L1 bridge contracts absent marks L1-L2 patterns incomplete, not clean).

## When the scan blocks

No supported ecosystem surface means stop: report the path searched and that no supported chain source indicators were found, and fabricate nothing. An uninstalled ecosystem tool means continuing with the manual sweep and recording the absence in coverage notes, never installing it. A tool execution error is captured into coverage notes with the manual sweep proceeding; it does not invalidate manual findings. Missing version evidence for a gate reports the affected detectors or catalogs as blocked with the missing evidence named, never a guessed version. Missing Cairo L1 bridge source reports which patterns could not be fully evaluated and marks them incomplete, not clean. A detector that does not apply is recorded as checked-but-not-applicable in coverage notes rather than omitted, so the done predicate stays auditable. Ambiguous code becomes an unconfirmed observation with its location and the unresolved check, never a confirmed finding. A match off the consensus or reachable path is not a finding and is recorded as not-applicable (for example "not consensus-critical" for Cosmos CLI, query, or test code). A halting scan error (crash, OOM, tool failure stopping the run) stops everything and returns `"Scan failed: [exact error class]. No findings are returned."` No findings at all returns the empty-result statement with ecosystem, scope, and date; that is not a failure. A partial result (source size limit or mid-scan halt) returns assessed detectors with every unassessed detector and its blocker listed, including the scope-overrun warning where applicable (TON); the done predicate is never claimed while a detector stays unchecked.

## What you hand back

A chat-output report with a header (ecosystems, project path, files scanned, contract or module types identified, tool availability, ecosystem discovery inventory where defined for Cosmos); findings (one entry per confirmed vulnerability, ranked Critical, High, Medium, Low, Informational where the ecosystem defines the rung, each carrying the shared fields plus extra ecosystem fields); and coverage notes (per detector in each loaded reference: `checked`, `not-applicable`, `unconfirmed`, or `blocked`, with tool availability and execution errors; for Cosmos a completeness check listing every applicable catalog with its pattern count, confirming none were skipped). The done predicate holds when every applicable detector in every selected reference is checked and each confirmed finding carries code evidence, a reachable attack path, and remediation.
Pliki w paczce (8)
  • SKILL.md 13 KB
  • agents/openai.yaml 1 KB
  • references/algorand.md 7 KB
  • references/cairo.md 7 KB
  • references/cosmos-sdk.md 9 KB
  • references/solana.md 10 KB
  • references/substrate.md 6 KB
  • references/ton.md 8 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · gosuda/dalcom-skills100Apache-2.0
OutlineDriven/outline-driven-development90Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki 4014a5fbf597 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100substrate-vulnerability-scanner
    Skanuje pallety Substrate i Polkadot pod kątem siedmiu krytycznych podatności, np. przepełnienia arytmetycznego i błędnych wag.
  • 100algorand-vulnerability-scanner
    Sprawdza smart kontrakty Algorand w TEAL i PyTeal pod kątem 11 typowych podatności, m.in. rekeyingu, opłat transakcyjnych i kontroli dostępu.
  • 100scanning-for-vulnerabilities
    Skanuje kod, zależności i konfiguracje pod kątem podatności, w tym CVE, przez plugin vulnerability-scanner.
  • 100scanning-for-vulnerabilities
    Skanuje kod, zależności i konfiguracje pod kątem podatności, w tym CVE, przez plugin vulnerability-scanner.
  • 100vulnerability-scanner
    Analizuje podatności wg OWASP 2025, bezpieczeństwo łańcucha dostaw i powierzchnię ataku, a potem ustala priorytety ryzyka.
  • 100vulnerability-scanner
    Skanuje kod pod kątem podatności i wzorców CVE, ocenia wagę problemów i podaje wskazówki naprawcze wg OWASP Top 10.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.