Advanced Network Monitoring & Packet Capture System
StealthShark is a sophisticated network monitoring system designed for cybersecurity professionals, network administrators, and security researchers. It provides continuous, stealth packet capture with intelligent memory management and automated cleanup capabilities.
- ๐ต๏ธ Stealth Operation: Disguised processes with fake system names
- ๐ง Intelligent Memory Management: Automated cleanup and resource optimization
- ๐ Real-time Monitoring: Live dashboard with system metrics
- ๐ Auto-rotation: Time-based capture file rotation
- โก Multi-interface Support: Simultaneous monitoring across network interfaces
- ๐ก๏ธ Crash Recovery: Watchdog processes ensure continuous operation
- ๐ฑ Multiple Interfaces: CLI, GUI, and Web dashboard options
# Install Wireshark (includes tshark) brew install wireshark # Configure BPF permissions for unprivileged capture sudo /usr/local/bin/wireshark-chmodbpf
git clone https://github.com/yourusername/StealthShark.git cd StealthShark python3 -m venv stealthshark_env source stealthshark_env/bin/activate pip3 install -r requirements.txt
๐ฅ๏ธ GUI Application (Recommended)
./launch_gui_monitor.command
โก Quick Status Check
./quick_status_check.command
๐ง Full CLI System
./launch_enhanced_memory_monitor.command
๐งน Cleanup Operations
./cleanup_captures.command
Configure StealthShark to start automatically when your Mac boots:
Install Auto-Start
./install_autostart.sh
The installer will prompt you for:
- Duration: Default capture rotation period (in hours)
- Mode: Enhanced Monitor (recommended), Simple Monitor, or GUI
Uninstall Auto-Start
./uninstall_autostart.sh
Check Status
launchctl list | grep stealthsharkManual Control
# Stop the service launchctl unload ~/Library/LaunchAgents/com.stealthshark.monitor.plist # Start the service launchctl load ~/Library/LaunchAgents/com.stealthshark.monitor.plist
Logs are saved to: logs/stealthshark.log and logs/stealthshark_error.log
enhanced_memory_monitor.py- Main monitoring engine with memory optimizationgui_memory_monitor.py- PyQt6-based graphical interfacesimple_tshark_monitor.py- Lightweight capture daemon- Desktop Launchers - One-click execution scripts
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ GUI Monitor โ โ Memory Manager โ โ TShark Captures โ
โ (PyQt6) โโโโโบโ (Intelligent) โโโโโบโ (Stealth) โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ System Tray โ โ Watchdog โ โ File Rotation โ
โ Integration โ โ Processes โ โ & Cleanup โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
- Process name obfuscation using
exec -a - Disguised as system processes (
kernel_task,launchd, etc.) - Minimal system footprint
- Silent operation with configurable logging
- Adaptive Thresholds: Dynamic memory limits based on system capacity
- Predictive Cleanup: Proactive file management before limits are reached
- Compression: Automatic GZIP compression of older captures
- Smart Rotation: Time and size-based file rotation strategies
- Real-time memory and disk usage visualization
- Active process monitoring with detailed statistics
- Network interface status indicators
- Historical performance metrics
# Default configuration in enhanced_memory_monitor.py MAX_MEMORY_GB = 8 # Maximum memory usage MAX_DISK_GB = 50 # Maximum disk usage CLEANUP_THRESHOLD = 0.8 # Cleanup trigger (80%) ROTATION_HOURS = 4 # File rotation interval
# Monitored interfaces (auto-detected) INTERFACES = ['en0', 'en1', 'awdl0'] # WiFi, Ethernet, AirDrop
- Requires BPF (Berkeley Packet Filter) access
- No root privileges needed after initial setup
- Secure file permissions on capture data
- Local storage only (no cloud transmission)
- Configurable data retention policies
- Encrypted storage options available
WiFi Network Scanning (macOS Sequoia+)
- WiFi threat detection features have been removed due to macOS privacy restrictions
- macOS now redacts WiFi SSID names in command-line tools (
<redacted>) - This prevents WiFi Pineapple detection and evil twin network identification
- See MACOS_WIFI_LIMITATION.md for technical details and alternatives
- Core packet capture and network monitoring features are not affected
- Real-time dashboard with progress bars
- Process management table
- System tray integration
- Configuration dialogs
- Interactive menus for all operations
- Detailed logging and status reports
- Scriptable for automation
- Browser-based monitoring
- Remote access capabilities
- API endpoints for integration
- Threat Detection: Continuous monitoring for suspicious network activity
- Incident Response: Automated evidence collection
- Malware Analysis: Network behavior analysis
- Performance Monitoring: Bandwidth and latency tracking
- Troubleshooting: Detailed packet-level diagnostics
- Compliance: Automated logging for regulatory requirements
- 24/7 Monitoring: Unattended operation with alerting
- Forensic Collection: Timestamped evidence preservation
- Threat Hunting: Historical data analysis
- Memory Efficiency: < 100MB RAM usage during normal operation
- CPU Impact: < 5% CPU utilization on modern systems
- Storage Optimization: 60-80% compression ratio on captured data
- Reliability: 99.9% uptime with watchdog recovery
# Example: Monitor only HTTP/HTTPS traffic tshark -i en0 -f "port 80 or port 443" # Example: Focus on specific IP ranges tshark -i en0 -f "net 192.168.1.0/24"
# Python API usage from enhanced_memory_monitor import MemoryOptimizedTSharkMonitor monitor = MemoryOptimizedTSharkMonitor() monitor.start_monitoring(['en0', 'en1']) status = monitor.get_system_status()
We welcome contributions! Please see our Contributing Guidelines for details.
git clone https://github.com/yourusername/StealthShark.git cd StealthShark python3 -m venv dev_env source dev_env/bin/activate pip3 install -r requirements-dev.txt
This project is licensed under the MIT License - see the LICENSE file for details.
- Wireshark Foundation - For the excellent tshark tool
- PyQt Project - For the robust GUI framework
- Security Community - For continuous feedback and improvements
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Security: Report vulnerabilities via email
NEW: StealthShark now includes LoopbackShark, a specialized localhost traffic analyzer with:
- ๐ฏ Pattern Recognition - Automatic detection of web servers, databases, APIs
- ๐ Real-time Analysis - Live monitoring with PyQt6 GUI
- ๐ Application Detection - Identifies Redis, MySQL, HTTP servers, and more
- ๐ Historical Analysis - Trend analysis from captured data
- โ๏ธ Smart Configuration - Persistent settings with 24-hour default monitoring
- ๐ฅ๏ธ Desktop Launcher - Easy access via
LoopbackShark.command
StealthShark Network Monitor:
./StealthShark.command
LoopbackShark Localhost Monitor:
./LoopbackShark.command
Built with โค๏ธ for the cybersecurity community
StealthShark + LoopbackShark - Complete network visibility for security professionals.
MobileShield is a comprehensive mobile security platform that brings enterprise-grade network analysis, RF spectrum monitoring, and advanced threat detection to mobile devices. This platform integrates multiple security tools including StealthShark into a cohesive ecosystem designed for professional mobile security research and analysis.
- ๐ฑ MobileWireshark - Wireshark-like packet analysis for Android
- ๐ก Live RF Capture - Real-time HackRF One integration for spectrum analysis
- ๐ฆ StealthShark - Advanced network monitoring and packet capture
- ๐ LoopbackShark - Specialized localhost traffic analysis with pattern recognition
- ๐ต Advanced Bluetooth Shielding - Device management and 2FA authentication
- ๐ Professional UI - Dark-themed, responsive interface
- ๐ Enterprise Security - Compliance-ready security features
MobileShield/
โโโ MobileShieldAndroid/ # Main Android application
โ โโโ MobileWireshark/ # React Native mobile app
โ โโโ AndroidSimulator/ # Development simulator with live RF
โ โโโ SDR_Hardware_Detection/ # HackRF One integration
โ โโโ UTM_Android_VM/ # Android VM for testing
โโโ PhoneRootBot/ # Phone rooting and analysis tools
โโโ PineappleExpress/ # WiFi Pineapple integration
โโโ RaygunX/ # Advanced penetration testing
โโโ WindsurfOfflineAccessEvidence/ # Offline access analysis
- Live HackRF One RF Capture - Real-time spectrum analysis (800-6000 MHz)
- Live Phone Network Monitoring - Packet capture from specific phone IPs
- Memory-Optimized Android Simulator - Stable performance with live data
- Professional UI Components - Dark theme with real-time visualization
- Dual Live Capture - RF + Network packet analysis simultaneously
- Threat Detection Engine - Pattern analysis for suspicious activities
- React Native Mobile App - Native Android application
- Bluetooth 2FA System - MAC address-based authentication
- Hardware Integration - Phone case security device concept
- Enterprise Dashboard - Web-based management interface
- React Native with TypeScript
- PyQt6 for simulator GUI
- Scapy for network packet analysis
- HackRF One SDK for RF capture
- SQLite for local data storage
- Python 3 with asyncio
- NumPy/Matplotlib for signal processing
- Machine Learning for threat detection
- RESTful APIs for data exchange
- HackRF One - Software Defined Radio
- Android Devices - Target platform
- Custom Hardware - Future phone case integration
# macOS requirements brew install python3 hackrf pip3 install PyQt6 scapy matplotlib numpy # Android development # Install Android Studio and SDK # Enable USB debugging on target device
# Clone repository git clone https://github.com/AIMF-LLC/MobileShield.git cd MobileShield # Set up Android simulator with live RF capture cd MobileShieldAndroid/AndroidSimulator python3 -m venv AndroidSimulator_venv source AndroidSimulator_venv/bin/activate pip3 install -r requirements.txt # Launch with live HackRF One integration sudo ./launch_live_rf.sh
# Set up React Native environment cd MobileShieldAndroid/MobileWireshark npm install npx react-native run-android
- Connect HackRF One via USB
- Install HackRF drivers and tools
- Run with sudo permissions for hardware access
- Configure frequency range: 800-6000 MHz
- Set target phone IP address
- Configure network interface (default: en0)
- Enable packet capture permissions
- Set up threat detection rules
# Monitor phone RF emissions from live_rf_capture import LiveRFIntegration rf_capture = LiveRFIntegration( signal_callback=handle_rf_signal, activity_callback=handle_phone_activity ) rf_capture.start_live_capture()
# Capture phone network traffic from live_network_capture import LiveNetworkIntegration network_capture = LiveNetworkIntegration( phone_ip="10.215.173.1", packet_callback=handle_network_packet ) network_capture.start_live_monitoring()
- Suspicious Port Analysis - Detect unusual network connections
- RF Pattern Recognition - Identify malicious RF activities
- Data Exfiltration Detection - Monitor large data transfers
- Real-time Alerting - Immediate threat notifications
- Local Data Processing - No cloud dependencies
- Encrypted Storage - Secure local data storage
- Access Control - Role-based permissions
- Audit Logging - Comprehensive activity tracking
- HackRF One Validation - RF capture functionality
- Phone Integration - Network monitoring accuracy
- Performance Testing - Memory usage optimization
- Stability Testing - Long-running capture sessions
- Penetration Testing - Vulnerability assessment
- Threat Simulation - Malware detection testing
- Performance Impact - Device resource usage
- Privacy Validation - Data handling compliance
- Live RF capture integration
- Network packet monitoring
- Android simulator development
- Basic threat detection
- React Native application
- Bluetooth 2FA system
- Enterprise dashboard
- Cloud integration
- Phone case security device
- NFC integration
- Wireless charging interface
- Proprietary security protocols
- Follow Python PEP 8 style guide
- Use TypeScript for React Native components
- Implement comprehensive error handling
- Write unit tests for all features
- Document all public APIs
- Never commit API keys or secrets
- Use secure coding practices
- Validate all user inputs
- Implement proper access controls
- Follow OWASP mobile security guidelines
Proprietary Software - AIMF LLC
This software contains proprietary technology and trade secrets. Unauthorized reproduction, distribution, or reverse engineering is strictly prohibited.
AIMF LLC - Advanced Intelligence & Mobile Forensics
- Technical Support: [Contact Information]
- Documentation: [Documentation Portal]
- Issue Tracking: GitHub Issues
- Security Reports: [Security Contact]
- Live HackRF One RF capture integration
- Phone network monitoring (IP-based)
- Memory-optimized Android simulator
- Dual live capture (RF + Network)
- Professional dark-themed UI
- Real-time threat detection engine
Built with โค๏ธ by AIMF LLC - Securing the Mobile Future
659e5f2b1a93d5e4621f6f8c9567432aaa22cf14