Commit Graph

26 Commits

Author SHA1 Message Date
e64b880c97 feat: Improve daily recap functionality
- Changed the daily recap time to 22:00.
- Modified the `send_daily_recap` function to split the recap message into multiple messages if it exceeds 2000 characters to avoid hitting the Discord message length limit.
- Added a 1-second delay between each message chunk to avoid rate limiting.
2025-09-15 13:27:40 -05:00
e559e16e35 refactor: Change UFW block anomaly severity to medium
Changed the severity of the UFW block anomaly from "high" to "medium".
A high number of blocked connections is not a critical issue as long as the firewall is working correctly.
2025-09-15 13:24:43 -05:00
12e6ba0135 feat: Add UFW log monitoring
- Added a new function `get_ufw_logs` to monitor `/var/log/ufw.log`.
- Added a new table `ufw_logs` to the database to store UFW log data.
- Updated `analyze_data_locally` to detect anomalies in UFW logs (high number of blocked connections).
- Integrated the new functionality into the main monitoring loop.
2025-09-15 13:22:37 -05:00
07c768a4cf feat: Implement data retention policy
- Replaced `data_storage.py` with `database.py` to use SQLite instead of a JSON file for data storage.
- Added an `enforce_retention_policy` function to `database.py` to delete data older than 7 days.
- Called this function in the main monitoring loop in `monitor_agent.py`.
- Added Docker container monitoring.
- Updated `.gitignore` to ignore `monitoring.db`.
2025-09-15 13:12:05 -05:00
d102dc30f4 Offloaded data detection from the LLM and hardcoded it 2025-08-24 13:30:21 -05:00
6f7e99639c Attempting to remove the LLM out of processing 2025-08-23 19:03:40 -05:00
bebedb1e15 Trying to help the LLM 2025-08-23 16:04:49 -05:00
ff7bbb98d0 feat: Filter out temperature fluctuations with differences less than 5 degrees 2025-08-21 13:20:03 -05:00
57d7688c3a feat: Filter out small RTT fluctuations in LLM prompt
- Update the LLM prompt to instruct it to ignore RTT fluctuations below 10 seconds.
- Update PROGRESS.md to reflect the completion of the task.
2025-08-21 12:34:12 -05:00
83b25d81a6 feat: Add hostname resolution to Nmap scans
- Add -R flag to Nmap scan options to enable reverse DNS lookup.
- Modify the Nmap processing logic to extract and store hostnames.
- Update PROGRESS.md to reflect the completion of the task.
2025-08-21 12:32:40 -05:00
7e24379fa1 feat: Restrict alerts to a defined time window
- Add a function to check if the current time is within the alerting window (9am - 12am).
- Modify the alerting logic to only send alerts during this window.
- Update PROGRESS.md to reflect the completion of the task.
2025-08-21 12:28:08 -05:00
d03018de9b feat: Log LLM responses to console
- Add a StreamHandler to the logger to output all logs to the console.
- Log the LLM response to the console for real-time monitoring.
- Update PROGRESS.md to reflect the completion of the task.
- Fix a syntax error in monitor_agent.py.
2025-08-21 12:18:08 -05:00
f65b2d468d feat: Implement daily log rotation
- Add logging to monitor_agent.py to replace print statements.
- Configure TimedRotatingFileHandler to keep logs for the past 24 hours.
- Update .gitignore to exclude the new log file.
- Update PROGRESS.md to reflect the completion of the task.
2025-08-21 12:15:36 -05:00
e119bc7194 feat: Update baseline calculations and LLM prompts
- Change baseline calculations to use integers instead of floats to simplify data.
- Update LLM constraints and prompt for more accurate anomaly detection.
- Refine known_issues to reduce false positives.
- Update PROGRESS.md with new TODO items.
2025-08-21 12:12:15 -05:00
63ee043f34 Completed NMAP & Refactoring 2025-08-20 15:16:21 -05:00
dd673829d2 Nmap... working? 2025-08-20 12:51:11 -05:00
0169483738 Converted Responses to JSON, improved severity detection, and built a known issues feed 2025-08-20 12:06:11 -05:00
b5e6ae3918 Somehow, working perfectly 2025-08-19 15:37:16 -05:00
692e372ef3 Working with Live Data 2025-08-19 15:11:48 -05:00
524120c9f2 Watch over Temps 2025-08-18 14:32:39 -05:00
4d8b4d6114 fix: Handle missing sensors command gracefully 2025-08-18 13:01:11 -05:00
9159520e8f feat: Implemented expanded monitoring 2025-08-18 12:55:49 -05:00
9ac382e23e feat: Implemented data storage and baselining 2025-08-18 12:49:51 -05:00
3d74bf13f5 Added Test Mode 2025-08-17 20:44:38 -05:00
cb3f04f2b1 Now Calling the correct package 2025-08-15 15:19:46 -05:00
89902dfd6b feat: Implement monitor agent 2025-08-15 14:04:09 -05:00