Installation Guide

LightScope is available for multiple operating systems

Reach Out To Eric!
This project is my passion, so if you want to chat about your results, have questions, suggestions, or want to collaborate, please reach out to me! (I promise I'm friendly). Email me at e@alumni.usc.edu

Linux Installation

LightScope is available as pre-built packages for all major Linux distributions:

Linux Downloads

Download the latest LightScope packages for Linux:

After downloading, install using the commands below or your package manager.

Debian/Ubuntu (.deb) MINIMAL i.e. EC2 default

To install LightScope on Debian/Ubuntu, copy and paste the following command into your terminal:
sudo apt-get update && sudo apt-get install -y software-properties-common && sudo add-apt-repository -y universe && sudo apt-get update && wget https://thelightscope.com/latest/lightscope_latest.deb && sudo apt install -y ./lightscope_latest.deb

ℹ️ The -y automatically confirms installation. This will install all dependencies and start the LightScope service.

Debian/Ubuntu (.deb) normal, with universe repo enabled

To install LightScope on Debian/Ubuntu, copy and paste the following command into your terminal:
wget https://thelightscope.com/latest/lightscope_latest.deb && sudo apt install -y ./lightscope_latest.deb

ℹ️ The -y automatically confirms installation. This will install all dependencies and start the LightScope service.

Red Hat Enterprise Linux 10 (.rpm)

To install LightScope on Red Hat Enterprise Linux 10, copy and paste the following command into your terminal:
wget https://thelightscope.com/latest/lightscope_latest.rpm && sudo subscription-manager repos   --enable codeready-builder-for-rhel-10-$(uname -m)-rpms && sudo dnf install -y dnf-plugins-core && sudo dnf install -y ./lightscope_latest.rpm
The -y automatically confirms installation. This will install all dependencies and start the LightScope service.

Red Hat Enterprise Linux 9 (.rpm)

To install LightScope on Red Hat Enterprise Linux, copy and paste the following command into your terminal:
wget https://thelightscope.com/latest/lightscope_latest.rpm && sudo subscription-manager repos   --enable codeready-builder-for-rhel-9-$(uname -m)-rpms && sudo dnf install -y dnf-plugins-core && sudo dnf install -y ./lightscope_latest.rpm
The -y automatically confirms installation. This will install all dependencies and start the LightScope service.

Fedora Linux(.rpm)

To install LightScope on Fedora Linux, copy and paste the following command into your terminal:
wget https://thelightscope.com/latest/lightscope_latest.rpm && sudo dnf install -y dnf-plugins-core && sudo dnf install -y ./lightscope_latest.rpm
The -y automatically confirms installation. This will install all dependencies and start the LightScope service.

Alma Linux(.rpm)

To install LightScope on Alma Linux, copy and paste the following command into your terminal:
wget https://thelightscope.com/latest/lightscope_latest.rpm && sudo dnf install -y dnf-plugins-core && sudo dnf config-manager --set-enabled crb && sudo dnf install -y ./lightscope_latest.rpm
The -y automatically confirms installation. This will install all dependencies and start the LightScope service.

Amazon AWS Linux(.rpm)

To install LightScope on Amazon AWS Linux, copy and paste the following command into your terminal:
wget https://thelightscope.com/latest/lightscope_latest.rpm && sudo dnf install -y dnf-plugins-core && sudo dnf install -y ./lightscope_latest.rpm
The -y automatically confirms installation. This will install all dependencies and start the LightScope service.

After Installation (If Needed)

  • Service Status: sudo systemctl status lightscope
  • View Logs: sudo journalctl -u lightscope -f
  • Restart Service: sudo systemctl restart lightscope
  • Find Your Database Name & Dashboard URL: sudo systemctl status lightscope - look for your dashboard URL in the Docs line!

✅ LightScope runs securely as a system service with minimal privileges.

📊 Accessing Your Dashboard: Your unique database name and dashboard URL are displayed during installation and available anytime via systemctl status:
$ sudo systemctl status lightscope
● lightscope.service - LightScope Network Security Monitor
     Docs: https://thelightscope.com
           https://thelightscope.com/light_table/20250629_gvzdkbinpryhdrszsdzufpoeejxmoyhngrrjrjrxodfsuwf
Simply copy the second Docs URL (containing /tables/) to access your dashboard directly, or visit https://lightscope.isi.edu/tables to enter your database name manually.

Verifying Linux Installation

To verify that LightScope is running correctly on Linux:

  1. Check service status: sudo systemctl status lightscope should show "active (running)"
  2. Monitor network activity: LightScope automatically captures unwanted TCP traffic on your network
  3. View logs: Use sudo journalctl -u lightscope -f to see live activity
  4. Dashboard access: Visit the Dashboard page to enter your unique database name and access your personalized threat intelligence

✅ LightScope automatically starts after installation and runs securely as a system service with minimal privileges.

How Does Linux Installation Work?

Security was our top priority when designing LightScope's installation and operation. Here's what happens during installation:

🔒 Security-First Architecture
  • Dedicated System User: Creates a low-privilege system user called lightscope with no shell access
  • No Root Privileges: LightScope never runs as root - the service operates with minimal system privileges
  • Linux Capabilities: Instead of root access, we grant only the specific network capabilities needed:
    • CAP_NET_RAW - Raw socket access for packet capture
    • CAP_NET_ADMIN - Network interface management
    • CAP_NET_BIND_SERVICE - Bind to network services
  • Filesystem Isolation: Protected system files, isolated temporary directories, and restricted file access
⚙️ Installation Process
  1. System Dependencies: Installs required libraries (libpcap-devel, python3-devel, etc.)
  2. User Creation: Creates the lightscope system user with home directory /opt/lightscope
  3. Directory Structure: Sets up secure directories for configuration, logs, and updates
  4. Python Environment: Configures Python with network capabilities (no root needed)
  5. Systemd Service: Installs and enables the lightscope service for automatic startup
  6. Security Hardening: Applies filesystem protections and capability restrictions
  7. Service Start: Automatically starts monitoring network traffic
🛡️ Runtime Security Features
  • Privilege Separation: Runs as unprivileged lightscope user, not root
  • Minimal Attack Surface: Only network inspection capabilities, no system administration rights
  • Automatic Restart: Systemd monitors and restarts the service if needed
  • Secure Logging: All activity logged to systemd journal with proper permissions
  • Resource Limits: Built-in limits on memory, file handles, and system resources
🔄 Secure Automatic Updates

LightScope includes a secure automatic update system designed with security as the top priority:

  • Hourly Update Checks: Automatically checks for new versions every hour from https://thelightscope.com
  • Cryptographic Signatures: All updates are signed with RSA-4096 cryptographic signatures before distribution
  • Signature Verification: Every update is cryptographically verified before installation - unsigned updates are rejected
  • HTTPS-Only Downloads: All update downloads use encrypted HTTPS connections to prevent tampering
  • Public Key Pinning: The public verification key is stored locally and validated to prevent key substitution attacks
  • Backup System: Previous versions are automatically backed up before applying updates
  • Rollback Protection: If an update fails verification or causes issues, the system can rollback to the previous version
  • Update Logs: All update activity is logged to the systemd journal for audit purposes
Security Note: Updates maintain the same security model - they run as the unprivileged lightscope user and cannot modify system files outside of /opt/lightscope.
🛑 Stopping and Uninstalling LightScope
To stop LightScope temporarily:
sudo systemctl stop lightscope
To disable auto-start (but keep installed):
sudo systemctl disable lightscope
To completely uninstall LightScope:
Debian/Ubuntu:
sudo systemctl stop lightscope
sudo apt remove lightscope
sudo apt purge lightscope  # Removes config files too
RHEL/Fedora/CentOS:
sudo systemctl stop lightscope
sudo yum remove lightscope
# or: sudo dnf remove lightscope
Manual cleanup (if needed):
# Remove user and home directory
sudo userdel -r lightscope

# Clean up any remaining files
sudo rm -rf /opt/lightscope

ℹ️ The package manager handles cleanup automatically, but manual commands are provided for reference.

🔧 Linux Troubleshooting
  • Service not starting: Check service status with sudo systemctl status lightscope
  • Permission issues: The package automatically configures proper permissions and capabilities
  • Package conflicts: If installation fails, try sudo apt update (Debian/Ubuntu) or sudo yum update (RHEL/CentOS)
  • Network issues: Ensure your firewall allows the LightScope service to monitor network traffic
  • View detailed logs: Use sudo journalctl -u lightscope -f to see real-time service logs

Windows Installation

LightScope is available as a Windows installer that automatically configures all dependencies:

Windows Download

Download the latest LightScope installer for Windows:

Compatible with Windows 10 and Windows 11. Follow the installation steps below.

Prerequisites

Before running the LightScope installer, please ensure you have:

  1. Python 3.8+: Download from python.org
    • ⚠️ Important: During Python installation, make sure to check the "Add Python to PATH" option
    • This allows LightScope to find Python automatically
  2. Npcap: Download from nmap.org/npcap
    • Required for network packet capture on Windows
    • Install with default settings

Installation Steps

  1. Download: Get the Windows installer from the Direct Downloads section above
  2. Run Installer: Double-click lightscope_latest.exe to launch the installer
  3. Follow Wizard: The installer will guide you through the setup process
  4. Automatic Start: LightScope will automatically start running in the background
  5. Firewall Permission: Allow LightScope through Windows Firewall when prompted

✅ LightScope automatically starts with Windows and runs in the background.

Windows Capabilities

  • No Administrator Permissions Required: LightScope runs as a standard user application
  • No Special Permissions: No special system permissions need to be granted
  • Firewall Access Only: The only permission required is allowing through Windows Firewall (happens automatically during installation)
  • User-Level Operation: Runs safely in user space without system-level access

Using LightScope on Windows

  • Automatic Startup: LightScope runs automatically when Windows starts
  • System Tray: Look for the LightScope icon in your system tray (bottom-right corner)
  • Access Dashboard: Right-click the LightScope icon and select "View Dashboard" to open your personalized dashboard
  • Status Monitoring: The tray icon indicates LightScope is running and monitoring your network
  • Quit LightScope: Right-click the tray icon and select "Quit" to stop LightScope
  • LightScope will be installed at "C:\Users\Eric\AppData\Local\LightScope" where you replace "Eric" with your username. You can view logs etc at this location.
Visual Guide:
LightScope System Tray Icon

Step 1: Look for the LightScope icon in your system tray

LightScope Context Menu

Step 2: Right-click to access dashboard or quit LightScope

📊 Dashboard Access: Right-click the LightScope system tray icon and select "View Dashboard" to be taken directly to your personalized threat intelligence dashboard.

Uninstalling LightScope on Windows

  1. Open Settings: Go to Windows Settings > Apps > Apps & features
  2. Find LightScope: Search for "LightScope" in the app list
  3. Uninstall: Click on LightScope and select "Uninstall"
  4. Complete Removal: LightScope will be completely removed from your system

ℹ️ Alternative: Go to Control Panel > Programs and Features > Uninstall a program, then select LightScope.

macOS Installation

LightScope is available as a native macOS package that integrates seamlessly with your Mac:

macOS Download

Download the latest LightScope package for macOS:

Compatible with macOS 10.14 (Mojave) and later. Includes installation script.

Quick Terminal Installation

For advanced users, here's the complete installation in terminal commands:

# Download and extract 
                
curl -LO https://thelightscope.com/latest/lightscope_latest_macos.zip
 unzip lightscope_latest_macos.zip
 cd lightscope/
 
 # Install LightScope
./install.sh
 
# If that doesn't work, try: sh install.sh or email me at e@alumni.usc.edu for support.
# After 10 seconds you will get a pop up informing you that LightScope is running. 
# You can view your dashboard by clicking the LightScope icon in the top right corner of your screen. 



Managing LightScope Service

Check if LightScope is running:
launchctl list | grep lightscope

✅ You should see: com.thelightscope.lightscope if LightScope is running

View LightScope processes:
ps aux | grep lightscope-runner

✅ You should see "lightscope-runner.py" processes under your username

⚠️ Note: You may see _lightscope processes in ps aux | grep lightscope - these are unrelated macOS system processes. Look specifically for lightscope-runner.py processes under your username.
Stop LightScope:
launchctl unload ~/Library/LaunchAgents/com.thelightscope.lightscope.plist

✅ After stopping, ps aux | grep lightscope-runner should show no processes under your username

Start LightScope:
launchctl load ~/Library/LaunchAgents/com.thelightscope.lightscope.plist

✅ After starting, ps aux | grep lightscope-runner should show the lightscope-runner.py process

Restart LightScope:
launchctl unload ~/Library/LaunchAgents/com.thelightscope.lightscope.plist
 launchctl load ~/Library/LaunchAgents/com.thelightscope.lightscope.plist

✅ LightScope automatically restarts if it crashes or encounters errors.

📝 Important: The _lightscope processes you may see in ps aux | grep lightscope are unrelated macOS system processes. Only look for lightscope-runner.py processes under your username to verify LightScope status.

Finding Your Database Name

Your unique database name is available in several places. Choose the method that works best for you:

🚀 Quick Method (Recommended):
One-liner command: Copy and paste this into Terminal:
grep '^database = ' /Applications/LightScope.app/Contents/Resources/config.ini | cut -d'=' -f2 | tr -d ' '
or Configuration File:
cat /Applications/LightScope.app/Contents/Resources/config.ini

Look for the line starting with database =

$ cat /Applications/LightScope.app/Contents/Resources/config.ini
[Settings]
database = 20250715_eawucbwzjsuryhdyqviwprftseknpgsavjiwxpxvujbmdsuvbmhxak
📊 Dashboard URL Format: Your dashboard URL is always:
https://thelightscope.com/light_table/YOUR_DATABASE_NAME
📋 Web Interface: You can also visit https://thelightscope.com/light_table/ to enter your database name manually.

Viewing Logs

LightScope logs are stored in:
/Applications/LightScope.app/Contents/Resources/logs/
View recent activity:
tail -f /Applications/LightScope.app/Contents/Resources/logs/lightscope.log
View all logs:
ls -la /Applications/LightScope.app/Contents/Resources/logs/
Search logs for your database name:
grep "database" /Applications/LightScope.app/Contents/Resources/logs/*.log

ℹ️ Logs include startup messages, network activity, and any errors or warnings.

Verifying macOS Installation

To verify that LightScope is running correctly on macOS:

  1. Check LaunchAgent: launchctl list | grep lightscope should show the service
  2. Check processes: ps aux | grep lightscope-runner should show running processes under your username
  3. Check notifications: You should receive periodic LightScope status notifications
  4. Check logs: tail /Applications/LightScope.app/Contents/Resources/logs/lightscope.log should show recent activity
  5. Dashboard access: Visit the Dashboard page to enter your database name
✅ Expected Output: When LightScope is running, you should see processes like:
yourusername    1234   0.0  0.0 411683648  55856   ??  S    10:45AM   0:03.25 Python /Applications/LightScope.app/Contents/Resources/bin/lightscope-runner.py

How Does macOS Installation Work?

LightScope for macOS is designed to integrate seamlessly with macOS security and user experience:

🔒 Security-First Design
  • Application Bundle: Installed as a standard (not root!) macOS application in /Applications/LightScope.app
  • No elevated permissions to run
  • Minimal Privileges: Runs with only the network monitoring privileges required
  • Sandboxed Operation: Operates within macOS security constraints
  • No System Extensions: No kernel extensions or system modifications required
⚙️ Installation Process
  1. Application Installation: Installs LightScope.app to /Applications/
  2. LaunchAgent Setup: Configures automatic startup via LaunchAgent
  3. Configuration Generation: Creates unique database name and configuration
  4. Log Directory: Sets up logging in application bundle
  5. Notification Registration: Registers for macOS notification system
  6. Service Start: Automatically starts monitoring network traffic
🛡️ Runtime Security Features
  • User-Level Operation: Runs as the logged-in user, not as root
  • LaunchAgent Management: macOS automatically manages the service lifecycle
  • Crash Recovery: Automatically restarts if the service encounters issues
  • Native Notifications: Integrates with macOS notification system
  • Resource Management: macOS handles resource limits and cleanup
🔄 Automatic Updates

LightScope includes secure automatic updates:

  • Hourly Update Checks: Checks for new versions every hour
  • Cryptographic Verification: All updates are cryptographically signed and verified
  • HTTPS Downloads: All updates downloaded over secure HTTPS connections
  • Backup and Rollback: Previous versions backed up before updates
  • User Notification: Notifies you when updates are applied

Uninstalling LightScope

Method 1: Using the included uninstall script (Recommended)
# Navigate to your original LightScope package directory
cd /path/to/lightscope_package/

# Run the uninstall script
sudo ./uninstall.sh
Method 2: Manual removal

To completely uninstall LightScope from macOS manually:

1. Stop the service:
launchctl unload ~/Library/LaunchAgents/com.thelightscope.lightscope.plist
2. Remove the LaunchAgent:
rm ~/Library/LaunchAgents/com.thelightscope.lightscope.plist
3. Remove the application:
rm -rf /Applications/LightScope.app
Alternative: Use Finder
  1. Open Finder and go to Applications
  2. Find LightScope.app
  3. Drag it to the Trash
  4. Empty the Trash

ℹ️ The LaunchAgent will need to be removed manually if using Finder method.

macOS Troubleshooting

  • Service not starting: Check launchctl list | grep lightscope and restart if needed
  • No notifications: Check System Preferences > Notifications > LightScope to ensure notifications are enabled
  • Permission issues: The installer automatically configures required permissions
  • Network issues: LightScope requires network access - check macOS firewall settings
  • View detailed logs: Check /Applications/LightScope.app/Contents/Resources/logs/lightscope.log for detailed information
  • Multiple interfaces: LightScope automatically monitors all active network interfaces

Need Help?

If you encounter any issues during installation or have questions about LightScope, we're here to help!

Contact Support

Email: e@alumni.usc.edu
Response Time: We typically respond within 24 hours