--- language: - en tags: - text-classification - cybersecurity - http-attack-detection - intrusion-detection - web-security - tfidf - xgboost - lightgbm - sklearn - keras license: mit metrics: - accuracy - f1 --- # HTTP Attack Classification Models A collection of machine learning models for detecting and classifying HTTP-based cyber attacks from raw request logs. Each model takes a raw HTTP request string as input and classifies it into one of 9 attack categories. --- ## Task - **Task**: Multi-class Text Classification - **Domain**: Network Security / Intrusion Detection - **Input**: Raw HTTP request string (method, path, headers, body) - **Output**: One of 9 attack type labels --- ## Attack Types | Class | Description | Common Indicators | |-------|-------------|-------------------| | `Vulnerability_Scan` | Automated scanning for known vulnerabilities | sqlmap, nikto, nmap user-agents; repeated probing patterns | | `System_Cmd_Execution` | OS command injection attempts | `\|`, `;`, `&&`, `wget`, `curl`, `/bin/sh`, `boot.ini` | | `HOST_Scan` | Network host discovery and port scanning | Minimal headers, bare `GET /`, nmap scripting engine | | `Path_Disclosure` | Directory traversal and file path exposure | `../`, `..%2F`, `/etc/passwd`, `/etc/shadow`, `/proc/` | | `SQL_Injection` | SQL injection in query parameters | `UNION SELECT`, `OR 1=1`, `--`, `'`, boolean-based blind patterns | | `Cross_Site_Scripting` | XSS payload injection | `