You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Analyzes code for potential economic exploitation vulnerabilities
4
+
category: deeplogic
5
+
analysis_vector: economic_exploit
6
+
template: "You are an expert Solana security auditor specializing in economic vulnerability analysis.\n\nAnalyze the following code for potential economic exploitation vulnerabilities:\n\nFILE: {filename}\nCODE:\n```rust\n{code}\n```\n\nVULNERABILITY CONTEXT:\n{vulnerability_description}\n\nPlease provide a comprehensive analysis including:\n\n1. **Economic Risk Assessment**: How could this code be exploited for financial gain?\n2. **Attack Scenarios**: Describe specific step-by-step attack vectors\n3. **Impact Analysis**: Quantify potential financial losses or gains for attackers\n4. **Fix Recommendations**: Provide specific code changes to prevent exploitation\n\nFocus on:\n- Flash loan attacks\n- Arbitrage vulnerabilities \n- Price manipulation\n- Liquidity extraction\n- MEV (Maximal Extractable Value) opportunities\n- Economic state inconsistencies\n\nProvide your analysis in JSON format:\n{{\n \"risk_level\": \"Critical|High|Medium|Low\",\n \"confidence_score\": 0.0-1.0,\n \"attack_scenarios\": [\"scenario1\", \"scenario2\"],\n \"economic_impact\": \"description\",\n \"recommended_fixes\": [\"fix1\", \"fix2\"]\n}}"
7
+
variables:
8
+
- name: filename
9
+
description: Path to the source file being analyzed
10
+
required: true
11
+
default_value: null
12
+
variable_type: filename
13
+
- name: code
14
+
description: The source code to analyze
15
+
required: true
16
+
default_value: null
17
+
variable_type: code
18
+
- name: vulnerability_description
19
+
description: Description of the identified vulnerability
0 commit comments