How jayyydrian/insighter works
InSighter is a local insider-threat monitoring application with a Flask backend and PyQt desktop client (plus a web dashboard). Users authenticate, then view role-appropriate risk dashboards and alerts; the backend ingests or simulates events, protects and stores them, scores behavior, and can generate AI alert explanations. Major branches include sector/UAV configuration, compliance and audit views, and external event-source integrations. Evidence is limited to the README and sampled excerpts/index references; unshown links are omitted.
Main entry points: app.py Web backend · main.py Desktop launcher · main_window.py Main window · ingestion.py Event ingestion
Components 20
Desktop client
- Desktop launcher
desktop_app/main.py - Login window
desktop_app/login_window.py - Main window
desktop_app/main_window.py - API client
desktop_app/api_client.py - Async workers
desktop_app/async_utils.py - Dashboard and views
desktop_app/dashboard_tab.py - UAV configuration
desktop_app/uav_config_tab.py
Backend and access
- Web backend
app.py - Login and RBAC
auth.py - Sector taxonomy
sector_config.py - Event database
database.py
Event handling
- Privacy protection
privacy.py - Event ingestion
ingestion.py - Synthetic log generator
generate_logs.py - Live simulation
simulation.py
Risk analysis
- Risk scoring
model.py - AI alert explanations
llm_advisor.py
Other components
- Analyst
- External event source
- Local Ollama
Connections 28
- Analyst → Desktop launcher: launches
README.md - Desktop launcher → Login window: opens
desktop_app/main.py - Desktop launcher → Main window: opens
desktop_app/main.py - Desktop launcher → Web backend: starts backend
desktop_app/main.py - Login window → API client: authenticates via
desktop_app/login_window.py - Main window → Dashboard and views: shows
desktop_app/main_window.py - Main window → UAV configuration: shows
desktop_app/main_window.py - Main window → API client: requests data
desktop_app/main_window.py - Dashboard and views → Async workers: dispatches work
desktop_app/dashboard_tab.py - API client → Web backend: HTTP requests
desktop_app/api_client.py - Web backend → Login and RBAC: checks access
app.py - Web backend → Risk scoring: gets scores
app.py - Web backend → AI alert explanations: requests explanation
app.py - Web backend → Synthetic log generator: reseeds logs
app.py - Web backend → Live simulation: runs tick
app.py - Web backend → Event ingestion: dispatches ingest
app.py - Event ingestion → External event source: fetches events
ingestion.py - Event ingestion → Privacy protection: protects events
README.md - Event ingestion → Event database: stores events
ingestion.py - Synthetic log generator → Event database: writes logs
generate_logs.py - Synthetic log generator → Sector taxonomy: uses roster
generate_logs.py - Synthetic log generator → Live simulation: uses activity profiles
generate_logs.py - Live simulation → Event database: stores events
model.py - Risk scoring → Event database: reads and writes
model.py - Risk scoring → Privacy protection: sanitizes event
model.py - Risk scoring → Sector taxonomy: uses sector roles
model.py - AI alert explanations → Local Ollama: queries model
- UAV configuration → API client: requests settings