austin-taylor/flare
austin-taylor/flare has 459 GitHub stars and 87 forks. GitHot measured +1 in 7 days. Last checked 2026-11-10 19:59 UTC. Last push 2022-12-07.
An analytical framework for network traffic and behavioral analytics
측정된 스타 증가
- in 24h
- 업데이트 지연
- in 7 days
- +1
- in 15 days
- 업데이트 지연
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
Flare is a network analytic framework designed for data scientists, security researchers, and network professionals. Written in Python, it is designed for rapid prototyping and development of behavioral analytics, and intended to make identifying malicious behavior in networks as simple as possible.
Getting Started
Currently supports python 2.7 and python 3
sudo pip install -r requirements.txt
python setup.py install
First Use
Once Flare is installed you may use it via the command line by calling flare_beacon. You can use command line parameters or call a configuration file (recommended). See the configs directory for sample configuration files.
Example command below:
flare_beacon -c /path/to/flare/config/elasticsearch.ini --focus_outbound --whois flare_beacon -json /tmp/flare.json
Core Features
- Command and Control Analytics
- Identify Beaconing in your environment (works with Suricata output and ElasticSearch)
- Feature Extraction
- Helper utility functions to filter out the noise.
- Alexa, Umbrella, and Majestic Million (coming soon)
- WHOIS IP Lookup
- Pre-build machine learning classifiers
- So much more...
Analytics
Beaconing
Designed for elasticsearch and Suricata, elasticBeacon will connect to your elasticsearch server, retrieve all IP addresses and identify periodic activity.
You may need to forward port 9200 to your localhost with ssh -NfL 9200:localhost:9200 [email protected]
from flare.analytics.command_control import elasticBeacon
eb = elasticBeacon(es_host='localhost')
beacons = eb.find_beacons(group=True, focus_outbound=True)
Also available in commandline:
CSV OUTPUT
flare_beacon --whois --focus_outbound -mo=100 --csv_out=beacon_results.csv
HTML OUTPUT
flare_beacon --group --whois --focus_outbound -c configs/elasticsearch.ini -html beacons.html
JSON OUTPUT (for SIEM)
flare_beacon --whois --focus_outbound -c /opt/flare-master/configs/selks4.ini -json beacon.json -v
Full writeup here
Domain Features
Alexa
from flare.tools.alexa import Alexa
alexa = Alexa(limit=1000000)
print alexa.domain_in_alexa('google.com') # Returns True
print alexa.subdomain_in_alexa('www') # Returns True
print alexa.DOMAINS_TOP1M #Displays domains (in this case top 100)
IP Utilities
from flare.tools.whoisip import WhoisLookup
whois = WhoisLookup()
whois.get_name_by_ip('8.8.8.8')
OUT: 'GOOGLE - Google Inc., US'
from flare.tools.iputils import hex_to_ip, ip_to_hex
ip_to_hex('8.8.8.8'), hex_to_ip('08080808')
OUT: (u'08080808', '8.8.8.8')
- Convert Hex to IP and vice/versa
- Check for Private, Multicast, or Reserved domains
- Identify the owner of a public IP address
Data Science Features
from flare.data_science.features import dga_classifier
dga_c = dga_classifier()
print dga_c.predict('facebook')
Legit
print dga_c.predict('39al31ak3')
dga
from flare.data_science.features import entropy
from flare.data_science.features import ip_matcher
from flare.data_science.features import domain_extract
from flare.data_science.features import levenshtein
from flare.data_science.features import domain_tld_extract
# Entropy example
print entropy('akd93ka8a91a')
2.58496250072
# IP Matcher Example
print ip_matcher('8.8.8.8')
True
print ip_matcher('39.993.9.1')
False
# Domain Extract Example
domain_extract('longsubdomain.huntoperator.com')
'huntoperator'
# Domain TLD Extract
domain_tld_extract('longsubdomain.huntoperator.com')
'huntoperator.com'
# Levenshtein example
a = ['google.com']
b = ['googl3.com']
print levenshtein(a, b)
'Difference of:' 1
and many more features for data extraction...
관련 프로젝트 살펴보기
Asabeneh/30-Days-Of-Python
30 Days of Python 프로그래밍 챌린지는 Python 프로그래밍 언어를 30일 동안 배우기 위한 단계별 가이드입니다. 이 챌린지는 100일 이상 걸릴 수 있습니다. 자신의 속도에 맞춰 진행하세요. 다음 동영상도 도움이 될 수 있습니다: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,560 스타grafana/grafana
개방적이고 조합 가능한 옵저버빌리티 및 데이터 시각화 플랫폼입니다. Prometheus, Loki, Elasticsearch, InfluxDB, Postgres 등 여러 소스의 메트릭, 로그, 트레이스를 시각화합니다.
77,830 스타redis/redis
실시간 데이터 기반 애플리케이션을 구축하는 개발자에게 Redis는 가장 선호되고, 가장 빠르며, 기능이 가장 풍부한 캐시, 데이터 구조 서버이자 문서 및 벡터 쿼리 엔진입니다.
77,395 스타apache/superset
Apache Superset는 데이터 시각화 및 데이터 탐색 플랫폼입니다.
75,473 스타