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.
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.
Interact with the investigation console below. Switch tabs to inspect network discovery, API vulnerability identification, Linux capability escalation, and system hardening:
Restrict internal API access through reverse proxy routing and enforce strict firewall egress/ingress policies.
Principle of Least Privilege & Perimeter Defense
Core security principles applied across competitive CTF challenges and defensive host administration:
| VULNERABILITY VECTOR | INVESTIGATION METHOD | DEFENSIVE REMEDIATION |
|---|---|---|
| Network Surface Exposure | Nmap 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 Inputs | Payload 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 Hardening | Configuration reviews of SSH daemon, system permissions, and services. | Disable root SSH login, enforce key-based authentication, and enable AppArmor confinement profiles. |
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.