[
  {
    "id": "sol-tx-origin-auth",
    "lang": "solidity",
    "severity": "high",
    "title": "tx.origin used for authorization",
    "summary": "Checking `tx.origin` lets any contract the owner interacts with act as the owner.",
    "detectors": {
      "slither": "tx-origin",
      "solhint": "avoid-tx-origin",
      "aderyn": "",
      "swc": "SWC-115"
    }
  },
  {
    "id": "sol-reentrancy",
    "lang": "solidity",
    "severity": "high",
    "title": "State written after an external call (reentrancy)",
    "summary": "A function sends ETH or calls another contract before updating its own state, so the callee can re-enter and act on stale state.",
    "detectors": {
      "slither": "reentrancy-eth, reentrancy-no-eth",
      "solhint": "reentrancy",
      "aderyn": "state-change-after-external-call",
      "swc": "SWC-107"
    }
  },
  {
    "id": "sol-unchecked-call",
    "lang": "solidity",
    "severity": "high",
    "title": "Return value of a low-level call is ignored",
    "summary": "`call`, `send` and `delegatecall` return false instead of reverting; ignoring it loses failures silently.",
    "detectors": {
      "slither": "unchecked-lowlevel, unchecked-send",
      "solhint": "check-send-result",
      "aderyn": "unchecked-low-level-call",
      "swc": "SWC-104"
    }
  },
  {
    "id": "sol-delegatecall-input",
    "lang": "solidity",
    "severity": "high",
    "title": "delegatecall to an address the caller controls",
    "summary": "`delegatecall` runs foreign code with this contract's storage and balance; a caller-chosen target can take it over.",
    "detectors": {
      "slither": "controlled-delegatecall",
      "solhint": "avoid-low-level-calls",
      "aderyn": "delegate-call-in-loop",
      "swc": "SWC-112"
    }
  },
  {
    "id": "sol-unprotected-initializer",
    "lang": "solidity",
    "severity": "high",
    "title": "Initializer anyone can call",
    "summary": "An `initialize` function without the `initializer` modifier or an access check can be called again, or first, by an attacker.",
    "detectors": {
      "slither": "unprotected-upgrade, uninitialized-state",
      "solhint": "",
      "aderyn": "unprotected-initializer",
      "swc": "SWC-118"
    }
  },
  {
    "id": "sol-missing-access-control",
    "lang": "solidity",
    "severity": "high",
    "title": "Privileged function without access control",
    "summary": "A function that mints, withdraws, upgrades, pauses or changes ownership is public with no modifier or sender check.",
    "detectors": {
      "slither": "arbitrary-send-eth, suicidal, unprotected-upgrade",
      "solhint": "",
      "aderyn": "centralization-risk",
      "swc": "SWC-105, SWC-106"
    }
  },
  {
    "id": "sol-selfdestruct",
    "lang": "solidity",
    "severity": "medium",
    "title": "selfdestruct in contract code",
    "summary": "`selfdestruct` is deprecated and, since EIP-6780, no longer deletes code except in the deploying transaction; if reachable by the wrong caller it still sends away all ETH.",
    "detectors": {
      "slither": "suicidal",
      "solhint": "avoid-suicide",
      "aderyn": "",
      "swc": "SWC-106"
    }
  },
  {
    "id": "sol-weak-randomness",
    "lang": "solidity",
    "severity": "medium",
    "title": "Randomness from block values",
    "summary": "`block.timestamp`, `blockhash` and `block.prevrandao` are known or influenced by validators; they can't decide winners.",
    "detectors": {
      "slither": "weak-prng",
      "solhint": "not-rely-on-time",
      "aderyn": "weak-randomness",
      "swc": "SWC-120"
    }
  },
  {
    "id": "sol-unchecked-erc20",
    "lang": "solidity",
    "severity": "medium",
    "title": "ERC-20 transfer result ignored",
    "summary": "Some tokens return false instead of reverting; use SafeERC20 or check the returned bool.",
    "detectors": {
      "slither": "unchecked-transfer",
      "solhint": "",
      "aderyn": "unsafe-erc20-functions",
      "swc": "SWC-104"
    }
  },
  {
    "id": "sol-ecrecover-zero",
    "lang": "solidity",
    "severity": "medium",
    "title": "ecrecover result not checked for address(0)",
    "summary": "`ecrecover` returns the zero address for invalid signatures; comparing it to an unset signer accepts garbage.",
    "detectors": {
      "slither": "",
      "solhint": "",
      "aderyn": "ecrecover",
      "swc": "SWC-117, SWC-122"
    }
  },
  {
    "id": "sol-spot-price",
    "lang": "solidity",
    "severity": "medium",
    "title": "Price read from AMM reserves",
    "summary": "`getReserves()` spot prices can be moved inside one transaction with a flash loan; use a TWAP or an oracle.",
    "detectors": {
      "slither": "",
      "solhint": "",
      "aderyn": "",
      "swc": ""
    }
  },
  {
    "id": "sol-old-compiler",
    "lang": "solidity",
    "severity": "medium",
    "title": "Compiler older than 0.8 (no overflow checks)",
    "summary": "Before Solidity 0.8, arithmetic wraps silently unless every operation uses SafeMath.",
    "detectors": {
      "slither": "solc-version",
      "solhint": "compiler-version",
      "aderyn": "",
      "swc": "SWC-101, SWC-102"
    }
  },
  {
    "id": "sol-floating-pragma",
    "lang": "solidity",
    "severity": "low",
    "title": "Floating pragma",
    "summary": "`pragma solidity ^0.8.0` lets a deployment use a compiler you didn't test with; pin the version you audited.",
    "detectors": {
      "slither": "pragma",
      "solhint": "compiler-version",
      "aderyn": "unspecific-solidity-pragma",
      "swc": "SWC-103"
    }
  },
  {
    "id": "sol-unchecked-block",
    "lang": "solidity",
    "severity": "info",
    "title": "unchecked { } arithmetic",
    "summary": "Overflow checks are off inside `unchecked`; make sure every operation there is provably bounded.",
    "detectors": {
      "slither": "",
      "solhint": "",
      "aderyn": "",
      "swc": "SWC-101"
    }
  },
  {
    "id": "anchor-unchecked-account",
    "lang": "anchor",
    "severity": "high",
    "title": "Unchecked account without a /// CHECK: note",
    "summary": "`AccountInfo` and `UncheckedAccount` skip Anchor's owner and type checks; each needs an explicit reason and manual checks.",
    "detectors": {
      "anchor": "anchor build error: unsafe field",
      "clippy": "",
      "sealevel": "2-owner-checks, 3-type-cosplay"
    }
  },
  {
    "id": "anchor-missing-signer",
    "lang": "anchor",
    "severity": "high",
    "title": "Authority account that isn't a Signer",
    "summary": "An authority, admin or owner account that isn't `Signer<'info>` (or `signer` constrained) lets anyone pass someone else's key.",
    "detectors": {
      "anchor": "",
      "clippy": "",
      "sealevel": "0-signer-authorization"
    }
  },
  {
    "id": "anchor-arbitrary-cpi",
    "lang": "anchor",
    "severity": "high",
    "title": "CPI to a program the caller chooses",
    "summary": "`invoke`/`invoke_signed` with a program account that isn't `Program<'info, T>` or checked against a known id runs whatever program the caller passes.",
    "detectors": {
      "anchor": "",
      "clippy": "",
      "sealevel": "5-arbitrary-cpi"
    }
  },
  {
    "id": "anchor-owner-check",
    "lang": "anchor",
    "severity": "high",
    "title": "Account data deserialized without an owner check",
    "summary": "`try_from_slice` on raw account data trusts bytes that any program could have written.",
    "detectors": {
      "anchor": "",
      "clippy": "",
      "sealevel": "2-owner-checks, 3-type-cosplay"
    }
  },
  {
    "id": "anchor-init-if-needed",
    "lang": "anchor",
    "severity": "medium",
    "title": "init_if_needed (reinitialization risk)",
    "summary": "`init_if_needed` accepts accounts that already exist; without checks an attacker can reset or reuse state.",
    "detectors": {
      "anchor": "requires the init-if-needed feature",
      "clippy": "",
      "sealevel": "4-initialization"
    }
  },
  {
    "id": "anchor-manual-close",
    "lang": "anchor",
    "severity": "medium",
    "title": "Account closed by draining lamports by hand",
    "summary": "Zeroing lamports without clearing data and owner lets the account be revived in the same transaction; use `close = target`.",
    "detectors": {
      "anchor": "",
      "clippy": "",
      "sealevel": "9-closing-accounts"
    }
  },
  {
    "id": "rust-overflow-checks-off",
    "lang": "anchor",
    "severity": "medium",
    "title": "overflow-checks not enabled for release builds",
    "summary": "Release builds wrap on overflow unless `overflow-checks = true` is set in `[profile.release]`.",
    "detectors": {
      "anchor": "",
      "clippy": "arithmetic_side_effects",
      "sealevel": ""
    }
  },
  {
    "id": "anchor-unchecked-math",
    "lang": "anchor",
    "severity": "low",
    "title": "Unchecked arithmetic on amounts",
    "summary": "`+`, `-` and `*` on balances or amounts can overflow; prefer `checked_add`/`checked_sub` and return an error.",
    "detectors": {
      "anchor": "",
      "clippy": "arithmetic_side_effects",
      "sealevel": ""
    }
  },
  {
    "id": "any-private-key",
    "lang": "any",
    "severity": "high",
    "title": "Private key or keypair in the source",
    "summary": "A hex private key or a Solana keypair array is committed in the code; anyone with the repo controls that account.",
    "detectors": {
      "slither": "",
      "solhint": "",
      "aderyn": "",
      "sealevel": ""
    }
  }
]
