smart-contract-vulnerabilities

Identify high-impact security issues in Solidity and EVM smart contracts.

2|Updated May 15, 2026
One-click install
npx skills add https://github.com/lNwNl/Methodos --skill smart-contract-vulnerabilities
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-contract-vulnerabilities
Source: https://github.com/lNwNl/Methodos/tree/main/docker/opencode/skills/smart-contract-vulnerabilities
Command: npx skills add https://github.com/lNwNl/Methodos --skill smart-contract-vulnerabilities

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you systematically identify common smart contract vulnerability classes in Solidity/EVM code so you can prioritize fixes and reduce exploit risk.

Core Features & Use Cases

  • Reentrancy coverage: Detect classic, cross-function, cross-contract, and read-only reentrancy patterns, including callback-induced stale-state issues.
  • Arithmetic and safety checks: Assess overflow/underflow risks across Solidity versions, including unchecked{}, unsafe casting, assembly/ABI corner cases, and timelock wrapping.
  • Auth, call semantics, and protocol attacks: Review access control pitfalls (tx.origin, delegatecall, unprotected initializers), randomness manipulation, signature replay, MEV/front-running exposure, selfdestruct force-send behavior, CREATE2 deterministic address abuse, and flash-loan manipulation.
  • Practical hardening guidance: Provide mitigations such as CEI, reentrancy guards, nonce/chainId enforcement, TWAP/oracle best practices, commit-reveal with safeguards, and storage layout slot collision checks for proxies.

Quick Start

Use this skill to audit a Solidity contract named Vault.sol for reentrancy, overflow/underflow, access control, delegatecall, signature replay, and MEV risks, and then output a prioritized list of findings with recommended fixes.

Frequently Asked Questions about smart-contract-vulnerabilities

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit a Solidity contract for reentrancy and access control vulnerabilities?

To audit a Solidity contract for reentrancy and access control vulnerabilities, review callback-induced stale-state issues, cross-function reentrancy, and unprotected initializers. This process identifies exploit risks and generates a prioritized list of findings with concrete mitigation fixes.

What is read-only reentrancy in smart contracts and how do I detect it?

Read-only reentrancy in smart contracts is a stale-state issue where callbacks manipulate external contracts during view function calls. Detect it by tracing callback execution paths and verifying state consistency across contract interactions to ensure accurate data reads.

How do I check proxy contracts for storage slot collisions and CREATE2 exploitation?

Check proxy contracts for storage slot collisions and CREATE2 exploitation by analyzing storage layout inheritance and deterministic address deployment patterns. This verifies function selector integrity and prevents unauthorized code execution through collision attacks.

Can this skill assess MEV and flash-loan manipulation risks in DeFi contracts?

Yes, this skill assesses MEV and flash-loan manipulation risks in DeFi contracts. It evaluates front-running exposure, oracle dependency vulnerabilities, and price manipulation vectors to provide mitigation strategies like TWAP integration and commit-reveal safeguards.

How do I prevent signature replay attacks in EVM smart contracts?

Prevent signature replay attacks in EVM smart contracts by enforcing nonce and chainId validation during signature verification. This ensures cryptographic signatures are bound to specific transactions and cannot be reused across different chains or contract states.

Does this security audit cover arithmetic overflow and unchecked block risks across Solidity versions?

Yes, this security audit covers arithmetic overflow and unchecked block risks across Solidity versions. It evaluates unsafe casting, assembly corner cases, and timelock wrapping within unchecked blocks to identify potential overflow and underflow vulnerabilities.