Overview

Skylens is an advanced, web-based, bytecode-level debugging tool engineered by CertiK. It is designed specifically for security researchers, smart contract auditors, and protocol developers who require deep, granular inspection and analysis of on-chain transactions.

The tool’s primary function is to provide out-of-the-box, interactive debugging and emulation for transactions on all supported EVM-compatible chains. This capability moves far beyond the static trace viewers of traditional block explorers, allowing users to deconstruct complex, minified, or unverified contract interactions at the lowest possible level: the EVM opcodes.

Core Features

Skylens provides a comprehensive suite of features for full-scope transaction analysis and interactive debugging.

Full-Scope Transaction Analysis

Upon loading a transaction, Skylens presents a multi-tabbed interface that provides a complete overview of the transaction’s effects:

Interactive Bytecode-Level Debugging

This is the core “Debug” functionality of Skylens. Users can load any historical transaction and step through its execution opcode by opcode. At any point during this step-through, the user is given a real-time, comprehensive view of the complete EVM state, including:

Transaction Emulation & State Modification

This “Emulate” feature is the tool’s most powerful capability, allowing a researcher to move from forensics (what happened) to offensive research (what could happen). Skylens allows a user to “fork” the state of a transaction at any point and re-execute it with modified parameters. This “what-if” analysis provides the ability to modify the stack, memory, and storage at any execution point to see new results.

Smart Contract Inspection

Skylens provides a smart contract inspection tool, including:

Advanced Visual & AI-Assisted Analysis

To manage complex interactions, Skylens provides two advanced analysis aids:

Usage

Walkthrough 1: Initiating a Transaction Analysis Session

An analysis session is initiated using two main parameters: the chain and the transaction hash.

Method 1: Using the Web Interface (Most Common)

Navigate to https://skylens.certik.com/

The homepage displays a list of “Supported chains”. Enter the transaction hash into the search bar, then the system will automatically determine which chain the transaction is on.

search tx

Method 2: Direct URL Navigation

For faster access, users can navigate directly by crafting a URL in the following format: https://skylens.certik.com/tx/{chain}/{tx_hash}.

The Analysis Page

Upon loading a transaction, Skylens presents the static analysis dashboard. This view provides a complete, high-level summary of the transaction before any interactive debugging.

Key Components:

Walkthrough 2: Interactive Debugging (Forensics)

This walkthrough focuses on the “Debug” button and provides step-by-step execution analysis. This mode is used for forensic analysis of a historical transaction.

debug mode

Using the Bytecode Debugger

bytecode debugger bytecode debugger memory bytecode debugger storage

Modifying the Data During Execution

Skylens allows you to modify the data in stack / memory / storage during execution. When data is modified, Skylens will re-execute the transaction with the modified data, and then show the new execution trace.

modify stack

After modification, the data will be updated in the “Stack” / “Memory” / “Storage” panels.

stack modified

Also, the execution trace will be updated to reflect the changes:

execution trace modified

Walkthrough 3: Storage Layout Inspector

Skylens Storage Inspector lets users decode on-chain state variables by reading contract storage slots. Recent updates greatly enhance its capabilities:

Other Interesting Features

Ask AI

Skylens provides an “Ask AI” button in the debugger interface. This feature is an AI-driven assistant that allows a user to get an explanation of the behavior of the transaction. This allows the AI to provide security-specific context and identify potential risks. The following shows the result of asking AI to explain this transaction.

ask ai

Emulation

Skylens provides an “Emulation” button, which allows users to modify the parameters of the transaction and re-execute it.

emulation

Resources

LICENSE

Skylens follows the MIT license.