Sample results

This is a real Kestrova scan of a fictional contract written with deliberate bugs for demonstration. The Professional Report lists all of these findings; the free preview shows their severity counts and describes each High and Medium issue, without locations or fixes.

Sample Professional Security Report

The optional 1 USDC package for this scan: PDF with executive summary, SARIF and JSON exports. No payment was made for this sample.

Contract Vault.sol · compiler 0.8.38 · Slither · generated 2026-10-27

2High
2Medium
1Low
2Informational
1Optimization

Slither flagged 2 high-impact and 2 medium-impact patterns. These are automated findings, not confirmed vulnerabilities: review each one before deploying.

All findings (8)

HighETH can be sent to an arbitrary addressVault.sol lines 20–23

What it means: A function sends the contract's ETH to an address chosen by the caller. If access control is missing or weak, anyone may be able to drain funds.

How to fix: Restrict who can call the function (for example onlyOwner or a role check using msg.sender), and send only to trusted or pre-approved addresses.

Where:

  • Vault.sol lines 20–23
  • Vault.sol line 22
  22          to.send(address(this).balance);           // unchecked send
Technical details
Detector: arbitrary-send-eth
Impact: High
Confidence: Medium

Vault.sweep(address) (Vault.sol#20-23) sends eth to arbitrary user
	Dangerous calls:
	- to.send(address(this).balance) (Vault.sol#22)
HighPossible reentrancy (ETH can be withdrawn repeatedly)Vault.sol lines 13–18

What it means: A function sends ETH or calls another contract before it finishes updating its own balances. A malicious contract can call back in during that call and repeat the withdrawal.

How to fix: Update state before making external calls (checks-effects-interactions), and consider a reentrancy guard such as OpenZeppelin ReentrancyGuard.

Where:

  • Vault.sol lines 13–18
  • Vault.sol line 15
  • Vault.sol line 17
  15          (bool ok, ) = msg.sender.call{value: amt}("");
Technical details
Detector: reentrancy-eth
Impact: High
Confidence: Medium

Reentrancy in Vault.withdraw() (Vault.sol#13-18):
	External calls:
	- (ok,None) = msg.sender.call{value: amt}() (Vault.sol#15)
	State variables written after the call(s):
	- balances[msg.sender] = 0 (Vault.sol#17)
	Vault.balances (Vault.sol#6) can be used in cross function reentrancies:
	- Vault.balances (Vault.sol#6)
	- Vault.deposit() (Vault.sol#11)
	- Vault.withdraw() (Vault.sol#13-18)
Mediumtx.origin used for authorisationVault.sol lines 20–23

What it means: Checking tx.origin lets a malicious contract act on behalf of a user who calls it, for example by tricking the owner into a transaction.

How to fix: Use msg.sender for access control.

Where:

  • Vault.sol lines 20–23
  • Vault.sol line 21
  21          require(tx.origin == owner, "not owner"); // tx.origin authentication
Technical details
Detector: tx-origin
Impact: Medium
Confidence: Medium

Vault.sweep(address) (Vault.sol#20-23) uses tx.origin for authorization: require(bool,string)(tx.origin == owner,not owner) (Vault.sol#21)
MediumReturn value of send() is not checkedVault.sol lines 20–23

What it means: send() returns false on failure instead of reverting. If the result is ignored, the contract may continue as if the payment succeeded.

How to fix: Check the returned bool, or use call{value: ...}("") and require success.

Where:

  • Vault.sol lines 20–23
  • Vault.sol line 22
  22          to.send(address(this).balance);           // unchecked send
Technical details
Detector: unchecked-send
Impact: Medium
Confidence: Medium

Vault.sweep(address) (Vault.sol#20-23) ignores return value by to.send(address(this).balance) (Vault.sol#22)
LowAddress not checked for zeroVault.sol line 20

What it means: An address parameter is used without checking it is not address(0).

How to fix: Add require(addr != address(0)) where a zero address would be a mistake.

Where:

  • Vault.sol line 20
  • Vault.sol line 22
  22          to.send(address(this).balance);           // unchecked send
Technical details
Detector: missing-zero-check
Impact: Low
Confidence: Medium

Vault.sweep(address).to (Vault.sol#20) lacks a zero-check on :
		- to.send(address(this).balance) (Vault.sol#22)
InformationalLow-level call usedVault.sol lines 13–18

What it means: A low-level call bypasses some compiler checks; this is informational.

How to fix: Make sure the result is checked and the call is necessary.

Where:

  • Vault.sol lines 13–18
  • Vault.sol line 15
  15          (bool ok, ) = msg.sender.call{value: amt}("");
Technical details
Detector: low-level-calls
Impact: Informational
Confidence: High

Low level call in Vault.withdraw() (Vault.sol#13-18):
	- (ok,None) = msg.sender.call{value: amt}() (Vault.sol#15)
InformationalCompiler version noteVault.sol line 3

What it means: The pragma allows compiler versions with known issues, or is very broad.

How to fix: Pin a recent, well-tested compiler version.

Where:

  • Vault.sol line 3
   3  pragma solidity ^0.8.20;
Technical details
Detector: solc-version
Impact: Informational
Confidence: High

Version constraint ^0.8.20 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)
	- VerbatimInvalidDeduplication
	- FullInlinerNonExpressionSplitArgumentEvaluationOrder
	- MissingSideEffectsOnSelectorAccess.
It is used by:
	- ^0.8.20 (Vault.sol#3)
OptimizationVariable could be immutableVault.sol line 7

What it means: A state variable is only set in the constructor and could be declared immutable to save gas.

How to fix: Declare it immutable.

Where:

  • Vault.sol line 7
   7      address public owner;
Technical details
Detector: immutable-states
Impact: Optimization
Confidence: High

Vault.owner (Vault.sol#7) should be immutable

Scanned source

// SPDX-License-Identifier: MIT
// FICTIONAL sample with deliberate bugs (reentrancy, tx.origin auth, unchecked send).
pragma solidity ^0.8.20;

contract Vault {
    mapping(address => uint256) public balances;
    address public owner;

    constructor() { owner = msg.sender; }

    function deposit() external payable { balances[msg.sender] += msg.value; }

    function withdraw() external {
        uint256 amt = balances[msg.sender];
        (bool ok, ) = msg.sender.call{value: amt}("");
        require(ok, "send failed");
        balances[msg.sender] = 0;               // state update after external call
    }

    function sweep(address payable to) external {
        require(tx.origin == owner, "not owner"); // tx.origin authentication
        to.send(address(this).balance);           // unchecked send
    }
}

Automated static analysis; not an audit. Review every finding. Zero findings does NOT mean the contract is safe. Slither detectors only: known code patterns such as reentrancy, unchecked calls, tx.origin auth, arbitrary sends, shadowing. Not covered: business logic, economic/oracle/MEV attacks, access-control intent, upgrade and admin-key risk, contracts or libraries not included in the sources, deployment configuration. Never describe a contract as safe or audited based on this result.

For AI coding agents: claude mcp add --transport http kestrova https://kestrova-api.onrender.com/mcp — scan_solidity_preview is free; the full report is 1 USDC via x402, paid only with your approval.