defi-attack-patterns

Analyze DeFi protocols for flash loan, oracle, MEV, and governance attack patterns.

120|8|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/Prohao42/aimy-skill --skill defi-attack-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defi-attack-patterns
Source: https://github.com/Prohao42/aimy-skill/tree/main/ai-mian/hack-skills/skills/defi-attack-patterns
Command: npx skills add https://github.com/Prohao42/aimy-skill --skill defi-attack-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides an expert guide to identifying and analyzing vulnerabilities and attacks in decentralized finance protocols, focusing on DeFi-specific attack patterns.

Core Features & Use Cases

  • DeFi Vulnerability Analysis: Offers in-depth analysis of common DeFi vulnerabilities, including flash loan attacks, price oracle manipulation, and governance exploits.
  • Attack Pattern Identification: Identifies specific attack vectors such as sandwich attacks, MEV extraction, and precision loss exploitation.
  • Use Case: Ideal for security professionals and developers in the DeFi space to understand potential threats and implement preventive measures.

Quick Start

Analyze the security of a DeFi protocol using the defi-attack-patterns skill.

Frequently Asked Questions about defi-attack-patterns

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

FAQPage Schema
How do I analyze smart contracts for flash loan attack vectors?

To analyze smart contracts for flash loan attack vectors, this Skill identifies DeFi-specific vulnerabilities by examining protocol mechanics and dependencies. It provides expert-level analysis to pinpoint potential exploitation paths within decentralized finance architectures.

What is price oracle manipulation and how can I detect it in DeFi protocols?

Price oracle manipulation exploits external price feeds to artificially alter asset values. This Skill detects such DeFi vulnerabilities by analyzing how protocols consume oracle data, identifying vectors where price feeds can be manipulated for malicious extraction.

How do I identify MEV extraction and sandwich attack patterns in DeFi?

Identifying MEV extraction and sandwich attack patterns requires examining transaction ordering and mempool dynamics. This Skill analyzes smart contracts to pinpoint specific attack vectors like sandwich attacks, mapping out how malicious actors extract value from pending transactions.

Do I need prior smart contract security knowledge to assess DeFi governance vulnerabilities?

Yes, assessing DeFi governance vulnerabilities requires prior knowledge of DeFi protocols and smart contract security. This Skill provides expert-level analysis of governance exploits, but users must understand underlying decentralized finance mechanisms to interpret the results.

What are common token standard issues and precision loss exploits in DeFi security analysis?

Common token standard issues involve improper decimal handling and precision loss during token swaps or mints. This Skill analyzes smart contracts to identify these specific attack vectors, ensuring protocols correctly implement token standards to prevent exploitation.

Can this Skill perform automated vulnerability assessment for smart contracts?

This Skill provides expert-level analysis for identifying DeFi attack patterns rather than automated vulnerability scanning. It focuses on analyzing protocol logic for threats like flash loans, oracle manipulation, and MEV extraction to guide preventive security measures.