Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Move Scanner

ASecurity

Use when the user wants to audit Move smart contracts for security vulnerabilities, scan Aptos or Sui contracts for resource safety, capability leaks, or module upgrade issues, review Move-based DeFi protocols for object model and linear type violations, or analyze cross-module trust boundaries.

61 stars
0 votes
0 copies
0 views
Added 9/19/2026
securityrustgodebuggingsecurity

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add 0x-Shashi/WEB3-AUDIT-SKILLS --skill move-scanner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Move Scanner?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Move Scanner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0x-shashi-move-scanner/badge)](https://www.skillsdirectory.com/skills/0x-shashi-move-scanner)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
id: SCANNER-MOVE
title: Move Smart Contract Security Scanner
category: chain-scanner
chains: [aptos, sui]
languages: [move]
last_updated: 2026-02-24
description: >-
  Use when the user wants to audit Move smart contracts for security
  vulnerabilities, scan Aptos or Sui contracts for resource safety, capability
  leaks, or module upgrade issues, review Move-based DeFi protocols for object
  model and linear type violations, or analyze cross-module trust boundaries.
---

# Move Scanner Skill

## Purpose

Analyze Move smart contracts for security vulnerabilities on both Aptos and Sui. Move's resource-oriented programming model — with linear types, abilities system, and the borrow checker — provides stronger safety guarantees than Solidity, but introduces unique vulnerability classes around capability management, module upgrades, and cross-module trust.

## Move Security Model

Move was designed by Meta (formerly Facebook) for the Diem blockchain with safety as a first-class priority. The type system enforces:

| Safety Property | How Move Enforces It | Residual Risk |
|----------------|---------------------|---------------|
| No resource duplication | Linear types: resources can't be copied unless explicitly marked `copy` | Incorrect `copy` ability on value types |
| No resource loss | Resources must be explicitly destroyed or stored | Incorrect `drop` ability allows silent discard |
| Type safety | Static type checking + bytecode verification | Type confusion via deserialization |
| Access control | Module encapsulation + `public` vs `public(friend)` | Overly permissive friend declarations |
| Memory safety | No raw pointers, borrow checker | Logic errors in state transitions |

## Aptos vs Sui — Key Differences

| Feature | Aptos | Sui |
|---------|-------|-----|
| State model | Global storage (`move_to`, `borrow_global`) | Object model (owned, shared, immutable) |
| Execution | Sequential | Parallel (for owned objects) |
| Upgrade model | Module upgrade authority | Package upgrade via UpgradeCap |
| Initialization | `init_module` (called once on publish) | `init` function with one-time witness |
| Identity | Account addresses | Object IDs |
| Token standard | `aptos_framework::coin` | `sui::coin` with TreasuryCap |
| Randomness | `aptos_framework::randomness` | `sui::random` |

## Detection Capabilities

### Critical — Direct Fund Loss

| Vulnerability | Description | Detection Signal |
|---------------|-------------|-----------------|
| **Capability leak** | AdminCap, MintCap, or TreasuryCap stored in publicly accessible location | Capability with `store` ability + `move_to` to accessible address |
| **Missing signer check** | Entry function doesn't validate caller identity | `public entry fun` without `signer` parameter or authority check |
| **Resource duplication** | Value-holding resource has `copy` ability | `has copy` on struct holding coins or tokens |
| **Unsafe module upgrade** | Upgrade authority not protected | Upgrade policy set to `compatible` with weak authority check |
| **Unauthorized minting** | Token mint function callable by anyone | `mint` function without capability or authority gate |

### High — Significant Impact

| Vulnerability | Description | Detection Signal |
|---------------|-------------|-----------------|
| **Friend function abuse** | Friend modules can bypass internal invariants | `public(friend)` on sensitive functions with excessive friends |
| **Integer overflow** | Move integers overflow without abort by default | `+`, `*` without checked arithmetic or `assert!` bounds |
| **Object access bypass (Sui)** | Shared object manipulation or wrapped object extraction | `shared` object without proper access control |
| **Capability not burned** | One-time capabilities not destroyed after use | Init witness or admin cap not consumed |
| **Acquires annotation missing** | Resource access without proper `acquires` | Compile-time error on Aptos, but indicates design issue |

### Medium — Conditional Impact

| Vulnerability | Description | Detection Signal |
|---------------|-------------|-----------------|
| **Dynamic field overflow (Sui)** | Unbounded dynamic fields on objects | `dynamic_field::add` without count limits |
| **Missing abort codes** | Generic aborts make debugging/monitoring difficult | `abort` without code or `assert!` without message |
| **Event missing** | State changes without event emission | `move_to` / `move_from` without `event::emit` |
| **Shared object contention (Sui)** | Shared objects create bottlenecks | Frequently-accessed shared objects |
| **Phantom type confusion** | Phantom type parameters misused | `phantom` type enabling cross-type access |

## Move Type System — Abilities Audit Guide

The four abilities control what you can do with a type:

| Ability | What It Allows | Security Concern |
|--------|---------------|------------------|
| `key` | Can be stored in global storage (Aptos) or as an object (Sui) | Required for top-level storage — ensure access control |
| `store` | Can be nested inside other resources | Values with `store` can be transferred — check if intended |
| `copy` | Can be duplicated | **DANGEROUS for value types** — duplicating coins = minting |
| `drop` | Can be discarded without destruction | **Careful with capabilities** — dropping an admin cap means losing it |

### Secure Capability Pattern

```move
// SECURE: Capability without copy or drop — must be stored or explicitly destroyed
struct AdminCap has key, store {
    id: UID,  // Sui
}

// INSECURE: copy + drop allows duplication and silent discard
struct AdminCap has key, store, copy, drop {
    id: UID,
}
```

## Resources

| Resource | Description |
|----------|-------------|
| [Move Patterns](resources/move-patterns.md) | Common vulnerability patterns in Move with code examples |
| [Aptos Security](resources/aptos-security.md) | Aptos-specific security: global storage, coin module, upgrade policy |
| [Sui Security](resources/sui-security.md) | Sui-specific security: object model, shared objects, UpgradeCap |

## Workflows

| Workflow | Description |
|----------|-------------|
| [Move Audit](workflows/move-audit.md) | Unified audit workflow for Move contracts (Aptos + Sui) |

## Notable Move Ecosystem Security Incidents

| Incident | Chain | Root Cause | Impact |
|----------|-------|-----------|--------|
| Pontem DEX exploit | Aptos | Price oracle manipulation via flash loan | Fund theft |
| Tortuga staking issue | Aptos | Staking reward calculation error | Incorrect APY |
| Various Sui DeFi issues | Sui | Shared object contention + flash loan attacks | Trading manipulation |
| Module upgrade attacks | Aptos | Unprotected upgrade authority | Protocol takeover |

## Integration with Other Skills

| Skill | Connection |
|-------|-----------|
| `aptos-scanner/` | Aptos-specific patterns and audit workflow |
| `chain-guides/aptos.md` | Chain context for Aptos (validators, gas, modules) |
| `patterns/` | Cross-reference with general vulnerability categories |
| `exploit-forensics/` | Move-based exploit analysis |

## Error Code Reference

Common Move abort codes encountered during audits. Move uses numeric abort codes (`abort <code>`) or assert conditions (`assert!(<cond>, <code>)`).

### Move Standard Library Abort Codes

| Abort Code | Module | Meaning |
|-----------|--------|----------|
| `0x10001` (65537) | `vector` | Index out of bounds — `vector::borrow` or `vector::remove` |
| `0x10002` (65538) | `vector` | Vector already contains element — `vector::push_back` on fixed |
| `0x20001` (131073) | `option` | `Option::extract` on `None` — missing existence check |
| `0x20002` (131074) | `option` | `Option::borrow` on `None` — attempt to read empty option |
| `0x30001` (196609) | `string` | Invalid UTF-8 bytes |
| `0x40001` (262145) | `signer` | Incorrect signer in multi-signer scenario |
| `0x50001` (327681) | `table` | Key already exists in table |
| `0x50002` (327682) | `table` | Key not found in table |
| `0x60001` (393217) | `coin` | Insufficient coin balance |
| `0x60002` (393218) | `coin` | Coin store not registered |
| `0x60003` (393219) | `coin` | Coin store already registered |

### Aptos Framework Abort Codes

| Abort Code | Module | Meaning |
|-----------|--------|----------|
| `0x80001` (524289) | `account` | Account already exists |
| `0x80002` (524290) | `account` | Account does not exist |
| `0x80005` (524293) | `account` | Signer capability not found |
| `0x90001` (589825) | `resource_account` | Resource account already exists |
| `0xA0001` (655361) | `staking_contract` | Unauthorized — not the owner |
| `ENOT_OWNER` (varies) | Common pattern | Caller is not the resource owner — check access logic |
| `EALREADY_INITIALIZED` (varies) | Common pattern | Module/resource already initialized — check init guards |
| `ENOT_AUTHORIZED` (varies) | Common pattern | Missing authorization — check signer validation |

### Sui Framework Abort Codes

| Abort Code | Module | Meaning |
|-----------|--------|----------|
| `ENotOwner` | `object` | Caller does not own the object |
| `EEmptyInventory` | `kiosk` | Kiosk has no items |
| `EObjectNotShared` | `transfer` | Attempting shared-object operation on owned object |
| `EInvalidCap` | Various | Capability token does not match expected type/ID |
| `EDivisionByZero` | `math` | Division by zero in fixed-point math |
| `EOverflow` | `math` | Arithmetic overflow in math operation |

## Troubleshooting

| Issue | Likely Cause | Solution |
|-------|-------------|----------|
| Scanner doesn't distinguish Aptos vs Sui patterns | Generic Move analysis loaded | Load `aptos-scanner/` or `sui-scanner/` for chain-specific analysis |
| Capability leaks not detected | Scanner doesn't track linear type flow | Manually trace all `Capability` and `AdminCap` types from creation to storage |
| Module upgrade risks missed | Scanner only checks current code | Verify `UpgradeCap` ownership and upgrade policy (`immutable` vs `compatible`) |
| Resource safety violations missed | Scanner trusts the Move verifier | Move verifier catches type safety but NOT logic bugs — audit business logic |
| False positives on abort codes | Scanner flags all `abort` as errors | Custom abort codes are normal flow control — check if handled by callers |
| Object ownership confusion (Sui) | Scanner doesn't model Sui object model | Load `sui-scanner/resources/object-security.md` for ownership analysis |

Attribution

0x-Shashi0x-Shashi
View sourceMore from 0x-Shashi →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Springboot Security

Java Spring Boot 服务中关于身份验证/授权、验证、CSRF、密钥、标头、速率限制和依赖安全的 Spring Security 最佳实践。

2456590 votes

Security Review

Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.

2456590 votes

Summarize Status

Write a short, colloquial summary for a Paperclip summary slot: open with the 1–3 specific, concrete actions the reader needs to take right now to unblock the work, then a brief plain-language status, streaming progress as it works.

798220 votes

Paperclip Task Bridge

Create, comment on, update, and list Paperclip tasks from Hermes using scoped Paperclip API credentials.

798220 votes

V3 Security Overhaul

Complete security architecture overhaul for claude-flow v3. Addresses critical CVEs (CVE-1, CVE-2, CVE-3) and implements secure-by-default patterns. Use for security-first v3 implementation.

701370 votes
View all in security →