Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
10000 GitHub - summergaga/diplom: Дипломный проект по проверке IP-адреса в различных TI-фидах на базе Logstash
Nothing Special   »   [go: up one dir, main page]

Skip to content

Дипломный проект по проверке IP-адреса в различных TI-фидах на базе Logstash

License

Notifications You must be signed in to change notification settings

summergaga/diplom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Описание

Это мой дипломный проект по проверке IP-адресов в различных TI-фидах на базе Logstash

Запуск

Для запуска требуется установить logstash-filter-public_ip командой

.\logstash-plugin install logstash-filter-public_ip

в директории bin.

Дополнительно требуется установить logstash-filter-teamcymru.

Структурная схема

graph TD;
    A[stdin input] -->|Filter part| B[Grok IP parser];
    B --> C{Public IP filter};
    C --> |Not public IP| K[Output];
    C --> |Public IP| D{IP Version};
    D --> |IPv4| E[Spamhaus check];
    E --> F[Alienvault check];
    F --> G[Virustotal check];
    G --> H[AbuseIPDB check];
    H --> I[TeamCymru check];
    I --> J[Total result V4];
    J --> K;
    D --> |IPv6| L[Alienvault check];
    L --> M[AbuseIPDB check];
    M --> N[Total result V6];
    N --> K;
Loading

Механизм работы

Проверка версии и типа IP-адреса

Используется плагин logstash-filter-public_ip

Проверка Spamhaus

Если DNS-запрос вернул 127.0.0.4 - адрес присутствует в спам-листах Spamhaus. Коды и их описание.

Проверка Alienvault

Если возвращает 0, то IP чист, если 1 - то вредоносный. Работает через API. Ссылка на списки вредоносных IP.

Проверка Virustotal

Получаем оценку от Virustotal в интервале [-100, 100], где -100 - "абсолютно вредоносный", а 100 - "абсолютно безвредный". Подробнее.

Проверка AbuseIPDB

Интервал оценки - [0, 100]. 0 - безвреден, 100 - вредоносный. Подробнее.

Проверка Teamcymru

Рейтинг от 0 до 100, аналогично AbuseIPDB.

Вывод общего результата

Простое сравнение каждого полученного рейтинга с порогами, задаваемыми индивидуально для каждой из баз.

Примеры вывода

1.1.1.1 - Cloudflare DNS one.one.one.one
{
    "ip" => "1.1.1.1",
    "abuseipdb_score" => 0,
    "virustotal_score" => 69,
    "spamhaus_score" => 0,
    "teamcymru_score" => 56,
    "alienvault_score" => 0,
    "Total match" => 2,
}
104.21.56.234 - rutracker.org
{
    "ip" => "104.21.56.234",
    "abuseipdb_score" => 0,
    "alienvault_score" => 0,
    "virustotal_score" => 0,
    "teamcymru_score" => 0,
    "spamhaus_score" => 0,
    "Total match" => 0,
}
2606:4700:3036::6815:38ea - rutracker.org IPv6
{
    "Total match" => 0,
    "abuseipdb_score" => 0,
    "alienvault_score" => 0,
    "ip" => "2606:4700:3036::6815:38ea"
}
91.238.229.134 - IP from AS58042 (СПбГУТ)
{
    "Total match" => 1,
    "alienvault_score" => 0,
    "abuseipdb_score" => 100,
    "spamhaus_score" => 0,
    "virustotal_score" => 0,
    "teamcymru_score" => 1,
    "ip" => "91.238.229.134"
}
203.248.175.71 - IP from AS3786 (LG DACOM Corporation)
{
    "virustotal_score" => -6,
    "ip" => "203.248.175.71",
    "spamhaus_score" => 0,
    "abuseipdb_score" => 100,
    "teamcymru_score" => 100,
    "alienvault_score" => 1,
    "Total match" => 4,
}

About

Дипломный проект по проверке IP-адреса в различных TI-фидах на базе Logstash

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0