Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
shadow-fleet-tracker-light — Open source Baltic Sea shadow fleet tracker. 1200+ vessels, live AIS, cable proximity alerts. No cloud, no subscription, runs locally | Kitploit
Tools/GitHubGitHub/formerlab/shadow-fleet-tracker-light
OSINT (Open Source Intelligence)ReconnaissanceNetwork MappingNetwork ForensicsData ExfiltrationForensicsInformation GatheringDigital ForensicsThreat Intelligence

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
Incident Response
DNS Analysis
Log Analysis
GitHubformerlab/shadow-fleet-tracker-light

shadow-fleet-tracker-light

Open source Baltic Sea shadow fleet tracker. 1200+ vessels, live AIS, cable proximity alerts. No cloud, no subscription, runs locally

View Repository
423 months agoReviewed by Kitploit

Shadow Fleet Tracker Light

License: MIT

Baltic Sea shadow fleet monitoring via live AIS data. Watches 1200+ vessels from the Ukrainian GUR War&Sanctions catalogue against the AISStream WebSocket feed, plots positions on a self-updating map, flags proximity to undersea cables, and detects Russia↔West transshipment patterns.

Free, open source, runs locally. No cloud, no subscription beyond a free AISStream API key.

Part of the Former Lab sovereign intelligence toolchain.


Support Former Lab

Shadow Fleet Tracker Light is built and maintained by the Former Lab team — sovereign computing, building open, privacy-first tools on old hardware with no VC backing.

If this tool is useful to you, consider supporting on Patreon. A free tier is available, with a 7-day trial on paid tiers. Always support Ukraine!

patreon.com/FormerLab

Blog post on the tracker, screenshots and more: https://www.patreon.com/posts/153285871

Quick start

root@kitploit:~
git clone https://github.com/FormerLab/shadow-fleet-tracker-light.git
cd shadow-fleet-tracker-light
pip install -r requirements.txt
export AISSTREAM_API_KEY=your_key_here   # free at aisstream.io
python shadow_tracker.py &
uvicorn webserver:app --host 0.0.0.0 --port 8000

Open http://localhost:8000 — the map is at /map.

Windows users: see the Setup section for PowerShell/cmd environment variable syntax.

Linux / macOS users can use start.sh. Windows users can use start.bat or start.ps1 — both open tracker and dashboard in separate windows and launch the browser automatically.


What it does

  • Connects to the AISStream WebSocket and subscribes to a Baltic Sea bounding box
  • Filters the stream against a watchlist of 1200+ vessel MMSIs sourced from the Ukrainian GUR catalogue (Vessels1.db)
  • Plots live positions and route trails on a Folium/Leaflet map, refreshed every 3 minutes
  • Alerts when a vessel comes within 10 km of a cable segment (from filtered_cables.kml)
  • Detects loitering — vessels slow or stationary for 20+ minutes in a fixed area
  • Detects transshipment patterns — vessels calling at Russian ports then Western hubs (or vice versa) within 21 days
  • Logs all position data to SQLite for offline analysis
  • Warm-restarts from the position log — the map is populated immediately on startup with last known positions, no blank-canvas wait
  • Serves a FastAPI dashboard for log inspection, vessel analysis, GPX export, transshipment review, and interactive route replay

Map

Dark CartoDB basemap with cable routes overlaid in green. Vessel markers update every 3 minutes with a live countdown to the next refresh — the page auto-reloads. Popups show MMSI, IMO, flag, speed, heading, destination, and deep links to MarineTraffic, VesselFinder, and War&Sanctions. OpenSanctions sanctions status shown if an API key is configured.

Known vessel names from Vessels1.db are shown immediately on first appearance without waiting for an AIS static message.

On startup the map is pre-populated from the last 24 hours of the position log. Vessels not yet seen in the current session are shown as grey markers with a "last seen Xh ago" label — they transition to live colour as new pings arrive.


Files

root@kitploit:~
shadow_tracker.py          Main process — WS consumer, map renderer, DB writes
loitering_module.py        Loitering detection and map annotation
transshipment_module.py    Port call detection and Russia↔West transshipment flagging
webserver.py               FastAPI dashboard
gur_scrape.py              One-shot scraper — builds IMO→GUR-ID mapping + full vessel catalogue
check.py                   Preflight checks — Python version, deps, API key, network
start.sh                   Launcher for Linux / macOS
start.bat                  Launcher for Windows (Command Prompt)
start.ps1                  Launcher for Windows (PowerShell)
requirements.txt           Dependencies

