THEJITHA/SELECTED WORK/SECURITY-LAB

Medusa 2.0 CTF & Security Lab

Cybersecurity challenge triage and security sandbox analysis. Grounded in achieving 2nd Runners-up at the Medusa 2.0 National CTF competition organized by the Electronic and Computer Security Club (ECSC) of the University of Kelaniya.

COMPETITION / SCOPE2nd Runners-up · Medusa 2.0 (2025)
FOCUS AREASCTF Triage, Linux Capabilities, Web Security, Defense
TOOLCHAINLinux, Nmap, Bash, Python, POSIX Capabilities
STATUS● Competition Verified & Tested
01 / CTF COMPETITION CONTEXT & OBJECTIVESSYS.CONTEXT

Capture The Flag (CTF) competitions simulate realistic adversarial cybersecurity scenarios, requiring participants to identify hidden attack vectors, evaluate host misconfigurations, and exploit logic vulnerabilities within constrained time limits.

At Medusa 2.0, our team analyzed network topologies, reversed binary logic, audited web endpoints, and evaluated Linux privilege escalation pathways, securing 2nd Runners-up nationwide.

02 / INTERACTIVE TERMINAL RECON & CTF TRIAGESYS.TERMINAL

Interact with the investigation console below. Switch tabs to inspect network discovery, API vulnerability identification, Linux capability escalation, and system hardening:

SYS.CTF // ETHICAL INVESTIGATION CONSOLE & CTF CHALLENGE WALKTHROUGHS
thejitha@ctf-lab:~/reconMEDUSA 2.0 CTF · 2ND RUNNERS-UP
thejitha@ctf-lab:~$ nmap -sC -sV -p- 10.10.11.42 -oN ctf_scan.txt
Starting Nmap ( https://nmap.org )
Nmap scan report for ctf-target.local (10.10.11.42)
Host is up (0.024s latency).
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 8.9p1 Ubuntu (protocol 2.0)
80/tcp open http nginx 1.18.0 (Ubuntu)
8080/tcp open http Node.js (API Service)
 
Nmap done: 1 IP address (1 host up) scanned
DETECTED VECTOR: Exposed API Service on Non-Standard Port 8080
SEVERITY: MEDIUM
REMEDIATION & MITIGATION

Restrict internal API access through reverse proxy routing and enforce strict firewall egress/ingress policies.

SECURITY PRINCIPLE

Principle of Least Privilege & Perimeter Defense

03 / TECHNICAL ANALYSIS & REMEDIATION STRATEGIESSYS.ANALYSIS

Core security principles applied across competitive CTF challenges and defensive host administration:

VULNERABILITY VECTORINVESTIGATION METHODDEFENSIVE REMEDIATION
Network Surface ExposureNmap service version detection (`-sV`) and default script scans (`-sC`).Enforce strict firewall rules (UFW default deny incoming), bind internal services to loopback (`127.0.0.1`), and proxy traffic through TLS reverse proxies.
Unsanitized API InputsPayload injection testing on HTTP JSON endpoints with boundary conditions.Adopt parameterized prepared statements and strict Pydantic/ORM data validation models to neutralize injection vectors.
POSIX Capabilities (`CAP_SETUID`)Auditing extended file attributes using `getcap -r / 2>/dev/null`.Strip unnecessary capabilities from system binaries using `setcap -r` and run background processes with dedicated unprivileged user accounts.
Host HardeningConfiguration reviews of SSH daemon, system permissions, and services.Disable root SSH login, enforce key-based authentication, and enable AppArmor confinement profiles.
04 / CORE COMPETENCIES & APPLIED LEARNINGSYS.COMPETENCIES

Adversarial Mindset & Threat Identification

Understanding offensive attack surfaces allows software engineers to design defensive architectures that anticipate edge cases and prevent vulnerabilities during initial development.

Linux Internals & Permission Hygiene

Deep familiarity with Linux process trees, UID/GID inheritance, POSIX capability sets, and secure filesystem permission hierarchies.

Secure API & Web Architecture

Designing web services that enforce strict input validation, avoid information leakage in error responses, and apply the principle of least privilege.

Rapid Problem Solving Under Time Constraints

Systematic triage and analytical problem-solving skills honed through competitive national-level CTF competitions.