ThreatDetector

Modular Apache Log Threat Detection for Vicidial and Linux Web Servers

ThreatDetector is a modular, extensible, Perl-based threat detection framework for parsing Apache logs. It detects web attacks such as SQL Injection, XSS, Command Injection, Directory Traversal, and more. Designed with call center infrastructures and Vicidial clusters in mind, it supports multi-host scanning via SSH and generates rich summary reports.

Features

Requirements

cpan install JSON File::Slurp Getopt::Long Term::ANSIColor IPC::System::Simple
#!/usr/bin/perl

use strict;
use warnings;
use ThreatDetector;

my $log_file    = '/var/log/apache2/access.log';
my $config_file = '/etc/threatdetector/config.json';  # or wherever you placed it

ThreatDetector::analyze_log($log_file, $config_file);

Project Structure

Usage

perl bin/detect.pl --logfile /var/log/apache2/access.log

Testing

prove -lv t/