/auditsentry:unchecked-callsfrom auditsentry
Detects ignored return values from low-level calls, ERC20 transfers without SafeERC20, and silent failure patterns in Solidity. Useful for Solidity security audits and smart contract review.
Ships in auditsentry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
call, delegatecall, staticcall, sendtransfer / transferFrom / approve (non-SafeERC20).call return (HIGH)(bool ok,) = target.call(data); // ← ok unused
// or worse:
target.call(data); // ← Solidity ≥0.5 still allows this with warning
Always require(ok, "call failed"); unless an intentional best-effort.
USDT and other non-conformant tokens don't return bool. Naive call:
IERC20(usdt).transfer(to, amt); // ← reverts on USDT due to ABI mismatch
Use OZ SafeERC20's safeTransfer which handles missing return values.
Even compliant ERC20 returning false instead of reverting is silently passed:
bool ok = token.transfer(to, amt); // ← ok unused, returns false on failure
try/catch swallows everything (MEDIUM-HIGH)try external.call() { /* … */ }
catch { /* silently ignored */ }
Without inspecting catch (bytes memory reason), you lose all info; transitioning a critical revert into a silent success is a bug.
call)(bool ok,) = target.call(data);
require(ok);
ok = true even if target is an EOA with no contract — call returns true. Add target.code.length > 0 check.
If permit reverts (because it was already used), the consuming transferFrom continues with a stale allowance. Use try/catch only to skip the permit reuse case.
Some routers continue on per-call failure. If a treasury sweeps via multicall, a single failed call could drop revenue.
selfdestruct / transfer no longer guaranteed on L2s with reduced gasForwarding 2300 gas is brittle on Berachain/Arbitrum/etc. — see [[dos-vectors]].
| Pattern | Severity |
|---|---|
.call ignored, leads to silent fund loss | Critical |
| Non-SafeERC20 with USDT/non-conformant token | High |
target.call without code-length check | High |
| Try-catch swallows revert without inspection | High |
| Multicall fail-skip on revenue path | High |
.transfer (2300 gas) on L2 / to smart-wallet receivers | Medium |
| Best-effort fire-and-forget event hook | Low (document intent) |
(bool ok, bytes memory ret) = target.call(...) and require(ok, ...).SafeERC20 everywhere..call to dynamic addresses, check target.code.length > 0 before relying on return.transfer / send with (bool ok,) = to.call{value: amt}("") + check..call whose only side-effect-on-failure is a UX message can be best-effort — Info.call with custom assembly checks — verify the surrounding bytes are inspected.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
45 skills in this plugin
/access-controlDetect missing or incorrect access control — missing modifiers, wrong role checks, privileged function exposure, public initializers, and role-escalation paths. Activate on any function that mutates state, transfers funds, mints tokens, sets admin parameters, upgrades implementations, or pauses/unpauses./approval-issuesDetect ERC-20 approval pitfalls — approve race (front-run), missing safeApprove, infinite approvals, approval-without-revoke, Permit2 misuse, max-approval to untrusted contracts. Activate on `approve`, `safeApprove`, `permit`, `forceApprove`, `Permit2`, `IERC20.allowance`./caching-and-incrementalAlways-on meta-skill — cache audit results per file by content hash so unchanged files aren't re-analyzed on subsequent runs. Activate on every /audit, /quick-scan, /audit-changes invocation./centralization-riskDetect centralization and trust-assumption risks — admin powers, single-key risk, missing timelocks, upgrade authority, treasury keys, pause permanence, blacklisting authority, oracle authority. Activate on `onlyOwner`, `onlyRole`, `AccessControl`, upgrade authorizations, pause/unpause functions, mint/burn caps, treasury/fee setters./confidence-scoringAlways-on meta-skill — for every finding produced, attach a confidence level (HIGH/MEDIUM/LOW) and a reasoning trace. Activate on every /audit, /audit-deep, /audit-changes, /audit-live, /quick-scan invocation./cosmwasmDetect bug classes specific to CosmWasm (Rust) contracts — missing info.sender authorization in execute handlers, unbounded map iteration → gas/DoS, reply/submessage reply_id confusion, migrate admin backdoors, addr_validate vs raw string addresses, unchecked info.funds, Uint128 overflow, query reentrancy, and migration/version state. Activate on any `.rs` file with `use cosmwasm_std`, `#[entry_point]`, `ExecuteMsg`, `InstantiateMsg`, `QueryMsg`, `cw_storage_plus`, or `DepsMut`.npx claudepluginhub iktok90-design/ai-smart-contract-auditor --plugin auditsentryOther plugins' skills for the same job