Vessels1.db                Watchlist — 1200+ vessels (MMSI + IMO + name where known)
vessel_data_log.db         Position log — runtime, append-only
vessel_static.db           AIS static data cache (name, destination, flag history)
transshipment.db           Port call log and transshipment events
loitering_events.db        Loitering events
filtered_cables.kml        Baltic Sea undersea cable geometry
cables.kml                 Full cable dataset (pre-filter source)
gur_mapping.json           IMO→GUR-ID mapping (produced by gur_scrape.py, optional)
gur_vessels_full.json      Full GUR catalogue — GUR-ID→{imo, mmsi, name, flag} (produced by gur_scrape.py)

Watchlist

Vessels1.db is the canonical list of tracked vessels. 1200+ entries sourced from the Ukrainian GUR War&Sanctions catalogue, covering tankers and cargo vessels identified as part of the Russian shadow fleet or implicated in Baltic hybrid activity.

The list includes vessels recently seized or intercepted by Baltic authorities:

MMSIs are corrected against current AIS data — shadow fleet vessels reflag frequently. The update_vessels_2026_03.sql file documents all changes with sources.

The watchlist is intentionally open. Add vessels directly to Vessels1.db while the tracker is running — they will be picked up within 5 minutes without a restart.

Linux / macOS:

root@kitploit:~
sqlite3 Vessels1.db "INSERT OR IGNORE INTO vessels (mmsi, imo, name) VALUES ('123456789', '9999999', 'VESSEL NAME');"

Windows (no sqlite3 CLI needed):

root@kitploit:~
import sqlite3
conn = sqlite3.connect("Vessels1.db")
conn.execute("INSERT OR IGNORE INTO vessels (mmsi, imo, name) VALUES ('123456789', '9999999', 'VESSEL NAME')")
conn.commit()
conn.close()

Data model

Vessels1.db — watchlist

root@kitploit:~
vessels(mmsi TEXT PK, imo TEXT, name TEXT, destination TEXT)

vessel_data_log.db — position log

root@kitploit:~
vessel_data_log(timestamp, mmsi, name, imo, destination, speed, heading, latitude, longitude, cable_alert)

Append-only. Written on every map render cycle.

vessel_static.db — AIS static data cache

root@kitploit:~
vessel_static(mmsi TEXT PK, name TEXT, imo TEXT, destination TEXT, flag TEXT)
flag_history(id, mmsi, flag, timestamp)

Populated from live ShipStaticData AIS messages. Takes priority over Vessels1.db names once received. flag_history records every flag change with a timestamp — reflagging events are logged and displayed on the per-vessel page.

loitering_events.db — loitering log (created at runtime)

root@kitploit:~
loitering_events(id, mmsi, timestamp, latitude, longitude, near_cable)

transshipment.db — port call and transshipment log (created at runtime)

root@kitploit:~
port_calls(id, mmsi, name, port, port_type, entry_ts, exit_ts, min_speed)
transshipment_events(id, mmsi, name, direction, from_port, from_exit_ts,
                     to_port, to_entry_ts, days_between, detected_ts)

Requirements

  • Python 3.11 or newer — python.org/downloads
  • An AISStream API key — free at aisstream.io (register, then copy your key from the dashboard)
  • The dependencies in requirements.txt

Start scripts

The easiest way to run the tracker. Each script installs dependencies, runs preflight checks, and launches both processes.

Linux / macOS:

root@kitploit:~
chmod +x start.sh
export AISSTREAM_API_KEY=your_key_here
./start.sh

Windows (PowerShell):

root@kitploit:~
$env:AISSTREAM_API_KEY = "your_key_here"
.\start.ps1

Windows (Command Prompt):

root@kitploit:~
set AISSTREAM_API_KEY=your_key_here
start.bat

All three scripts run check.py first — a preflight that verifies Python version, dependencies, data files, API key, and network reachability, with clear error messages if anything is missing.

You can also run the preflight check on its own at any time:

root@kitploit:~
python check.py

Setup (manual)

1. Clone and install dependencies

root@kitploit:~
git clone https://github.com/FormerLab/shadow-fleet-tracker-light.git
cd shadow-fleet-tracker-light
pip install -r requirements.txt

On Ubuntu 22.04+ and Debian 12+ you may get an "externally managed environment" error from pip. The start scripts handle this automatically by creating a virtual environment — just run start.sh and it takes care of it. If installing manually, create a venv first:

