oracle-flashloan-analysis

Analyze smart contracts for oracle manipulation and flash loan vulnerabilities.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/dajneem23/codex-skills --skill oracle-flashloan-analysis-dajneem23
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oracle-flashloan-analysis
Source: https://github.com/dajneem23/codex-skills/tree/main/oracle-flashloan-analysis
Command: npx skills add https://github.com/dajneem23/codex-skills --skill oracle-flashloan-analysis-dajneem23

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies critical vulnerabilities in DeFi protocols where external price data can be manipulated or flash loans can be used to exploit protocol logic, leading to financial loss.

Core Features & Use Cases

  • Oracle Trust Analysis: Classifies and assesses the security of various price oracle types (Chainlink, TWAP, spot, custom).
  • Flash Loan Attack Surface: Detects how flash loans can be used to manipulate prices and exploit protocol functions like borrowing, liquidation, or governance.
  • Use Case: When auditing a lending protocol, use this Skill to verify that its collateral valuation mechanism is resistant to manipulation by flash loans and that its price feeds are not stale or easily compromised.

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 audit smart contracts for oracle manipulation and flash loan exploits?

To audit smart contracts for oracle manipulation and flash loan exploits, analyze the codebase for risks associated with oracle trust models, stale price data, circular dependencies, and flash loan atomicity exploitation patterns. Validate oracle integration safety across Chainlink, TWAP, and spot price mechanisms.

What is a flash loan attack surface in DeFi protocol security?

A flash loan attack surface in DeFi protocol security encompasses how flash loans can be used to manipulate prices and exploit protocol functions atomically. It targets borrowing, liquidation, or governance mechanisms by leveraging single-transaction price manipulation against vulnerable protocol logic.

How does oracle trust analysis classify price feed vulnerabilities?

Oracle trust analysis classifies price feed vulnerabilities by assessing the security of various price oracle types, including Chainlink, TWAP, spot, and custom feeds. It identifies risks from stale price data and circular dependencies to validate oracle integration safety.

Can this analysis detect flash loan atomicity exploitation in lending protocols?

Yes, this analysis can detect flash loan atomicity exploitation in lending protocols. It assesses flash loan attack feasibility against protocol functions, verifying that collateral valuation mechanisms are resistant to manipulation and that price feeds are not easily compromised.

What are the limitations of spot price oracles in DeFi smart contract audits?

Limitations of spot price oracles in DeFi smart contract audits include susceptibility to manipulation and stale price data risks. Spot price mechanisms lack the time-weighted resistance of TWAP oracles, making collateral valuation vulnerable to flash loan attacks during atomic transactions.

When do I need to check for circular dependencies in DeFi oracle integration?

You need to check for circular dependencies in DeFi oracle integration when auditing protocols that rely on external price data for collateral valuation. Circular dependencies can cause stale price data and compromise oracle trust models, leading to financial loss if exploited.