Loops Housenearsc auditor

NEAR HACKATHON
Links
Team
1 member- VIOwner
Vini Barbosa
Overview
NEAR contracts are Rust compiled to WASM, with async promises, storage staking, 1-yocto authorization and callback privacy: sharp edges that generic linters do not understand. Audits are expensive and rare, so most contracts ship unaudited, and AI coding agents increasingly call or deploy them blind. We built nearsc, a deterministic, offline security scanner for NEAR smart contracts (think Slither, but for NEAR): it parses contract source with syn (never executes it) and matches 13 NEAR-specific rules (NS001-NS013) covering callback hijacks, missing 1-yocto auth, unchecked promise results, unguarded init/migrate, storage griefing, insecure randomness, privileged setters and arbitrary promise targets, reporting text, JSON, SARIF 2.1 or a self-contained HTML page. NEAR is the platform: the rules encode NEAR protocol semantics, and the embedded knowledge base is sourced from real public NEAR audit reports and postmortems, each entry linked and confidence-labeled. Ships as a CLI (cargo install nearsc), an MCP server with five read-only tools so coding agents audit contracts before calling them, an agent skill, and a GitHub Action uploading SARIF. Baseline separation per rules Q-003/Q-005: pre-hackathon tag (v1 prompt-stack baseline) vs the in-window Rust toolkit (v0.1.2), diff linked in the README.