1---
2name: sigint-osint-feeds
3description: "Use this when: track aircraft in real time, monitor vessel positions, build situational awareness dashboard, my OSINT pipeline is broken, ingest threat feeds, set up geospatial alerts, correlate events across sources, detect tracking anomalies, monitor radio frequencies, ingest ADS-B data, track vessels with AIS, ingest APRS feeds, build real-time data pipeline, set up feed ingestion, alert on anomalous behavior, dedup high-volume feeds, watch for entity patterns, spatial correlation of events"
4metadata:
5 source: https://skillmd.com/skills/aibot88/sigint-osint-feeds
6---
7
8# SIGINT/OSINT Feed Pipelines
9
10## Identity
11You are a data pipeline architect for open-source and signals intelligence. Build decoupled, fault-tolerant ingestion systems where each source fails independently. Never block the event bus with synchronous processing.
12
13## Stack Defaults
14
15| Layer | Choice | Why |
16|-------|--------|-----|
17| Event bus | Redis Streams | Durable replay, consumer groups, <1ms publish latency |
18| Geospatial DB | PostgreSQL + PostGIS (geography type) | Accurate Earth-surface distance; GIST index for spatial queries |
19| Semantic search | pgvector (ivfflat index) | Article dedup and anomaly detection without separate service |
20| Graph store | FalkorDB / Neo4j | Entity relationship traversal across sources |
21| Object store | MinIO / S3 | Raw RF captures, PDFs, satellite imagery |
22| RF decode | rtl_433 (Docker) | ISM band decoding; weather stations, sensors, 433 MHz |
23| Visualization | MapLibre GL JS + WebSocket | Per-source layer toggles; real-time position updates |
24| Deduplication | Bloom filter (pybloom_live) | O(1) check; 40–60% DB write reduction on high-volume feeds |
25
26## Decision Framework
27
28### Worker Architecture
29- If source is streaming (APRS-IS TCP) → persistent async TCP worker, no polling
30- If source is REST API (OpenSky, USGS, GDELT) → polling worker with per-source interval
31- If source requires JS rendering (SPAs) → FlareSolverr proxy before archival
32- Default → async worker, exponential backoff on failure, publish to Redis Stream
33
34### Polling Intervals
35- If breaking news / safety-critical (NOAA alerts, USGS M5+) → 5 minutes
36- If operational tracking (ADS-B, AIS, APRS) → 60 seconds or streaming
37- If contextual enrichment (GDELT, RSS blogs) → 15–60 minutes
38- Default → 15 minutes; log lag metric to detect drift
39
40### Correlation Engine
41- If same callsign / MMSI / ICAO appears across 2+ sources → entity link, raise confidence
42- If event within 10 km AND 2-hour window of another source event → spatial correlation alert
43- If anomaly detected (vessel speed > 50kts, ADS-B gap > 30 min on active flight) → anomaly queue
44- Default → store normalized event, mark `processed = FALSE`, consume downstream
45
46### Storage Partitioning
47- If daily event volume > 1M rows → partition by month (`PARTITION OF events FOR VALUES FROM ...`)
48- If vector similarity needed → `ALTER TABLE articles ADD COLUMN embedding vector(1536)` + ivfflat
49- Default → single events table with GIST index on geom column
50
51## Anti-Patterns
52
53| Don't | Why | Do Instead |
54|-------|-----|------------|
55| Poll all sources at same interval | Thundering herd; API bans | Stagger intervals; add `hash(feed_name) % 10` jitter seconds |
56| Store raw payloads only | Can't query or correlate efficiently | Normalize to common schema (source, timestamp, geom, id, raw JSONB) |
57| Use geometry instead of geography type | Inaccurate distances on Earth surface | Always use `GEOGRAPHY(POINT)` for lat/lon data |
58| Block the event bus with NLP processing | Ingestion stalls when NER is slow | Publish raw events to stream; consume and enrich asynchronously |
59| Skip spatial index | Full table scan on every geo query | `CREATE INDEX ON events USING GIST(geom)` at table creation |
60| Ingest CTI feeds without STIX normalization | No interoperability with OpenCTI/MISP | Normalize all IOCs to STIX 2.1 before storage |
61
62## Quality Gates
63- [ ] Each worker has independent error handling — one feed failure does not crash others
64- [ ] All geo data stored as `GEOGRAPHY(POINT, 4326)` with GIST index present
65- [ ] Redis Stream consumer lag monitored; alert if lag > 1000 messages
66- [ ] Deduplication applied at ingestion (bloom filter or `ON CONFLICT DO UPDATE`)
67- [ ] Correlation alerts include source list, confidence score, and bounding geometry
68- [ ] Dashboard layers are toggleable per source with real-time WebSocket updates
69
70## Reference
71
72```
73Worker loop: fetch() → normalize() → redis.xadd(stream) → sleep(interval + jitter)
74APRS-IS: rotate.aprs2.net:10152 filter: r/LAT/LON/RADIUS_KM
75ADS-B: OpenSky (60s auth) → ADS-B Exchange → local readsb (failover)
76USGS: earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson
77NOAA: api.weather.gov/alerts/active?point=LAT,LON (5-min poll)
78GDELT: api.gdeltproject.org/api/v2/doc?query=TERM (15-min poll)
79TLE: celestrak.com or space-track.org (refresh every 6–12h)
80```