root@kitploit:~
python3 -m venv .venv
source .venv/bin/activate   # Linux/macOS
.venv\Scripts\activate      # Windows
pip install -r requirements.txt

2. Set your AISStream API key

Linux / macOS:

root@kitploit:~
export AISSTREAM_API_KEY=your_key_here
export OPENSANCTIONS_API_KEY=your_key_here  # optional

Windows (Command Prompt):

root@kitploit:~
set AISSTREAM_API_KEY=your_key_here
set OPENSANCTIONS_API_KEY=your_key_here

Windows (PowerShell):

root@kitploit:~
$env:AISSTREAM_API_KEY = "your_key_here"
$env:OPENSANCTIONS_API_KEY = "your_key_here"

3. Run the tracker and dashboard as two separate terminals

Terminal 1 — the AIS feed consumer:

root@kitploit:~
python shadow_tracker.py

Terminal 2 — the web dashboard:

root@kitploit:~
uvicorn webserver:app --host 0.0.0.0 --port 8000

4. Open the dashboard

root@kitploit:~
http://localhost:8000

The live map is at http://localhost:8000/map and updates every 3 minutes. On first run the map renders immediately from any position history already in the database — no blank canvas wait.


API keys

ServiceRequiredFree tierLink
AISStreamYesYes — unlimited for non-commercialaisstream.io

Without OPENSANCTIONS_API_KEY the tracker runs normally — sanctions badges are simply omitted from map popups.


Configuration

All tunables are at the top of shadow_tracker.py:

Environment variables:

VariableRequiredDescription
AISSTREAM_API_KEYYesAISStream WebSocket API key
OPENSANCTIONS_API_KEYNoEnables sanctions lookup in map popups

OpenSanctions is free for non-commercial use — register at opensanctions.org/api. Without a key the tracker runs normally; sanctions fields are omitted from popups.


War&Sanctions deep-links (optional)

war-sanctions.gur.gov.ua is the Ukrainian GUR's public catalogue of shadow fleet and sanctioned vessels. Each vessel has a numbered page with port call history, maps, and sanctions detail.

gur_scrape.py builds a local IMO→GUR-ID mapping by crawling the catalogue once:

root@kitploit:~
python gur_scrape.py

This produces gur_mapping.json. The tracker loads it at startup and uses direct deep-links (/en/transport/ships/{id}) in map popups where available, falling back to a Google site-search for vessels not yet in the catalogue.

The crawl covers ~1600 entries at 1.5 s/request (~40 min). Re-run occasionally as the catalogue grows — use --start to resume from a specific ID:

root@kitploit:~
python gur_scrape.py --start 1580

To debug a single page:

root@kitploit:~
python gur_scrape.py --probe 1517

gur_mapping.json is reloaded automatically every 5 minutes alongside the watchlist — no tracker restart needed after a re-crawl.

Loitering thresholds in loitering_module.py:

ConstantDefaultDescription
SPEED_THRESHOLD_KN

Transshipment settings in transshipment_module.py:

ConstantDefaultDescription
SPEED_THRESHOLD_KN

Port zones covered:

PortType
Ust-Luga, Primorsk, St Petersburg, VyborgRussian export terminals
Skaw/Skagen, Gothenburg, Kiel, Copenhagen, AarhusWestern transshipment hubs

Dashboard

Per-vessel page

Each vessel page (/vessel/<mmsi>) shows:

  • Route replay — interactive Leaflet map with play/pause/reset and speed control. Trail builds point by point; marker turns red on cable alert pings
  • Summary — first/last seen, total pings, cable alert count, AIS gap count, destinations observed
  • AIS blackouts — any gap ≥60 minutes flagged with start/end timestamps and duration
  • Cable proximity — percentage of pings where the cable alert was active
  • Static data drift — name changes, flag changes with dates, destination history. Reflagging is a primary shadow fleet evasion tactic
  • GPX export — full track with timestamps, loadable into any GIS tool

Transshipment page

Flags two patterns inferred from position data:

  • RU→WEST — vessel called at a Russian port then a Western hub within 21 days. Potential cargo laundering into European supply chains
  • WEST→RU — vessel called at a Western hub then a Russian port within 21 days. Potential European goods flowing east into sanctioned territory

Port calls are inferred from position pings — no external API required. A vessel must be inside a port zone at <1.5 kn for at least 2 pings to register a call. This shows a pattern, not a verdict.


Cable data

filtered_cables.kml is derived from open-source datasets and is approximate — not suitable for precise proximity calculations. The 10 km alert threshold accounts for this margin. Contributions of improved cable geometry are welcome.


Architecture notes

The tracker runs a single async loop over the WebSocket stream. State is kept in-memory (vessel_info, static_cache) and flushed to SQLite on each render cycle. The map is written atomically via os.replace to avoid serving a partial file.

On startup, warm_restart() reads the last WARM_RESTART_HOURS hours from vessel_data_log.db and pre-populates vessel_info before the WebSocket connects. The initial map renders immediately. Stale positions are visually distinguished (grey markers, dimmed trails) and transition to live colour as new pings arrive.

Watchlist and gur_mapping.json are reloaded from disk every 5 minutes — vessels can be added and the GUR mapping re-crawled while the tracker is running, without a restart.

The webserver is stateless and reads directly from the SQLite files — no shared memory with the tracker process.


Status

Download Tool
VesselIMOEvent
EAGLE S9329760Finland seized Dec 2024 — Estlink-2 cable sabotage, spy equipment found
EVENTIN9308065Germany seized Jan–Mar 2025 — drifted off Rügen, 100,000t Russian crude confiscated
KIWALA9332810Estonia detained Apr 2025 — flagless, EU/UK sanctioned
JAGUAR9293002Estonia intercepted May 2025 — Russia scrambled Su-35 to escort it
KIRA K9346720Wagner/GRU crew confirmed aboard Dec 2025
QENDIL9310525Wagner/GRU crew Sep 2025 — Ukrainian drone strike Dec 2025
FITBURG9250397Finland seized 31 Dec 2025 — Helsinki-Tallinn cable sabotage
CAFFA9143611Sweden seized 6 Mar 2026 — stolen Ukrainian grain, false flag
SEA OWL I9321172Sweden seized 12 Mar 2026 — EU sanctioned, false Comoros flag
OpenSanctionsNoYes — non-commercial useopensanctions.org/api
ConstantDefaultDescription
BALTIC_BBOX52.65–66°N, 9–30°EAISStream subscription bounding box
CABLE_ALERT_KM10Cable proximity threshold
MAP_RENDER_INTERVAL180 sMap refresh cadence
MMSI_RELOAD_INTERVAL300 sWatchlist reload from DB
WARM_RESTART_HOURS24Hours of position history to load on startup
RECONNECT_DELAY10 sWS reconnect backoff
0.5 kn
Below this counts as stopped
TIME_THRESHOLD_S1200 sDuration before loitering is flagged
RADIUS_THRESHOLD_KM0.5 kmMax drift to still count as same spot
1.5 kn
Below this inside a port zone counts as a call
MIN_PINGS_IN_ZONE2Minimum pings before recording a port call
WINDOW_DAYS21Max days between port calls to flag as transshipment
RouteDescription
/Live log viewer, auto-refreshes every 60 s
/mapLatest rendered map (iframe-friendly)
/analyzeFilterable vessel record table with CSV export
/timelineActivity overview — one card per tracked vessel, sorted by last seen
/vessel/<mmsi>Per-vessel history: AIS blackouts, cable proximity, flag changes, GPX export
/vessel/<mmsi>/gpxGPX track export — opens in QGIS, OpenStreetMap, GPSBabel
/loiteringLoitering events with near-cable flag, by-vessel summary, CSV export
/transshipmentRussia↔West port call patterns — RU→WEST and WEST→RU events, CSV export
/log/downloadRaw log file download
ComponentState
AIS stream consumerWorking
Watchlist1200+ vessels (full GUR catalogue)
Cable proximity alertWorking
Loitering detectionWorking
Transshipment detectionWorking — port calls inferred from position, 21-day window
Map renderingWorking — 3 min cadence, live countdown, auto-reload
Warm restartWorking — pre-populates map from last 24h of logs on startup
Vessel popupsMarineTraffic + VesselFinder + War&Sanctions direct links (1337 vessels mapped)
Vessel popupsOpenSanctions sanctions status (optional, requires API key)
Flag change detectionWorking — logs changes, stored in flag_history
Dashboard — log, vessels, CSV exportWorking
Dashboard — timeline viewWorking
Dashboard — per-vessel history + GPXWorking
Dashboard — route replayWorking — play/pause/reset, speed control, cable alert highlighting
Dashboard — loitering panelWorking
Dashboard — transshipment panelWorking