Smart Contract Backdoor Detection

Implementation Details

Class Names

Model Name
Parameters Class
Data Class

SmartContractBackdoorDetection

BackdoorDetectionQueryParams

BackdoorDetectionData

Import Statement

pythonCopyEditfrom satoshi_terminal.models.smart_contract_backdoor_detection import (
    SmartContractBackdoorDetection,
    BackdoorDetectionQueryParams,
    BackdoorDetectionData,
)

Parameters

Name
Type
Description
Default
Optional

contract_address

Union[str, List[str]]

Smart contract address(es) to analyze.

None

False

detection_criteria

List[str]

Specific backdoor types to check for (e.g., "Unauthorized Access," "Hidden Admin").

None

True

code_snapshot

bool

Include a snapshot of the contract code in the analysis.

False

True


Data

Name
Type
Description

contract_address

str

Address of the smart contract analyzed.

backdoor_detected

bool

Whether a backdoor was detected in the contract.

backdoor_description

str

Detailed explanation of the detected backdoor, if any.

severity_score

float

Risk score (0-100) indicating the severity of the detected backdoor.

timestamp

datetime

Timestamp of the analysis.


Key Features

  • Code-Level Vulnerability Analysis: Detects backdoors such as unauthorized function calls, hidden admin privileges, and token minting loopholes.

  • Severity Scoring: Provides actionable insights with quantified risk levels.

  • Automated Code Snapshots: Allows users to review the exact lines of code containing vulnerabilities.

Last updated