*These plugins help you in your security log analysis (close of SIEM but without post correlate, just real time) and make score for create alert.*
*Logstash plugin Filter "Sig" can help you to detect security threat in log by differents ways.*
* Drop first time False positive and noise events
* Enrichissement event with database or/and send event to plugin enrsig for enrich event by acti (whois, ssl_check, nmap, ...)
* Drop second time False positive and noise events (based on enrichissement informations)
* Check new value in field
* Check blacklist reputation
* Check IOC in event (extracted on MISP)
* Check signatures with some fonctionnality:
* Rule compisition:
* Name: name of rule for report
* ID: id use for correlate and change score
* Score (note): gi if matched (use score for triggered alert)
* Type: 2 types possibility, first is 'primary signature' and second is 'second signature'. Second signature match only if a primary signature matched before.
* ModeFP: it's boolean for indicate if rule match 'false positive'
* extract (optional): use for extract data informations if you are sure that threat, and put in IOC local database for detect in all next events.
* Use multi-search techniques (you can use one or more techniques in one rule) by event on field and value:
* Check if field is present or field is not present
* Check Regexp if present or not present
* Check motif (Array or String)
* Compare value field against another value field (string or numeric -- operator: ==, <, >, !=)
* Check size (length) of string in field with operator: ==, <, >, !=
* Check ipaddr (ex: 192.168.0.0/24) in field with operator: ==, !=
* Check numeric value in field with operator: ==, !=, <, >
* Check date value in relationship with time now + X, with operator: ==, <, >, !=
* Check date value if in hour, use operator: ==, <, >, !=
* Check date value if in day (number day, ex: 0==sunday,1==monday), use operator: ==, <, >, !=
* Check frequence on multi event
* Can be used for brute force (ex: if 3 times auth error in 60 secondes,then don't research before 3600 secondes)
* Correlate multi-sources with same field value (ex: ip) on different events (ex: squid event IP DST == sysmon event IP DST)
* Check frequence on event
* Check event by compare with reference data (require to make reference database with ES when contains clean data) (it's new of my project AEE [])
* Check size, check regexp form value, check if unique or determined list value (ex: don't be because change e)
* Check link/relationship between not signle/determined list value of fields (idea inspired by tool PicViz []). Exemple on apache log page test.php return always 200 in all logs. The link/relationship value/field is "uri_page(test.php)<->return_code(200)"
* Analys matched rules for adapt score of alert
* Fingerprint event according by rule for identify unique event & Drop fingerprint (false positi)
* Check frequence on specifique event by filters. Alert not created on a specifique event, but it create new event.
* You can use docker cloud: docker pull lprat/logstash-plugins:latest
*DockerFile create contener with last logstash and install plugin: sig, enrsig and fir. If you add others plugins, please edit Dockerfile before run docker composer*
Enter in directory "docker" and edit file "docker-compose.yml" :
* : change source (on host) with your logstash path configuration
Before run docker composer, configuration logstash is valid. configuration plugin logstash is valid too (use sample configuration in plugins directory for help you).
*Logstash plugin Filter "EnrSig" can help you to enrich event with different sources informations (database, system command, external request, ...).*
Normaly, enrsig is called by plugin "sig" (in begin check) according by the rules, it send event to logstash enrsig and it wait to revei on another input. When recei, the enriched event goes back in sig filter.
* Check if enrichissement ask exist in the configuration (WHOIS, SSL_CHECK, NBTSCAN, NMAP, ...)
* If exist, check if target field value exist and if format is valid (regexp)
* Check if result exist already for value then pass to other ask, or if the end then send result
* If data not exist then execute commande syntaxe with value(s) and parse result according by template, and pass to next ask or send result
*DockerFile create contener with last logstash and install plugin: sig, enrsig and fir. If you add others plugins, please edit Dockerfile before run docker composer*
Enter in directory "docker" and edit file "docker-compose.yml" :
* : change source (on host) with your logstash path configuration
Before run docker composer, configuration logstash is valid. configuration plugin logstash is valid too (use sample configuration in plugins directory for help you).
*Logstash plugin Output for send alert (created by filter sig) in FIR (Cert SG - )*
* Create rule for send alert to FIR
* Create or use default template to custom sent alert to FIR.
* use fingerprint(sig plugin) for create one thread by IP SRC/MAC ADR in FIR for all alert
*Docker in cloud: lprat/logstash-plugins:latest
*DockerFile create contener with last logstash and install plugin: sig, enrsig and fir. If you add others plugins, please edit Dockerfile before run docker composer*
Enter in directory "docker" and edit file "docker-compose.yml" :
* : change source (on host) with your logstash path configuration
Before run docker composer, configuration logstash is valid. configuration plugin logstash is valid too (use sample configuration in plugins directory for help you).
* Lumberjack certificat
~~~
reference:
#Generate a CA, Key + Signed Cert
/opt/elasticsearch-6.4.2/bin/elasticsearch-certutil cert --pem
unzip certificate-bundle.zip
###################################################################
#Upstream Logstash Server
###################################################################
#Downstream Logstash Server
#
}
output {
stdout { codec => rubydebug }
}
~~~
@ lionel.prat9 (at) gmail.com Ou cronos56 (at) yahoo.com
开发语言:Ruby
Star 数:10
该项目属于防护思路方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕My logstash plugins. Filter: sig (for security detect -> IOC, sig, New value, Reference, link, frequence, ...). Output: alert created by filter sig, feed FIR (CERT SG)展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | logstash-plugins - My logstash plugins. Filter: sig (for security det |
| 所属分类 | 防护思路 |
| 发布作者 | admin |
| 发布时间 | 2026-10-06 00:12:11 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 272 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |