How ngnicky-ai/kr-secwatch works
KR-SecWatch collects security news, ransomware victim disclosures, and CVE intelligence, then classifies Korea-related threats, persists them, evaluates alerts, and presents the results through a Flask dashboard, APIs, and Slack. The scheduler coordinates recurring collection and alert evaluation; user-facing routes and query modules serve dashboard, ransomware, CVE, alert, and unified-search capabilities. Edges reflect README-documented flows or relationships visible in the excerpts and SOURCE INDEX; unsampled subsystem links are omitted where their callers are not evidenced.
Main entry points: api.py JSON API · rss.py RSS Collector · __init__.py Flask Application · scheduler.py Collection Scheduler
Components 23
Threat Collection
- Collection Scheduler
app/scheduler.py - RSS Collector
app/collectors/rss.py - Ransomware Collector
app/collectors/ransomware_live.py - CVE Enrichment
app/collectors/cve_enrich.py
Threat Analysis
- Korea Classifier
app/analyzers/korea.py - CVE Extractor
app/analyzers/cve.py
Data and Queries
- Domain Records
app/models.py - SQL Database
app/extensions.py - News Queries
app/queries.py - Ransomware Queries
app/ransom_queries.py - CVE Queries
app/cve_queries.py
Alerts and Delivery
- Alert Engine
app/alerts/engine.py - Slack Delivery
app/alerts/slack.py
Dashboard and API
- Flask Application
app/__init__.py - Dashboard
app/routes/dashboard.py - JSON API
app/routes/api.py - Alert Views
app/routes/alerts.py - Unified Search
app/routes/search.py
Other components
- Operator
- Security RSS
- ransomware.live
- NVD, KEV, EPSS
- Slack
Connections 35
- Collection Scheduler → RSS Collector: runs collection
README.md - Collection Scheduler → Ransomware Collector: runs collection
README.md - Collection Scheduler → CVE Enrichment: runs collection
README.md - RSS Collector → Security RSS: fetches feeds
README.md - Ransomware Collector → ransomware.live: fetches victims
README.md - CVE Enrichment → NVD, KEV, EPSS: enriches CVEs
README.md - RSS Collector → Korea Classifier: classifies articles
app/collectors/rss.py - RSS Collector → CVE Extractor: extracts CVEs
app/collectors/rss.py - Ransomware Collector → Korea Classifier: classifies victims
app/collectors/ransomware_live.py - CVE Enrichment → Korea Classifier: labels vendors
app/collectors/cve_enrich.py - RSS Collector → SQL Database: stores articles
README.md - Ransomware Collector → SQL Database: stores victims
README.md - CVE Enrichment → SQL Database: stores enrichment
README.md - Domain Records → SQL Database: maps records
app/models.py - News Queries → Domain Records: queries articles
app/queries.py - Ransomware Queries → Domain Records: queries victims
app/ransom_queries.py - CVE Queries → Domain Records: queries CVEs
app/cve_queries.py - Collection Scheduler → Alert Engine: evaluates alerts
README.md - Alert Engine → Slack Delivery: sends pending
app/alerts/engine.py - Slack Delivery → Slack: posts messages
app/alerts/slack.py - Flask Application → Dashboard: registers routes
app/__init__.py - Flask Application → JSON API: registers routes
app/__init__.py - Flask Application → Alert Views: registers routes
app/__init__.py - Flask Application → Unified Search: registers routes
app/__init__.py - Dashboard → News Queries: reads news
app/routes/dashboard.py - Dashboard → Ransomware Queries: reads ransomware
app/routes/dashboard.py - Dashboard → CVE Queries: reads CVEs
app/routes/dashboard.py - JSON API → News Queries: serves news
app/routes/api.py - JSON API → Ransomware Queries: serves victims
app/routes/api.py - JSON API → CVE Queries: serves CVEs
app/routes/api.py - JSON API → Alert Engine: runs alerts
app/routes/api.py - Alert Views → Alert Engine: runs evaluation
app/routes/alerts.py - Alert Views → Slack Delivery: tests Slack
app/routes/alerts.py - Operator → Flask Application: uses dashboard
README.md - Operator → JSON API: requests API
README.md