websnort 오픈 소스 웹 서비스를 이용한 PCAP 파일 분석
2016.11.27 21:23
회사 업무 중 누군가가 덤프 해준 pcap 파일을 빠르게 분석해야 하는 경우 유용한 도구 없을까 찾아보니까, 역시 깃허브에 누군가 올려 두었다.
- 깃허브 : https://github.com/shendo/websnort
- 리드더독스 : https://websnort.readthedocs.io/en/latest/
아래와 같이 설명이 되어 있다.
Websnort is an Open Source web service for analysing pcap files with intrusion detection systems such as snort and suricata.
(Websnort는 snort 및 suricata와 같은 침입 탐지 시스템으로 pcap 파일을 분석하기위한 오픈 소스 웹 서비스입니다.)
파이썬으로 만들어져 있으며, 웹 bottle로만들어진 웹서버를 실행시킨후 pcap 파일을 업로드 해주면, 내부적으로 Snort나 Suricata IDS를 실행하여 매칭되는 시그니쳐를 뿌려주는 형태로 되어 있다.
설치난이도는 "하"로 윈도우에 쉽게 설치 및 구동이 가능하였다.
설치를 위해 먼저
pip install websnort
를 입력하여 설치한다.
깃허브에서는 "websnort"명령어로 실행히 가능하다 헀지만 안되고, 설치된 디렉터리 "C:\Python27\Lib\site-packages\websnort"로 이동하 python web.py 명령어를 치면 아래와 같은 화면을 웹 브라우저에서 확인 할 수 있다.
스노트를 설치하고 websnoft의 conf 디렉터리의 websnort.conf를 적절하게 수정한다. 나는 이래와 같이 설정하였다.
# Websnort - Web submission API for analysing pcap files with snort # Copyright (C) 2013-2015 Steve Henderson # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Example configuration of snort on windows, installed in C:\snort [websnort] ids = snort [snort] module = snort ruleset = default path = C:\Snort\bin\snort.exe config = \snort\etc\snort.conf extra_args =
설정후 Pcap를 올린후 submit하면 아래와 같이 ids에 매칭되는 시그니쳐를 보여준다.
cmd창에서는 snort가 실행되는 것을 볼 수 있다.
restapi도 사용가능.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
12 | [집에서 하는 보안관제] SIEM ossim | Leekyu | 2017.02.09 | 1367 |
11 | [집에서 하는 보안관제] 웹방화벽 Vulture | Leekyu | 2017.02.09 | 839 |
10 |
[집에서 하는 보안관제] NMS The Dude 편
![]() | Leekyu | 2017.02.09 | 2284 |
9 | [집에서 하는 보안관제] Suricata IDS 편 | Leekyu | 2017.02.09 | 2483 |
8 | [집에서 하는 보안관제] 방화벽 편 | Leekyu | 2017.02.09 | 619 |
» |
websnort 오픈 소스 웹 서비스를 이용한 PCAP 파일 분석
![]() | Leekyu | 2016.11.27 | 1717 |
6 | Tshark이용한 패킷 확인 | Leekyu | 2016.07.07 | 3452 |
5 | volatility 명령어정리 | Leekyu | 2016.04.06 | 3055 |
4 |
[IDS] Network tap 장비를 이용한 IDS 만들기
![]() | Leekyu | 2015.07.27 | 2616 |
3 | Snort 규칙 [1] | Leekyu | 2014.04.05 | 10325 |
2 | Snort Signature 구조 | Leekyu | 2013.09.29 | 21937 |
1 |
Joomla JCE Remote File Upload
![]() | Leekyu | 2013.09.29 | 1663 |