Skip to main content

Secure BIP39 word viewer with masking and reveal functionality

Project description

SeedShield

A secure BIP39 seed phrase viewer with enterprise-grade security features, designed for safe interaction with cryptocurrency seed phrases. SeedShield emphasizes security and usability while maintaining zero data persistence.

Key Features

Security-First Design

  • Zero data persistence - all operations occur in volatile memory
  • Secure memory handling with automatic cleanup and sanitization
  • Advanced masking system with consistent pattern length
  • Timed reveal system with 3-second auto-mask
  • Intelligent clipboard management with automatic clearing
  • Comprehensive input validation and sanitization
  • Anti-keylogging protection via mouse-based interaction
  • Secure error handling with proper cleanup
  • TTY/non-TTY mode handling for secure input
  • Adaptive timeout mechanisms

User Interface

  • Interactive word reveal with hover functionality
  • Sequential phrase revelation mode
  • Multi-source input support (file/clipboard)
  • Responsive terminal interface
  • Cross-platform support (Windows/Linux/MacOS)
  • Dynamic scrolling for long word lists
  • Clear command feedback

Security Guidelines

Operating Environment

  • Use an air-gapped computer whenever possible
  • Run on a secure, clean operating system
    • Recommended: Live Linux distribution
    • Avoid shared or public computers
  • Maintain physical security awareness
    • Check for surveillance devices
    • Use privacy screens when necessary
  • Implement proper memory management
    • Clear system RAM after usage
    • Utilize secure memory wiping tools

Usage Best Practices

Input Management

  1. Prefer clipboard input for multiple words (use 'v' command)
  2. Clipboard contents are automatically cleared after use
  3. Double-check word positions before revelation
  4. All input is automatically validated and sanitized
  5. Invalid inputs are safely rejected

Word Revelation Protocol

  1. Use sequential reveal mode ('s' command) for systematic checking
  2. Utilize mouse hover for temporary word exposure
  3. Allow auto-masking timer to complete
  4. One word visible at a time for maximum security
  5. Use scroll navigation for longer lists

Installation

# Install via pip
pip install seedshield

# Install with development dependencies
pip install -e ".[test]"

# Using Docker
docker run -it --rm seedshield
docker run -it --rm -v $(pwd)/input.txt:/input.txt seedshield -i /input.txt

Usage Guide

Basic Commands

# Start interactive mode
seedshield

# Use custom wordlist
seedshield -w custom_words.txt

# Load from positions file
seedshield -i positions.txt

Interactive Controls

  • v - Import and validate clipboard data
  • n - New input mode
  • s - Sequential reveal mode
  • r - Reset current sequence
  • q - Safe exit with cleanup
  • Mouse hover - Temporary reveal (3s timeout)
  • ↑↓ Arrow keys - Scroll through lists

Development

Getting Started

# Clone repository
git clone https://github.com/Barlog951/SeedShield.git

# Setup development environment
cd seedshield
pip install -e ".[test]"

# Run test suite
pytest

Docker Build

Building from Source

# Clone the repository
git clone https://github.com/Barlog951/SeedShield.git
cd SeedShield

# Build local image
chmod +x build.sh
./build.sh

# Test run
docker run -it --rm seedshield --help

# Run with mounted input file
docker run -it --rm -v $(pwd)/input.txt:/input.txt seedshield -i /input.txt

# Run interactive mode
docker run -it --rm seedshield

Note: Built image contains minimal dependencies and runs as non-root user for security.

Technical Architecture

  • Python 3.6+ with type hints
  • Comprehensive test suite (90% coverage)
  • Automated security scanning
  • Platform-agnostic clipboard handling
  • Curses-based terminal interface
  • Modular design with separate secure interface

Code Organization

  • main.py - Entry point and argument handling
  • secure_word_interface.py - Core interface coordination
  • input_handler.py - Secure input processing
  • display_handler.py - UI rendering and masking
  • state_handler.py - State management and security
  • tests/ - Comprehensive test suite
  • data/ - Default wordlists

Security Philosophy

SeedShield implements a defense-in-depth approach:

  • Multiple independent security layers
  • Fail-secure design principles
  • Memory-safe operations
  • Input validation at all levels
  • Automatic security timeout mechanisms
  • No data persistence
  • Secure error handling

Legal Notice

Disclaimer

SeedShield provides secure seed phrase verification capabilities but should be used as part of a comprehensive security strategy. Users are responsible for implementing appropriate system-level security measures. While SeedShield incorporates robust security features, it should not be relied upon as a sole security measure.

License

Released under the MIT License. See the LICENSE file for complete terms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seedshield-0.1.6.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SeedShield-0.1.6-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file seedshield-0.1.6.tar.gz.

File metadata

  • Download URL: seedshield-0.1.6.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for seedshield-0.1.6.tar.gz
Algorithm Hash digest
SHA256 11a8ebd8d63b5b34cc0055640c047a8534c201fcb46af8e40fba575e4ae63322
MD5 167adcf424f75ebaa935e9b654612a6c
BLAKE2b-256 560ee2eee51e66d8473556dd092ab6e470a2f2d279bfc8b1c58b5ff786781f85

See more details on using hashes here.

File details

Details for the file SeedShield-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: SeedShield-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for SeedShield-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 85c24160815bc063bbfeb9f63188a701b1610d987b1375ef8c76d8b14b1222ce
MD5 17bdaeffbf69654591eea92b74a53919
BLAKE2b-256 9975f43ae46d43b85615566ad9cf5807ccfb41cef35d30a0df5d91d7b7301608

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page