Cyber Security
NetLens: A Passive Network Traffic Analyser and Visibility Dashboard for a College Computer Lab
Flows, top talkers and scan indicators for the lab's own network — headers only, no blocking, full history
- Python
- Scapy
- MySQL
- +2
Decoy files and file-system watchers that spot mass-modification behaviour in seconds and raise an alert a human can act on
Mapped to your syllabusJNTUH R22 · Project Stage-II incl. Seminar · IV-2CanaryGuard is a defensive early-warning system for the department's computer labs, where a single ransomware incident could wipe months of student project work and lab material. It combines two proven endpoint-defence ideas: canary files — decoys like fee_receipts.xlsx or lab_manual_v2.docx that no legitimate user or program ever opens, so any change to them is an alarm — and file-system behaviour monitoring, which watches real shared folders for the signature almost every encryptor shows: a burst of renames and modifications in a short window.
A lightweight Python agent (built on the Watchdog library — inotify on Linux, ReadDirectoryChangesW on Windows) runs on each lab machine. It evaluates four transparent heuristics — canary touched, rename/modification burst rate, rising Shannon entropy in modified files, and a configurable bank of known ransom-extension patterns — and on a match posts a signed evidence bundle to a central Node.js server within seconds. The server stores alerts and agent heartbeats in MySQL, and a React dashboard shows agent health, a live event timeline, the evidence (which files, how many, how fast, entropy trend) and an acknowledge-and-escalate workflow aligned with the college's incident process and CERT-In's six-hour reporting expectation.
Nothing in the project touches real malware: detection quality is measured with a benign load generator that bulk-renames and rewrites its own dummy files, plus unit tests and a week-long false-positive measurement on clean lab activity. The result is a lab-safe JNTUH major project spanning file-system internals, cryptography-lab concepts (hashing, entropy) and a measurable detection result.
Syllabus alignment
The department's computer labs hold irreplaceable files — student project work, lab manuals, internal marks — protected only by a signature-based antivirus that cannot catch a new ransomware variant during the minutes it takes to encrypt a shared folder. There are no canary files on any machine, no file-system monitoring, and no early-warning path to the lab in-charge; in practice an incident would be discovered only when users find their files renamed and unreadable, by which time every mapped machine is affected and recovery means restoring yesterday's backup and losing a day of everyone's work.
What is needed is a behaviour-based early-warning layer built and operated by the department itself: decoy files whose tampering is an unambiguous alarm, transparent heuristics that detect mass-modification behaviour in seconds, an evidence bundle a human can verify in under a minute, and a central dashboard with a clear acknowledge-and-escalate workflow — all measurable (false-positive rate on clean traffic, recall against a benign simulator) and completely safe to build and demo in a college lab.
Ransomware no longer needs to reach a server to destroy a college lab — one infected laptop mapping the lab share is enough. CanaryGuard detects that in seconds: canary files plus file-system behaviour heuristics, a Python agent per lab PC, and a Node.js + MySQL server with a React dashboard for the lab in-charge to see, acknowledge and escalate alerts. Detection is measured, not assumed — false positives from a week of clean lab activity, recall from a benign load generator imitating encryption behaviour without any malware.
The department stores project work, lab manuals and internal marks on lab machines. Ransomware incidents at Indian institutions — colleges losing marks records and submissions — show the threat is real, while lab defences are one antivirus product whose signatures lag new families by hours. Behaviour-based early detection is the missing layer, and the file system is where ransomware betrays itself: it must touch hundreds of files quickly — including decoys nobody else ever opens.
In scope
Out of scope (v1)
The project follows an iterative-incremental model with a measurement loop, appropriate for JNTUH Project Stage-II: each increment ends with a supervisor review, and the final increment exists to tune thresholds from measured data rather than guesses. Stage-I (CS705PC, Semester IV-1) already produced the literature review, objectives and plan of action; Stage-II executes and measures.
| Phase | Weeks | Activities | Deliverable |
|---|---|---|---|
| Setup & baseline | 1–2 | Finalise monitored directories with the lab in-charge; permission note; collect one week of clean event counts on a pilot machine to size thresholds | Baseline report + permission note |
| Increment 1 — canary layer | 3–5 | Seeder, hash registry, auto-restore, canary-touch alert path end to end | Canary alerts on server |
| Increment 2 — behaviour layer | 6–8 | Watchdog event pipeline, burst-rate detector, entropy estimator with validation suite | Agent v2 with three heuristics |
| Increment 3 — server & dashboard | 9–11 | Express ingestion API, MySQL schema, heartbeats, React timeline and evidence viewer | Full pipeline demo |
| Measurement & tuning | 12–13 | Load-generator recall tests at 4 burst rates; FP/machine-day from clean week; threshold tuning | Measurement report |
| Hardening & documentation | 14–16 | Multi-machine soak test, failure cases, final report, seminar, demo rehearsal | Final submission |
Testing approach: unit tests for every heuristic against synthetic event streams; an entropy-estimator validation suite over files of known entropy (plain text, ZIP, random bytes) asserting ±0.1 bits/byte; integration tests of the signed alert API; scenario tests with the benign load generator at escalating burst rates recording detection latency; and a soak test on three lab machines for a week with FP rate reported per machine-day.
CanaryGuard is an agent–server system with three planes: sensing (agents), aggregation (server), and human response (dashboard).
flowchart LR
subgraph LAB["Lab machines (college-owned)"]
A1["Agent: canary seeder"] --> A2["Watchdog observers"]
A2 --> A3["Heuristic engine: burst, canary, entropy, extensions"]
end
U(["Benign load generator (test only)"]) -->|"bulk renames its own dummy files"| A2
A3 -->|"HMAC-signed JSON alert"| SRV["Node.js alert server"]
A3 -->|"heartbeat / 60 s"| SRV
SRV --> DB[("MySQL: agents, alerts, events")]
SRV -->|"high-severity summary"| MAIL["E-mail to lab in-charge"]
DB --> UI["React dashboard: timeline, evidence, ACK/escalate"]
LC(["Lab in-charge"]) --> UI
LC -->|"confirmed incident → report within 6 h"| CERT(["CERT-In workflow"])erDiagram
AGENT ||--o{ ALERT : raises
AGENT ||--o{ HEARTBEAT : sends
ALERT ||--o{ EVIDENCE_ITEM : contains
CANARY }o--|| AGENT : "seeded by"
USER ||--o{ ALERT_ACTION : "acknowledges / escalates"
AGENT {
int id PK
string machineName
string osFamily
string agentVersion
datetime lastHeartbeat
string status
}
CANARY {
int id PK
int agentId FK
string filePath
string sha256
datetime seededAt
string state
}
ALERT {
bigint id PK
int agentId FK
string kind "canary | burst | entropy | extension"
string severity
datetime raisedAt
string state "open | ack | escalated | closed"
string signature "HMAC of payload"
}
EVIDENCE_ITEM {
int id PK
bigint alertId FK
string filePath
string changeType
double entropyDelta
}
HEARTBEAT {
int id PK
int agentId FK
datetime sentAt
int eventCount
}
USER {
int id PK
string email UK
string passwordHash
string role
}
ALERT_ACTION {
int id PK
bigint alertId FK
int userId FK
string action
string remark
datetime actedAt
}flowchart TD
O(["Alert raised"]) --> OPEN["open"]
OPEN -->|"lab in-charge reviews evidence"| ACK["acknowledged"]
ACK -->|"false positive"| CLOSED["closed with remark"]
ACK -->|"confirmed incident"| ESC["escalated: disconnect machine, restore, report"]
ESC --> CLOSEDThe design deliberately keeps every component observable and reversible: canaries restore themselves, alerts require a human decision before any escalation, and nothing in the pipeline can modify anything beyond its own directories and database.
Module 01
The Python agent skeleton: configuration, the canary seeder that plants decoy files with realistic names (fee receipts, marks registers, project archives), a SHA-256 registry of every canary, automatic canary restoration after an alert or test, the 60-second heartbeat thread, and the local alert buffer with retry that keeps evidence safe when the server is down. Also owns agent installation as a background service on Windows and Linux lab machines.
Module 02
The detection brain: a sliding-window burst-rate detector over Watchdog's file-modified/renamed events (defaults: 40 modifications or 25 renames per directory in 30 seconds), the canary-touch rule (any write, rename or delete of a registered canary is high severity), chunk-sampled Shannon-entropy estimation for modified files with a validation suite over text, compressed and random files, and the ransom-extension bank matcher. Emits deduplicated, severity-graded alerts with evidence bundles and signed payloads.
Module 03
The Node.js/Express ingestion API (HMAC verification, alert-storm deduplication, agent registry), the MySQL schema with the alert state machine, and the React dashboard: agent health grid, live timeline, evidence viewer with an entropy sparkline, acknowledge → escalate workflow and CSV export. Also owns the measurement campaign: the benign load generator (burst-rate scenarios, zero malware), recall tests, the clean-week false-positive measurement, and the threshold-tuning write-up.
Slide 1
CanaryGuard — Ransomware Early Warning for College Labs
Slide 2
The Problem
Slide 3
Core Ideas
Slide 4
System Architecture
Slide 5
Heuristic Engine
Slide 6
Safe Evaluation — No Malware
Slide 7
Measurement Results
Slide 8
Data Design
Slide 9
Modules & Team Split
Slide 10
Demo
Slide 11
Incident Workflow
Slide 12
Conclusion & Future Scope
Bullets, speaker notes and the .pptx · ₹2,000
Read each answer, close it, and say it in your own words. Your viva will ask. Now you'll know.
A canary file is a decoy planted among real files, with a tempting name like a marks register, but never opened by any legitimate user or process — no editor, compiler, backup job or student workflow touches it. Because the set of things that legitimately access it is empty, any modification, rename or deletion of a canary is by definition anomalous, which gives the rule a near-zero false-positive rate without any tuning. Canary files are a deception-based defence in the same family as honeypots, applied at the file-system layer.
Encryption flattens the byte distribution toward uniform random, so Shannon entropy approaches the theoretical maximum of 8 bits per byte for the cipher output, while ordinary documents and source files sit well below — around 4.5 to 6. The limit is that legitimately compressed or already-encrypted files, such as ZIP archives, JPEGs and backups, are also high-entropy, which is why we never alert on a single high-entropy file. We instead watch the entropy *trend across many modified files in the same burst*, combined with the rename rate, so a student downloading archives does not look like an encryptor.
The lab antivirus is signature-based: it matches known malware binaries and is blind to a new or obfuscated variant until a vendor signature arrives, which is typically hours after the campaign starts. CanaryGuard is behaviour- and deception-based: it does not try to identify the malware at all, only the effect it must produce — mass file modification — and the decoys it cannot resist touching. The two layers are complementary, and ours is designed to fire during the encryption window, not after users report unreadable files.
+13 more questions, with answers
Unlocks with the project · ₹2,000
Unlock for ₹2,000What to change before it goes anywhere near a submission. Skipping it is how the demo fails live.
Unlocks with the project · ₹2,000
Unlock for ₹2,000How to study it, adapt it and walk your examiner through it, step by step.
Unlocks with the project · ₹2,000
Unlock for ₹2,000OnlyProjects. (2026). CanaryGuard: A Ransomware Canary and File-System Monitor for College Lab Machines: B.Tech / B.E. Cyber Security project bundle [Educational resource]. https://onlyprojects.online/projects/btech-cyber-canaryguard-ransomware-fs-monitor
Keep browsing
Same degree, same syllabus slot, different idea. Pick the one your guide will actually approve.
Cyber Security
Flows, top talkers and scan indicators for the lab's own network — headers only, no blocking, full history
Cyber Security
Three decoy ports that listen, log every knock, and turn lab scan traffic into charts the lab in-charge can actually read
Mechanical Engineering
A human-powered spiked-roller dehusker for small coconut growers around Pollachi — designed, fabricated and tested for ₹ under 20,000
Aerospace / Aeronautical
Build a subsonic test tunnel on a student budget, then trace lift and drag on a 3D-printed NACA 0012 against theory
Agricultural Engineering
Irrigates vegetable beds by soil-moisture thresholds instead of habit, and proves every litre with a flow meter
Artificial Intelligence & Machine Learning
Forecasts kharif yield for Karnataka districts from six decades of ICRISAT district data and tells extension officers which crops look safe this season