Offlin33er commited on
Commit
072ddbb
·
verified ·
1 Parent(s): 2fe40f2

Add taxonomy coverage report

Browse files
Files changed (1) hide show
  1. taxonomy_coverage.json +71 -0
taxonomy_coverage.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": "Offlin33er/solidity-audit-instruct",
3
+ "target": "Offlin33er/solidity-audit-instruct-v3",
4
+ "n_train": 2224,
5
+ "n_test": 248,
6
+ "canonical_distribution": {
7
+ "Arithmetic Error": 418,
8
+ "Business Logic Violation": 550,
9
+ "Reentrancy": 201,
10
+ "Clean (No Vulnerability)": 800,
11
+ "Input Validation Error": 215,
12
+ "Access Control Flaw": 168,
13
+ "Frontrunning / MEV": 51,
14
+ "Denial of Service (DoS)": 69
15
+ },
16
+ "method_counts": {
17
+ "exact": 831,
18
+ "tier3": 354,
19
+ "keyword": 435,
20
+ "fallback": 52,
21
+ "clean": 800
22
+ },
23
+ "fallback_labels": {
24
+ "incorrect refund handling": 1,
25
+ "duplicate variable": 1,
26
+ "incorrect parameter": 1,
27
+ "collateral token mismatch": 1,
28
+ "unused enumeration": 2,
29
+ "array-based flag enumeration": 1,
30
+ "incentivization": 1,
31
+ "special case": 1,
32
+ "inaccurate value used for partial fill quote amount": 1,
33
+ "incorrect data exposure": 1,
34
+ "token limit bypass": 1,
35
+ "smart contract restriction": 1,
36
+ "rate limiting": 1,
37
+ "error code": 1,
38
+ "time-related vulnerability": 3,
39
+ "incorrect assignment": 1,
40
+ "arbitrary configuration": 1,
41
+ "rate limit bypass": 1,
42
+ "outdated data": 5,
43
+ "ownable but not pausable": 1,
44
+ "incorrect time delay constant": 1,
45
+ "abstraction overload": 1,
46
+ "plugin failure": 1,
47
+ "incorrect configuration retrieval": 1,
48
+ "token-based vulnerability": 1,
49
+ "format string error": 1,
50
+ "inconsistent erc20 token implementation": 1,
51
+ "data encoding ambiguity": 1,
52
+ "double sha-256 implementation": 1,
53
+ "double-checked vulnerability": 1,
54
+ "inconsistent asset handling": 1,
55
+ "expired protection": 1,
56
+ "double registration": 1,
57
+ "unconditional return": 1,
58
+ "callback not invoked": 1,
59
+ "address reuse": 1,
60
+ "erc-1155/721 receiving function missing": 1,
61
+ "incorrect data fetching": 1,
62
+ "inconsistent asset return": 1,
63
+ "snapshot vulnerability": 1,
64
+ "unconfigured yield mode": 1,
65
+ "default to rollable": 1,
66
+ "function name inconsistency": 1,
67
+ "unrestricted commitment": 1,
68
+ "inconsistent data conversion": 1
69
+ },
70
+ "system_prompt": "You are an expert Web3 Smart Contract Auditor. Analyze the provided Solidity code snippet.\nYou MUST classify the primary finding using EXACTLY one of the following canonical categories:\n- Reentrancy\n- Arithmetic Error\n- Access Control Flaw\n- Input Validation Error\n- Frontrunning / MEV\n- Denial of Service (DoS)\n- Business Logic Violation\n- Clean (No Vulnerability)\n\nRules:\n- Use exactly these category names, verbatim, in the '## Finding: <category>' header.\n- Choose the single most relevant category for the primary issue.\n- If no vulnerability is present, the category is 'Clean (No Vulnerability)'.\nThen provide the functionality, a Description, and a Recommendation."
71
+ }