oracle-flashloan-analysis

Analyze DeFi smart contracts for oracle manipulation and flash loan vulnerabilities.

1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/Ramprasad4121/srp --skill oracle-flashloan-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oracle-flashloan-analysis
Source: https://github.com/Ramprasad4121/srp/tree/main/skills-repos/quillai/plugins/oracle-flashloan-analysis/skills/oracle-flashloan-analysis
Command: npx skills add https://github.com/Ramprasad4121/srp --skill oracle-flashloan-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies critical vulnerabilities in DeFi smart contracts related to price oracle manipulation and flash loan attacks, which are responsible for a significant portion of stolen funds.

Core Features & Use Cases

  • Oracle Trust Analysis: Classifies oracle types (Chainlink, TWAP, spot) and assesses their security.
  • Flash Loan Vulnerability Detection: Identifies how flash loans can be used to exploit price manipulation or protocol logic within a single transaction.
  • Circular Dependency Detection: Finds exploitable feedback loops where a protocol's pricing depends on its own state.
  • Use Case: When auditing a lending protocol, use this Skill to verify that its Chainlink price feeds have all necessary validation checks and that its liquidation mechanism cannot be exploited by a flash loan manipulating the underlying AMM pool price.

Quick Start

Analyze the provided smart contract code for oracle manipulation and flash loan vulnerabilities.

Frequently Asked Questions about oracle-flashloan-analysis

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

FAQPage Schema
How do I detect oracle manipulation vulnerabilities in DeFi smart contracts?

To detect oracle manipulation vulnerabilities in DeFi smart contracts, analyze the contract code to classify oracle types, validate safety checks, and map price sources to uncover stale price risks and circular dependencies.

What is a flash loan attack and how does it exploit protocol atomicity?

A flash loan attack exploits protocol atomicity by borrowing and manipulating asset prices within a single transaction. Analyzing smart contract code identifies atomicity exploitation patterns where flash loans manipulate AMM pool prices or protocol logic.

How do I audit a Chainlink price feed for missing validation checks?

To audit a Chainlink price feed for missing validation checks, analyze the smart contract code to verify the presence of necessary safety checks, detect stale price risks, and ensure the liquidation mechanism resists manipulation.

Can this analysis identify circular price dependencies in lending protocols?

Yes, this analysis identifies circular price dependencies in lending protocols by modeling attack scenarios and finding exploitable feedback loops where a protocol's internal pricing logic depends on its own state.

What are the limitations of using spot price oracles for DeFi lending?

Using spot price oracles for DeFi lending carries limitations like susceptibility to flash loan manipulation. The analysis classifies oracle types and assesses security to detect when spot prices create exploitable atomicity vulnerabilities.