economic-attack

Detect economic attack vulnerabilities in Solidity smart contracts.

60|18|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/PurpleAILAB/Vigilo --skill economic-attack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: economic-attack
Source: https://github.com/PurpleAILAB/Vigilo/tree/main/packages/claude/skills/vulnerability-patterns/economic-attack
Command: npx skills add https://github.com/PurpleAILAB/Vigilo --skill economic-attack

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies and analyzes common economic attack vectors in smart contracts, helping to prevent financial exploits and loss of funds.

Core Features & Use Cases

  • Vulnerability Pattern Detection: Recognizes patterns related to price manipulation, flash loans, oracle staleness, and donation attacks.
  • Price Flow Mapping: Helps visualize how prices are sourced and used in critical contract decisions.
  • Use Case: An auditor can use this Skill to quickly scan a smart contract codebase for known economic vulnerabilities before a full audit, prioritizing areas for deeper inspection.

Quick Start

Analyze the provided smart contract code for economic attack vulnerabilities.

Frequently Asked Questions about economic-attack

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

FAQPage Schema
How do I detect flash loan and price manipulation vulnerabilities in Solidity smart contracts?

To detect flash loan and price manipulation vulnerabilities in Solidity smart contracts, analyze the codebase for specific function calls and state dependencies that source DEX spot prices, relying on price flow mapping to trace critical contract decisions.

What is an economic attack in DeFi and how does oracle staleness contribute to it?

An economic attack in DeFi exploits financial logic by leveraging stale oracle data or manipulated spot prices. Oracle staleness allows contracts to execute transactions using outdated asset values, creating profitable arbitrage opportunities for attackers.

How do I trace a price flow map to assess smart contract security risks?

Tracing a price flow map to assess smart contract security risks involves identifying how prices are sourced from oracles or DEXs and tracking their usage in critical contract decisions to evaluate exposure to manipulation and donation attacks.

Can I use this approach to audit TWAP windows and donation attack vectors?

Yes, you can audit TWAP windows and donation attack vectors by analyzing Solidity code for specific state dependencies. This process evaluates the risk associated with time-weighted average prices and unauthorized balance inflation exploits.

When should I scan a smart contract codebase for economic vulnerabilities before a full audit?

You should scan a smart contract codebase for economic vulnerabilities before a full audit to quickly identify known flash loan, oracle staleness, and price manipulation patterns, prioritizing areas requiring deeper inspection and saving audit time.

What are the limitations of detecting economic exploit patterns using static code analysis?

Limitations of detecting economic exploit patterns using static code analysis include the inability to fully simulate dynamic market conditions and MEV opportunities, requiring manual assessment of TWAP window robustness and DEX liquidity depth.