summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrothedev <grothedev@gmail.com>2025-10-04 00:02:56 -0400
committergrothedev <grothedev@gmail.com>2025-10-04 00:02:56 -0400
commit208c01336e078356a5cff290d922e5afd1fe051e (patch)
tree90a733f56cdac82563bbd5dd551072fe64cc3075
init commitHEADmain
-rw-r--r--sensitive-data-defender.sh4
-rw-r--r--spec.md23
-rw-r--r--sshd-secmon.sh4
3 files changed, 31 insertions, 0 deletions
diff --git a/sensitive-data-defender.sh b/sensitive-data-defender.sh
new file mode 100644
index 0000000..b8c1451
--- /dev/null
+++ b/sensitive-data-defender.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+#watches access to sensitve paths on storage, logs when accessed by non-whitelisted IP. root will be notified upon next login.
+
+
diff --git a/spec.md b/spec.md
new file mode 100644
index 0000000..91d2067
--- /dev/null
+++ b/spec.md
@@ -0,0 +1,23 @@
+# A Server Security Monitor
+
+- logs all successful ssh log ins, repeated failed attempts, attempts at root,
+- watches and logs access to sensitve paths
+
+
+## Implementation
+
+- an sshd monitor daemon: for any login attempt, log it to DB. categorize as KNOWN (me or other known user, by previously connected ip or local ip), UNIMPORTANT (just another random bot bruteforce attempt), NOTE (someone logged in as a user from a new ip), WARNING (someone logged in as root from an unknown ip)
+- user access monitor daemon: logs any time an already logged in user logs in as root
+- ddos monitor daemon: watches for too-frequently repeated network requests
+- sensitive data defender: watches for unusual access to sensitive paths (defined in config)
+
+## Database Schema
+
+-
+
+## Service Config
+
+- known ips : ssh from these ips is expected
+- admin users : users who are allowed to log in to root
+- sensitive paths : list of filepaths that are considered sensitive, and the users who are allowed to access them
+- \ No newline at end of file
diff --git a/sshd-secmon.sh b/sshd-secmon.sh
new file mode 100644
index 0000000..c671e14
--- /dev/null
+++ b/sshd-secmon.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+#SSH security monitor. logs all successful ssh log ins, repeated failed attempts, attempts at root,
+
+