Download taxonomy_coverage.json from Offlin33er/solidity-audit-instruct-v2: direct link, hf CLI and curl.
- Browser
- Download file 10.4 kB
-
https://huggingface.co/datasets/Offlin33er/solidity-audit-instruct-v2/resolve/main/taxonomy_coverage.json
- Command line
-
hf download hf://datasets/Offlin33er/solidity-audit-instruct-v2/taxonomy_coverage.json
-
curl -L -o taxonomy_coverage.json https://huggingface.co/datasets/Offlin33er/solidity-audit-instruct-v2/resolve/main/taxonomy_coverage.json
10.4 kB
| { | |
| "source": "Offlin33er/solidity-audit-instruct", | |
| "target": "Offlin33er/solidity-audit-instruct-v2", | |
| "n_train": 2224, | |
| "n_test": 248, | |
| "canonical_distribution": { | |
| "Arithmetic Error": 411, | |
| "Business Logic Violation": 655, | |
| "Reentrancy": 199, | |
| "Clean (No Vulnerability)": 800, | |
| "Access Control Flaw": 149, | |
| "Input Validation Error": 155, | |
| "Frontrunning / MEV": 46, | |
| "Denial of Service (DoS)": 57 | |
| }, | |
| "fallback_labels": { | |
| "incorrect refund handling": 1, | |
| "duplicate injection": 1, | |
| "imbalance": 1, | |
| "unnecessary data retrieval": 2, | |
| "token reuse": 3, | |
| "unimplemented function": 3, | |
| "incorrect interface usage": 2, | |
| "token inflation": 4, | |
| "duplicate variable": 1, | |
| "assumption-based vulnerability": 1, | |
| "incorrect variable usage": 2, | |
| "arbitrage": 8, | |
| "hardcoded value": 5, | |
| "incorrect event emission": 1, | |
| "insufficient interest guarantee": 1, | |
| "concurrency vulnerability": 1, | |
| "cross-chain reusability": 1, | |
| "expired data": 1, | |
| "name collision": 2, | |
| "immutable data exposure": 3, | |
| "unintended event emission": 1, | |
| "insufficient funds": 5, | |
| "error not checked": 1, | |
| "uncontrolled update": 1, | |
| "inheritance inconsistency": 1, | |
| "token trapping": 3, | |
| "inheritance": 2, | |
| "slippage": 5, | |
| "incorrect function call": 1, | |
| "unintended token flow": 2, | |
| "double decoding": 1, | |
| "token locking": 7, | |
| "overloaded function": 1, | |
| "incorrect conditional check": 1, | |
| "incorrect parameter": 1, | |
| "use-after-free": 4, | |
| "unchecked return value": 2, | |
| "data staleness": 1, | |
| "callback injection": 1, | |
| "hash collision": 5, | |
| "collateral token mismatch": 1, | |
| "data corruption": 1, | |
| "token impersonation": 1, | |
| "hardcoded limit": 2, | |
| "incorrect implementation": 1, | |
| "twap inconsistency": 2, | |
| "stuck funds": 1, | |
| "insufficient slippage protection": 2, | |
| "data inefficiency": 1, | |
| "contract invariant": 1, | |
| "collision": 3, | |
| "incentive misconfiguration": 1, | |
| "invalid data": 2, | |
| "overwrite": 2, | |
| "insufficient coverage": 2, | |
| "underestimation": 1, | |
| "cross-chain slippage": 1, | |
| "token swapping": 3, | |
| "inconsistent implementation": 5, | |
| "inconsistent data representation": 2, | |
| "arbitrary slippage": 2, | |
| "event emission omission": 2, | |
| "cache inconsistency": 1, | |
| "unused enumeration": 2, | |
| "incorrect use of variable": 2, | |
| "loss scenario": 1, | |
| "array-based flag enumeration": 1, | |
| "multiple inheritance": 1, | |
| "double spend": 1, | |
| "map corruption": 1, | |
| "double-booking": 2, | |
| "token unavailability": 1, | |
| "arbitrary data injection": 1, | |
| "unresettable cache": 1, | |
| "bootstrapping": 1, | |
| "decimal mismatch": 2, | |
| "incentivization": 1, | |
| "immutable address use": 1, | |
| "memory allocation": 1, | |
| "special case": 1, | |
| "double spending": 3, | |
| "boolean return value not handled": 1, | |
| "unused variable": 2, | |
| "event not handled": 1, | |
| "token drain": 2, | |
| "unintended functionality": 2, | |
| "insufficient funds protection": 1, | |
| "assertion failure": 2, | |
| "collateral overwrite": 1, | |
| "imbalanced pool join": 1, | |
| "insufficient funds check": 2, | |
| "payload injection": 1, | |
| "unnecessary code": 1, | |
| "commented code": 2, | |
| "domain name confusion": 1, | |
| "inaccurate value used for partial fill quote amount": 1, | |
| "cross-currency exposure": 1, | |
| "inheritance mismanagement": 2, | |
| "compiler version inconsistency": 1, | |
| "cross-chain asset theft": 1, | |
| "data tampering": 1, | |
| "incorrect data exposure": 1, | |
| "inconsistent data": 1, | |
| "debug code": 1, | |
| "pool hijacking": 1, | |
| "time-of-check-to-time-of-use": 1, | |
| "token limit bypass": 1, | |
| "misleading or confusing variable naming": 1, | |
| "token inheritance": 1, | |
| "insufficient debt protection": 2, | |
| "unpayable contract": 1, | |
| "signature inclusion": 1, | |
| "code optimization": 1, | |
| "lack of documentation": 1, | |
| "smart contract restriction": 1, | |
| "rate limiting": 1, | |
| "referrer hijacking": 1, | |
| "error code": 1, | |
| "unrestricted function call": 2, | |
| "double charging": 1, | |
| "incorrect function signature": 1, | |
| "unnecessary function call": 1, | |
| "desynchronization": 1, | |
| "time-related vulnerability": 3, | |
| "insufficient error handling": 1, | |
| "token incompatibility": 1, | |
| "self-transfer": 1, | |
| "insufficient collateralization": 1, | |
| "heap corruption": 1, | |
| "unrestricted functionality": 1, | |
| "inflation": 1, | |
| "functionality exposure": 1, | |
| "data mismatch": 1, | |
| "blockhash overwrite": 1, | |
| "predictable derivation": 1, | |
| "unpredictable behavior": 5, | |
| "incorrect interest accrual": 2, | |
| "unintended ether transfer": 1, | |
| "single-sided exit": 1, | |
| "mixed code": 1, | |
| "invalid point attack": 1, | |
| "incorrect assignment": 1, | |
| "cross-chain incompatibility": 1, | |
| "arbitrary configuration": 1, | |
| "rate limit bypass": 1, | |
| "unintended token redemption": 1, | |
| "interface implementation error": 1, | |
| "constant overwrite": 1, | |
| "inconsistent function signature": 1, | |
| "incorrect scaling factor": 1, | |
| "collateral abuse": 1, | |
| "immutable reference": 1, | |
| "insufficient capital check": 1, | |
| "unpredictable revert": 1, | |
| "outdated data": 5, | |
| "status overwrite": 1, | |
| "immutable data tampering": 2, | |
| "incorrect scaling": 1, | |
| "invalid comparison": 1, | |
| "arbitrary sender": 2, | |
| "double counting": 2, | |
| "outdated compiler version": 3, | |
| "ownable but not pausable": 1, | |
| "token duplication": 1, | |
| "delegation limitation": 1, | |
| "double subtraction": 2, | |
| "double call": 1, | |
| "inflation attack": 1, | |
| "token transfer restriction": 1, | |
| "private key exposure": 1, | |
| "incorrect time delay constant": 1, | |
| "unnecessary data copy": 1, | |
| "token lock bypass": 1, | |
| "time-based locking": 1, | |
| "key exposure": 1, | |
| "abstraction overload": 1, | |
| "unused return value": 3, | |
| "plugin failure": 1, | |
| "signature reuse": 1, | |
| "inclusive range check bypass": 1, | |
| "return data mismatch": 1, | |
| "token split": 1, | |
| "token approval": 2, | |
| "incorrect configuration retrieval": 1, | |
| "allowance not cleared": 1, | |
| "reversible closure": 1, | |
| "double free": 1, | |
| "token stuck": 1, | |
| "cross-chain decimals inconsistency": 1, | |
| "transfer whitelist bypass": 1, | |
| "blocking": 1, | |
| "immutable variable": 1, | |
| "off-by-one error": 1, | |
| "token-based vulnerability": 1, | |
| "inconsistent interface declaration": 1, | |
| "inaccurate or misleading documentation": 1, | |
| "key management": 1, | |
| "insufficient liquidation incentive": 1, | |
| "format string error": 1, | |
| "unremovable teller": 1, | |
| "unused function": 1, | |
| "inconsistent erc20 token implementation": 1, | |
| "token transfer failure": 1, | |
| "token loss": 2, | |
| "function confusion": 1, | |
| "data encoding ambiguity": 1, | |
| "hardcoded whitelist": 1, | |
| "uncontrolled slippage": 2, | |
| "double sha-256 implementation": 1, | |
| "collusion": 1, | |
| "interface inconsistency": 3, | |
| "code injection": 1, | |
| "cross-chain call failure": 1, | |
| "premature maturity clearance": 1, | |
| "debugging code": 1, | |
| "token reinvestment failure": 1, | |
| "account locking": 1, | |
| "unchecked allowance": 1, | |
| "immutable configuration": 1, | |
| "token confusion": 1, | |
| "double-checked vulnerability": 1, | |
| "inconsistent asset handling": 1, | |
| "hardcoded constant": 1, | |
| "event missing": 1, | |
| "expired protection": 1, | |
| "token slashing": 1, | |
| "blacklisted address": 1, | |
| "double registration": 1, | |
| "token burn": 1, | |
| "arbitrary data overwrite": 1, | |
| "unconditional return": 1, | |
| "redemption restriction bypass": 2, | |
| "callback not invoked": 1, | |
| "complexity": 1, | |
| "loss of assets": 1, | |
| "early reveal": 1, | |
| "address reuse": 1, | |
| "function misuse": 1, | |
| "return without error": 1, | |
| "delegation lock": 2, | |
| "domain confusion": 1, | |
| "token transfer block": 1, | |
| "shadowing": 2, | |
| "insufficient collateral protection": 1, | |
| "stale delegation": 1, | |
| "double counting of accrued interest": 1, | |
| "allowance check mismatch": 1, | |
| "token expiration mismatch": 1, | |
| "token expiration": 1, | |
| "cross-protocol vulnerability": 1, | |
| "cross-site request forgery (csrf)": 2, | |
| "index-based re-entrancy": 1, | |
| "token incentive inconsistency": 1, | |
| "stuck ether": 1, | |
| "token transfer rejection": 1, | |
| "erc-1155/721 receiving function missing": 1, | |
| "malleable merkle proof": 1, | |
| "token omission": 1, | |
| "earning persistence": 1, | |
| "free points minting": 1, | |
| "incorrect data fetching": 1, | |
| "assumption failure": 1, | |
| "bond reassignment": 1, | |
| "inconsistent asset return": 1, | |
| "snapshot vulnerability": 1, | |
| "outdated solidity version": 1, | |
| "hardcoded values": 1, | |
| "struct overwrite": 1, | |
| "unconfigured yield mode": 1, | |
| "default to rollable": 1, | |
| "function name inconsistency": 1, | |
| "unreliable return value": 1, | |
| "typo": 1, | |
| "invalid error handling": 1, | |
| "unremovable entity": 1, | |
| "confirmation lock": 1, | |
| "unrestricted commitment": 1, | |
| "infrequent data updates": 1, | |
| "insufficient adjustment": 1, | |
| "unimplemented functionality": 1, | |
| "incorrect index update": 1, | |
| "inconsistent documentation": 1, | |
| "inheritance conflict": 1, | |
| "inconsistent code documentation": 1, | |
| "contract modification": 1, | |
| "argument injection": 1, | |
| "compound interest": 1, | |
| "contract deployment": 1, | |
| "uncontrolled recursion": 1, | |
| "hash comparison": 1, | |
| "inconsistent data conversion": 1, | |
| "data fidelity": 1, | |
| "incorrect or misleading comments": 1, | |
| "recursion": 1, | |
| "decimal conversion error": 1, | |
| "arbitrary memory corruption": 1 | |
| }, | |
| "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." | |
| } |