Smart contract security
Solidity static analysis
Find security flaws in Solidity smart contracts before deployment: locked funds, unchecked low-level calls, authorization through tx.origin, ERC-20 mistakes, timestamp and blockhash misuse, and loops that cost too much gas. Solidity findings land in the same platform and report as the rest of your applications.
In short
DerScanner is a static application security testing (SAST) tool that scans Solidity smart contracts. Its Solidity rules are published in the DerScanner vulnerability database.
The rules cover funds that can get locked, unchecked low-level calls, authorization through tx.origin, ERC-20 implementation mistakes, misuse of block timestamps and blockhash, arithmetic order, visibility levels and gas costs. Each finding comes with a severity, a description, a fix recommendation and the code location.
DerScanner runs on-premise, in air-gapped networks or in the cloud. Vyper, the other smart contract language, is also supported.
What the Solidity rules check
A deployed contract cannot be patched like a server, so the rules focus on what goes wrong with funds, calls and permissions. Each rule links to its description and fix recommendation.
Funds and external calls
Ether that can get locked, unchecked low-level calls, transfers in loops, and calls that revert or fail.
Access control and visibility
Authorization through tx.origin, roles with too much power, implicit visibility and hardcoded addresses.
ERC-20 tokens
Token functions that do not follow the standard: transfers that should throw, return values that are always false, approve and event arguments.
Arithmetic, time and randomness
Multiplication after division, unsafe type inference, strict comparisons with block timestamps, and blockhash used as randomness.
Gas and code hygiene
Costly loops, extra gas consumption, storage array deletion, an unfixed compiler version and deprecated constructions.
Other checks
- lowUnintended function return
- lowUpgrade code to Solidity 0.5.x
- lowReplace multiple return values with a struct
- lowRedundant fallback function
- mediumIncorrect function signature
- mediumUsing continue in the do-while loop
- lowRevert inside the if-operator
- lowUse of SafeMath
- lowPure-functions should not read or change state
- lowUnsafe array's length manipulation
- lowView-function should not change state
- lowmsg.value == 0 check
- lowUse of assembly
Why contracts are scanned before deployment
Solidity contracts run on Ethereum and other blockchains that execute the same bytecode. Once a contract is deployed, its code cannot be changed in place, and a flaw can lock or expose the funds it holds.
Static analysis reads the contract source before deployment, so issues with funds, calls and permissions are found while they are still cheap to fix.
One scan with the rest of your code
Solidity and Vyper are among the 43 languages in DerScanner. Contracts and the web and mobile applications that use them can be scanned in the same platform, with one severity scale and one report format.
Scans run from the web interface, the CLI or a CI/CD integration.
Questions buyers ask about Solidity static analysis
DerScanner SAST scans Solidity contracts with rules from its vulnerability database. They cover locked funds, unchecked low-level calls, authorization through tx.origin, ERC-20 implementation mistakes, misuse of block timestamps and blockhash, arithmetic order, visibility levels and gas costs. Each finding has a severity, a description, a fix recommendation and a code location.
Yes. The rule Using tx.origin for authorization flags access checks based on tx.origin, and the rule Unchecked low-level call flags low-level calls whose result is not checked. Each rule page in the vulnerability database explains the risk and how to fix it.
Only a few. Most Solidity rules describe smart contract issues that have no CWE identifier, such as locked money, gas costs and ERC-20 mistakes. Where a CWE identifier exists, it is shown on the rule page.
Yes. Vyper is also among the 43 languages DerScanner scans and has its own rules in the vulnerability database.
Yes. DerScanner installs on-premise, including fully air-gapped networks, or runs in the cloud. Source code, scan results and reports stay on internal servers in an on-premise installation.
No. For Solidity, DerScanner provides security analysis (SAST). Some Solidity rules do cover code hygiene: an unfixed compiler version, deprecated constructions and extra gas consumption.
Yes. Request a free pilot on this page: the team gives you access and helps with the first scan. The pilot works in the cloud and on-premise.
Static analysis for other enterprise languages
Try DerScanner on your own code, free
Scan your own Solidity contracts and see what DerScanner finds in them.
Request a free pilot. We give you access and help with the first scan. It works in the cloud and on-premise.
Want to describe your project first? Take the 2-minute PoC survey
Make Your Applications
Secure Today
Sign up for a personalized demo to see
how DerScanner can meet your Application Security needs

