Get Free Synopsis PDF
We will prepare a detailed synopsis for your college submission. Includes problem statement, objectives, DFD, ER diagram, and more.
This project implements a port-knocking system that keeps sensitive service ports closed by default and only opens them temporarily after a client sends a correct, pre-shared sequence of connection attempts to a series of closed ports. This reduces the attack surface visible to automated port scanners since the protected service appears completely closed until the correct knock sequence is received. The project demonstrates and verifies the technique using Nmap scans before and after a valid knock sequence.
Problem Statement
Services left permanently open on a port are easy targets for automated scanning and brute-force attempts, even behind authentication. Port knocking adds an extra layer of obscurity that hides a service entirely from scanners until a correct secret sequence is presented, meaningfully shrinking the visible attack surface.
Objectives
Study the port-knocking technique and its security/usability trade-offs
Implement a knock-sequence listener that monitors closed-port connection attempts
Build dynamic firewall rule toggling to open/close the protected port on valid sequences
Add sequence expiry and replay protection to the knocking protocol
Verify effectiveness using before/after Nmap scans of the protected port
Modules
Knock Listener
Monitors connection attempts to a defined sequence of normally-closed ports.
Sequence Validator
Checks whether an observed knock sequence matches the expected secret pattern.
Dynamic Firewall Controller
Temporarily opens the protected port only after a valid knock sequence.
Replay Protection Module
Prevents reuse of captured knock sequences to block simple replay attacks.
Verification Harness
Runs Nmap scans before and after a valid knock to confirm the port-hiding effect.
Expected Output
A working demonstration where an Nmap scan shows the protected port as closed/filtered by default, and only becomes reachable immediately after the correct knock sequence is sent.
Future Scope
The system could be extended with single-packet authorization (SPA) using cryptographically signed knock packets for stronger protection against sequence replay.