Skip to content

Comments

Add DeFi protocol security analysis reasoning task#28

Open
dolepee wants to merge 2 commits intoNousResearch:mainfrom
dolepee:add-defi-security-task
Open

Add DeFi protocol security analysis reasoning task#28
dolepee wants to merge 2 commits intoNousResearch:mainfrom
dolepee:add-defi-security-task

Conversation

@dolepee
Copy link

@dolepee dolepee commented Feb 1, 2026

Summary

This PR adds a DeFi smart contract security reasoning task to the Open-Reasoning-Tasks collection.

The task focuses on teaching models to analyze Solidity smart contracts for common real-world vulnerabilities, including:

Reentrancy attacks

Oracle manipulation (flash-loan driven price attacks)

Access-control and unprotected initializer bugs

Integer overflow issues in legacy Solidity

Flash-loan governance exploits

Each example walks through:

Vulnerable contract code

Step-by-step attack reasoning

Severity assessment

Recommended mitigations

The goal is to improve multi-step security reasoning (code analysis → exploit construction → impact evaluation → fix recommendation), which is highly relevant for DeFi auditing, developer education, and automated security workflows.

Motivation

The current task collection lacks blockchain/crypto-specific security reasoning. This task fills that gap by covering the most critical DeFi vulnerability classes that require multi-step analytical reasoning.

Task Details

Category: Smart Contract Security Analysis
Difficulty: Medium to Advanced
Examples: 5 comprehensive scenarios covering:

  • Reentrancy attacks (classic vulnerability pattern)
  • Oracle manipulation via flash loans
  • Access control flaws (initialization vulnerabilities)
  • Integer overflow in pre-0.8 Solidity
  • Flash loan governance attacks

Each example includes:

  • Vulnerable code snippet
  • Step-by-step vulnerability analysis
  • Attack vector construction
  • Severity assessment
  • Recommended fixes

Tags: crypto, defi, security, smart-contracts, solidity, vulnerability-analysis, blockchain, protocol-security, reasoning

Real-World Applicability

  • Training models for smart contract auditing
  • Security-focused LLM applications
  • Developer education and tooling
  • DeFi protocol analysis automation

Checklist

  • Follows task template format
  • Added to tasks.md in alphabetical order
  • Ran npm run build successfully
  • All 5 examples are clear, detailed, and technically accurate
  • Covers diverse vulnerability types
  • Includes severity classifications
  • Provides actionable fixes

- Covers common smart contract vulnerabilities
- Includes 5 detailed examples: reentrancy, oracle manipulation, access control, integer overflow, flash loan attacks
- Targets crypto/DeFi/blockchain security reasoning
@netlify
Copy link

netlify bot commented Feb 1, 2026

Deploy Preview for openreasoningtasks ready!

Name Link
🔨 Latest commit 7c76a97
🔍 Latest deploy log https://app.netlify.com/projects/openreasoningtasks/deploys/697f25026dbf1d0008fdd522
😎 Deploy Preview https://deploy-preview-28--openreasoningtasks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Crypto Portfolio Optimization: Strategic allocation, rebalancing, yield farming, bear market defense
- NFT Project Due Diligence: Red flag detection, legitimacy assessment, investment analysis
- Both tasks include 3 comprehensive real-world examples covering bull/bear scenarios
@dolepee
Copy link
Author

dolepee commented Feb 14, 2026

Hi team, could you please share feedback when you have a chance? I can apply any requested changes quickly. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant