flashloan

Detect flash loan attack patterns in Solidity smart contract code.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps identify and understand various attack vectors enabled by flash loans in smart contracts, protecting against financial exploits.

Core Features & Use Cases

  • Attack Pattern Identification: Detects vulnerabilities related to price manipulation, governance attacks, collateral manipulation, reward manipulation, and oracle manipulation via flash loans.
  • Mitigation Strategies: Provides examples of secure coding patterns and audit checklists.
  • Use Case: An auditor can use this Skill to quickly identify if a smart contract is vulnerable to a governance attack by checking for balance-based voting without proper snapshotting.

Quick Start

Use the flashloan skill to audit the provided smart contract code for flash loan vulnerabilities.

Frequently Asked Questions about flashloan

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

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

To detect flash loan vulnerabilities in Solidity smart contracts, analyze the code for attack patterns including price manipulation, governance attacks, collateral manipulation, and oracle manipulation. This process identifies vulnerable signatures to prevent financial exploits.

What is a flash loan governance attack and how does balance-based voting cause it?

A flash loan governance attack exploits balance-based voting without proper snapshotting by borrowing funds to gain temporary voting power. Detecting this requires checking smart contracts for missing snapshot mechanisms before governance execution.

How do I audit DeFi smart contracts for oracle manipulation vulnerabilities?

Audit DeFi smart contracts for oracle manipulation by analyzing whether price feeds rely on single sources or vulnerable reserves. Identify flash loan attack patterns that artificially manipulate oracle prices during a single transaction.

What mitigation patterns secure smart contracts against flash loan price manipulation?

Mitigation patterns for flash loan price manipulation include using decentralized oracle networks and implementing time-weighted average prices. Apply secure coding patterns and audit checklists during development to prevent exploits.