Mini Security Information and Event Management system - COSC 4319 Software Engineering, Sam Houston State University.
Our Mini-SIEM collects and stores security events, checks them for suspicious activity, and helps potential users investigate alerts and incidents. Our React frontend provides Login, Dashboard, Events, Alerts, Incidents, Reports, and Administration screens. Our Java backend handles authentication, ingestion, detection, investigation, reporting, and administration. PostgreSQL stores the data, and Docker Compose supports a local HTTPS deployment.
First-Time Setup: Whole App From Scratch
To go from zero to running the Mini-SIEM on your laptop, follow this guide first!! It tells you exactly what to install, which terminals to use, how to get an Admin account, and how to run either Vite development or the full local HTTPS deployment.
These go into more detail on specific parts of getting the project running. You dont need to read all of them before following the first-time setup guide!
- Software Installation Guide
- Database Quickstart (database/local backend)
- Database Setup and Reference (optional)
These explain what the project is supposed to do and how the system is designed.
- Frontend Integration Notes
- Frontend Screen and API Wiring Map
- HTTPS Deployment Guide
- Team Style and Implementation Guide
- Access Development Guide
- Ingestion Development Guide
- Detection Development Guide
- Audit Development Guide
- Administration Development Guide
- Event Search Development Guide
- Incident Management Development Guide
- Dashboard and Reporting Development Guide
- Retention and Recovery Development Guide
- Frontend: React + TypeScript + Vite
- Backend: Java 21 + Spring Boot
- Database: PostgreSQL 17 + Flyway database migrations
- Local deployment: Docker Compose
- Testing: JUnit 5, Spring integration tests, and acceptance scripts
These are the technologies selected in our System Design Document. The User Requirements Specification defines the features and acceptance criteria the system must satisfy. Here is how each gets installed:
- Installed by you, please actively go download and set these up yourself: Java 21 JDK, Node.js 24 LTS (includes npm), Docker Desktop (includes Docker Compose), GitHub Desktop, Git for Windows (Git Bash/OpenSSL), and Python 3 for testing tools. VS Code/IntelliJ IDEA and DBeaver Community are recommended but optional for running the app.
- Installed as Java project dependencies by Maven: Spring Boot, Flyway, JUnit 5, and Spring integration testing libraries.
- Installed as frontend dependencies by npm: React, TypeScript, and Vite.
- Downloaded as container images by Docker Compose: PostgreSQL 17, plus Caddy for the optional HTTPS deployment. A separate PostgreSQL Server installation is not needed.
| Location | What belongs here |
|---|---|
backend/ |
Java server: authentication, REST APIs, event processing, detection rules, and database access. |
backend/src/main/java/edu/shsu/minisiem/access/ |
Login, sessions, user roles, and permissions. |
.../ingestion/ |
Import, validate, and normalize security-event records. |
.../detection/ |
Detection rules DET-01 through DET-08 and alert creation. |
.../investigation/ |
Event search, alert review, incidents, and investigation notes. |
.../reporting/ |
Dashboard summaries and CSV/report exports. |
.../administration/ |
Users, sources, account context, rule settings, audit history, retention, and a host-script-based Admin backup endpoint. |
backend/src/main/resources/ |
Spring Boot application configuration and other backend resources. |
backend/src/main/resources/db/migration/ |
Versioned Flyway SQL files for PostgreSQL tables, relationships, constraints, and indexes. |
backend/src/test/java/edu/shsu/minisiem/ |
Java unit tests and backend integration tests, including tests using PostgreSQL. |
frontend/ |
React application shown in the user's browser. |
frontend/src/pages/ |
React page components for Login, Dashboard, Events, Alerts, Incidents, Reports, Administration, and 404, plus application routing. |
frontend/src/MainPageLayout.tsx |
Shared page layout and navigation. |
frontend/src/css/ |
Page styles and shared CSS. |
frontend/src/assets/ |
Icons and other UI artwork. |
frontend/src/hooks/ |
Reusable React hooks. |
frontend/src/api/ |
TypeScript functions that call the Java backend's REST API; not a second backend. |
frontend/public/ |
Static files served as-is, such as a favicon or logo. React application code goes in src/. |
sample-data/events/ |
Fictional or sanitized IAM, MFA, Windows, Linux, firewall, and DNS event records, usually JSONL. |
sample-data/Test Account Records.csv |
Fictional account/employee reference records, usually CSV: account status, department, privilege, and effective date. This is not React Context. |
scripts/ |
Small helpers for local setup, synthetic data generation, certificates, and backups. |
docs/ |
Requirements, design diagrams, API notes, and demo instructions. |
.github/ |
GitHub collaboration files. |
Why edu/shsu/minisiem? Java packages commonly use a reversed organization domain: shsu.edu becomes edu.shsu, followed by the application name minisiem. For example, a file in detection/ can declare package edu.shsu.minisiem.detection;. This reflects the project's SHSU course affiliation. It does not mean the software runs on the shsu.edu network, requires SHSU servers, or is officially hosted or endorsed by SHSU. Java would also allow a shorter package name such as minisiem, but the longer name is conventional and helps distinguish this code from unrelated projects. src/main/java contains application code; the matching src/test/java tree contains Java tests.
PostgreSQL is our database server. We commit the files needed to create and use the database, not the live database itself. Docker Compose will run PostgreSQL locally on each teammate's computer, using a Docker-managed volume to retain its data.
For teammates working on the database:
- Schema changes: Add numbered Flyway SQL migrations in
backend/src/main/resources/db/migration/. For example,V1__create_core_tables.sqlmight create the first tables and foreign keys;V2__add_event_indexes.sqlmight add indexes. After a migration has been applied by teammates, create a new migration for further changes rather than rewriting the old one. - Local database startup:
compose.yamlalready runs thedbservice with a named Docker volume. Copy the committed.env.exampleto your own ignored.envand follow First-Time Setup rather than making a second Compose file. - Backend connection: Spring Boot datasource/Flyway configuration already lives in
backend/src/main/resources/and reads connection values from environment variables. Java entities, repositories, and services live under the matching feature packages. - Demo records and utilities: Put fictional event and account-context inputs in
sample-data/. Reusable setup, seed, backup, and restore scripts live inscripts/; follow the matching guide indocs/.
For teammates who want everything running, use First-Time Setup. For just the database and local Java backend, use Database Quickstart. The optional Database Setup and Reference explains the tables, backend integration, and maintenance tasks.
There is no separate database/ directory because Flyway migrations already have a standard home inside the backend. Add a separate directory only if the team later has substantial database-only files that do not fit migrations, sample data, or scripts. The database server's actual data files and local backups must stay out of GitHub.
- Accept the repository invitation and use GitHub Desktop > File > Clone repository.
- Before changing code, use Current Branch > New Branch (for example,
feature/event-search). Do not work directly onmain. - Use VS Code for frontend work and IntelliJ IDEA for the Java backend.
- Commit your changes, Push origin / Publish branch, and open a Pull Request on GitHub.
- Check what you changed and run relevant checks before merging. A second-person review is optional, not required. Ask for help or review when changing shared APIs, database migrations, security, or anything you are unsure about. Fetch and pull updates regularly.
For frontend work, see Frontend Integration Notes and the Frontend Screen and API Wiring Map. For testing the system, use the recovery rehearsal.
The backend can ingest events, create alerts, search evidence, manage incidents, and return dashboard/report data. We also have retention, local HTTPS, operator recovery scripts, and isolated recovery/performance tests now!! No new feature is considered verified until its tests pass locally but usually I test things well enough before merging<3
Never commit real passwords, .env secrets, private TLS keys, actual security logs, database volumes/backups, or generated build output. Use synthetic or sanitized data for the capstone.
The eight seeded detection policies now run after an accepted JSONL import. Alerts include linked event evidence and are available through GET /api/v1/alerts. Admins can inspect/tune rule settings through /api/v1/admin/detections/rules. See the detection development guide and the synthetic DET fixtures.