Skip to content

jumpingwhale/vthunt

Repository files navigation

HOW TO INSTALL

vtreport.py

This module crawl virustotal report and store it to local database using public API. Needs virustotal package, don't forget to copy/paste it.

vtnoti.py

This module stands for gathering virustotal hunting notification. Needs virustotal private API.

vtdownload.py

This module stands for downloading samples which filtered out by virustotal hunting rule. Needs virustotal private API. Make sure that /usr/src/app/log path is as same as config['log']['logfile']

Creating Docker Image

# 베이스 이미지
FROM python:3
# 폴더관련 작업(생성, 작업폴더설정, 외부노출)
RUN mkdir -p /usr/src/app
RUN mkdir -p /usr/src/app/log
WORKDIR /usr/src/app
VOLUME /usr/src/app/log
# requirements.txt 이미지로 복사 및 모듈 설치
COPY requirements.txt ./
RUN pip install --no-cache-dir --requirement requirements.txt
# 소스코드 복사
COPY . .
# 스크립트 실행
CMD [ "python", "./main.py" ]
docker build -t vthunt .

Creating Container

docker \
  run \
  -d \
  -it \
  --volume /volume1/docker/python/vthunt:/usr/src/app/log \
  --name vthunt_con \
  vthunt

store.py

This module stands for storing samples to sample server from specific local directory. Manual uploading to sample server has no effects because sample server has own database describing sample binary's location in its filesystem. store.py monitors local directory every 2 seconds, and stores all files to sample server. Monitoring directory in container is /usr/src/app/monitor, configurable at config.yaml

Creating Docker Image

# 베이스 이미지
FROM python:3
# 폴더관련 작업(생성, 작업폴더설정, 외부노출)
RUN mkdir -p /usr/src/app
RUN mkdir -p /usr/src/app/log
WORKDIR /usr/src/app
VOLUME /usr/src/app/log
# requirements.txt 이미지로 복사 및 모듈 설치
COPY requirements.txt ./
RUN pip install --no-cache-dir --requirement requirements.txt
# 모니터링 폴더 노출
RUN mkdir -p /usr/src/app/monitor
VOLUME /usr/src/app/monitor
# 소스코드 복사
COPY . .
# 스크립트 실행
CMD [ "python", "./store.py" ]
docker build -t store .

Creating Container

docker \
  run \
  -d \
  -it \
  --volume /volume1/docker/python/store_sample:/usr/src/app/log \
  --volume /volume1/docker/python/store_sample/monitor:/usr/src/app/monitor \
  --name store_con \
  store

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages